1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for FluidSynth-DSSI 1.0.0.
4#
5# Report bugs to <dssi-devel@lists.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='FluidSynth-DSSI'
747PACKAGE_TARNAME='fluidsynth-dssi'
748PACKAGE_VERSION='1.0.0'
749PACKAGE_STRING='FluidSynth-DSSI 1.0.0'
750PACKAGE_BUGREPORT='dssi-devel@lists.sourceforge.net'
751
752ac_unique_file="src/fluidsynth-dssi.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767#  include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772#  include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='LTLIBOBJS
790LIBOBJS
791DARWIN_FALSE
792DARWIN_TRUE
793MODULE_LIBS
794MODULE_CFLAGS
795ALSA_LIBS
796ALSA_CFLAGS
797BUILD_GUI_FALSE
798BUILD_GUI_TRUE
799GTK_CONFIG
800GTK_LIBS
801GTK_CFLAGS
802FLUID_LIBS
803FLUID_CFLAGS
804PKG_CONFIG
805CPP
806OTOOL64
807OTOOL
808LIPO
809NMEDIT
810DSYMUTIL
811lt_ECHO
812RANLIB
813AR
814OBJDUMP
815LN_S
816NM
817ac_ct_DUMPBIN
818DUMPBIN
819LD
820FGREP
821EGREP
822GREP
823SED
824host_os
825host_vendor
826host_cpu
827host
828build_os
829build_vendor
830build_cpu
831build
832LIBTOOL
833am__fastdepCC_FALSE
834am__fastdepCC_TRUE
835CCDEPMODE
836AMDEPBACKSLASH
837AMDEP_FALSE
838AMDEP_TRUE
839am__quote
840am__include
841DEPDIR
842OBJEXT
843EXEEXT
844ac_ct_CC
845CPPFLAGS
846LDFLAGS
847CFLAGS
848CC
849am__untar
850am__tar
851AMTAR
852am__leading_dot
853SET_MAKE
854AWK
855mkdir_p
856MKDIR_P
857INSTALL_STRIP_PROGRAM
858STRIP
859install_sh
860MAKEINFO
861AUTOHEADER
862AUTOMAKE
863AUTOCONF
864ACLOCAL
865VERSION
866PACKAGE
867CYGPATH_W
868am__isrc
869INSTALL_DATA
870INSTALL_SCRIPT
871INSTALL_PROGRAM
872target_alias
873host_alias
874build_alias
875LIBS
876ECHO_T
877ECHO_N
878ECHO_C
879DEFS
880mandir
881localedir
882libdir
883psdir
884pdfdir
885dvidir
886htmldir
887infodir
888docdir
889oldincludedir
890includedir
891localstatedir
892sharedstatedir
893sysconfdir
894datadir
895datarootdir
896libexecdir
897sbindir
898bindir
899program_transform_name
900prefix
901exec_prefix
902PACKAGE_BUGREPORT
903PACKAGE_STRING
904PACKAGE_VERSION
905PACKAGE_TARNAME
906PACKAGE_NAME
907PATH_SEPARATOR
908SHELL'
909ac_subst_files=''
910ac_user_opts='
911enable_option_checking
912enable_dependency_tracking
913enable_static
914enable_shared
915with_pic
916enable_fast_install
917with_gnu_ld
918enable_libtool_lock
919with_gtk2
920enable_gtktest
921with_gtk_prefix
922with_gtk_exec_prefix
923'
924      ac_precious_vars='build_alias
925host_alias
926target_alias
927CC
928CFLAGS
929LDFLAGS
930LIBS
931CPPFLAGS
932CPP
933PKG_CONFIG
934FLUID_CFLAGS
935FLUID_LIBS
936ALSA_CFLAGS
937ALSA_LIBS
938MODULE_CFLAGS
939MODULE_LIBS'
940
941
942# Initialize some variables set by options.
943ac_init_help=
944ac_init_version=false
945ac_unrecognized_opts=
946ac_unrecognized_sep=
947# The variables have the same names as the options, with
948# dashes changed to underlines.
949cache_file=/dev/null
950exec_prefix=NONE
951no_create=
952no_recursion=
953prefix=NONE
954program_prefix=NONE
955program_suffix=NONE
956program_transform_name=s,x,x,
957silent=
958site=
959srcdir=
960verbose=
961x_includes=NONE
962x_libraries=NONE
963
964# Installation directory options.
965# These are left unexpanded so users can "make install exec_prefix=/foo"
966# and all the variables that are supposed to be based on exec_prefix
967# by default will actually change.
968# Use braces instead of parens because sh, perl, etc. also accept them.
969# (The list follows the same order as the GNU Coding Standards.)
970bindir='${exec_prefix}/bin'
971sbindir='${exec_prefix}/sbin'
972libexecdir='${exec_prefix}/libexec'
973datarootdir='${prefix}/share'
974datadir='${datarootdir}'
975sysconfdir='${prefix}/etc'
976sharedstatedir='${prefix}/com'
977localstatedir='${prefix}/var'
978includedir='${prefix}/include'
979oldincludedir='/usr/include'
980docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981infodir='${datarootdir}/info'
982htmldir='${docdir}'
983dvidir='${docdir}'
984pdfdir='${docdir}'
985psdir='${docdir}'
986libdir='${exec_prefix}/lib'
987localedir='${datarootdir}/locale'
988mandir='${datarootdir}/man'
989
990ac_prev=
991ac_dashdash=
992for ac_option
993do
994  # If the previous option needs an argument, assign it.
995  if test -n "$ac_prev"; then
996    eval $ac_prev=\$ac_option
997    ac_prev=
998    continue
999  fi
1000
1001  case $ac_option in
1002  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003  *)	ac_optarg=yes ;;
1004  esac
1005
1006  # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008  case $ac_dashdash$ac_option in
1009  --)
1010    ac_dashdash=yes ;;
1011
1012  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013    ac_prev=bindir ;;
1014  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015    bindir=$ac_optarg ;;
1016
1017  -build | --build | --buil | --bui | --bu)
1018    ac_prev=build_alias ;;
1019  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020    build_alias=$ac_optarg ;;
1021
1022  -cache-file | --cache-file | --cache-fil | --cache-fi \
1023  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024    ac_prev=cache_file ;;
1025  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027    cache_file=$ac_optarg ;;
1028
1029  --config-cache | -C)
1030    cache_file=config.cache ;;
1031
1032  -datadir | --datadir | --datadi | --datad)
1033    ac_prev=datadir ;;
1034  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035    datadir=$ac_optarg ;;
1036
1037  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038  | --dataroo | --dataro | --datar)
1039    ac_prev=datarootdir ;;
1040  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042    datarootdir=$ac_optarg ;;
1043
1044  -disable-* | --disable-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1049   { (exit 1); exit 1; }; }
1050    ac_useropt_orig=$ac_useropt
1051    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052    case $ac_user_opts in
1053      *"
1054"enable_$ac_useropt"
1055"*) ;;
1056      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057	 ac_unrecognized_sep=', ';;
1058    esac
1059    eval enable_$ac_useropt=no ;;
1060
1061  -docdir | --docdir | --docdi | --doc | --do)
1062    ac_prev=docdir ;;
1063  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064    docdir=$ac_optarg ;;
1065
1066  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067    ac_prev=dvidir ;;
1068  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069    dvidir=$ac_optarg ;;
1070
1071  -enable-* | --enable-*)
1072    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073    # Reject names that are not valid shell variable names.
1074    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1076   { (exit 1); exit 1; }; }
1077    ac_useropt_orig=$ac_useropt
1078    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079    case $ac_user_opts in
1080      *"
1081"enable_$ac_useropt"
1082"*) ;;
1083      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084	 ac_unrecognized_sep=', ';;
1085    esac
1086    eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090  | --exec | --exe | --ex)
1091    ac_prev=exec_prefix ;;
1092  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094  | --exec=* | --exe=* | --ex=*)
1095    exec_prefix=$ac_optarg ;;
1096
1097  -gas | --gas | --ga | --g)
1098    # Obsolete; use --with-gas.
1099    with_gas=yes ;;
1100
1101  -help | --help | --hel | --he | -h)
1102    ac_init_help=long ;;
1103  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104    ac_init_help=recursive ;;
1105  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106    ac_init_help=short ;;
1107
1108  -host | --host | --hos | --ho)
1109    ac_prev=host_alias ;;
1110  -host=* | --host=* | --hos=* | --ho=*)
1111    host_alias=$ac_optarg ;;
1112
1113  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114    ac_prev=htmldir ;;
1115  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116  | --ht=*)
1117    htmldir=$ac_optarg ;;
1118
1119  -includedir | --includedir | --includedi | --included | --include \
1120  | --includ | --inclu | --incl | --inc)
1121    ac_prev=includedir ;;
1122  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123  | --includ=* | --inclu=* | --incl=* | --inc=*)
1124    includedir=$ac_optarg ;;
1125
1126  -infodir | --infodir | --infodi | --infod | --info | --inf)
1127    ac_prev=infodir ;;
1128  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129    infodir=$ac_optarg ;;
1130
1131  -libdir | --libdir | --libdi | --libd)
1132    ac_prev=libdir ;;
1133  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134    libdir=$ac_optarg ;;
1135
1136  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137  | --libexe | --libex | --libe)
1138    ac_prev=libexecdir ;;
1139  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140  | --libexe=* | --libex=* | --libe=*)
1141    libexecdir=$ac_optarg ;;
1142
1143  -localedir | --localedir | --localedi | --localed | --locale)
1144    ac_prev=localedir ;;
1145  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146    localedir=$ac_optarg ;;
1147
1148  -localstatedir | --localstatedir | --localstatedi | --localstated \
1149  | --localstate | --localstat | --localsta | --localst | --locals)
1150    ac_prev=localstatedir ;;
1151  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153    localstatedir=$ac_optarg ;;
1154
1155  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156    ac_prev=mandir ;;
1157  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158    mandir=$ac_optarg ;;
1159
1160  -nfp | --nfp | --nf)
1161    # Obsolete; use --without-fp.
1162    with_fp=no ;;
1163
1164  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165  | --no-cr | --no-c | -n)
1166    no_create=yes ;;
1167
1168  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170    no_recursion=yes ;;
1171
1172  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174  | --oldin | --oldi | --old | --ol | --o)
1175    ac_prev=oldincludedir ;;
1176  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179    oldincludedir=$ac_optarg ;;
1180
1181  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182    ac_prev=prefix ;;
1183  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184    prefix=$ac_optarg ;;
1185
1186  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187  | --program-pre | --program-pr | --program-p)
1188    ac_prev=program_prefix ;;
1189  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191    program_prefix=$ac_optarg ;;
1192
1193  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194  | --program-suf | --program-su | --program-s)
1195    ac_prev=program_suffix ;;
1196  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198    program_suffix=$ac_optarg ;;
1199
1200  -program-transform-name | --program-transform-name \
1201  | --program-transform-nam | --program-transform-na \
1202  | --program-transform-n | --program-transform- \
1203  | --program-transform | --program-transfor \
1204  | --program-transfo | --program-transf \
1205  | --program-trans | --program-tran \
1206  | --progr-tra | --program-tr | --program-t)
1207    ac_prev=program_transform_name ;;
1208  -program-transform-name=* | --program-transform-name=* \
1209  | --program-transform-nam=* | --program-transform-na=* \
1210  | --program-transform-n=* | --program-transform-=* \
1211  | --program-transform=* | --program-transfor=* \
1212  | --program-transfo=* | --program-transf=* \
1213  | --program-trans=* | --program-tran=* \
1214  | --progr-tra=* | --program-tr=* | --program-t=*)
1215    program_transform_name=$ac_optarg ;;
1216
1217  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218    ac_prev=pdfdir ;;
1219  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220    pdfdir=$ac_optarg ;;
1221
1222  -psdir | --psdir | --psdi | --psd | --ps)
1223    ac_prev=psdir ;;
1224  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225    psdir=$ac_optarg ;;
1226
1227  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228  | -silent | --silent | --silen | --sile | --sil)
1229    silent=yes ;;
1230
1231  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232    ac_prev=sbindir ;;
1233  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234  | --sbi=* | --sb=*)
1235    sbindir=$ac_optarg ;;
1236
1237  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239  | --sharedst | --shareds | --shared | --share | --shar \
1240  | --sha | --sh)
1241    ac_prev=sharedstatedir ;;
1242  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245  | --sha=* | --sh=*)
1246    sharedstatedir=$ac_optarg ;;
1247
1248  -site | --site | --sit)
1249    ac_prev=site ;;
1250  -site=* | --site=* | --sit=*)
1251    site=$ac_optarg ;;
1252
1253  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254    ac_prev=srcdir ;;
1255  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256    srcdir=$ac_optarg ;;
1257
1258  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259  | --syscon | --sysco | --sysc | --sys | --sy)
1260    ac_prev=sysconfdir ;;
1261  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263    sysconfdir=$ac_optarg ;;
1264
1265  -target | --target | --targe | --targ | --tar | --ta | --t)
1266    ac_prev=target_alias ;;
1267  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268    target_alias=$ac_optarg ;;
1269
1270  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271    verbose=yes ;;
1272
1273  -version | --version | --versio | --versi | --vers | -V)
1274    ac_init_version=: ;;
1275
1276  -with-* | --with-*)
1277    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278    # Reject names that are not valid shell variable names.
1279    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1281   { (exit 1); exit 1; }; }
1282    ac_useropt_orig=$ac_useropt
1283    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284    case $ac_user_opts in
1285      *"
1286"with_$ac_useropt"
1287"*) ;;
1288      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289	 ac_unrecognized_sep=', ';;
1290    esac
1291    eval with_$ac_useropt=\$ac_optarg ;;
1292
1293  -without-* | --without-*)
1294    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295    # Reject names that are not valid shell variable names.
1296    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298   { (exit 1); exit 1; }; }
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"with_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306	 ac_unrecognized_sep=', ';;
1307    esac
1308    eval with_$ac_useropt=no ;;
1309
1310  --x)
1311    # Obsolete; use --with-x.
1312    with_x=yes ;;
1313
1314  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315  | --x-incl | --x-inc | --x-in | --x-i)
1316    ac_prev=x_includes ;;
1317  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319    x_includes=$ac_optarg ;;
1320
1321  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323    ac_prev=x_libraries ;;
1324  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326    x_libraries=$ac_optarg ;;
1327
1328  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1329Try \`$0 --help' for more information." >&2
1330   { (exit 1); exit 1; }; }
1331    ;;
1332
1333  *=*)
1334    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335    # Reject names that are not valid shell variable names.
1336    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338   { (exit 1); exit 1; }; }
1339    eval $ac_envvar=\$ac_optarg
1340    export $ac_envvar ;;
1341
1342  *)
1343    # FIXME: should be removed in autoconf 3.0.
1344    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348    ;;
1349
1350  esac
1351done
1352
1353if test -n "$ac_prev"; then
1354  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1356   { (exit 1); exit 1; }; }
1357fi
1358
1359if test -n "$ac_unrecognized_opts"; then
1360  case $enable_option_checking in
1361    no) ;;
1362    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1363   { (exit 1); exit 1; }; } ;;
1364    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365  esac
1366fi
1367
1368# Check all directory arguments for consistency.
1369for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370		datadir sysconfdir sharedstatedir localstatedir includedir \
1371		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372		libdir localedir mandir
1373do
1374  eval ac_val=\$$ac_var
1375  # Remove trailing slashes.
1376  case $ac_val in
1377    */ )
1378      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379      eval $ac_var=\$ac_val;;
1380  esac
1381  # Be sure to have absolute directory names.
1382  case $ac_val in
1383    [\\/$]* | ?:[\\/]* )  continue;;
1384    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385  esac
1386  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1387   { (exit 1); exit 1; }; }
1388done
1389
1390# There might be people who depend on the old broken behavior: `$host'
1391# used to hold the argument of --host etc.
1392# FIXME: To remove some day.
1393build=$build_alias
1394host=$host_alias
1395target=$target_alias
1396
1397# FIXME: To remove some day.
1398if test "x$host_alias" != x; then
1399  if test "x$build_alias" = x; then
1400    cross_compiling=maybe
1401    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402    If a cross compiler is detected then cross compile mode will be used." >&2
1403  elif test "x$build_alias" != "x$host_alias"; then
1404    cross_compiling=yes
1405  fi
1406fi
1407
1408ac_tool_prefix=
1409test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411test "$silent" = yes && exec 6>/dev/null
1412
1413
1414ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415ac_ls_di=`ls -di .` &&
1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1418   { (exit 1); exit 1; }; }
1419test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1421   { (exit 1); exit 1; }; }
1422
1423
1424# Find the source files, if location was not specified.
1425if test -z "$srcdir"; then
1426  ac_srcdir_defaulted=yes
1427  # Try the directory containing this script, then the parent directory.
1428  ac_confdir=`$as_dirname -- "$as_myself" ||
1429$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430	 X"$as_myself" : 'X\(//\)[^/]' \| \
1431	 X"$as_myself" : 'X\(//\)$' \| \
1432	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433$as_echo X"$as_myself" |
1434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435	    s//\1/
1436	    q
1437	  }
1438	  /^X\(\/\/\)[^/].*/{
1439	    s//\1/
1440	    q
1441	  }
1442	  /^X\(\/\/\)$/{
1443	    s//\1/
1444	    q
1445	  }
1446	  /^X\(\/\).*/{
1447	    s//\1/
1448	    q
1449	  }
1450	  s/.*/./; q'`
1451  srcdir=$ac_confdir
1452  if test ! -r "$srcdir/$ac_unique_file"; then
1453    srcdir=..
1454  fi
1455else
1456  ac_srcdir_defaulted=no
1457fi
1458if test ! -r "$srcdir/$ac_unique_file"; then
1459  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1461   { (exit 1); exit 1; }; }
1462fi
1463ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464ac_abs_confdir=`(
1465	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1466   { (exit 1); exit 1; }; }
1467	pwd)`
1468# When building in place, set srcdir=.
1469if test "$ac_abs_confdir" = "$ac_pwd"; then
1470  srcdir=.
1471fi
1472# Remove unnecessary trailing slashes from srcdir.
1473# Double slashes in file names in object file debugging info
1474# mess up M-x gdb in Emacs.
1475case $srcdir in
1476*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477esac
1478for ac_var in $ac_precious_vars; do
1479  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480  eval ac_env_${ac_var}_value=\$${ac_var}
1481  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483done
1484
1485#
1486# Report the --help message.
1487#
1488if test "$ac_init_help" = "long"; then
1489  # Omit some internal or obsolete options to make the list less imposing.
1490  # This message is too long to be a string in the A/UX 3.1 sh.
1491  cat <<_ACEOF
1492\`configure' configures FluidSynth-DSSI 1.0.0 to adapt to many kinds of systems.
1493
1494Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497VAR=VALUE.  See below for descriptions of some of the useful variables.
1498
1499Defaults for the options are specified in brackets.
1500
1501Configuration:
1502  -h, --help              display this help and exit
1503      --help=short        display options specific to this package
1504      --help=recursive    display the short help of all the included packages
1505  -V, --version           display version information and exit
1506  -q, --quiet, --silent   do not print \`checking...' messages
1507      --cache-file=FILE   cache test results in FILE [disabled]
1508  -C, --config-cache      alias for \`--cache-file=config.cache'
1509  -n, --no-create         do not create output files
1510      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1511
1512Installation directories:
1513  --prefix=PREFIX         install architecture-independent files in PREFIX
1514                          [$ac_default_prefix]
1515  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1516                          [PREFIX]
1517
1518By default, \`make install' will install all the files in
1519\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1520an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521for instance \`--prefix=\$HOME'.
1522
1523For better control, use the options below.
1524
1525Fine tuning of the installation directories:
1526  --bindir=DIR            user executables [EPREFIX/bin]
1527  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1528  --libexecdir=DIR        program executables [EPREFIX/libexec]
1529  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1530  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1531  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1532  --libdir=DIR            object code libraries [EPREFIX/lib]
1533  --includedir=DIR        C header files [PREFIX/include]
1534  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1535  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1536  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1537  --infodir=DIR           info documentation [DATAROOTDIR/info]
1538  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1539  --mandir=DIR            man documentation [DATAROOTDIR/man]
1540  --docdir=DIR            documentation root [DATAROOTDIR/doc/fluidsynth-dssi]
1541  --htmldir=DIR           html documentation [DOCDIR]
1542  --dvidir=DIR            dvi documentation [DOCDIR]
1543  --pdfdir=DIR            pdf documentation [DOCDIR]
1544  --psdir=DIR             ps documentation [DOCDIR]
1545_ACEOF
1546
1547  cat <<\_ACEOF
1548
1549Program names:
1550  --program-prefix=PREFIX            prepend PREFIX to installed program names
1551  --program-suffix=SUFFIX            append SUFFIX to installed program names
1552  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1553
1554System types:
1555  --build=BUILD     configure for building on BUILD [guessed]
1556  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1557_ACEOF
1558fi
1559
1560if test -n "$ac_init_help"; then
1561  case $ac_init_help in
1562     short | recursive ) echo "Configuration of FluidSynth-DSSI 1.0.0:";;
1563   esac
1564  cat <<\_ACEOF
1565
1566Optional Features:
1567  --disable-option-checking  ignore unrecognized --enable/--with options
1568  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1569  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1570  --disable-dependency-tracking  speeds up one-time build
1571  --enable-dependency-tracking   do not reject slow dependency extractors
1572  --enable-static[=PKGS]  build static libraries [default=no]
1573  --enable-shared[=PKGS]  build shared libraries [default=yes]
1574  --enable-fast-install[=PKGS]
1575                          optimize for fast installation [default=yes]
1576  --disable-libtool-lock  avoid locking (might break parallel builds)
1577  --disable-gtktest       do not try to compile and run a test GTK+ program
1578  --disable-gtktest       Do not try to compile and run a test GTK program
1579
1580Optional Packages:
1581  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1582  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1583  --with-pic              try to use only PIC/non-PIC objects [default=use
1584                          both]
1585  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1586  --with-gtk2             use GTK+ 2.0 default=yes
1587  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1588  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1589
1590Some influential environment variables:
1591  CC          C compiler command
1592  CFLAGS      C compiler flags
1593  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1594              nonstandard directory <lib dir>
1595  LIBS        libraries to pass to the linker, e.g. -l<library>
1596  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1597              you have headers in a nonstandard directory <include dir>
1598  CPP         C preprocessor
1599  PKG_CONFIG  path to pkg-config utility
1600  FLUID_CFLAGS
1601              C compiler flags for FLUID, overriding pkg-config
1602  FLUID_LIBS  linker flags for FLUID, overriding pkg-config
1603  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1604  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1605  MODULE_CFLAGS
1606              C compiler flags for MODULE, overriding pkg-config
1607  MODULE_LIBS linker flags for MODULE, overriding pkg-config
1608
1609Use these variables to override the choices made by `configure' or to help
1610it to find libraries and programs with nonstandard names/locations.
1611
1612Report bugs to <dssi-devel@lists.sourceforge.net>.
1613_ACEOF
1614ac_status=$?
1615fi
1616
1617if test "$ac_init_help" = "recursive"; then
1618  # If there are subdirs, report their specific --help.
1619  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620    test -d "$ac_dir" ||
1621      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622      continue
1623    ac_builddir=.
1624
1625case "$ac_dir" in
1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627*)
1628  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629  # A ".." for each directory in $ac_dir_suffix.
1630  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631  case $ac_top_builddir_sub in
1632  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634  esac ;;
1635esac
1636ac_abs_top_builddir=$ac_pwd
1637ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638# for backward compatibility:
1639ac_top_builddir=$ac_top_build_prefix
1640
1641case $srcdir in
1642  .)  # We are building in place.
1643    ac_srcdir=.
1644    ac_top_srcdir=$ac_top_builddir_sub
1645    ac_abs_top_srcdir=$ac_pwd ;;
1646  [\\/]* | ?:[\\/]* )  # Absolute name.
1647    ac_srcdir=$srcdir$ac_dir_suffix;
1648    ac_top_srcdir=$srcdir
1649    ac_abs_top_srcdir=$srcdir ;;
1650  *) # Relative name.
1651    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652    ac_top_srcdir=$ac_top_build_prefix$srcdir
1653    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654esac
1655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657    cd "$ac_dir" || { ac_status=$?; continue; }
1658    # Check for guested configure.
1659    if test -f "$ac_srcdir/configure.gnu"; then
1660      echo &&
1661      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662    elif test -f "$ac_srcdir/configure"; then
1663      echo &&
1664      $SHELL "$ac_srcdir/configure" --help=recursive
1665    else
1666      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667    fi || ac_status=$?
1668    cd "$ac_pwd" || { ac_status=$?; break; }
1669  done
1670fi
1671
1672test -n "$ac_init_help" && exit $ac_status
1673if $ac_init_version; then
1674  cat <<\_ACEOF
1675FluidSynth-DSSI configure 1.0.0
1676generated by GNU Autoconf 2.63
1677
1678Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16792002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1680This configure script is free software; the Free Software Foundation
1681gives unlimited permission to copy, distribute and modify it.
1682_ACEOF
1683  exit
1684fi
1685cat >config.log <<_ACEOF
1686This file contains any messages produced by compilers while
1687running configure, to aid debugging if configure makes a mistake.
1688
1689It was created by FluidSynth-DSSI $as_me 1.0.0, which was
1690generated by GNU Autoconf 2.63.  Invocation command line was
1691
1692  $ $0 $@
1693
1694_ACEOF
1695exec 5>>config.log
1696{
1697cat <<_ASUNAME
1698## --------- ##
1699## Platform. ##
1700## --------- ##
1701
1702hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1703uname -m = `(uname -m) 2>/dev/null || echo unknown`
1704uname -r = `(uname -r) 2>/dev/null || echo unknown`
1705uname -s = `(uname -s) 2>/dev/null || echo unknown`
1706uname -v = `(uname -v) 2>/dev/null || echo unknown`
1707
1708/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1709/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1710
1711/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1712/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1713/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1714/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1715/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1716/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1717/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1718
1719_ASUNAME
1720
1721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722for as_dir in $PATH
1723do
1724  IFS=$as_save_IFS
1725  test -z "$as_dir" && as_dir=.
1726  $as_echo "PATH: $as_dir"
1727done
1728IFS=$as_save_IFS
1729
1730} >&5
1731
1732cat >&5 <<_ACEOF
1733
1734
1735## ----------- ##
1736## Core tests. ##
1737## ----------- ##
1738
1739_ACEOF
1740
1741
1742# Keep a trace of the command line.
1743# Strip out --no-create and --no-recursion so they do not pile up.
1744# Strip out --silent because we don't want to record it for future runs.
1745# Also quote any args containing shell meta-characters.
1746# Make two passes to allow for proper duplicate-argument suppression.
1747ac_configure_args=
1748ac_configure_args0=
1749ac_configure_args1=
1750ac_must_keep_next=false
1751for ac_pass in 1 2
1752do
1753  for ac_arg
1754  do
1755    case $ac_arg in
1756    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1757    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1758    | -silent | --silent | --silen | --sile | --sil)
1759      continue ;;
1760    *\'*)
1761      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1762    esac
1763    case $ac_pass in
1764    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1765    2)
1766      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1767      if test $ac_must_keep_next = true; then
1768	ac_must_keep_next=false # Got value, back to normal.
1769      else
1770	case $ac_arg in
1771	  *=* | --config-cache | -C | -disable-* | --disable-* \
1772	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1773	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1774	  | -with-* | --with-* | -without-* | --without-* | --x)
1775	    case "$ac_configure_args0 " in
1776	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1777	    esac
1778	    ;;
1779	  -* ) ac_must_keep_next=true ;;
1780	esac
1781      fi
1782      ac_configure_args="$ac_configure_args '$ac_arg'"
1783      ;;
1784    esac
1785  done
1786done
1787$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1788$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1789
1790# When interrupted or exit'd, cleanup temporary files, and complete
1791# config.log.  We remove comments because anyway the quotes in there
1792# would cause problems or look ugly.
1793# WARNING: Use '\'' to represent an apostrophe within the trap.
1794# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1795trap 'exit_status=$?
1796  # Save into config.log some information that might help in debugging.
1797  {
1798    echo
1799
1800    cat <<\_ASBOX
1801## ---------------- ##
1802## Cache variables. ##
1803## ---------------- ##
1804_ASBOX
1805    echo
1806    # The following way of writing the cache mishandles newlines in values,
1807(
1808  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1809    eval ac_val=\$$ac_var
1810    case $ac_val in #(
1811    *${as_nl}*)
1812      case $ac_var in #(
1813      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1814$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1815      esac
1816      case $ac_var in #(
1817      _ | IFS | as_nl) ;; #(
1818      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1819      *) $as_unset $ac_var ;;
1820      esac ;;
1821    esac
1822  done
1823  (set) 2>&1 |
1824    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1825    *${as_nl}ac_space=\ *)
1826      sed -n \
1827	"s/'\''/'\''\\\\'\'''\''/g;
1828	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1829      ;; #(
1830    *)
1831      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1832      ;;
1833    esac |
1834    sort
1835)
1836    echo
1837
1838    cat <<\_ASBOX
1839## ----------------- ##
1840## Output variables. ##
1841## ----------------- ##
1842_ASBOX
1843    echo
1844    for ac_var in $ac_subst_vars
1845    do
1846      eval ac_val=\$$ac_var
1847      case $ac_val in
1848      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849      esac
1850      $as_echo "$ac_var='\''$ac_val'\''"
1851    done | sort
1852    echo
1853
1854    if test -n "$ac_subst_files"; then
1855      cat <<\_ASBOX
1856## ------------------- ##
1857## File substitutions. ##
1858## ------------------- ##
1859_ASBOX
1860      echo
1861      for ac_var in $ac_subst_files
1862      do
1863	eval ac_val=\$$ac_var
1864	case $ac_val in
1865	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866	esac
1867	$as_echo "$ac_var='\''$ac_val'\''"
1868      done | sort
1869      echo
1870    fi
1871
1872    if test -s confdefs.h; then
1873      cat <<\_ASBOX
1874## ----------- ##
1875## confdefs.h. ##
1876## ----------- ##
1877_ASBOX
1878      echo
1879      cat confdefs.h
1880      echo
1881    fi
1882    test "$ac_signal" != 0 &&
1883      $as_echo "$as_me: caught signal $ac_signal"
1884    $as_echo "$as_me: exit $exit_status"
1885  } >&5
1886  rm -f core *.core core.conftest.* &&
1887    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1888    exit $exit_status
1889' 0
1890for ac_signal in 1 2 13 15; do
1891  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1892done
1893ac_signal=0
1894
1895# confdefs.h avoids OS command line length limits that DEFS can exceed.
1896rm -f -r conftest* confdefs.h
1897
1898# Predefined preprocessor variables.
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_NAME "$PACKAGE_NAME"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_VERSION "$PACKAGE_VERSION"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_STRING "$PACKAGE_STRING"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1922_ACEOF
1923
1924
1925# Let the site file select an alternate cache file if it wants to.
1926# Prefer an explicitly selected file to automatically selected ones.
1927ac_site_file1=NONE
1928ac_site_file2=NONE
1929if test -n "$CONFIG_SITE"; then
1930  ac_site_file1=$CONFIG_SITE
1931elif test "x$prefix" != xNONE; then
1932  ac_site_file1=$prefix/share/config.site
1933  ac_site_file2=$prefix/etc/config.site
1934else
1935  ac_site_file1=$ac_default_prefix/share/config.site
1936  ac_site_file2=$ac_default_prefix/etc/config.site
1937fi
1938for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1939do
1940  test "x$ac_site_file" = xNONE && continue
1941  if test -r "$ac_site_file"; then
1942    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1943$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1944    sed 's/^/| /' "$ac_site_file" >&5
1945    . "$ac_site_file"
1946  fi
1947done
1948
1949if test -r "$cache_file"; then
1950  # Some versions of bash will fail to source /dev/null (special
1951  # files actually), so we avoid doing that.
1952  if test -f "$cache_file"; then
1953    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1954$as_echo "$as_me: loading cache $cache_file" >&6;}
1955    case $cache_file in
1956      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1957      *)                      . "./$cache_file";;
1958    esac
1959  fi
1960else
1961  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1962$as_echo "$as_me: creating cache $cache_file" >&6;}
1963  >$cache_file
1964fi
1965
1966# Check that the precious variables saved in the cache have kept the same
1967# value.
1968ac_cache_corrupted=false
1969for ac_var in $ac_precious_vars; do
1970  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1971  eval ac_new_set=\$ac_env_${ac_var}_set
1972  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1973  eval ac_new_val=\$ac_env_${ac_var}_value
1974  case $ac_old_set,$ac_new_set in
1975    set,)
1976      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1977$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1978      ac_cache_corrupted=: ;;
1979    ,set)
1980      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1981$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1982      ac_cache_corrupted=: ;;
1983    ,);;
1984    *)
1985      if test "x$ac_old_val" != "x$ac_new_val"; then
1986	# differences in whitespace do not lead to failure.
1987	ac_old_val_w=`echo x $ac_old_val`
1988	ac_new_val_w=`echo x $ac_new_val`
1989	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1990	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1992	  ac_cache_corrupted=:
1993	else
1994	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1995$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1996	  eval $ac_var=\$ac_old_val
1997	fi
1998	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1999$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2000	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2001$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2002      fi;;
2003  esac
2004  # Pass precious variables to config.status.
2005  if test "$ac_new_set" = set; then
2006    case $ac_new_val in
2007    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2008    *) ac_arg=$ac_var=$ac_new_val ;;
2009    esac
2010    case " $ac_configure_args " in
2011      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2012      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2013    esac
2014  fi
2015done
2016if $ac_cache_corrupted; then
2017  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2019  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2020$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2021  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2022$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2023   { (exit 1); exit 1; }; }
2024fi
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050ac_ext=c
2051ac_cpp='$CPP $CPPFLAGS'
2052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055
2056
2057
2058
2059am__api_version='1.10'
2060
2061ac_aux_dir=
2062for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2063  if test -f "$ac_dir/install-sh"; then
2064    ac_aux_dir=$ac_dir
2065    ac_install_sh="$ac_aux_dir/install-sh -c"
2066    break
2067  elif test -f "$ac_dir/install.sh"; then
2068    ac_aux_dir=$ac_dir
2069    ac_install_sh="$ac_aux_dir/install.sh -c"
2070    break
2071  elif test -f "$ac_dir/shtool"; then
2072    ac_aux_dir=$ac_dir
2073    ac_install_sh="$ac_aux_dir/shtool install -c"
2074    break
2075  fi
2076done
2077if test -z "$ac_aux_dir"; then
2078  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2079$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2080   { (exit 1); exit 1; }; }
2081fi
2082
2083# These three variables are undocumented and unsupported,
2084# and are intended to be withdrawn in a future Autoconf release.
2085# They can cause serious problems if a builder's source tree is in a directory
2086# whose full name contains unusual characters.
2087ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2088ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2089ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2090
2091
2092# Find a good install program.  We prefer a C program (faster),
2093# so one script is as good as another.  But avoid the broken or
2094# incompatible versions:
2095# SysV /etc/install, /usr/sbin/install
2096# SunOS /usr/etc/install
2097# IRIX /sbin/install
2098# AIX /bin/install
2099# AmigaOS /C/install, which installs bootblocks on floppy discs
2100# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2101# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2102# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2103# OS/2's system install, which has a completely different semantic
2104# ./install, which can be erroneously created by make from ./install.sh.
2105# Reject install programs that cannot install multiple files.
2106{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2107$as_echo_n "checking for a BSD-compatible install... " >&6; }
2108if test -z "$INSTALL"; then
2109if test "${ac_cv_path_install+set}" = set; then
2110  $as_echo_n "(cached) " >&6
2111else
2112  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115  IFS=$as_save_IFS
2116  test -z "$as_dir" && as_dir=.
2117  # Account for people who put trailing slashes in PATH elements.
2118case $as_dir/ in
2119  ./ | .// | /cC/* | \
2120  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2121  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2122  /usr/ucb/* ) ;;
2123  *)
2124    # OSF1 and SCO ODT 3.0 have their own names for install.
2125    # Don't use installbsd from OSF since it installs stuff as root
2126    # by default.
2127    for ac_prog in ginstall scoinst install; do
2128      for ac_exec_ext in '' $ac_executable_extensions; do
2129	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2130	  if test $ac_prog = install &&
2131	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2132	    # AIX install.  It has an incompatible calling convention.
2133	    :
2134	  elif test $ac_prog = install &&
2135	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2136	    # program-specific install script used by HP pwplus--don't use.
2137	    :
2138	  else
2139	    rm -rf conftest.one conftest.two conftest.dir
2140	    echo one > conftest.one
2141	    echo two > conftest.two
2142	    mkdir conftest.dir
2143	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2144	      test -s conftest.one && test -s conftest.two &&
2145	      test -s conftest.dir/conftest.one &&
2146	      test -s conftest.dir/conftest.two
2147	    then
2148	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2149	      break 3
2150	    fi
2151	  fi
2152	fi
2153      done
2154    done
2155    ;;
2156esac
2157
2158done
2159IFS=$as_save_IFS
2160
2161rm -rf conftest.one conftest.two conftest.dir
2162
2163fi
2164  if test "${ac_cv_path_install+set}" = set; then
2165    INSTALL=$ac_cv_path_install
2166  else
2167    # As a last resort, use the slow shell script.  Don't cache a
2168    # value for INSTALL within a source directory, because that will
2169    # break other packages using the cache if that directory is
2170    # removed, or if the value is a relative name.
2171    INSTALL=$ac_install_sh
2172  fi
2173fi
2174{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2175$as_echo "$INSTALL" >&6; }
2176
2177# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2178# It thinks the first close brace ends the variable substitution.
2179test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2180
2181test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2182
2183test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2184
2185{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2186$as_echo_n "checking whether build environment is sane... " >&6; }
2187# Just in case
2188sleep 1
2189echo timestamp > conftest.file
2190# Do `set' in a subshell so we don't clobber the current shell's
2191# arguments.  Must try -L first in case configure is actually a
2192# symlink; some systems play weird games with the mod time of symlinks
2193# (eg FreeBSD returns the mod time of the symlink's containing
2194# directory).
2195if (
2196   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2197   if test "$*" = "X"; then
2198      # -L didn't work.
2199      set X `ls -t $srcdir/configure conftest.file`
2200   fi
2201   rm -f conftest.file
2202   if test "$*" != "X $srcdir/configure conftest.file" \
2203      && test "$*" != "X conftest.file $srcdir/configure"; then
2204
2205      # If neither matched, then we have a broken ls.  This can happen
2206      # if, for instance, CONFIG_SHELL is bash and it inherits a
2207      # broken ls alias from the environment.  This has actually
2208      # happened.  Such a system could not be considered "sane".
2209      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2210alias in your environment" >&5
2211$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2212alias in your environment" >&2;}
2213   { (exit 1); exit 1; }; }
2214   fi
2215
2216   test "$2" = conftest.file
2217   )
2218then
2219   # Ok.
2220   :
2221else
2222   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2223Check your system clock" >&5
2224$as_echo "$as_me: error: newly created file is older than distributed files!
2225Check your system clock" >&2;}
2226   { (exit 1); exit 1; }; }
2227fi
2228{ $as_echo "$as_me:$LINENO: result: yes" >&5
2229$as_echo "yes" >&6; }
2230test "$program_prefix" != NONE &&
2231  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2232# Use a double $ so make ignores it.
2233test "$program_suffix" != NONE &&
2234  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2235# Double any \ or $.
2236# By default was `s,x,x', remove it if useless.
2237ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2238program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2239
2240# expand $ac_aux_dir to an absolute path
2241am_aux_dir=`cd $ac_aux_dir && pwd`
2242
2243test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2244# Use eval to expand $SHELL
2245if eval "$MISSING --run true"; then
2246  am_missing_run="$MISSING --run "
2247else
2248  am_missing_run=
2249  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2250$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2251fi
2252
2253{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2254$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2255if test -z "$MKDIR_P"; then
2256  if test "${ac_cv_path_mkdir+set}" = set; then
2257  $as_echo_n "(cached) " >&6
2258else
2259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2261do
2262  IFS=$as_save_IFS
2263  test -z "$as_dir" && as_dir=.
2264  for ac_prog in mkdir gmkdir; do
2265	 for ac_exec_ext in '' $ac_executable_extensions; do
2266	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2267	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2268	     'mkdir (GNU coreutils) '* | \
2269	     'mkdir (coreutils) '* | \
2270	     'mkdir (fileutils) '4.1*)
2271	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2272	       break 3;;
2273	   esac
2274	 done
2275       done
2276done
2277IFS=$as_save_IFS
2278
2279fi
2280
2281  if test "${ac_cv_path_mkdir+set}" = set; then
2282    MKDIR_P="$ac_cv_path_mkdir -p"
2283  else
2284    # As a last resort, use the slow shell script.  Don't cache a
2285    # value for MKDIR_P within a source directory, because that will
2286    # break other packages using the cache if that directory is
2287    # removed, or if the value is a relative name.
2288    test -d ./--version && rmdir ./--version
2289    MKDIR_P="$ac_install_sh -d"
2290  fi
2291fi
2292{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2293$as_echo "$MKDIR_P" >&6; }
2294
2295mkdir_p="$MKDIR_P"
2296case $mkdir_p in
2297  [\\/$]* | ?:[\\/]*) ;;
2298  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2299esac
2300
2301for ac_prog in gawk mawk nawk awk
2302do
2303  # Extract the first word of "$ac_prog", so it can be a program name with args.
2304set dummy $ac_prog; ac_word=$2
2305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2306$as_echo_n "checking for $ac_word... " >&6; }
2307if test "${ac_cv_prog_AWK+set}" = set; then
2308  $as_echo_n "(cached) " >&6
2309else
2310  if test -n "$AWK"; then
2311  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2312else
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316  IFS=$as_save_IFS
2317  test -z "$as_dir" && as_dir=.
2318  for ac_exec_ext in '' $ac_executable_extensions; do
2319  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320    ac_cv_prog_AWK="$ac_prog"
2321    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322    break 2
2323  fi
2324done
2325done
2326IFS=$as_save_IFS
2327
2328fi
2329fi
2330AWK=$ac_cv_prog_AWK
2331if test -n "$AWK"; then
2332  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2333$as_echo "$AWK" >&6; }
2334else
2335  { $as_echo "$as_me:$LINENO: result: no" >&5
2336$as_echo "no" >&6; }
2337fi
2338
2339
2340  test -n "$AWK" && break
2341done
2342
2343{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2344$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2345set x ${MAKE-make}
2346ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2347if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2348  $as_echo_n "(cached) " >&6
2349else
2350  cat >conftest.make <<\_ACEOF
2351SHELL = /bin/sh
2352all:
2353	@echo '@@@%%%=$(MAKE)=@@@%%%'
2354_ACEOF
2355# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2356case `${MAKE-make} -f conftest.make 2>/dev/null` in
2357  *@@@%%%=?*=@@@%%%*)
2358    eval ac_cv_prog_make_${ac_make}_set=yes;;
2359  *)
2360    eval ac_cv_prog_make_${ac_make}_set=no;;
2361esac
2362rm -f conftest.make
2363fi
2364if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2365  { $as_echo "$as_me:$LINENO: result: yes" >&5
2366$as_echo "yes" >&6; }
2367  SET_MAKE=
2368else
2369  { $as_echo "$as_me:$LINENO: result: no" >&5
2370$as_echo "no" >&6; }
2371  SET_MAKE="MAKE=${MAKE-make}"
2372fi
2373
2374rm -rf .tst 2>/dev/null
2375mkdir .tst 2>/dev/null
2376if test -d .tst; then
2377  am__leading_dot=.
2378else
2379  am__leading_dot=_
2380fi
2381rmdir .tst 2>/dev/null
2382
2383if test "`cd $srcdir && pwd`" != "`pwd`"; then
2384  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2385  # is not polluted with repeated "-I."
2386  am__isrc=' -I$(srcdir)'
2387  # test to see if srcdir already configured
2388  if test -f $srcdir/config.status; then
2389    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2390$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2391   { (exit 1); exit 1; }; }
2392  fi
2393fi
2394
2395# test whether we have cygpath
2396if test -z "$CYGPATH_W"; then
2397  if (cygpath --version) >/dev/null 2>/dev/null; then
2398    CYGPATH_W='cygpath -w'
2399  else
2400    CYGPATH_W=echo
2401  fi
2402fi
2403
2404
2405# Define the identity of the package.
2406 PACKAGE='fluidsynth-dssi'
2407 VERSION='1.0.0'
2408
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE "$PACKAGE"
2412_ACEOF
2413
2414
2415cat >>confdefs.h <<_ACEOF
2416#define VERSION "$VERSION"
2417_ACEOF
2418
2419# Some tools Automake needs.
2420
2421ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2422
2423
2424AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2425
2426
2427AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2428
2429
2430AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2431
2432
2433MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2434
2435install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2436
2437# Installed binaries are usually stripped using `strip' when the user
2438# run `make install-strip'.  However `strip' might not be the right
2439# tool to use in cross-compilation environments, therefore Automake
2440# will honor the `STRIP' environment variable to overrule this program.
2441if test "$cross_compiling" != no; then
2442  if test -n "$ac_tool_prefix"; then
2443  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2444set dummy ${ac_tool_prefix}strip; ac_word=$2
2445{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2446$as_echo_n "checking for $ac_word... " >&6; }
2447if test "${ac_cv_prog_STRIP+set}" = set; then
2448  $as_echo_n "(cached) " >&6
2449else
2450  if test -n "$STRIP"; then
2451  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456  IFS=$as_save_IFS
2457  test -z "$as_dir" && as_dir=.
2458  for ac_exec_ext in '' $ac_executable_extensions; do
2459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2461    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462    break 2
2463  fi
2464done
2465done
2466IFS=$as_save_IFS
2467
2468fi
2469fi
2470STRIP=$ac_cv_prog_STRIP
2471if test -n "$STRIP"; then
2472  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2473$as_echo "$STRIP" >&6; }
2474else
2475  { $as_echo "$as_me:$LINENO: result: no" >&5
2476$as_echo "no" >&6; }
2477fi
2478
2479
2480fi
2481if test -z "$ac_cv_prog_STRIP"; then
2482  ac_ct_STRIP=$STRIP
2483  # Extract the first word of "strip", so it can be a program name with args.
2484set dummy strip; ac_word=$2
2485{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2486$as_echo_n "checking for $ac_word... " >&6; }
2487if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2488  $as_echo_n "(cached) " >&6
2489else
2490  if test -n "$ac_ct_STRIP"; then
2491  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498  for ac_exec_ext in '' $ac_executable_extensions; do
2499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500    ac_cv_prog_ac_ct_STRIP="strip"
2501    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502    break 2
2503  fi
2504done
2505done
2506IFS=$as_save_IFS
2507
2508fi
2509fi
2510ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2511if test -n "$ac_ct_STRIP"; then
2512  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2513$as_echo "$ac_ct_STRIP" >&6; }
2514else
2515  { $as_echo "$as_me:$LINENO: result: no" >&5
2516$as_echo "no" >&6; }
2517fi
2518
2519  if test "x$ac_ct_STRIP" = x; then
2520    STRIP=":"
2521  else
2522    case $cross_compiling:$ac_tool_warned in
2523yes:)
2524{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2526ac_tool_warned=yes ;;
2527esac
2528    STRIP=$ac_ct_STRIP
2529  fi
2530else
2531  STRIP="$ac_cv_prog_STRIP"
2532fi
2533
2534fi
2535INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2536
2537# We need awk for the "check" target.  The system "awk" is bad on
2538# some platforms.
2539# Always define AMTAR for backward compatibility.
2540
2541AMTAR=${AMTAR-"${am_missing_run}tar"}
2542
2543am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2544
2545
2546
2547
2548
2549ac_config_headers="$ac_config_headers config.h"
2550
2551
2552ac_ext=c
2553ac_cpp='$CPP $CPPFLAGS'
2554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557if test -n "$ac_tool_prefix"; then
2558  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if test "${ac_cv_prog_CC+set}" = set; then
2563  $as_echo_n "(cached) " >&6
2564else
2565  if test -n "$CC"; then
2566  ac_cv_prog_CC="$CC" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573  for ac_exec_ext in '' $ac_executable_extensions; do
2574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577    break 2
2578  fi
2579done
2580done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585CC=$ac_cv_prog_CC
2586if test -n "$CC"; then
2587  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2588$as_echo "$CC" >&6; }
2589else
2590  { $as_echo "$as_me:$LINENO: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594
2595fi
2596if test -z "$ac_cv_prog_CC"; then
2597  ac_ct_CC=$CC
2598  # Extract the first word of "gcc", so it can be a program name with args.
2599set dummy gcc; ac_word=$2
2600{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2601$as_echo_n "checking for $ac_word... " >&6; }
2602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603  $as_echo_n "(cached) " >&6
2604else
2605  if test -n "$ac_ct_CC"; then
2606  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611  IFS=$as_save_IFS
2612  test -z "$as_dir" && as_dir=.
2613  for ac_exec_ext in '' $ac_executable_extensions; do
2614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615    ac_cv_prog_ac_ct_CC="gcc"
2616    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617    break 2
2618  fi
2619done
2620done
2621IFS=$as_save_IFS
2622
2623fi
2624fi
2625ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626if test -n "$ac_ct_CC"; then
2627  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628$as_echo "$ac_ct_CC" >&6; }
2629else
2630  { $as_echo "$as_me:$LINENO: result: no" >&5
2631$as_echo "no" >&6; }
2632fi
2633
2634  if test "x$ac_ct_CC" = x; then
2635    CC=""
2636  else
2637    case $cross_compiling:$ac_tool_warned in
2638yes:)
2639{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641ac_tool_warned=yes ;;
2642esac
2643    CC=$ac_ct_CC
2644  fi
2645else
2646  CC="$ac_cv_prog_CC"
2647fi
2648
2649if test -z "$CC"; then
2650          if test -n "$ac_tool_prefix"; then
2651    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2652set dummy ${ac_tool_prefix}cc; ac_word=$2
2653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if test "${ac_cv_prog_CC+set}" = set; then
2656  $as_echo_n "(cached) " >&6
2657else
2658  if test -n "$CC"; then
2659  ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666  for ac_exec_ext in '' $ac_executable_extensions; do
2667  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668    ac_cv_prog_CC="${ac_tool_prefix}cc"
2669    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670    break 2
2671  fi
2672done
2673done
2674IFS=$as_save_IFS
2675
2676fi
2677fi
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
2680  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2681$as_echo "$CC" >&6; }
2682else
2683  { $as_echo "$as_me:$LINENO: result: no" >&5
2684$as_echo "no" >&6; }
2685fi
2686
2687
2688  fi
2689fi
2690if test -z "$CC"; then
2691  # Extract the first word of "cc", so it can be a program name with args.
2692set dummy cc; ac_word=$2
2693{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if test "${ac_cv_prog_CC+set}" = set; then
2696  $as_echo_n "(cached) " >&6
2697else
2698  if test -n "$CC"; then
2699  ac_cv_prog_CC="$CC" # Let the user override the test.
2700else
2701  ac_prog_rejected=no
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707  for ac_exec_ext in '' $ac_executable_extensions; do
2708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2710       ac_prog_rejected=yes
2711       continue
2712     fi
2713    ac_cv_prog_CC="cc"
2714    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715    break 2
2716  fi
2717done
2718done
2719IFS=$as_save_IFS
2720
2721if test $ac_prog_rejected = yes; then
2722  # We found a bogon in the path, so make sure we never use it.
2723  set dummy $ac_cv_prog_CC
2724  shift
2725  if test $# != 0; then
2726    # We chose a different compiler from the bogus one.
2727    # However, it has the same basename, so the bogon will be chosen
2728    # first if we set CC to just the basename; use the full file name.
2729    shift
2730    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2731  fi
2732fi
2733fi
2734fi
2735CC=$ac_cv_prog_CC
2736if test -n "$CC"; then
2737  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2738$as_echo "$CC" >&6; }
2739else
2740  { $as_echo "$as_me:$LINENO: result: no" >&5
2741$as_echo "no" >&6; }
2742fi
2743
2744
2745fi
2746if test -z "$CC"; then
2747  if test -n "$ac_tool_prefix"; then
2748  for ac_prog in cl.exe
2749  do
2750    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2752{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2753$as_echo_n "checking for $ac_word... " >&6; }
2754if test "${ac_cv_prog_CC+set}" = set; then
2755  $as_echo_n "(cached) " >&6
2756else
2757  if test -n "$CC"; then
2758  ac_cv_prog_CC="$CC" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763  IFS=$as_save_IFS
2764  test -z "$as_dir" && as_dir=.
2765  for ac_exec_ext in '' $ac_executable_extensions; do
2766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2768    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769    break 2
2770  fi
2771done
2772done
2773IFS=$as_save_IFS
2774
2775fi
2776fi
2777CC=$ac_cv_prog_CC
2778if test -n "$CC"; then
2779  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2780$as_echo "$CC" >&6; }
2781else
2782  { $as_echo "$as_me:$LINENO: result: no" >&5
2783$as_echo "no" >&6; }
2784fi
2785
2786
2787    test -n "$CC" && break
2788  done
2789fi
2790if test -z "$CC"; then
2791  ac_ct_CC=$CC
2792  for ac_prog in cl.exe
2793do
2794  # Extract the first word of "$ac_prog", so it can be a program name with args.
2795set dummy $ac_prog; ac_word=$2
2796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
2798if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2799  $as_echo_n "(cached) " >&6
2800else
2801  if test -n "$ac_ct_CC"; then
2802  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807  IFS=$as_save_IFS
2808  test -z "$as_dir" && as_dir=.
2809  for ac_exec_ext in '' $ac_executable_extensions; do
2810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811    ac_cv_prog_ac_ct_CC="$ac_prog"
2812    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813    break 2
2814  fi
2815done
2816done
2817IFS=$as_save_IFS
2818
2819fi
2820fi
2821ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822if test -n "$ac_ct_CC"; then
2823  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824$as_echo "$ac_ct_CC" >&6; }
2825else
2826  { $as_echo "$as_me:$LINENO: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830
2831  test -n "$ac_ct_CC" && break
2832done
2833
2834  if test "x$ac_ct_CC" = x; then
2835    CC=""
2836  else
2837    case $cross_compiling:$ac_tool_warned in
2838yes:)
2839{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841ac_tool_warned=yes ;;
2842esac
2843    CC=$ac_ct_CC
2844  fi
2845fi
2846
2847fi
2848
2849
2850test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2853See \`config.log' for more details." >&5
2854$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2855See \`config.log' for more details." >&2;}
2856   { (exit 1); exit 1; }; }; }
2857
2858# Provide some information about the compiler.
2859$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2860set X $ac_compile
2861ac_compiler=$2
2862{ (ac_try="$ac_compiler --version >&5"
2863case "(($ac_try" in
2864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865  *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868$as_echo "$ac_try_echo") >&5
2869  (eval "$ac_compiler --version >&5") 2>&5
2870  ac_status=$?
2871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }
2873{ (ac_try="$ac_compiler -v >&5"
2874case "(($ac_try" in
2875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876  *) ac_try_echo=$ac_try;;
2877esac
2878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879$as_echo "$ac_try_echo") >&5
2880  (eval "$ac_compiler -v >&5") 2>&5
2881  ac_status=$?
2882  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); }
2884{ (ac_try="$ac_compiler -V >&5"
2885case "(($ac_try" in
2886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887  *) ac_try_echo=$ac_try;;
2888esac
2889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890$as_echo "$ac_try_echo") >&5
2891  (eval "$ac_compiler -V >&5") 2>&5
2892  ac_status=$?
2893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); }
2895
2896cat >conftest.$ac_ext <<_ACEOF
2897/* confdefs.h.  */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h.  */
2902
2903int
2904main ()
2905{
2906
2907  ;
2908  return 0;
2909}
2910_ACEOF
2911ac_clean_files_save=$ac_clean_files
2912ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2913# Try to create an executable without -o first, disregard a.out.
2914# It will help us diagnose broken compilers, and finding out an intuition
2915# of exeext.
2916{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2917$as_echo_n "checking for C compiler default output file name... " >&6; }
2918ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2919
2920# The possible output files:
2921ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2922
2923ac_rmfiles=
2924for ac_file in $ac_files
2925do
2926  case $ac_file in
2927    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2929  esac
2930done
2931rm -f $ac_rmfiles
2932
2933if { (ac_try="$ac_link_default"
2934case "(($ac_try" in
2935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936  *) ac_try_echo=$ac_try;;
2937esac
2938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939$as_echo "$ac_try_echo") >&5
2940  (eval "$ac_link_default") 2>&5
2941  ac_status=$?
2942  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943  (exit $ac_status); }; then
2944  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2945# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2946# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2947# so that the user can short-circuit this test for compilers unknown to
2948# Autoconf.
2949for ac_file in $ac_files ''
2950do
2951  test -f "$ac_file" || continue
2952  case $ac_file in
2953    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2954	;;
2955    [ab].out )
2956	# We found the default executable, but exeext='' is most
2957	# certainly right.
2958	break;;
2959    *.* )
2960        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2961	then :; else
2962	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2963	fi
2964	# We set ac_cv_exeext here because the later test for it is not
2965	# safe: cross compilers may not add the suffix if given an `-o'
2966	# argument, so we may need to know it at that point already.
2967	# Even if this section looks crufty: it has the advantage of
2968	# actually working.
2969	break;;
2970    * )
2971	break;;
2972  esac
2973done
2974test "$ac_cv_exeext" = no && ac_cv_exeext=
2975
2976else
2977  ac_file=''
2978fi
2979
2980{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2981$as_echo "$ac_file" >&6; }
2982if test -z "$ac_file"; then
2983  $as_echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2989See \`config.log' for more details." >&5
2990$as_echo "$as_me: error: C compiler cannot create executables
2991See \`config.log' for more details." >&2;}
2992   { (exit 77); exit 77; }; }; }
2993fi
2994
2995ac_exeext=$ac_cv_exeext
2996
2997# Check that the compiler produces executables we can run.  If not, either
2998# the compiler is broken, or we cross compile.
2999{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3000$as_echo_n "checking whether the C compiler works... " >&6; }
3001# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3002# If not cross compiling, check that we can run a simple program.
3003if test "$cross_compiling" != yes; then
3004  if { ac_try='./$ac_file'
3005  { (case "(($ac_try" in
3006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007  *) ac_try_echo=$ac_try;;
3008esac
3009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3010$as_echo "$ac_try_echo") >&5
3011  (eval "$ac_try") 2>&5
3012  ac_status=$?
3013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014  (exit $ac_status); }; }; then
3015    cross_compiling=no
3016  else
3017    if test "$cross_compiling" = maybe; then
3018	cross_compiling=yes
3019    else
3020	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3023If you meant to cross compile, use \`--host'.
3024See \`config.log' for more details." >&5
3025$as_echo "$as_me: error: cannot run C compiled programs.
3026If you meant to cross compile, use \`--host'.
3027See \`config.log' for more details." >&2;}
3028   { (exit 1); exit 1; }; }; }
3029    fi
3030  fi
3031fi
3032{ $as_echo "$as_me:$LINENO: result: yes" >&5
3033$as_echo "yes" >&6; }
3034
3035rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3036ac_clean_files=$ac_clean_files_save
3037# Check that the compiler produces executables we can run.  If not, either
3038# the compiler is broken, or we cross compile.
3039{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3040$as_echo_n "checking whether we are cross compiling... " >&6; }
3041{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3042$as_echo "$cross_compiling" >&6; }
3043
3044{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3045$as_echo_n "checking for suffix of executables... " >&6; }
3046if { (ac_try="$ac_link"
3047case "(($ac_try" in
3048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049  *) ac_try_echo=$ac_try;;
3050esac
3051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052$as_echo "$ac_try_echo") >&5
3053  (eval "$ac_link") 2>&5
3054  ac_status=$?
3055  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; then
3057  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3058# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3059# work properly (i.e., refer to `conftest.exe'), while it won't with
3060# `rm'.
3061for ac_file in conftest.exe conftest conftest.*; do
3062  test -f "$ac_file" || continue
3063  case $ac_file in
3064    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3065    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066	  break;;
3067    * ) break;;
3068  esac
3069done
3070else
3071  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3074See \`config.log' for more details." >&5
3075$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3076See \`config.log' for more details." >&2;}
3077   { (exit 1); exit 1; }; }; }
3078fi
3079
3080rm -f conftest$ac_cv_exeext
3081{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3082$as_echo "$ac_cv_exeext" >&6; }
3083
3084rm -f conftest.$ac_ext
3085EXEEXT=$ac_cv_exeext
3086ac_exeext=$EXEEXT
3087{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3088$as_echo_n "checking for suffix of object files... " >&6; }
3089if test "${ac_cv_objext+set}" = set; then
3090  $as_echo_n "(cached) " >&6
3091else
3092  cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h.  */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h.  */
3098
3099int
3100main ()
3101{
3102
3103  ;
3104  return 0;
3105}
3106_ACEOF
3107rm -f conftest.o conftest.obj
3108if { (ac_try="$ac_compile"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114$as_echo "$ac_try_echo") >&5
3115  (eval "$ac_compile") 2>&5
3116  ac_status=$?
3117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; then
3119  for ac_file in conftest.o conftest.obj conftest.*; do
3120  test -f "$ac_file" || continue;
3121  case $ac_file in
3122    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3123    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3124       break;;
3125  esac
3126done
3127else
3128  $as_echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3134See \`config.log' for more details." >&5
3135$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3136See \`config.log' for more details." >&2;}
3137   { (exit 1); exit 1; }; }; }
3138fi
3139
3140rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141fi
3142{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3143$as_echo "$ac_cv_objext" >&6; }
3144OBJEXT=$ac_cv_objext
3145ac_objext=$OBJEXT
3146{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3147$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3148if test "${ac_cv_c_compiler_gnu+set}" = set; then
3149  $as_echo_n "(cached) " >&6
3150else
3151  cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h.  */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h.  */
3157
3158int
3159main ()
3160{
3161#ifndef __GNUC__
3162       choke me
3163#endif
3164
3165  ;
3166  return 0;
3167}
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (ac_try="$ac_compile"
3171case "(($ac_try" in
3172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173  *) ac_try_echo=$ac_try;;
3174esac
3175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3176$as_echo "$ac_try_echo") >&5
3177  (eval "$ac_compile") 2>conftest.er1
3178  ac_status=$?
3179  grep -v '^ *+' conftest.er1 >conftest.err
3180  rm -f conftest.er1
3181  cat conftest.err >&5
3182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); } && {
3184	 test -z "$ac_c_werror_flag" ||
3185	 test ! -s conftest.err
3186       } && test -s conftest.$ac_objext; then
3187  ac_compiler_gnu=yes
3188else
3189  $as_echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192	ac_compiler_gnu=no
3193fi
3194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197
3198fi
3199{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3201if test $ac_compiler_gnu = yes; then
3202  GCC=yes
3203else
3204  GCC=
3205fi
3206ac_test_CFLAGS=${CFLAGS+set}
3207ac_save_CFLAGS=$CFLAGS
3208{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3209$as_echo_n "checking whether $CC accepts -g... " >&6; }
3210if test "${ac_cv_prog_cc_g+set}" = set; then
3211  $as_echo_n "(cached) " >&6
3212else
3213  ac_save_c_werror_flag=$ac_c_werror_flag
3214   ac_c_werror_flag=yes
3215   ac_cv_prog_cc_g=no
3216   CFLAGS="-g"
3217   cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h.  */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h.  */
3223
3224int
3225main ()
3226{
3227
3228  ;
3229  return 0;
3230}
3231_ACEOF
3232rm -f conftest.$ac_objext
3233if { (ac_try="$ac_compile"
3234case "(($ac_try" in
3235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236  *) ac_try_echo=$ac_try;;
3237esac
3238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3239$as_echo "$ac_try_echo") >&5
3240  (eval "$ac_compile") 2>conftest.er1
3241  ac_status=$?
3242  grep -v '^ *+' conftest.er1 >conftest.err
3243  rm -f conftest.er1
3244  cat conftest.err >&5
3245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); } && {
3247	 test -z "$ac_c_werror_flag" ||
3248	 test ! -s conftest.err
3249       } && test -s conftest.$ac_objext; then
3250  ac_cv_prog_cc_g=yes
3251else
3252  $as_echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255	CFLAGS=""
3256      cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h.  */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h.  */
3262
3263int
3264main ()
3265{
3266
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271rm -f conftest.$ac_objext
3272if { (ac_try="$ac_compile"
3273case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278$as_echo "$ac_try_echo") >&5
3279  (eval "$ac_compile") 2>conftest.er1
3280  ac_status=$?
3281  grep -v '^ *+' conftest.er1 >conftest.err
3282  rm -f conftest.er1
3283  cat conftest.err >&5
3284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); } && {
3286	 test -z "$ac_c_werror_flag" ||
3287	 test ! -s conftest.err
3288       } && test -s conftest.$ac_objext; then
3289  :
3290else
3291  $as_echo "$as_me: failed program was:" >&5
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
3294	ac_c_werror_flag=$ac_save_c_werror_flag
3295	 CFLAGS="-g"
3296	 cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h.  */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306
3307  ;
3308  return 0;
3309}
3310_ACEOF
3311rm -f conftest.$ac_objext
3312if { (ac_try="$ac_compile"
3313case "(($ac_try" in
3314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315  *) ac_try_echo=$ac_try;;
3316esac
3317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318$as_echo "$ac_try_echo") >&5
3319  (eval "$ac_compile") 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } && {
3326	 test -z "$ac_c_werror_flag" ||
3327	 test ! -s conftest.err
3328       } && test -s conftest.$ac_objext; then
3329  ac_cv_prog_cc_g=yes
3330else
3331  $as_echo "$as_me: failed program was:" >&5
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334
3335fi
3336
3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338fi
3339
3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341fi
3342
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344   ac_c_werror_flag=$ac_save_c_werror_flag
3345fi
3346{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3347$as_echo "$ac_cv_prog_cc_g" >&6; }
3348if test "$ac_test_CFLAGS" = set; then
3349  CFLAGS=$ac_save_CFLAGS
3350elif test $ac_cv_prog_cc_g = yes; then
3351  if test "$GCC" = yes; then
3352    CFLAGS="-g -O2"
3353  else
3354    CFLAGS="-g"
3355  fi
3356else
3357  if test "$GCC" = yes; then
3358    CFLAGS="-O2"
3359  else
3360    CFLAGS=
3361  fi
3362fi
3363{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3365if test "${ac_cv_prog_cc_c89+set}" = set; then
3366  $as_echo_n "(cached) " >&6
3367else
3368  ac_cv_prog_cc_c89=no
3369ac_save_CC=$CC
3370cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h.  */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h.  */
3376#include <stdarg.h>
3377#include <stdio.h>
3378#include <sys/types.h>
3379#include <sys/stat.h>
3380/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3381struct buf { int x; };
3382FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383static char *e (p, i)
3384     char **p;
3385     int i;
3386{
3387  return p[i];
3388}
3389static char *f (char * (*g) (char **, int), char **p, ...)
3390{
3391  char *s;
3392  va_list v;
3393  va_start (v,p);
3394  s = g (p, va_arg (v,int));
3395  va_end (v);
3396  return s;
3397}
3398
3399/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3400   function prototypes and stuff, but not '\xHH' hex character constants.
3401   These don't provoke an error unfortunately, instead are silently treated
3402   as 'x'.  The following induces an error, until -std is added to get
3403   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3404   array size at least.  It's necessary to write '\x00'==0 to get something
3405   that's true only with -std.  */
3406int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3407
3408/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409   inside strings and character constants.  */
3410#define FOO(x) 'x'
3411int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3412
3413int test (int i, double x);
3414struct s1 {int (*f) (int a);};
3415struct s2 {int (*f) (double a);};
3416int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417int argc;
3418char **argv;
3419int
3420main ()
3421{
3422return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3423  ;
3424  return 0;
3425}
3426_ACEOF
3427for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3429do
3430  CC="$ac_save_CC $ac_arg"
3431  rm -f conftest.$ac_objext
3432if { (ac_try="$ac_compile"
3433case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438$as_echo "$ac_try_echo") >&5
3439  (eval "$ac_compile") 2>conftest.er1
3440  ac_status=$?
3441  grep -v '^ *+' conftest.er1 >conftest.err
3442  rm -f conftest.er1
3443  cat conftest.err >&5
3444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } && {
3446	 test -z "$ac_c_werror_flag" ||
3447	 test ! -s conftest.err
3448       } && test -s conftest.$ac_objext; then
3449  ac_cv_prog_cc_c89=$ac_arg
3450else
3451  $as_echo "$as_me: failed program was:" >&5
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
3454
3455fi
3456
3457rm -f core conftest.err conftest.$ac_objext
3458  test "x$ac_cv_prog_cc_c89" != "xno" && break
3459done
3460rm -f conftest.$ac_ext
3461CC=$ac_save_CC
3462
3463fi
3464# AC_CACHE_VAL
3465case "x$ac_cv_prog_cc_c89" in
3466  x)
3467    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3468$as_echo "none needed" >&6; } ;;
3469  xno)
3470    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3471$as_echo "unsupported" >&6; } ;;
3472  *)
3473    CC="$CC $ac_cv_prog_cc_c89"
3474    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3475$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3476esac
3477
3478
3479ac_ext=c
3480ac_cpp='$CPP $CPPFLAGS'
3481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484DEPDIR="${am__leading_dot}deps"
3485
3486ac_config_commands="$ac_config_commands depfiles"
3487
3488
3489am_make=${MAKE-make}
3490cat > confinc << 'END'
3491am__doit:
3492	@echo done
3493.PHONY: am__doit
3494END
3495# If we don't find an include directive, just comment out the code.
3496{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3497$as_echo_n "checking for style of include used by $am_make... " >&6; }
3498am__include="#"
3499am__quote=
3500_am_result=none
3501# First try GNU make style include.
3502echo "include confinc" > confmf
3503# We grep out `Entering directory' and `Leaving directory'
3504# messages which can occur if `w' ends up in MAKEFLAGS.
3505# In particular we don't look at `^make:' because GNU make might
3506# be invoked under some other name (usually "gmake"), in which
3507# case it prints its new name instead of `make'.
3508if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3509   am__include=include
3510   am__quote=
3511   _am_result=GNU
3512fi
3513# Now try BSD make style include.
3514if test "$am__include" = "#"; then
3515   echo '.include "confinc"' > confmf
3516   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3517      am__include=.include
3518      am__quote="\""
3519      _am_result=BSD
3520   fi
3521fi
3522
3523
3524{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3525$as_echo "$_am_result" >&6; }
3526rm -f confinc confmf
3527
3528# Check whether --enable-dependency-tracking was given.
3529if test "${enable_dependency_tracking+set}" = set; then
3530  enableval=$enable_dependency_tracking;
3531fi
3532
3533if test "x$enable_dependency_tracking" != xno; then
3534  am_depcomp="$ac_aux_dir/depcomp"
3535  AMDEPBACKSLASH='\'
3536fi
3537 if test "x$enable_dependency_tracking" != xno; then
3538  AMDEP_TRUE=
3539  AMDEP_FALSE='#'
3540else
3541  AMDEP_TRUE='#'
3542  AMDEP_FALSE=
3543fi
3544
3545
3546
3547depcc="$CC"   am_compiler_list=
3548
3549{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3550$as_echo_n "checking dependency style of $depcc... " >&6; }
3551if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3552  $as_echo_n "(cached) " >&6
3553else
3554  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3555  # We make a subdir and do the tests there.  Otherwise we can end up
3556  # making bogus files that we don't know about and never remove.  For
3557  # instance it was reported that on HP-UX the gcc test will end up
3558  # making a dummy file named `D' -- because `-MD' means `put the output
3559  # in D'.
3560  mkdir conftest.dir
3561  # Copy depcomp to subdir because otherwise we won't find it if we're
3562  # using a relative directory.
3563  cp "$am_depcomp" conftest.dir
3564  cd conftest.dir
3565  # We will build objects and dependencies in a subdirectory because
3566  # it helps to detect inapplicable dependency modes.  For instance
3567  # both Tru64's cc and ICC support -MD to output dependencies as a
3568  # side effect of compilation, but ICC will put the dependencies in
3569  # the current directory while Tru64 will put them in the object
3570  # directory.
3571  mkdir sub
3572
3573  am_cv_CC_dependencies_compiler_type=none
3574  if test "$am_compiler_list" = ""; then
3575     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3576  fi
3577  for depmode in $am_compiler_list; do
3578    # Setup a source with many dependencies, because some compilers
3579    # like to wrap large dependency lists on column 80 (with \), and
3580    # we should not choose a depcomp mode which is confused by this.
3581    #
3582    # We need to recreate these files for each test, as the compiler may
3583    # overwrite some of them when testing with obscure command lines.
3584    # This happens at least with the AIX C compiler.
3585    : > sub/conftest.c
3586    for i in 1 2 3 4 5 6; do
3587      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3588      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3589      # Solaris 8's {/usr,}/bin/sh.
3590      touch sub/conftst$i.h
3591    done
3592    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3593
3594    case $depmode in
3595    nosideeffect)
3596      # after this tag, mechanisms are not by side-effect, so they'll
3597      # only be used when explicitly requested
3598      if test "x$enable_dependency_tracking" = xyes; then
3599	continue
3600      else
3601	break
3602      fi
3603      ;;
3604    none) break ;;
3605    esac
3606    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3607    # mode.  It turns out that the SunPro C++ compiler does not properly
3608    # handle `-M -o', and we need to detect this.
3609    if depmode=$depmode \
3610       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3611       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3612       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3613         >/dev/null 2>conftest.err &&
3614       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3615       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3617       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3618      # icc doesn't choke on unknown options, it will just issue warnings
3619      # or remarks (even with -Werror).  So we grep stderr for any message
3620      # that says an option was ignored or not supported.
3621      # When given -MP, icc 7.0 and 7.1 complain thusly:
3622      #   icc: Command line warning: ignoring option '-M'; no argument required
3623      # The diagnosis changed in icc 8.0:
3624      #   icc: Command line remark: option '-MP' not supported
3625      if (grep 'ignoring option' conftest.err ||
3626          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627        am_cv_CC_dependencies_compiler_type=$depmode
3628        break
3629      fi
3630    fi
3631  done
3632
3633  cd ..
3634  rm -rf conftest.dir
3635else
3636  am_cv_CC_dependencies_compiler_type=none
3637fi
3638
3639fi
3640{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3641$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3642CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
3644 if
3645  test "x$enable_dependency_tracking" != xno \
3646  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3647  am__fastdepCC_TRUE=
3648  am__fastdepCC_FALSE='#'
3649else
3650  am__fastdepCC_TRUE='#'
3651  am__fastdepCC_FALSE=
3652fi
3653
3654
3655# Check whether --enable-static was given.
3656if test "${enable_static+set}" = set; then
3657  enableval=$enable_static; p=${PACKAGE-default}
3658    case $enableval in
3659    yes) enable_static=yes ;;
3660    no) enable_static=no ;;
3661    *)
3662     enable_static=no
3663      # Look at the argument we got.  We use all the common list separators.
3664      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3665      for pkg in $enableval; do
3666	IFS="$lt_save_ifs"
3667	if test "X$pkg" = "X$p"; then
3668	  enable_static=yes
3669	fi
3670      done
3671      IFS="$lt_save_ifs"
3672      ;;
3673    esac
3674else
3675  enable_static=no
3676fi
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686# Check whether --enable-shared was given.
3687if test "${enable_shared+set}" = set; then
3688  enableval=$enable_shared; p=${PACKAGE-default}
3689    case $enableval in
3690    yes) enable_shared=yes ;;
3691    no) enable_shared=no ;;
3692    *)
3693      enable_shared=no
3694      # Look at the argument we got.  We use all the common list separators.
3695      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3696      for pkg in $enableval; do
3697	IFS="$lt_save_ifs"
3698	if test "X$pkg" = "X$p"; then
3699	  enable_shared=yes
3700	fi
3701      done
3702      IFS="$lt_save_ifs"
3703      ;;
3704    esac
3705else
3706  enable_shared=yes
3707fi
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717case `pwd` in
3718  *\ * | *\	*)
3719    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3720$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3721esac
3722
3723
3724
3725macro_version='2.2.6'
3726macro_revision='1.3012'
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740ltmain="$ac_aux_dir/ltmain.sh"
3741
3742# Make sure we can run config.sub.
3743$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3744  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3745$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3746   { (exit 1); exit 1; }; }
3747
3748{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3749$as_echo_n "checking build system type... " >&6; }
3750if test "${ac_cv_build+set}" = set; then
3751  $as_echo_n "(cached) " >&6
3752else
3753  ac_build_alias=$build_alias
3754test "x$ac_build_alias" = x &&
3755  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3756test "x$ac_build_alias" = x &&
3757  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3758$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3759   { (exit 1); exit 1; }; }
3760ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3761  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3762$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3763   { (exit 1); exit 1; }; }
3764
3765fi
3766{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3767$as_echo "$ac_cv_build" >&6; }
3768case $ac_cv_build in
3769*-*-*) ;;
3770*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3771$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3772   { (exit 1); exit 1; }; };;
3773esac
3774build=$ac_cv_build
3775ac_save_IFS=$IFS; IFS='-'
3776set x $ac_cv_build
3777shift
3778build_cpu=$1
3779build_vendor=$2
3780shift; shift
3781# Remember, the first character of IFS is used to create $*,
3782# except with old shells:
3783build_os=$*
3784IFS=$ac_save_IFS
3785case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3786
3787
3788{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3789$as_echo_n "checking host system type... " >&6; }
3790if test "${ac_cv_host+set}" = set; then
3791  $as_echo_n "(cached) " >&6
3792else
3793  if test "x$host_alias" = x; then
3794  ac_cv_host=$ac_cv_build
3795else
3796  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3797    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3798$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3799   { (exit 1); exit 1; }; }
3800fi
3801
3802fi
3803{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3804$as_echo "$ac_cv_host" >&6; }
3805case $ac_cv_host in
3806*-*-*) ;;
3807*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3808$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3809   { (exit 1); exit 1; }; };;
3810esac
3811host=$ac_cv_host
3812ac_save_IFS=$IFS; IFS='-'
3813set x $ac_cv_host
3814shift
3815host_cpu=$1
3816host_vendor=$2
3817shift; shift
3818# Remember, the first character of IFS is used to create $*,
3819# except with old shells:
3820host_os=$*
3821IFS=$ac_save_IFS
3822case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3823
3824
3825{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3826$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3827if test "${ac_cv_path_SED+set}" = set; then
3828  $as_echo_n "(cached) " >&6
3829else
3830            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3831     for ac_i in 1 2 3 4 5 6 7; do
3832       ac_script="$ac_script$as_nl$ac_script"
3833     done
3834     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3835     $as_unset ac_script || ac_script=
3836     if test -z "$SED"; then
3837  ac_path_SED_found=false
3838  # Loop through the user's path and test for each of PROGNAME-LIST
3839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
3841do
3842  IFS=$as_save_IFS
3843  test -z "$as_dir" && as_dir=.
3844  for ac_prog in sed gsed; do
3845    for ac_exec_ext in '' $ac_executable_extensions; do
3846      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3847      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3848# Check for GNU ac_path_SED and select it if it is found.
3849  # Check for GNU $ac_path_SED
3850case `"$ac_path_SED" --version 2>&1` in
3851*GNU*)
3852  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3853*)
3854  ac_count=0
3855  $as_echo_n 0123456789 >"conftest.in"
3856  while :
3857  do
3858    cat "conftest.in" "conftest.in" >"conftest.tmp"
3859    mv "conftest.tmp" "conftest.in"
3860    cp "conftest.in" "conftest.nl"
3861    $as_echo '' >> "conftest.nl"
3862    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3863    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3864    ac_count=`expr $ac_count + 1`
3865    if test $ac_count -gt ${ac_path_SED_max-0}; then
3866      # Best one so far, save it but keep looking for a better one
3867      ac_cv_path_SED="$ac_path_SED"
3868      ac_path_SED_max=$ac_count
3869    fi
3870    # 10*(2^10) chars as input seems more than enough
3871    test $ac_count -gt 10 && break
3872  done
3873  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3874esac
3875
3876      $ac_path_SED_found && break 3
3877    done
3878  done
3879done
3880IFS=$as_save_IFS
3881  if test -z "$ac_cv_path_SED"; then
3882    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3883$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3884   { (exit 1); exit 1; }; }
3885  fi
3886else
3887  ac_cv_path_SED=$SED
3888fi
3889
3890fi
3891{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3892$as_echo "$ac_cv_path_SED" >&6; }
3893 SED="$ac_cv_path_SED"
3894  rm -f conftest.sed
3895
3896test -z "$SED" && SED=sed
3897Xsed="$SED -e 1s/^X//"
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3910$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3911if test "${ac_cv_path_GREP+set}" = set; then
3912  $as_echo_n "(cached) " >&6
3913else
3914  if test -z "$GREP"; then
3915  ac_path_GREP_found=false
3916  # Loop through the user's path and test for each of PROGNAME-LIST
3917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919do
3920  IFS=$as_save_IFS
3921  test -z "$as_dir" && as_dir=.
3922  for ac_prog in grep ggrep; do
3923    for ac_exec_ext in '' $ac_executable_extensions; do
3924      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3925      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3926# Check for GNU ac_path_GREP and select it if it is found.
3927  # Check for GNU $ac_path_GREP
3928case `"$ac_path_GREP" --version 2>&1` in
3929*GNU*)
3930  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3931*)
3932  ac_count=0
3933  $as_echo_n 0123456789 >"conftest.in"
3934  while :
3935  do
3936    cat "conftest.in" "conftest.in" >"conftest.tmp"
3937    mv "conftest.tmp" "conftest.in"
3938    cp "conftest.in" "conftest.nl"
3939    $as_echo 'GREP' >> "conftest.nl"
3940    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942    ac_count=`expr $ac_count + 1`
3943    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3944      # Best one so far, save it but keep looking for a better one
3945      ac_cv_path_GREP="$ac_path_GREP"
3946      ac_path_GREP_max=$ac_count
3947    fi
3948    # 10*(2^10) chars as input seems more than enough
3949    test $ac_count -gt 10 && break
3950  done
3951  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952esac
3953
3954      $ac_path_GREP_found && break 3
3955    done
3956  done
3957done
3958IFS=$as_save_IFS
3959  if test -z "$ac_cv_path_GREP"; then
3960    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3961$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3962   { (exit 1); exit 1; }; }
3963  fi
3964else
3965  ac_cv_path_GREP=$GREP
3966fi
3967
3968fi
3969{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3970$as_echo "$ac_cv_path_GREP" >&6; }
3971 GREP="$ac_cv_path_GREP"
3972
3973
3974{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3975$as_echo_n "checking for egrep... " >&6; }
3976if test "${ac_cv_path_EGREP+set}" = set; then
3977  $as_echo_n "(cached) " >&6
3978else
3979  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3980   then ac_cv_path_EGREP="$GREP -E"
3981   else
3982     if test -z "$EGREP"; then
3983  ac_path_EGREP_found=false
3984  # Loop through the user's path and test for each of PROGNAME-LIST
3985  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987do
3988  IFS=$as_save_IFS
3989  test -z "$as_dir" && as_dir=.
3990  for ac_prog in egrep; do
3991    for ac_exec_ext in '' $ac_executable_extensions; do
3992      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3993      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3994# Check for GNU ac_path_EGREP and select it if it is found.
3995  # Check for GNU $ac_path_EGREP
3996case `"$ac_path_EGREP" --version 2>&1` in
3997*GNU*)
3998  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3999*)
4000  ac_count=0
4001  $as_echo_n 0123456789 >"conftest.in"
4002  while :
4003  do
4004    cat "conftest.in" "conftest.in" >"conftest.tmp"
4005    mv "conftest.tmp" "conftest.in"
4006    cp "conftest.in" "conftest.nl"
4007    $as_echo 'EGREP' >> "conftest.nl"
4008    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010    ac_count=`expr $ac_count + 1`
4011    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4012      # Best one so far, save it but keep looking for a better one
4013      ac_cv_path_EGREP="$ac_path_EGREP"
4014      ac_path_EGREP_max=$ac_count
4015    fi
4016    # 10*(2^10) chars as input seems more than enough
4017    test $ac_count -gt 10 && break
4018  done
4019  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020esac
4021
4022      $ac_path_EGREP_found && break 3
4023    done
4024  done
4025done
4026IFS=$as_save_IFS
4027  if test -z "$ac_cv_path_EGREP"; then
4028    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4029$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4030   { (exit 1); exit 1; }; }
4031  fi
4032else
4033  ac_cv_path_EGREP=$EGREP
4034fi
4035
4036   fi
4037fi
4038{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4039$as_echo "$ac_cv_path_EGREP" >&6; }
4040 EGREP="$ac_cv_path_EGREP"
4041
4042
4043{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4044$as_echo_n "checking for fgrep... " >&6; }
4045if test "${ac_cv_path_FGREP+set}" = set; then
4046  $as_echo_n "(cached) " >&6
4047else
4048  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4049   then ac_cv_path_FGREP="$GREP -F"
4050   else
4051     if test -z "$FGREP"; then
4052  ac_path_FGREP_found=false
4053  # Loop through the user's path and test for each of PROGNAME-LIST
4054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056do
4057  IFS=$as_save_IFS
4058  test -z "$as_dir" && as_dir=.
4059  for ac_prog in fgrep; do
4060    for ac_exec_ext in '' $ac_executable_extensions; do
4061      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4062      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4063# Check for GNU ac_path_FGREP and select it if it is found.
4064  # Check for GNU $ac_path_FGREP
4065case `"$ac_path_FGREP" --version 2>&1` in
4066*GNU*)
4067  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4068*)
4069  ac_count=0
4070  $as_echo_n 0123456789 >"conftest.in"
4071  while :
4072  do
4073    cat "conftest.in" "conftest.in" >"conftest.tmp"
4074    mv "conftest.tmp" "conftest.in"
4075    cp "conftest.in" "conftest.nl"
4076    $as_echo 'FGREP' >> "conftest.nl"
4077    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079    ac_count=`expr $ac_count + 1`
4080    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4081      # Best one so far, save it but keep looking for a better one
4082      ac_cv_path_FGREP="$ac_path_FGREP"
4083      ac_path_FGREP_max=$ac_count
4084    fi
4085    # 10*(2^10) chars as input seems more than enough
4086    test $ac_count -gt 10 && break
4087  done
4088  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089esac
4090
4091      $ac_path_FGREP_found && break 3
4092    done
4093  done
4094done
4095IFS=$as_save_IFS
4096  if test -z "$ac_cv_path_FGREP"; then
4097    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4098$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4099   { (exit 1); exit 1; }; }
4100  fi
4101else
4102  ac_cv_path_FGREP=$FGREP
4103fi
4104
4105   fi
4106fi
4107{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4108$as_echo "$ac_cv_path_FGREP" >&6; }
4109 FGREP="$ac_cv_path_FGREP"
4110
4111
4112test -z "$GREP" && GREP=grep
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132# Check whether --with-gnu-ld was given.
4133if test "${with_gnu_ld+set}" = set; then
4134  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4135else
4136  with_gnu_ld=no
4137fi
4138
4139ac_prog=ld
4140if test "$GCC" = yes; then
4141  # Check if gcc -print-prog-name=ld gives a path.
4142  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4143$as_echo_n "checking for ld used by $CC... " >&6; }
4144  case $host in
4145  *-*-mingw*)
4146    # gcc leaves a trailing carriage return which upsets mingw
4147    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4148  *)
4149    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4150  esac
4151  case $ac_prog in
4152    # Accept absolute paths.
4153    [\\/]* | ?:[\\/]*)
4154      re_direlt='/[^/][^/]*/\.\./'
4155      # Canonicalize the pathname of ld
4156      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4157      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4158	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4159      done
4160      test -z "$LD" && LD="$ac_prog"
4161      ;;
4162  "")
4163    # If it fails, then pretend we aren't using GCC.
4164    ac_prog=ld
4165    ;;
4166  *)
4167    # If it is relative, then search for the first ld in PATH.
4168    with_gnu_ld=unknown
4169    ;;
4170  esac
4171elif test "$with_gnu_ld" = yes; then
4172  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4173$as_echo_n "checking for GNU ld... " >&6; }
4174else
4175  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4176$as_echo_n "checking for non-GNU ld... " >&6; }
4177fi
4178if test "${lt_cv_path_LD+set}" = set; then
4179  $as_echo_n "(cached) " >&6
4180else
4181  if test -z "$LD"; then
4182  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4183  for ac_dir in $PATH; do
4184    IFS="$lt_save_ifs"
4185    test -z "$ac_dir" && ac_dir=.
4186    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4187      lt_cv_path_LD="$ac_dir/$ac_prog"
4188      # Check to see if the program is GNU ld.  I'd rather use --version,
4189      # but apparently some variants of GNU ld only accept -v.
4190      # Break only if it was the GNU/non-GNU ld that we prefer.
4191      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4192      *GNU* | *'with BFD'*)
4193	test "$with_gnu_ld" != no && break
4194	;;
4195      *)
4196	test "$with_gnu_ld" != yes && break
4197	;;
4198      esac
4199    fi
4200  done
4201  IFS="$lt_save_ifs"
4202else
4203  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4204fi
4205fi
4206
4207LD="$lt_cv_path_LD"
4208if test -n "$LD"; then
4209  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4210$as_echo "$LD" >&6; }
4211else
4212  { $as_echo "$as_me:$LINENO: result: no" >&5
4213$as_echo "no" >&6; }
4214fi
4215test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4216$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4217   { (exit 1); exit 1; }; }
4218{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4219$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4220if test "${lt_cv_prog_gnu_ld+set}" = set; then
4221  $as_echo_n "(cached) " >&6
4222else
4223  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4224case `$LD -v 2>&1 </dev/null` in
4225*GNU* | *'with BFD'*)
4226  lt_cv_prog_gnu_ld=yes
4227  ;;
4228*)
4229  lt_cv_prog_gnu_ld=no
4230  ;;
4231esac
4232fi
4233{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4234$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4235with_gnu_ld=$lt_cv_prog_gnu_ld
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4246$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4247if test "${lt_cv_path_NM+set}" = set; then
4248  $as_echo_n "(cached) " >&6
4249else
4250  if test -n "$NM"; then
4251  # Let the user override the test.
4252  lt_cv_path_NM="$NM"
4253else
4254  lt_nm_to_check="${ac_tool_prefix}nm"
4255  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4256    lt_nm_to_check="$lt_nm_to_check nm"
4257  fi
4258  for lt_tmp_nm in $lt_nm_to_check; do
4259    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4260    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4261      IFS="$lt_save_ifs"
4262      test -z "$ac_dir" && ac_dir=.
4263      tmp_nm="$ac_dir/$lt_tmp_nm"
4264      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4265	# Check to see if the nm accepts a BSD-compat flag.
4266	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4267	#   nm: unknown option "B" ignored
4268	# Tru64's nm complains that /dev/null is an invalid object file
4269	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4270	*/dev/null* | *'Invalid file or object type'*)
4271	  lt_cv_path_NM="$tmp_nm -B"
4272	  break
4273	  ;;
4274	*)
4275	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4276	  */dev/null*)
4277	    lt_cv_path_NM="$tmp_nm -p"
4278	    break
4279	    ;;
4280	  *)
4281	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4282	    continue # so that we can try to find one that supports BSD flags
4283	    ;;
4284	  esac
4285	  ;;
4286	esac
4287      fi
4288    done
4289    IFS="$lt_save_ifs"
4290  done
4291  : ${lt_cv_path_NM=no}
4292fi
4293fi
4294{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4295$as_echo "$lt_cv_path_NM" >&6; }
4296if test "$lt_cv_path_NM" != "no"; then
4297  NM="$lt_cv_path_NM"
4298else
4299  # Didn't find any BSD compatible name lister, look for dumpbin.
4300  if test -n "$ac_tool_prefix"; then
4301  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4302  do
4303    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4308  $as_echo_n "(cached) " >&6
4309else
4310  if test -n "$DUMPBIN"; then
4311  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316  IFS=$as_save_IFS
4317  test -z "$as_dir" && as_dir=.
4318  for ac_exec_ext in '' $ac_executable_extensions; do
4319  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4321    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322    break 2
4323  fi
4324done
4325done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
4330DUMPBIN=$ac_cv_prog_DUMPBIN
4331if test -n "$DUMPBIN"; then
4332  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4333$as_echo "$DUMPBIN" >&6; }
4334else
4335  { $as_echo "$as_me:$LINENO: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339
4340    test -n "$DUMPBIN" && break
4341  done
4342fi
4343if test -z "$DUMPBIN"; then
4344  ac_ct_DUMPBIN=$DUMPBIN
4345  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4346do
4347  # Extract the first word of "$ac_prog", so it can be a program name with args.
4348set dummy $ac_prog; ac_word=$2
4349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4350$as_echo_n "checking for $ac_word... " >&6; }
4351if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4352  $as_echo_n "(cached) " >&6
4353else
4354  if test -n "$ac_ct_DUMPBIN"; then
4355  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360  IFS=$as_save_IFS
4361  test -z "$as_dir" && as_dir=.
4362  for ac_exec_ext in '' $ac_executable_extensions; do
4363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4365    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366    break 2
4367  fi
4368done
4369done
4370IFS=$as_save_IFS
4371
4372fi
4373fi
4374ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4375if test -n "$ac_ct_DUMPBIN"; then
4376  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4377$as_echo "$ac_ct_DUMPBIN" >&6; }
4378else
4379  { $as_echo "$as_me:$LINENO: result: no" >&5
4380$as_echo "no" >&6; }
4381fi
4382
4383
4384  test -n "$ac_ct_DUMPBIN" && break
4385done
4386
4387  if test "x$ac_ct_DUMPBIN" = x; then
4388    DUMPBIN=":"
4389  else
4390    case $cross_compiling:$ac_tool_warned in
4391yes:)
4392{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4394ac_tool_warned=yes ;;
4395esac
4396    DUMPBIN=$ac_ct_DUMPBIN
4397  fi
4398fi
4399
4400
4401  if test "$DUMPBIN" != ":"; then
4402    NM="$DUMPBIN"
4403  fi
4404fi
4405test -z "$NM" && NM=nm
4406
4407
4408
4409
4410
4411
4412{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4413$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4414if test "${lt_cv_nm_interface+set}" = set; then
4415  $as_echo_n "(cached) " >&6
4416else
4417  lt_cv_nm_interface="BSD nm"
4418  echo "int some_variable = 0;" > conftest.$ac_ext
4419  (eval echo "\"\$as_me:4419: $ac_compile\"" >&5)
4420  (eval "$ac_compile" 2>conftest.err)
4421  cat conftest.err >&5
4422  (eval echo "\"\$as_me:4422: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4423  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4424  cat conftest.err >&5
4425  (eval echo "\"\$as_me:4425: output\"" >&5)
4426  cat conftest.out >&5
4427  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4428    lt_cv_nm_interface="MS dumpbin"
4429  fi
4430  rm -f conftest*
4431fi
4432{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4433$as_echo "$lt_cv_nm_interface" >&6; }
4434
4435{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4436$as_echo_n "checking whether ln -s works... " >&6; }
4437LN_S=$as_ln_s
4438if test "$LN_S" = "ln -s"; then
4439  { $as_echo "$as_me:$LINENO: result: yes" >&5
4440$as_echo "yes" >&6; }
4441else
4442  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4443$as_echo "no, using $LN_S" >&6; }
4444fi
4445
4446# find the maximum length of command line arguments
4447{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4448$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4449if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4450  $as_echo_n "(cached) " >&6
4451else
4452    i=0
4453  teststring="ABCD"
4454
4455  case $build_os in
4456  msdosdjgpp*)
4457    # On DJGPP, this test can blow up pretty badly due to problems in libc
4458    # (any single argument exceeding 2000 bytes causes a buffer overrun
4459    # during glob expansion).  Even if it were fixed, the result of this
4460    # check would be larger than it should be.
4461    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4462    ;;
4463
4464  gnu*)
4465    # Under GNU Hurd, this test is not required because there is
4466    # no limit to the length of command line arguments.
4467    # Libtool will interpret -1 as no limit whatsoever
4468    lt_cv_sys_max_cmd_len=-1;
4469    ;;
4470
4471  cygwin* | mingw* | cegcc*)
4472    # On Win9x/ME, this test blows up -- it succeeds, but takes
4473    # about 5 minutes as the teststring grows exponentially.
4474    # Worse, since 9x/ME are not pre-emptively multitasking,
4475    # you end up with a "frozen" computer, even though with patience
4476    # the test eventually succeeds (with a max line length of 256k).
4477    # Instead, let's just punt: use the minimum linelength reported by
4478    # all of the supported platforms: 8192 (on NT/2K/XP).
4479    lt_cv_sys_max_cmd_len=8192;
4480    ;;
4481
4482  amigaos*)
4483    # On AmigaOS with pdksh, this test takes hours, literally.
4484    # So we just punt and use a minimum line length of 8192.
4485    lt_cv_sys_max_cmd_len=8192;
4486    ;;
4487
4488  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4489    # This has been around since 386BSD, at least.  Likely further.
4490    if test -x /sbin/sysctl; then
4491      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4492    elif test -x /usr/sbin/sysctl; then
4493      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4494    else
4495      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4496    fi
4497    # And add a safety zone
4498    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4499    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4500    ;;
4501
4502  interix*)
4503    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4504    lt_cv_sys_max_cmd_len=196608
4505    ;;
4506
4507  osf*)
4508    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4509    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4510    # nice to cause kernel panics so lets avoid the loop below.
4511    # First set a reasonable default.
4512    lt_cv_sys_max_cmd_len=16384
4513    #
4514    if test -x /sbin/sysconfig; then
4515      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4516        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4517      esac
4518    fi
4519    ;;
4520  sco3.2v5*)
4521    lt_cv_sys_max_cmd_len=102400
4522    ;;
4523  sysv5* | sco5v6* | sysv4.2uw2*)
4524    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4525    if test -n "$kargmax"; then
4526      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4527    else
4528      lt_cv_sys_max_cmd_len=32768
4529    fi
4530    ;;
4531  *)
4532    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4533    if test -n "$lt_cv_sys_max_cmd_len"; then
4534      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4535      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4536    else
4537      # Make teststring a little bigger before we do anything with it.
4538      # a 1K string should be a reasonable start.
4539      for i in 1 2 3 4 5 6 7 8 ; do
4540        teststring=$teststring$teststring
4541      done
4542      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4543      # If test is not a shell built-in, we'll probably end up computing a
4544      # maximum length that is only half of the actual maximum length, but
4545      # we can't tell.
4546      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4547	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4548	      test $i != 17 # 1/2 MB should be enough
4549      do
4550        i=`expr $i + 1`
4551        teststring=$teststring$teststring
4552      done
4553      # Only check the string length outside the loop.
4554      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4555      teststring=
4556      # Add a significant safety factor because C++ compilers can tack on
4557      # massive amounts of additional arguments before passing them to the
4558      # linker.  It appears as though 1/2 is a usable value.
4559      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4560    fi
4561    ;;
4562  esac
4563
4564fi
4565
4566if test -n $lt_cv_sys_max_cmd_len ; then
4567  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4568$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4569else
4570  { $as_echo "$as_me:$LINENO: result: none" >&5
4571$as_echo "none" >&6; }
4572fi
4573max_cmd_len=$lt_cv_sys_max_cmd_len
4574
4575
4576
4577
4578
4579
4580: ${CP="cp -f"}
4581: ${MV="mv -f"}
4582: ${RM="rm -f"}
4583
4584{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4585$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4586# Try some XSI features
4587xsi_shell=no
4588( _lt_dummy="a/b/c"
4589  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4590      = c,a/b,, \
4591    && eval 'test $(( 1 + 1 )) -eq 2 \
4592    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4593  && xsi_shell=yes
4594{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4595$as_echo "$xsi_shell" >&6; }
4596
4597
4598{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4599$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4600lt_shell_append=no
4601( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4602    >/dev/null 2>&1 \
4603  && lt_shell_append=yes
4604{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4605$as_echo "$lt_shell_append" >&6; }
4606
4607
4608if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4609  lt_unset=unset
4610else
4611  lt_unset=false
4612fi
4613
4614
4615
4616
4617
4618# test EBCDIC or ASCII
4619case `echo X|tr X '\101'` in
4620 A) # ASCII based system
4621    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4622  lt_SP2NL='tr \040 \012'
4623  lt_NL2SP='tr \015\012 \040\040'
4624  ;;
4625 *) # EBCDIC based system
4626  lt_SP2NL='tr \100 \n'
4627  lt_NL2SP='tr \r\n \100\100'
4628  ;;
4629esac
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4640$as_echo_n "checking for $LD option to reload object files... " >&6; }
4641if test "${lt_cv_ld_reload_flag+set}" = set; then
4642  $as_echo_n "(cached) " >&6
4643else
4644  lt_cv_ld_reload_flag='-r'
4645fi
4646{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4647$as_echo "$lt_cv_ld_reload_flag" >&6; }
4648reload_flag=$lt_cv_ld_reload_flag
4649case $reload_flag in
4650"" | " "*) ;;
4651*) reload_flag=" $reload_flag" ;;
4652esac
4653reload_cmds='$LD$reload_flag -o $output$reload_objs'
4654case $host_os in
4655  darwin*)
4656    if test "$GCC" = yes; then
4657      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4658    else
4659      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4660    fi
4661    ;;
4662esac
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672if test -n "$ac_tool_prefix"; then
4673  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4674set dummy ${ac_tool_prefix}objdump; ac_word=$2
4675{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4676$as_echo_n "checking for $ac_word... " >&6; }
4677if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4678  $as_echo_n "(cached) " >&6
4679else
4680  if test -n "$OBJDUMP"; then
4681  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4682else
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686  IFS=$as_save_IFS
4687  test -z "$as_dir" && as_dir=.
4688  for ac_exec_ext in '' $ac_executable_extensions; do
4689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4691    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692    break 2
4693  fi
4694done
4695done
4696IFS=$as_save_IFS
4697
4698fi
4699fi
4700OBJDUMP=$ac_cv_prog_OBJDUMP
4701if test -n "$OBJDUMP"; then
4702  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4703$as_echo "$OBJDUMP" >&6; }
4704else
4705  { $as_echo "$as_me:$LINENO: result: no" >&5
4706$as_echo "no" >&6; }
4707fi
4708
4709
4710fi
4711if test -z "$ac_cv_prog_OBJDUMP"; then
4712  ac_ct_OBJDUMP=$OBJDUMP
4713  # Extract the first word of "objdump", so it can be a program name with args.
4714set dummy objdump; ac_word=$2
4715{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4716$as_echo_n "checking for $ac_word... " >&6; }
4717if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4718  $as_echo_n "(cached) " >&6
4719else
4720  if test -n "$ac_ct_OBJDUMP"; then
4721  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4722else
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726  IFS=$as_save_IFS
4727  test -z "$as_dir" && as_dir=.
4728  for ac_exec_ext in '' $ac_executable_extensions; do
4729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4731    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732    break 2
4733  fi
4734done
4735done
4736IFS=$as_save_IFS
4737
4738fi
4739fi
4740ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4741if test -n "$ac_ct_OBJDUMP"; then
4742  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4743$as_echo "$ac_ct_OBJDUMP" >&6; }
4744else
4745  { $as_echo "$as_me:$LINENO: result: no" >&5
4746$as_echo "no" >&6; }
4747fi
4748
4749  if test "x$ac_ct_OBJDUMP" = x; then
4750    OBJDUMP="false"
4751  else
4752    case $cross_compiling:$ac_tool_warned in
4753yes:)
4754{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756ac_tool_warned=yes ;;
4757esac
4758    OBJDUMP=$ac_ct_OBJDUMP
4759  fi
4760else
4761  OBJDUMP="$ac_cv_prog_OBJDUMP"
4762fi
4763
4764test -z "$OBJDUMP" && OBJDUMP=objdump
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4775$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4776if test "${lt_cv_deplibs_check_method+set}" = set; then
4777  $as_echo_n "(cached) " >&6
4778else
4779  lt_cv_file_magic_cmd='$MAGIC_CMD'
4780lt_cv_file_magic_test_file=
4781lt_cv_deplibs_check_method='unknown'
4782# Need to set the preceding variable on all platforms that support
4783# interlibrary dependencies.
4784# 'none' -- dependencies not supported.
4785# `unknown' -- same as none, but documents that we really don't know.
4786# 'pass_all' -- all dependencies passed with no checks.
4787# 'test_compile' -- check by making test program.
4788# 'file_magic [[regex]]' -- check by looking for files in library path
4789# which responds to the $file_magic_cmd with a given extended regex.
4790# If you have `file' or equivalent on your system and you're not sure
4791# whether `pass_all' will *always* work, you probably want this one.
4792
4793case $host_os in
4794aix[4-9]*)
4795  lt_cv_deplibs_check_method=pass_all
4796  ;;
4797
4798beos*)
4799  lt_cv_deplibs_check_method=pass_all
4800  ;;
4801
4802bsdi[45]*)
4803  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4804  lt_cv_file_magic_cmd='/usr/bin/file -L'
4805  lt_cv_file_magic_test_file=/shlib/libc.so
4806  ;;
4807
4808cygwin*)
4809  # func_win32_libid is a shell function defined in ltmain.sh
4810  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4811  lt_cv_file_magic_cmd='func_win32_libid'
4812  ;;
4813
4814mingw* | pw32*)
4815  # Base MSYS/MinGW do not provide the 'file' command needed by
4816  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4817  # unless we find 'file', for example because we are cross-compiling.
4818  if ( file / ) >/dev/null 2>&1; then
4819    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4820    lt_cv_file_magic_cmd='func_win32_libid'
4821  else
4822    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4823    lt_cv_file_magic_cmd='$OBJDUMP -f'
4824  fi
4825  ;;
4826
4827cegcc)
4828  # use the weaker test based on 'objdump'. See mingw*.
4829  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4830  lt_cv_file_magic_cmd='$OBJDUMP -f'
4831  ;;
4832
4833darwin* | rhapsody*)
4834  lt_cv_deplibs_check_method=pass_all
4835  ;;
4836
4837freebsd* | dragonfly*)
4838  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4839    case $host_cpu in
4840    i*86 )
4841      # Not sure whether the presence of OpenBSD here was a mistake.
4842      # Let's accept both of them until this is cleared up.
4843      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4844      lt_cv_file_magic_cmd=/usr/bin/file
4845      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4846      ;;
4847    esac
4848  else
4849    lt_cv_deplibs_check_method=pass_all
4850  fi
4851  ;;
4852
4853gnu*)
4854  lt_cv_deplibs_check_method=pass_all
4855  ;;
4856
4857hpux10.20* | hpux11*)
4858  lt_cv_file_magic_cmd=/usr/bin/file
4859  case $host_cpu in
4860  ia64*)
4861    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4862    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4863    ;;
4864  hppa*64*)
4865    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]'
4866    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4867    ;;
4868  *)
4869    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4870    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4871    ;;
4872  esac
4873  ;;
4874
4875interix[3-9]*)
4876  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4877  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4878  ;;
4879
4880irix5* | irix6* | nonstopux*)
4881  case $LD in
4882  *-32|*"-32 ") libmagic=32-bit;;
4883  *-n32|*"-n32 ") libmagic=N32;;
4884  *-64|*"-64 ") libmagic=64-bit;;
4885  *) libmagic=never-match;;
4886  esac
4887  lt_cv_deplibs_check_method=pass_all
4888  ;;
4889
4890# This must be Linux ELF.
4891linux* | k*bsd*-gnu)
4892  lt_cv_deplibs_check_method=pass_all
4893  ;;
4894
4895netbsd*)
4896  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4897    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4898  else
4899    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4900  fi
4901  ;;
4902
4903newos6*)
4904  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4905  lt_cv_file_magic_cmd=/usr/bin/file
4906  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4907  ;;
4908
4909*nto* | *qnx*)
4910  lt_cv_deplibs_check_method=pass_all
4911  ;;
4912
4913openbsd*)
4914  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4915    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4916  else
4917    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4918  fi
4919  ;;
4920
4921osf3* | osf4* | osf5*)
4922  lt_cv_deplibs_check_method=pass_all
4923  ;;
4924
4925rdos*)
4926  lt_cv_deplibs_check_method=pass_all
4927  ;;
4928
4929solaris*)
4930  lt_cv_deplibs_check_method=pass_all
4931  ;;
4932
4933sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4934  lt_cv_deplibs_check_method=pass_all
4935  ;;
4936
4937sysv4 | sysv4.3*)
4938  case $host_vendor in
4939  motorola)
4940    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]'
4941    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4942    ;;
4943  ncr)
4944    lt_cv_deplibs_check_method=pass_all
4945    ;;
4946  sequent)
4947    lt_cv_file_magic_cmd='/bin/file'
4948    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4949    ;;
4950  sni)
4951    lt_cv_file_magic_cmd='/bin/file'
4952    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4953    lt_cv_file_magic_test_file=/lib/libc.so
4954    ;;
4955  siemens)
4956    lt_cv_deplibs_check_method=pass_all
4957    ;;
4958  pc)
4959    lt_cv_deplibs_check_method=pass_all
4960    ;;
4961  esac
4962  ;;
4963
4964tpf*)
4965  lt_cv_deplibs_check_method=pass_all
4966  ;;
4967esac
4968
4969fi
4970{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4971$as_echo "$lt_cv_deplibs_check_method" >&6; }
4972file_magic_cmd=$lt_cv_file_magic_cmd
4973deplibs_check_method=$lt_cv_deplibs_check_method
4974test -z "$deplibs_check_method" && deplibs_check_method=unknown
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987if test -n "$ac_tool_prefix"; then
4988  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4989set dummy ${ac_tool_prefix}ar; ac_word=$2
4990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4991$as_echo_n "checking for $ac_word... " >&6; }
4992if test "${ac_cv_prog_AR+set}" = set; then
4993  $as_echo_n "(cached) " >&6
4994else
4995  if test -n "$AR"; then
4996  ac_cv_prog_AR="$AR" # Let the user override the test.
4997else
4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001  IFS=$as_save_IFS
5002  test -z "$as_dir" && as_dir=.
5003  for ac_exec_ext in '' $ac_executable_extensions; do
5004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005    ac_cv_prog_AR="${ac_tool_prefix}ar"
5006    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007    break 2
5008  fi
5009done
5010done
5011IFS=$as_save_IFS
5012
5013fi
5014fi
5015AR=$ac_cv_prog_AR
5016if test -n "$AR"; then
5017  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5018$as_echo "$AR" >&6; }
5019else
5020  { $as_echo "$as_me:$LINENO: result: no" >&5
5021$as_echo "no" >&6; }
5022fi
5023
5024
5025fi
5026if test -z "$ac_cv_prog_AR"; then
5027  ac_ct_AR=$AR
5028  # Extract the first word of "ar", so it can be a program name with args.
5029set dummy ar; ac_word=$2
5030{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5031$as_echo_n "checking for $ac_word... " >&6; }
5032if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5033  $as_echo_n "(cached) " >&6
5034else
5035  if test -n "$ac_ct_AR"; then
5036  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041  IFS=$as_save_IFS
5042  test -z "$as_dir" && as_dir=.
5043  for ac_exec_ext in '' $ac_executable_extensions; do
5044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045    ac_cv_prog_ac_ct_AR="ar"
5046    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047    break 2
5048  fi
5049done
5050done
5051IFS=$as_save_IFS
5052
5053fi
5054fi
5055ac_ct_AR=$ac_cv_prog_ac_ct_AR
5056if test -n "$ac_ct_AR"; then
5057  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5058$as_echo "$ac_ct_AR" >&6; }
5059else
5060  { $as_echo "$as_me:$LINENO: result: no" >&5
5061$as_echo "no" >&6; }
5062fi
5063
5064  if test "x$ac_ct_AR" = x; then
5065    AR="false"
5066  else
5067    case $cross_compiling:$ac_tool_warned in
5068yes:)
5069{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071ac_tool_warned=yes ;;
5072esac
5073    AR=$ac_ct_AR
5074  fi
5075else
5076  AR="$ac_cv_prog_AR"
5077fi
5078
5079test -z "$AR" && AR=ar
5080test -z "$AR_FLAGS" && AR_FLAGS=cru
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092if test -n "$ac_tool_prefix"; then
5093  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5094set dummy ${ac_tool_prefix}strip; ac_word=$2
5095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5096$as_echo_n "checking for $ac_word... " >&6; }
5097if test "${ac_cv_prog_STRIP+set}" = set; then
5098  $as_echo_n "(cached) " >&6
5099else
5100  if test -n "$STRIP"; then
5101  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106  IFS=$as_save_IFS
5107  test -z "$as_dir" && as_dir=.
5108  for ac_exec_ext in '' $ac_executable_extensions; do
5109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5111    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112    break 2
5113  fi
5114done
5115done
5116IFS=$as_save_IFS
5117
5118fi
5119fi
5120STRIP=$ac_cv_prog_STRIP
5121if test -n "$STRIP"; then
5122  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5123$as_echo "$STRIP" >&6; }
5124else
5125  { $as_echo "$as_me:$LINENO: result: no" >&5
5126$as_echo "no" >&6; }
5127fi
5128
5129
5130fi
5131if test -z "$ac_cv_prog_STRIP"; then
5132  ac_ct_STRIP=$STRIP
5133  # Extract the first word of "strip", so it can be a program name with args.
5134set dummy strip; ac_word=$2
5135{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
5137if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5138  $as_echo_n "(cached) " >&6
5139else
5140  if test -n "$ac_ct_STRIP"; then
5141  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146  IFS=$as_save_IFS
5147  test -z "$as_dir" && as_dir=.
5148  for ac_exec_ext in '' $ac_executable_extensions; do
5149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150    ac_cv_prog_ac_ct_STRIP="strip"
5151    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152    break 2
5153  fi
5154done
5155done
5156IFS=$as_save_IFS
5157
5158fi
5159fi
5160ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5161if test -n "$ac_ct_STRIP"; then
5162  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5163$as_echo "$ac_ct_STRIP" >&6; }
5164else
5165  { $as_echo "$as_me:$LINENO: result: no" >&5
5166$as_echo "no" >&6; }
5167fi
5168
5169  if test "x$ac_ct_STRIP" = x; then
5170    STRIP=":"
5171  else
5172    case $cross_compiling:$ac_tool_warned in
5173yes:)
5174{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176ac_tool_warned=yes ;;
5177esac
5178    STRIP=$ac_ct_STRIP
5179  fi
5180else
5181  STRIP="$ac_cv_prog_STRIP"
5182fi
5183
5184test -z "$STRIP" && STRIP=:
5185
5186
5187
5188
5189
5190
5191if test -n "$ac_tool_prefix"; then
5192  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5193set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5194{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5195$as_echo_n "checking for $ac_word... " >&6; }
5196if test "${ac_cv_prog_RANLIB+set}" = set; then
5197  $as_echo_n "(cached) " >&6
5198else
5199  if test -n "$RANLIB"; then
5200  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205  IFS=$as_save_IFS
5206  test -z "$as_dir" && as_dir=.
5207  for ac_exec_ext in '' $ac_executable_extensions; do
5208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5210    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211    break 2
5212  fi
5213done
5214done
5215IFS=$as_save_IFS
5216
5217fi
5218fi
5219RANLIB=$ac_cv_prog_RANLIB
5220if test -n "$RANLIB"; then
5221  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5222$as_echo "$RANLIB" >&6; }
5223else
5224  { $as_echo "$as_me:$LINENO: result: no" >&5
5225$as_echo "no" >&6; }
5226fi
5227
5228
5229fi
5230if test -z "$ac_cv_prog_RANLIB"; then
5231  ac_ct_RANLIB=$RANLIB
5232  # Extract the first word of "ranlib", so it can be a program name with args.
5233set dummy ranlib; ac_word=$2
5234{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5235$as_echo_n "checking for $ac_word... " >&6; }
5236if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5237  $as_echo_n "(cached) " >&6
5238else
5239  if test -n "$ac_ct_RANLIB"; then
5240  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5241else
5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH
5244do
5245  IFS=$as_save_IFS
5246  test -z "$as_dir" && as_dir=.
5247  for ac_exec_ext in '' $ac_executable_extensions; do
5248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249    ac_cv_prog_ac_ct_RANLIB="ranlib"
5250    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251    break 2
5252  fi
5253done
5254done
5255IFS=$as_save_IFS
5256
5257fi
5258fi
5259ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5260if test -n "$ac_ct_RANLIB"; then
5261  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5262$as_echo "$ac_ct_RANLIB" >&6; }
5263else
5264  { $as_echo "$as_me:$LINENO: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
5267
5268  if test "x$ac_ct_RANLIB" = x; then
5269    RANLIB=":"
5270  else
5271    case $cross_compiling:$ac_tool_warned in
5272yes:)
5273{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275ac_tool_warned=yes ;;
5276esac
5277    RANLIB=$ac_ct_RANLIB
5278  fi
5279else
5280  RANLIB="$ac_cv_prog_RANLIB"
5281fi
5282
5283test -z "$RANLIB" && RANLIB=:
5284
5285
5286
5287
5288
5289
5290# Determine commands to create old-style static archives.
5291old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5292old_postinstall_cmds='chmod 644 $oldlib'
5293old_postuninstall_cmds=
5294
5295if test -n "$RANLIB"; then
5296  case $host_os in
5297  openbsd*)
5298    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5299    ;;
5300  *)
5301    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5302    ;;
5303  esac
5304  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5305fi
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340# If no C compiler was specified, use CC.
5341LTCC=${LTCC-"$CC"}
5342
5343# If no C compiler flags were specified, use CFLAGS.
5344LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5345
5346# Allow CC to be a program name with arguments.
5347compiler=$CC
5348
5349
5350# Check for command to grab the raw symbol name followed by C symbol from nm.
5351{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5352$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5353if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5354  $as_echo_n "(cached) " >&6
5355else
5356
5357# These are sane defaults that work on at least a few old systems.
5358# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5359
5360# Character class describing NM global symbol codes.
5361symcode='[BCDEGRST]'
5362
5363# Regexp to match symbols that can be accessed directly from C.
5364sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5365
5366# Define system-specific variables.
5367case $host_os in
5368aix*)
5369  symcode='[BCDT]'
5370  ;;
5371cygwin* | mingw* | pw32* | cegcc*)
5372  symcode='[ABCDGISTW]'
5373  ;;
5374hpux*)
5375  if test "$host_cpu" = ia64; then
5376    symcode='[ABCDEGRST]'
5377  fi
5378  ;;
5379irix* | nonstopux*)
5380  symcode='[BCDEGRST]'
5381  ;;
5382osf*)
5383  symcode='[BCDEGQRST]'
5384  ;;
5385solaris*)
5386  symcode='[BDRT]'
5387  ;;
5388sco3.2v5*)
5389  symcode='[DT]'
5390  ;;
5391sysv4.2uw2*)
5392  symcode='[DT]'
5393  ;;
5394sysv5* | sco5v6* | unixware* | OpenUNIX*)
5395  symcode='[ABDT]'
5396  ;;
5397sysv4)
5398  symcode='[DFNSTU]'
5399  ;;
5400esac
5401
5402# If we're using GNU nm, then use its standard symbol codes.
5403case `$NM -V 2>&1` in
5404*GNU* | *'with BFD'*)
5405  symcode='[ABCDGIRSTW]' ;;
5406esac
5407
5408# Transform an extracted symbol line into a proper C declaration.
5409# Some systems (esp. on ia64) link data and code symbols differently,
5410# so use this general approach.
5411lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5412
5413# Transform an extracted symbol line into symbol name and symbol address
5414lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5415lt_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'"
5416
5417# Handle CRLF in mingw tool chain
5418opt_cr=
5419case $build_os in
5420mingw*)
5421  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5422  ;;
5423esac
5424
5425# Try without a prefix underscore, then with it.
5426for ac_symprfx in "" "_"; do
5427
5428  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5429  symxfrm="\\1 $ac_symprfx\\2 \\2"
5430
5431  # Write the raw and C identifiers.
5432  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5433    # Fake it for dumpbin and say T for any non-static function
5434    # and D for any global variable.
5435    # Also find C++ and __fastcall symbols from MSVC++,
5436    # which start with @ or ?.
5437    lt_cv_sys_global_symbol_pipe="$AWK '"\
5438"     {last_section=section; section=\$ 3};"\
5439"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5440"     \$ 0!~/External *\|/{next};"\
5441"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5442"     {if(hide[section]) next};"\
5443"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5444"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5445"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5446"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5447"     ' prfx=^$ac_symprfx"
5448  else
5449    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5450  fi
5451
5452  # Check to see that the pipe works correctly.
5453  pipe_works=no
5454
5455  rm -f conftest*
5456  cat > conftest.$ac_ext <<_LT_EOF
5457#ifdef __cplusplus
5458extern "C" {
5459#endif
5460char nm_test_var;
5461void nm_test_func(void);
5462void nm_test_func(void){}
5463#ifdef __cplusplus
5464}
5465#endif
5466int main(){nm_test_var='a';nm_test_func();return(0);}
5467_LT_EOF
5468
5469  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5470  (eval $ac_compile) 2>&5
5471  ac_status=$?
5472  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }; then
5474    # Now try to grab the symbols.
5475    nlist=conftest.nm
5476    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5477  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5478  ac_status=$?
5479  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); } && test -s "$nlist"; then
5481      # Try sorting and uniquifying the output.
5482      if sort "$nlist" | uniq > "$nlist"T; then
5483	mv -f "$nlist"T "$nlist"
5484      else
5485	rm -f "$nlist"T
5486      fi
5487
5488      # Make sure that we snagged all the symbols we need.
5489      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5490	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5491	  cat <<_LT_EOF > conftest.$ac_ext
5492#ifdef __cplusplus
5493extern "C" {
5494#endif
5495
5496_LT_EOF
5497	  # Now generate the symbol file.
5498	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5499
5500	  cat <<_LT_EOF >> conftest.$ac_ext
5501
5502/* The mapping between symbol names and symbols.  */
5503const struct {
5504  const char *name;
5505  void       *address;
5506}
5507lt__PROGRAM__LTX_preloaded_symbols[] =
5508{
5509  { "@PROGRAM@", (void *) 0 },
5510_LT_EOF
5511	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5512	  cat <<\_LT_EOF >> conftest.$ac_ext
5513  {0, (void *) 0}
5514};
5515
5516/* This works around a problem in FreeBSD linker */
5517#ifdef FREEBSD_WORKAROUND
5518static const void *lt_preloaded_setup() {
5519  return lt__PROGRAM__LTX_preloaded_symbols;
5520}
5521#endif
5522
5523#ifdef __cplusplus
5524}
5525#endif
5526_LT_EOF
5527	  # Now try linking the two files.
5528	  mv conftest.$ac_objext conftstm.$ac_objext
5529	  lt_save_LIBS="$LIBS"
5530	  lt_save_CFLAGS="$CFLAGS"
5531	  LIBS="conftstm.$ac_objext"
5532	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5533	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534  (eval $ac_link) 2>&5
5535  ac_status=$?
5536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5538	    pipe_works=yes
5539	  fi
5540	  LIBS="$lt_save_LIBS"
5541	  CFLAGS="$lt_save_CFLAGS"
5542	else
5543	  echo "cannot find nm_test_func in $nlist" >&5
5544	fi
5545      else
5546	echo "cannot find nm_test_var in $nlist" >&5
5547      fi
5548    else
5549      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5550    fi
5551  else
5552    echo "$progname: failed program was:" >&5
5553    cat conftest.$ac_ext >&5
5554  fi
5555  rm -rf conftest* conftst*
5556
5557  # Do not use the global_symbol_pipe unless it works.
5558  if test "$pipe_works" = yes; then
5559    break
5560  else
5561    lt_cv_sys_global_symbol_pipe=
5562  fi
5563done
5564
5565fi
5566
5567if test -z "$lt_cv_sys_global_symbol_pipe"; then
5568  lt_cv_sys_global_symbol_to_cdecl=
5569fi
5570if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5571  { $as_echo "$as_me:$LINENO: result: failed" >&5
5572$as_echo "failed" >&6; }
5573else
5574  { $as_echo "$as_me:$LINENO: result: ok" >&5
5575$as_echo "ok" >&6; }
5576fi
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600# Check whether --enable-libtool-lock was given.
5601if test "${enable_libtool_lock+set}" = set; then
5602  enableval=$enable_libtool_lock;
5603fi
5604
5605test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5606
5607# Some flags need to be propagated to the compiler or linker for good
5608# libtool support.
5609case $host in
5610ia64-*-hpux*)
5611  # Find out which ABI we are using.
5612  echo 'int i;' > conftest.$ac_ext
5613  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614  (eval $ac_compile) 2>&5
5615  ac_status=$?
5616  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617  (exit $ac_status); }; then
5618    case `/usr/bin/file conftest.$ac_objext` in
5619      *ELF-32*)
5620	HPUX_IA64_MODE="32"
5621	;;
5622      *ELF-64*)
5623	HPUX_IA64_MODE="64"
5624	;;
5625    esac
5626  fi
5627  rm -rf conftest*
5628  ;;
5629*-*-irix6*)
5630  # Find out which ABI we are using.
5631  echo '#line 5631 "configure"' > conftest.$ac_ext
5632  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633  (eval $ac_compile) 2>&5
5634  ac_status=$?
5635  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636  (exit $ac_status); }; then
5637    if test "$lt_cv_prog_gnu_ld" = yes; then
5638      case `/usr/bin/file conftest.$ac_objext` in
5639	*32-bit*)
5640	  LD="${LD-ld} -melf32bsmip"
5641	  ;;
5642	*N32*)
5643	  LD="${LD-ld} -melf32bmipn32"
5644	  ;;
5645	*64-bit*)
5646	  LD="${LD-ld} -melf64bmip"
5647	;;
5648      esac
5649    else
5650      case `/usr/bin/file conftest.$ac_objext` in
5651	*32-bit*)
5652	  LD="${LD-ld} -32"
5653	  ;;
5654	*N32*)
5655	  LD="${LD-ld} -n32"
5656	  ;;
5657	*64-bit*)
5658	  LD="${LD-ld} -64"
5659	  ;;
5660      esac
5661    fi
5662  fi
5663  rm -rf conftest*
5664  ;;
5665
5666x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5667s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5668  # Find out which ABI we are using.
5669  echo 'int i;' > conftest.$ac_ext
5670  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671  (eval $ac_compile) 2>&5
5672  ac_status=$?
5673  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); }; then
5675    case `/usr/bin/file conftest.o` in
5676      *32-bit*)
5677	case $host in
5678	  x86_64-*kfreebsd*-gnu)
5679	    LD="${LD-ld} -m elf_i386_fbsd"
5680	    ;;
5681	  x86_64-*linux*)
5682	    LD="${LD-ld} -m elf_i386"
5683	    ;;
5684	  ppc64-*linux*|powerpc64-*linux*)
5685	    LD="${LD-ld} -m elf32ppclinux"
5686	    ;;
5687	  s390x-*linux*)
5688	    LD="${LD-ld} -m elf_s390"
5689	    ;;
5690	  sparc64-*linux*)
5691	    LD="${LD-ld} -m elf32_sparc"
5692	    ;;
5693	esac
5694	;;
5695      *64-bit*)
5696	case $host in
5697	  x86_64-*kfreebsd*-gnu)
5698	    LD="${LD-ld} -m elf_x86_64_fbsd"
5699	    ;;
5700	  x86_64-*linux*)
5701	    LD="${LD-ld} -m elf_x86_64"
5702	    ;;
5703	  ppc*-*linux*|powerpc*-*linux*)
5704	    LD="${LD-ld} -m elf64ppc"
5705	    ;;
5706	  s390*-*linux*|s390*-*tpf*)
5707	    LD="${LD-ld} -m elf64_s390"
5708	    ;;
5709	  sparc*-*linux*)
5710	    LD="${LD-ld} -m elf64_sparc"
5711	    ;;
5712	esac
5713	;;
5714    esac
5715  fi
5716  rm -rf conftest*
5717  ;;
5718
5719*-*-sco3.2v5*)
5720  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5721  SAVE_CFLAGS="$CFLAGS"
5722  CFLAGS="$CFLAGS -belf"
5723  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5724$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5725if test "${lt_cv_cc_needs_belf+set}" = set; then
5726  $as_echo_n "(cached) " >&6
5727else
5728  ac_ext=c
5729ac_cpp='$CPP $CPPFLAGS'
5730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733
5734     cat >conftest.$ac_ext <<_ACEOF
5735/* confdefs.h.  */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h.  */
5740
5741int
5742main ()
5743{
5744
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749rm -f conftest.$ac_objext conftest$ac_exeext
5750if { (ac_try="$ac_link"
5751case "(($ac_try" in
5752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753  *) ac_try_echo=$ac_try;;
5754esac
5755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5756$as_echo "$ac_try_echo") >&5
5757  (eval "$ac_link") 2>conftest.er1
5758  ac_status=$?
5759  grep -v '^ *+' conftest.er1 >conftest.err
5760  rm -f conftest.er1
5761  cat conftest.err >&5
5762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763  (exit $ac_status); } && {
5764	 test -z "$ac_c_werror_flag" ||
5765	 test ! -s conftest.err
5766       } && test -s conftest$ac_exeext && {
5767	 test "$cross_compiling" = yes ||
5768	 $as_test_x conftest$ac_exeext
5769       }; then
5770  lt_cv_cc_needs_belf=yes
5771else
5772  $as_echo "$as_me: failed program was:" >&5
5773sed 's/^/| /' conftest.$ac_ext >&5
5774
5775	lt_cv_cc_needs_belf=no
5776fi
5777
5778rm -rf conftest.dSYM
5779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5780      conftest$ac_exeext conftest.$ac_ext
5781     ac_ext=c
5782ac_cpp='$CPP $CPPFLAGS'
5783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787fi
5788{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5789$as_echo "$lt_cv_cc_needs_belf" >&6; }
5790  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5791    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5792    CFLAGS="$SAVE_CFLAGS"
5793  fi
5794  ;;
5795sparc*-*solaris*)
5796  # Find out which ABI we are using.
5797  echo 'int i;' > conftest.$ac_ext
5798  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799  (eval $ac_compile) 2>&5
5800  ac_status=$?
5801  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802  (exit $ac_status); }; then
5803    case `/usr/bin/file conftest.o` in
5804    *64-bit*)
5805      case $lt_cv_prog_gnu_ld in
5806      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5807      *)
5808	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5809	  LD="${LD-ld} -64"
5810	fi
5811	;;
5812      esac
5813      ;;
5814    esac
5815  fi
5816  rm -rf conftest*
5817  ;;
5818esac
5819
5820need_locks="$enable_libtool_lock"
5821
5822
5823  case $host_os in
5824    rhapsody* | darwin*)
5825    if test -n "$ac_tool_prefix"; then
5826  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5827set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5828{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5829$as_echo_n "checking for $ac_word... " >&6; }
5830if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5831  $as_echo_n "(cached) " >&6
5832else
5833  if test -n "$DSYMUTIL"; then
5834  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5835else
5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839  IFS=$as_save_IFS
5840  test -z "$as_dir" && as_dir=.
5841  for ac_exec_ext in '' $ac_executable_extensions; do
5842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5844    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845    break 2
5846  fi
5847done
5848done
5849IFS=$as_save_IFS
5850
5851fi
5852fi
5853DSYMUTIL=$ac_cv_prog_DSYMUTIL
5854if test -n "$DSYMUTIL"; then
5855  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5856$as_echo "$DSYMUTIL" >&6; }
5857else
5858  { $as_echo "$as_me:$LINENO: result: no" >&5
5859$as_echo "no" >&6; }
5860fi
5861
5862
5863fi
5864if test -z "$ac_cv_prog_DSYMUTIL"; then
5865  ac_ct_DSYMUTIL=$DSYMUTIL
5866  # Extract the first word of "dsymutil", so it can be a program name with args.
5867set dummy dsymutil; ac_word=$2
5868{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5869$as_echo_n "checking for $ac_word... " >&6; }
5870if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5871  $as_echo_n "(cached) " >&6
5872else
5873  if test -n "$ac_ct_DSYMUTIL"; then
5874  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879  IFS=$as_save_IFS
5880  test -z "$as_dir" && as_dir=.
5881  for ac_exec_ext in '' $ac_executable_extensions; do
5882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5884    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885    break 2
5886  fi
5887done
5888done
5889IFS=$as_save_IFS
5890
5891fi
5892fi
5893ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5894if test -n "$ac_ct_DSYMUTIL"; then
5895  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5896$as_echo "$ac_ct_DSYMUTIL" >&6; }
5897else
5898  { $as_echo "$as_me:$LINENO: result: no" >&5
5899$as_echo "no" >&6; }
5900fi
5901
5902  if test "x$ac_ct_DSYMUTIL" = x; then
5903    DSYMUTIL=":"
5904  else
5905    case $cross_compiling:$ac_tool_warned in
5906yes:)
5907{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909ac_tool_warned=yes ;;
5910esac
5911    DSYMUTIL=$ac_ct_DSYMUTIL
5912  fi
5913else
5914  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5915fi
5916
5917    if test -n "$ac_tool_prefix"; then
5918  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5919set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5920{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5921$as_echo_n "checking for $ac_word... " >&6; }
5922if test "${ac_cv_prog_NMEDIT+set}" = set; then
5923  $as_echo_n "(cached) " >&6
5924else
5925  if test -n "$NMEDIT"; then
5926  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931  IFS=$as_save_IFS
5932  test -z "$as_dir" && as_dir=.
5933  for ac_exec_ext in '' $ac_executable_extensions; do
5934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5936    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937    break 2
5938  fi
5939done
5940done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945NMEDIT=$ac_cv_prog_NMEDIT
5946if test -n "$NMEDIT"; then
5947  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5948$as_echo "$NMEDIT" >&6; }
5949else
5950  { $as_echo "$as_me:$LINENO: result: no" >&5
5951$as_echo "no" >&6; }
5952fi
5953
5954
5955fi
5956if test -z "$ac_cv_prog_NMEDIT"; then
5957  ac_ct_NMEDIT=$NMEDIT
5958  # Extract the first word of "nmedit", so it can be a program name with args.
5959set dummy nmedit; ac_word=$2
5960{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5961$as_echo_n "checking for $ac_word... " >&6; }
5962if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5963  $as_echo_n "(cached) " >&6
5964else
5965  if test -n "$ac_ct_NMEDIT"; then
5966  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5967else
5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971  IFS=$as_save_IFS
5972  test -z "$as_dir" && as_dir=.
5973  for ac_exec_ext in '' $ac_executable_extensions; do
5974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5976    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977    break 2
5978  fi
5979done
5980done
5981IFS=$as_save_IFS
5982
5983fi
5984fi
5985ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5986if test -n "$ac_ct_NMEDIT"; then
5987  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5988$as_echo "$ac_ct_NMEDIT" >&6; }
5989else
5990  { $as_echo "$as_me:$LINENO: result: no" >&5
5991$as_echo "no" >&6; }
5992fi
5993
5994  if test "x$ac_ct_NMEDIT" = x; then
5995    NMEDIT=":"
5996  else
5997    case $cross_compiling:$ac_tool_warned in
5998yes:)
5999{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001ac_tool_warned=yes ;;
6002esac
6003    NMEDIT=$ac_ct_NMEDIT
6004  fi
6005else
6006  NMEDIT="$ac_cv_prog_NMEDIT"
6007fi
6008
6009    if test -n "$ac_tool_prefix"; then
6010  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6011set dummy ${ac_tool_prefix}lipo; ac_word=$2
6012{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6013$as_echo_n "checking for $ac_word... " >&6; }
6014if test "${ac_cv_prog_LIPO+set}" = set; then
6015  $as_echo_n "(cached) " >&6
6016else
6017  if test -n "$LIPO"; then
6018  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023  IFS=$as_save_IFS
6024  test -z "$as_dir" && as_dir=.
6025  for ac_exec_ext in '' $ac_executable_extensions; do
6026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6028    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029    break 2
6030  fi
6031done
6032done
6033IFS=$as_save_IFS
6034
6035fi
6036fi
6037LIPO=$ac_cv_prog_LIPO
6038if test -n "$LIPO"; then
6039  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6040$as_echo "$LIPO" >&6; }
6041else
6042  { $as_echo "$as_me:$LINENO: result: no" >&5
6043$as_echo "no" >&6; }
6044fi
6045
6046
6047fi
6048if test -z "$ac_cv_prog_LIPO"; then
6049  ac_ct_LIPO=$LIPO
6050  # Extract the first word of "lipo", so it can be a program name with args.
6051set dummy lipo; ac_word=$2
6052{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
6054if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6055  $as_echo_n "(cached) " >&6
6056else
6057  if test -n "$ac_ct_LIPO"; then
6058  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063  IFS=$as_save_IFS
6064  test -z "$as_dir" && as_dir=.
6065  for ac_exec_ext in '' $ac_executable_extensions; do
6066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067    ac_cv_prog_ac_ct_LIPO="lipo"
6068    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069    break 2
6070  fi
6071done
6072done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6078if test -n "$ac_ct_LIPO"; then
6079  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6080$as_echo "$ac_ct_LIPO" >&6; }
6081else
6082  { $as_echo "$as_me:$LINENO: result: no" >&5
6083$as_echo "no" >&6; }
6084fi
6085
6086  if test "x$ac_ct_LIPO" = x; then
6087    LIPO=":"
6088  else
6089    case $cross_compiling:$ac_tool_warned in
6090yes:)
6091{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093ac_tool_warned=yes ;;
6094esac
6095    LIPO=$ac_ct_LIPO
6096  fi
6097else
6098  LIPO="$ac_cv_prog_LIPO"
6099fi
6100
6101    if test -n "$ac_tool_prefix"; then
6102  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6103set dummy ${ac_tool_prefix}otool; ac_word=$2
6104{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if test "${ac_cv_prog_OTOOL+set}" = set; then
6107  $as_echo_n "(cached) " >&6
6108else
6109  if test -n "$OTOOL"; then
6110  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115  IFS=$as_save_IFS
6116  test -z "$as_dir" && as_dir=.
6117  for ac_exec_ext in '' $ac_executable_extensions; do
6118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6120    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121    break 2
6122  fi
6123done
6124done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129OTOOL=$ac_cv_prog_OTOOL
6130if test -n "$OTOOL"; then
6131  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6132$as_echo "$OTOOL" >&6; }
6133else
6134  { $as_echo "$as_me:$LINENO: result: no" >&5
6135$as_echo "no" >&6; }
6136fi
6137
6138
6139fi
6140if test -z "$ac_cv_prog_OTOOL"; then
6141  ac_ct_OTOOL=$OTOOL
6142  # Extract the first word of "otool", so it can be a program name with args.
6143set dummy otool; ac_word=$2
6144{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6145$as_echo_n "checking for $ac_word... " >&6; }
6146if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6147  $as_echo_n "(cached) " >&6
6148else
6149  if test -n "$ac_ct_OTOOL"; then
6150  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6151else
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155  IFS=$as_save_IFS
6156  test -z "$as_dir" && as_dir=.
6157  for ac_exec_ext in '' $ac_executable_extensions; do
6158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159    ac_cv_prog_ac_ct_OTOOL="otool"
6160    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161    break 2
6162  fi
6163done
6164done
6165IFS=$as_save_IFS
6166
6167fi
6168fi
6169ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6170if test -n "$ac_ct_OTOOL"; then
6171  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6172$as_echo "$ac_ct_OTOOL" >&6; }
6173else
6174  { $as_echo "$as_me:$LINENO: result: no" >&5
6175$as_echo "no" >&6; }
6176fi
6177
6178  if test "x$ac_ct_OTOOL" = x; then
6179    OTOOL=":"
6180  else
6181    case $cross_compiling:$ac_tool_warned in
6182yes:)
6183{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185ac_tool_warned=yes ;;
6186esac
6187    OTOOL=$ac_ct_OTOOL
6188  fi
6189else
6190  OTOOL="$ac_cv_prog_OTOOL"
6191fi
6192
6193    if test -n "$ac_tool_prefix"; then
6194  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6195set dummy ${ac_tool_prefix}otool64; ac_word=$2
6196{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6197$as_echo_n "checking for $ac_word... " >&6; }
6198if test "${ac_cv_prog_OTOOL64+set}" = set; then
6199  $as_echo_n "(cached) " >&6
6200else
6201  if test -n "$OTOOL64"; then
6202  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207  IFS=$as_save_IFS
6208  test -z "$as_dir" && as_dir=.
6209  for ac_exec_ext in '' $ac_executable_extensions; do
6210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6212    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213    break 2
6214  fi
6215done
6216done
6217IFS=$as_save_IFS
6218
6219fi
6220fi
6221OTOOL64=$ac_cv_prog_OTOOL64
6222if test -n "$OTOOL64"; then
6223  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6224$as_echo "$OTOOL64" >&6; }
6225else
6226  { $as_echo "$as_me:$LINENO: result: no" >&5
6227$as_echo "no" >&6; }
6228fi
6229
6230
6231fi
6232if test -z "$ac_cv_prog_OTOOL64"; then
6233  ac_ct_OTOOL64=$OTOOL64
6234  # Extract the first word of "otool64", so it can be a program name with args.
6235set dummy otool64; ac_word=$2
6236{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6237$as_echo_n "checking for $ac_word... " >&6; }
6238if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6239  $as_echo_n "(cached) " >&6
6240else
6241  if test -n "$ac_ct_OTOOL64"; then
6242  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6243else
6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247  IFS=$as_save_IFS
6248  test -z "$as_dir" && as_dir=.
6249  for ac_exec_ext in '' $ac_executable_extensions; do
6250  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251    ac_cv_prog_ac_ct_OTOOL64="otool64"
6252    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253    break 2
6254  fi
6255done
6256done
6257IFS=$as_save_IFS
6258
6259fi
6260fi
6261ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6262if test -n "$ac_ct_OTOOL64"; then
6263  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6264$as_echo "$ac_ct_OTOOL64" >&6; }
6265else
6266  { $as_echo "$as_me:$LINENO: result: no" >&5
6267$as_echo "no" >&6; }
6268fi
6269
6270  if test "x$ac_ct_OTOOL64" = x; then
6271    OTOOL64=":"
6272  else
6273    case $cross_compiling:$ac_tool_warned in
6274yes:)
6275{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277ac_tool_warned=yes ;;
6278esac
6279    OTOOL64=$ac_ct_OTOOL64
6280  fi
6281else
6282  OTOOL64="$ac_cv_prog_OTOOL64"
6283fi
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6312$as_echo_n "checking for -single_module linker flag... " >&6; }
6313if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6314  $as_echo_n "(cached) " >&6
6315else
6316  lt_cv_apple_cc_single_mod=no
6317      if test -z "${LT_MULTI_MODULE}"; then
6318	# By default we will add the -single_module flag. You can override
6319	# by either setting the environment variable LT_MULTI_MODULE
6320	# non-empty at configure time, or by adding -multi_module to the
6321	# link flags.
6322	rm -rf libconftest.dylib*
6323	echo "int foo(void){return 1;}" > conftest.c
6324	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6325-dynamiclib -Wl,-single_module conftest.c" >&5
6326	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6327	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6328        _lt_result=$?
6329	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6330	  lt_cv_apple_cc_single_mod=yes
6331	else
6332	  cat conftest.err >&5
6333	fi
6334	rm -rf libconftest.dylib*
6335	rm -f conftest.*
6336      fi
6337fi
6338{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6339$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6340    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6341$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6342if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6343  $as_echo_n "(cached) " >&6
6344else
6345  lt_cv_ld_exported_symbols_list=no
6346      save_LDFLAGS=$LDFLAGS
6347      echo "_main" > conftest.sym
6348      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6349      cat >conftest.$ac_ext <<_ACEOF
6350/* confdefs.h.  */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h.  */
6355
6356int
6357main ()
6358{
6359
6360  ;
6361  return 0;
6362}
6363_ACEOF
6364rm -f conftest.$ac_objext conftest$ac_exeext
6365if { (ac_try="$ac_link"
6366case "(($ac_try" in
6367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368  *) ac_try_echo=$ac_try;;
6369esac
6370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6371$as_echo "$ac_try_echo") >&5
6372  (eval "$ac_link") 2>conftest.er1
6373  ac_status=$?
6374  grep -v '^ *+' conftest.er1 >conftest.err
6375  rm -f conftest.er1
6376  cat conftest.err >&5
6377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378  (exit $ac_status); } && {
6379	 test -z "$ac_c_werror_flag" ||
6380	 test ! -s conftest.err
6381       } && test -s conftest$ac_exeext && {
6382	 test "$cross_compiling" = yes ||
6383	 $as_test_x conftest$ac_exeext
6384       }; then
6385  lt_cv_ld_exported_symbols_list=yes
6386else
6387  $as_echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390	lt_cv_ld_exported_symbols_list=no
6391fi
6392
6393rm -rf conftest.dSYM
6394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6395      conftest$ac_exeext conftest.$ac_ext
6396	LDFLAGS="$save_LDFLAGS"
6397
6398fi
6399{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6400$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6401    case $host_os in
6402    rhapsody* | darwin1.[012])
6403      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6404    darwin1.*)
6405      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6406    darwin*) # darwin 5.x on
6407      # if running on 10.5 or later, the deployment target defaults
6408      # to the OS version, if on x86, and 10.4, the deployment
6409      # target defaults to 10.4. Don't you love it?
6410      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6411	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6412	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6413	10.[012]*)
6414	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6415	10.*)
6416	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6417      esac
6418    ;;
6419  esac
6420    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6421      _lt_dar_single_mod='$single_module'
6422    fi
6423    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6424      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6425    else
6426      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6427    fi
6428    if test "$DSYMUTIL" != ":"; then
6429      _lt_dsymutil='~$DSYMUTIL $lib || :'
6430    else
6431      _lt_dsymutil=
6432    fi
6433    ;;
6434  esac
6435
6436ac_ext=c
6437ac_cpp='$CPP $CPPFLAGS'
6438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6442$as_echo_n "checking how to run the C preprocessor... " >&6; }
6443# On Suns, sometimes $CPP names a directory.
6444if test -n "$CPP" && test -d "$CPP"; then
6445  CPP=
6446fi
6447if test -z "$CPP"; then
6448  if test "${ac_cv_prog_CPP+set}" = set; then
6449  $as_echo_n "(cached) " >&6
6450else
6451      # Double quotes because CPP needs to be expanded
6452    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6453    do
6454      ac_preproc_ok=false
6455for ac_c_preproc_warn_flag in '' yes
6456do
6457  # Use a header file that comes with gcc, so configuring glibc
6458  # with a fresh cross-compiler works.
6459  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6460  # <limits.h> exists even on freestanding compilers.
6461  # On the NeXT, cc -E runs the code through the compiler's parser,
6462  # not just through cpp. "Syntax error" is here to catch this case.
6463  cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h.  */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h.  */
6469#ifdef __STDC__
6470# include <limits.h>
6471#else
6472# include <assert.h>
6473#endif
6474		     Syntax error
6475_ACEOF
6476if { (ac_try="$ac_cpp conftest.$ac_ext"
6477case "(($ac_try" in
6478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479  *) ac_try_echo=$ac_try;;
6480esac
6481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6482$as_echo "$ac_try_echo") >&5
6483  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6484  ac_status=$?
6485  grep -v '^ *+' conftest.er1 >conftest.err
6486  rm -f conftest.er1
6487  cat conftest.err >&5
6488  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489  (exit $ac_status); } >/dev/null && {
6490	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6491	 test ! -s conftest.err
6492       }; then
6493  :
6494else
6495  $as_echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
6498  # Broken: fails on valid input.
6499continue
6500fi
6501
6502rm -f conftest.err conftest.$ac_ext
6503
6504  # OK, works on sane cases.  Now check whether nonexistent headers
6505  # can be detected and how.
6506  cat >conftest.$ac_ext <<_ACEOF
6507/* confdefs.h.  */
6508_ACEOF
6509cat confdefs.h >>conftest.$ac_ext
6510cat >>conftest.$ac_ext <<_ACEOF
6511/* end confdefs.h.  */
6512#include <ac_nonexistent.h>
6513_ACEOF
6514if { (ac_try="$ac_cpp conftest.$ac_ext"
6515case "(($ac_try" in
6516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517  *) ac_try_echo=$ac_try;;
6518esac
6519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6520$as_echo "$ac_try_echo") >&5
6521  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6522  ac_status=$?
6523  grep -v '^ *+' conftest.er1 >conftest.err
6524  rm -f conftest.er1
6525  cat conftest.err >&5
6526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); } >/dev/null && {
6528	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6529	 test ! -s conftest.err
6530       }; then
6531  # Broken: success on invalid input.
6532continue
6533else
6534  $as_echo "$as_me: failed program was:" >&5
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
6537  # Passes both tests.
6538ac_preproc_ok=:
6539break
6540fi
6541
6542rm -f conftest.err conftest.$ac_ext
6543
6544done
6545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6546rm -f conftest.err conftest.$ac_ext
6547if $ac_preproc_ok; then
6548  break
6549fi
6550
6551    done
6552    ac_cv_prog_CPP=$CPP
6553
6554fi
6555  CPP=$ac_cv_prog_CPP
6556else
6557  ac_cv_prog_CPP=$CPP
6558fi
6559{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6560$as_echo "$CPP" >&6; }
6561ac_preproc_ok=false
6562for ac_c_preproc_warn_flag in '' yes
6563do
6564  # Use a header file that comes with gcc, so configuring glibc
6565  # with a fresh cross-compiler works.
6566  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6567  # <limits.h> exists even on freestanding compilers.
6568  # On the NeXT, cc -E runs the code through the compiler's parser,
6569  # not just through cpp. "Syntax error" is here to catch this case.
6570  cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h.  */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h.  */
6576#ifdef __STDC__
6577# include <limits.h>
6578#else
6579# include <assert.h>
6580#endif
6581		     Syntax error
6582_ACEOF
6583if { (ac_try="$ac_cpp conftest.$ac_ext"
6584case "(($ac_try" in
6585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586  *) ac_try_echo=$ac_try;;
6587esac
6588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6589$as_echo "$ac_try_echo") >&5
6590  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6591  ac_status=$?
6592  grep -v '^ *+' conftest.er1 >conftest.err
6593  rm -f conftest.er1
6594  cat conftest.err >&5
6595  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596  (exit $ac_status); } >/dev/null && {
6597	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6598	 test ! -s conftest.err
6599       }; then
6600  :
6601else
6602  $as_echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605  # Broken: fails on valid input.
6606continue
6607fi
6608
6609rm -f conftest.err conftest.$ac_ext
6610
6611  # OK, works on sane cases.  Now check whether nonexistent headers
6612  # can be detected and how.
6613  cat >conftest.$ac_ext <<_ACEOF
6614/* confdefs.h.  */
6615_ACEOF
6616cat confdefs.h >>conftest.$ac_ext
6617cat >>conftest.$ac_ext <<_ACEOF
6618/* end confdefs.h.  */
6619#include <ac_nonexistent.h>
6620_ACEOF
6621if { (ac_try="$ac_cpp conftest.$ac_ext"
6622case "(($ac_try" in
6623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624  *) ac_try_echo=$ac_try;;
6625esac
6626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6627$as_echo "$ac_try_echo") >&5
6628  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6629  ac_status=$?
6630  grep -v '^ *+' conftest.er1 >conftest.err
6631  rm -f conftest.er1
6632  cat conftest.err >&5
6633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); } >/dev/null && {
6635	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6636	 test ! -s conftest.err
6637       }; then
6638  # Broken: success on invalid input.
6639continue
6640else
6641  $as_echo "$as_me: failed program was:" >&5
6642sed 's/^/| /' conftest.$ac_ext >&5
6643
6644  # Passes both tests.
6645ac_preproc_ok=:
6646break
6647fi
6648
6649rm -f conftest.err conftest.$ac_ext
6650
6651done
6652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6653rm -f conftest.err conftest.$ac_ext
6654if $ac_preproc_ok; then
6655  :
6656else
6657  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6659{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6660See \`config.log' for more details." >&5
6661$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6662See \`config.log' for more details." >&2;}
6663   { (exit 1); exit 1; }; }; }
6664fi
6665
6666ac_ext=c
6667ac_cpp='$CPP $CPPFLAGS'
6668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670ac_compiler_gnu=$ac_cv_c_compiler_gnu
6671
6672
6673{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6674$as_echo_n "checking for ANSI C header files... " >&6; }
6675if test "${ac_cv_header_stdc+set}" = set; then
6676  $as_echo_n "(cached) " >&6
6677else
6678  cat >conftest.$ac_ext <<_ACEOF
6679/* confdefs.h.  */
6680_ACEOF
6681cat confdefs.h >>conftest.$ac_ext
6682cat >>conftest.$ac_ext <<_ACEOF
6683/* end confdefs.h.  */
6684#include <stdlib.h>
6685#include <stdarg.h>
6686#include <string.h>
6687#include <float.h>
6688
6689int
6690main ()
6691{
6692
6693  ;
6694  return 0;
6695}
6696_ACEOF
6697rm -f conftest.$ac_objext
6698if { (ac_try="$ac_compile"
6699case "(($ac_try" in
6700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701  *) ac_try_echo=$ac_try;;
6702esac
6703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6704$as_echo "$ac_try_echo") >&5
6705  (eval "$ac_compile") 2>conftest.er1
6706  ac_status=$?
6707  grep -v '^ *+' conftest.er1 >conftest.err
6708  rm -f conftest.er1
6709  cat conftest.err >&5
6710  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711  (exit $ac_status); } && {
6712	 test -z "$ac_c_werror_flag" ||
6713	 test ! -s conftest.err
6714       } && test -s conftest.$ac_objext; then
6715  ac_cv_header_stdc=yes
6716else
6717  $as_echo "$as_me: failed program was:" >&5
6718sed 's/^/| /' conftest.$ac_ext >&5
6719
6720	ac_cv_header_stdc=no
6721fi
6722
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724
6725if test $ac_cv_header_stdc = yes; then
6726  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6727  cat >conftest.$ac_ext <<_ACEOF
6728/* confdefs.h.  */
6729_ACEOF
6730cat confdefs.h >>conftest.$ac_ext
6731cat >>conftest.$ac_ext <<_ACEOF
6732/* end confdefs.h.  */
6733#include <string.h>
6734
6735_ACEOF
6736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6737  $EGREP "memchr" >/dev/null 2>&1; then
6738  :
6739else
6740  ac_cv_header_stdc=no
6741fi
6742rm -f conftest*
6743
6744fi
6745
6746if test $ac_cv_header_stdc = yes; then
6747  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6748  cat >conftest.$ac_ext <<_ACEOF
6749/* confdefs.h.  */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h.  */
6754#include <stdlib.h>
6755
6756_ACEOF
6757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6758  $EGREP "free" >/dev/null 2>&1; then
6759  :
6760else
6761  ac_cv_header_stdc=no
6762fi
6763rm -f conftest*
6764
6765fi
6766
6767if test $ac_cv_header_stdc = yes; then
6768  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6769  if test "$cross_compiling" = yes; then
6770  :
6771else
6772  cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h.  */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h.  */
6778#include <ctype.h>
6779#include <stdlib.h>
6780#if ((' ' & 0x0FF) == 0x020)
6781# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6782# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6783#else
6784# define ISLOWER(c) \
6785		   (('a' <= (c) && (c) <= 'i') \
6786		     || ('j' <= (c) && (c) <= 'r') \
6787		     || ('s' <= (c) && (c) <= 'z'))
6788# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6789#endif
6790
6791#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6792int
6793main ()
6794{
6795  int i;
6796  for (i = 0; i < 256; i++)
6797    if (XOR (islower (i), ISLOWER (i))
6798	|| toupper (i) != TOUPPER (i))
6799      return 2;
6800  return 0;
6801}
6802_ACEOF
6803rm -f conftest$ac_exeext
6804if { (ac_try="$ac_link"
6805case "(($ac_try" in
6806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807  *) ac_try_echo=$ac_try;;
6808esac
6809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6810$as_echo "$ac_try_echo") >&5
6811  (eval "$ac_link") 2>&5
6812  ac_status=$?
6813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6815  { (case "(($ac_try" in
6816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817  *) ac_try_echo=$ac_try;;
6818esac
6819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6820$as_echo "$ac_try_echo") >&5
6821  (eval "$ac_try") 2>&5
6822  ac_status=$?
6823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); }; }; then
6825  :
6826else
6827  $as_echo "$as_me: program exited with status $ac_status" >&5
6828$as_echo "$as_me: failed program was:" >&5
6829sed 's/^/| /' conftest.$ac_ext >&5
6830
6831( exit $ac_status )
6832ac_cv_header_stdc=no
6833fi
6834rm -rf conftest.dSYM
6835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6836fi
6837
6838
6839fi
6840fi
6841{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6842$as_echo "$ac_cv_header_stdc" >&6; }
6843if test $ac_cv_header_stdc = yes; then
6844
6845cat >>confdefs.h <<\_ACEOF
6846#define STDC_HEADERS 1
6847_ACEOF
6848
6849fi
6850
6851# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6862		  inttypes.h stdint.h unistd.h
6863do
6864as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6865{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6866$as_echo_n "checking for $ac_header... " >&6; }
6867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6868  $as_echo_n "(cached) " >&6
6869else
6870  cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h.  */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h.  */
6876$ac_includes_default
6877
6878#include <$ac_header>
6879_ACEOF
6880rm -f conftest.$ac_objext
6881if { (ac_try="$ac_compile"
6882case "(($ac_try" in
6883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884  *) ac_try_echo=$ac_try;;
6885esac
6886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887$as_echo "$ac_try_echo") >&5
6888  (eval "$ac_compile") 2>conftest.er1
6889  ac_status=$?
6890  grep -v '^ *+' conftest.er1 >conftest.err
6891  rm -f conftest.er1
6892  cat conftest.err >&5
6893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894  (exit $ac_status); } && {
6895	 test -z "$ac_c_werror_flag" ||
6896	 test ! -s conftest.err
6897       } && test -s conftest.$ac_objext; then
6898  eval "$as_ac_Header=yes"
6899else
6900  $as_echo "$as_me: failed program was:" >&5
6901sed 's/^/| /' conftest.$ac_ext >&5
6902
6903	eval "$as_ac_Header=no"
6904fi
6905
6906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907fi
6908ac_res=`eval 'as_val=${'$as_ac_Header'}
6909		 $as_echo "$as_val"'`
6910	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6911$as_echo "$ac_res" >&6; }
6912as_val=`eval 'as_val=${'$as_ac_Header'}
6913		 $as_echo "$as_val"'`
6914   if test "x$as_val" = x""yes; then
6915  cat >>confdefs.h <<_ACEOF
6916#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6917_ACEOF
6918
6919fi
6920
6921done
6922
6923
6924
6925for ac_header in dlfcn.h
6926do
6927as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6928{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6929$as_echo_n "checking for $ac_header... " >&6; }
6930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6931  $as_echo_n "(cached) " >&6
6932else
6933  cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h.  */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h.  */
6939$ac_includes_default
6940
6941#include <$ac_header>
6942_ACEOF
6943rm -f conftest.$ac_objext
6944if { (ac_try="$ac_compile"
6945case "(($ac_try" in
6946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947  *) ac_try_echo=$ac_try;;
6948esac
6949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6950$as_echo "$ac_try_echo") >&5
6951  (eval "$ac_compile") 2>conftest.er1
6952  ac_status=$?
6953  grep -v '^ *+' conftest.er1 >conftest.err
6954  rm -f conftest.er1
6955  cat conftest.err >&5
6956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957  (exit $ac_status); } && {
6958	 test -z "$ac_c_werror_flag" ||
6959	 test ! -s conftest.err
6960       } && test -s conftest.$ac_objext; then
6961  eval "$as_ac_Header=yes"
6962else
6963  $as_echo "$as_me: failed program was:" >&5
6964sed 's/^/| /' conftest.$ac_ext >&5
6965
6966	eval "$as_ac_Header=no"
6967fi
6968
6969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970fi
6971ac_res=`eval 'as_val=${'$as_ac_Header'}
6972		 $as_echo "$as_val"'`
6973	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6974$as_echo "$ac_res" >&6; }
6975as_val=`eval 'as_val=${'$as_ac_Header'}
6976		 $as_echo "$as_val"'`
6977   if test "x$as_val" = x""yes; then
6978  cat >>confdefs.h <<_ACEOF
6979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6980_ACEOF
6981
6982fi
6983
6984done
6985
6986
6987
6988# Set options
6989
6990
6991
6992        enable_dlopen=no
6993
6994
6995  enable_win32_dll=no
6996
6997
6998
6999
7000
7001# Check whether --with-pic was given.
7002if test "${with_pic+set}" = set; then
7003  withval=$with_pic; pic_mode="$withval"
7004else
7005  pic_mode=default
7006fi
7007
7008
7009test -z "$pic_mode" && pic_mode=default
7010
7011
7012
7013
7014
7015
7016
7017  # Check whether --enable-fast-install was given.
7018if test "${enable_fast_install+set}" = set; then
7019  enableval=$enable_fast_install; p=${PACKAGE-default}
7020    case $enableval in
7021    yes) enable_fast_install=yes ;;
7022    no) enable_fast_install=no ;;
7023    *)
7024      enable_fast_install=no
7025      # Look at the argument we got.  We use all the common list separators.
7026      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7027      for pkg in $enableval; do
7028	IFS="$lt_save_ifs"
7029	if test "X$pkg" = "X$p"; then
7030	  enable_fast_install=yes
7031	fi
7032      done
7033      IFS="$lt_save_ifs"
7034      ;;
7035    esac
7036else
7037  enable_fast_install=yes
7038fi
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050# This can be used to rebuild libtool when needed
7051LIBTOOL_DEPS="$ltmain"
7052
7053# Always use our own libtool.
7054LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080test -z "$LN_S" && LN_S="ln -s"
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095if test -n "${ZSH_VERSION+set}" ; then
7096   setopt NO_GLOB_SUBST
7097fi
7098
7099{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7100$as_echo_n "checking for objdir... " >&6; }
7101if test "${lt_cv_objdir+set}" = set; then
7102  $as_echo_n "(cached) " >&6
7103else
7104  rm -f .libs 2>/dev/null
7105mkdir .libs 2>/dev/null
7106if test -d .libs; then
7107  lt_cv_objdir=.libs
7108else
7109  # MS-DOS does not allow filenames that begin with a dot.
7110  lt_cv_objdir=_libs
7111fi
7112rmdir .libs 2>/dev/null
7113fi
7114{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7115$as_echo "$lt_cv_objdir" >&6; }
7116objdir=$lt_cv_objdir
7117
7118
7119
7120
7121
7122cat >>confdefs.h <<_ACEOF
7123#define LT_OBJDIR "$lt_cv_objdir/"
7124_ACEOF
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142case $host_os in
7143aix3*)
7144  # AIX sometimes has problems with the GCC collect2 program.  For some
7145  # reason, if we set the COLLECT_NAMES environment variable, the problems
7146  # vanish in a puff of smoke.
7147  if test "X${COLLECT_NAMES+set}" != Xset; then
7148    COLLECT_NAMES=
7149    export COLLECT_NAMES
7150  fi
7151  ;;
7152esac
7153
7154# Sed substitution that helps us do robust quoting.  It backslashifies
7155# metacharacters that are still active within double-quoted strings.
7156sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7157
7158# Same as above, but do not quote variable references.
7159double_quote_subst='s/\(["`\\]\)/\\\1/g'
7160
7161# Sed substitution to delay expansion of an escaped shell variable in a
7162# double_quote_subst'ed string.
7163delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7164
7165# Sed substitution to delay expansion of an escaped single quote.
7166delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7167
7168# Sed substitution to avoid accidental globbing in evaled expressions
7169no_glob_subst='s/\*/\\\*/g'
7170
7171# Global variables:
7172ofile=libtool
7173can_build_shared=yes
7174
7175# All known linkers require a `.a' archive for static linking (except MSVC,
7176# which needs '.lib').
7177libext=a
7178
7179with_gnu_ld="$lt_cv_prog_gnu_ld"
7180
7181old_CC="$CC"
7182old_CFLAGS="$CFLAGS"
7183
7184# Set sane defaults for various variables
7185test -z "$CC" && CC=cc
7186test -z "$LTCC" && LTCC=$CC
7187test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7188test -z "$LD" && LD=ld
7189test -z "$ac_objext" && ac_objext=o
7190
7191for cc_temp in $compiler""; do
7192  case $cc_temp in
7193    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7194    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7195    \-*) ;;
7196    *) break;;
7197  esac
7198done
7199cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7200
7201
7202# Only perform the check for file, if the check method requires it
7203test -z "$MAGIC_CMD" && MAGIC_CMD=file
7204case $deplibs_check_method in
7205file_magic*)
7206  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7207    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7208$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7209if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7210  $as_echo_n "(cached) " >&6
7211else
7212  case $MAGIC_CMD in
7213[\\/*] |  ?:[\\/]*)
7214  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7215  ;;
7216*)
7217  lt_save_MAGIC_CMD="$MAGIC_CMD"
7218  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7219  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7220  for ac_dir in $ac_dummy; do
7221    IFS="$lt_save_ifs"
7222    test -z "$ac_dir" && ac_dir=.
7223    if test -f $ac_dir/${ac_tool_prefix}file; then
7224      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7225      if test -n "$file_magic_test_file"; then
7226	case $deplibs_check_method in
7227	"file_magic "*)
7228	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7229	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7230	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7231	    $EGREP "$file_magic_regex" > /dev/null; then
7232	    :
7233	  else
7234	    cat <<_LT_EOF 1>&2
7235
7236*** Warning: the command libtool uses to detect shared libraries,
7237*** $file_magic_cmd, produces output that libtool cannot recognize.
7238*** The result is that libtool may fail to recognize shared libraries
7239*** as such.  This will affect the creation of libtool libraries that
7240*** depend on shared libraries, but programs linked with such libtool
7241*** libraries will work regardless of this problem.  Nevertheless, you
7242*** may want to report the problem to your system manager and/or to
7243*** bug-libtool@gnu.org
7244
7245_LT_EOF
7246	  fi ;;
7247	esac
7248      fi
7249      break
7250    fi
7251  done
7252  IFS="$lt_save_ifs"
7253  MAGIC_CMD="$lt_save_MAGIC_CMD"
7254  ;;
7255esac
7256fi
7257
7258MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259if test -n "$MAGIC_CMD"; then
7260  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7261$as_echo "$MAGIC_CMD" >&6; }
7262else
7263  { $as_echo "$as_me:$LINENO: result: no" >&5
7264$as_echo "no" >&6; }
7265fi
7266
7267
7268
7269
7270
7271if test -z "$lt_cv_path_MAGIC_CMD"; then
7272  if test -n "$ac_tool_prefix"; then
7273    { $as_echo "$as_me:$LINENO: checking for file" >&5
7274$as_echo_n "checking for file... " >&6; }
7275if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7276  $as_echo_n "(cached) " >&6
7277else
7278  case $MAGIC_CMD in
7279[\\/*] |  ?:[\\/]*)
7280  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7281  ;;
7282*)
7283  lt_save_MAGIC_CMD="$MAGIC_CMD"
7284  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7285  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7286  for ac_dir in $ac_dummy; do
7287    IFS="$lt_save_ifs"
7288    test -z "$ac_dir" && ac_dir=.
7289    if test -f $ac_dir/file; then
7290      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7291      if test -n "$file_magic_test_file"; then
7292	case $deplibs_check_method in
7293	"file_magic "*)
7294	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7295	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7296	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7297	    $EGREP "$file_magic_regex" > /dev/null; then
7298	    :
7299	  else
7300	    cat <<_LT_EOF 1>&2
7301
7302*** Warning: the command libtool uses to detect shared libraries,
7303*** $file_magic_cmd, produces output that libtool cannot recognize.
7304*** The result is that libtool may fail to recognize shared libraries
7305*** as such.  This will affect the creation of libtool libraries that
7306*** depend on shared libraries, but programs linked with such libtool
7307*** libraries will work regardless of this problem.  Nevertheless, you
7308*** may want to report the problem to your system manager and/or to
7309*** bug-libtool@gnu.org
7310
7311_LT_EOF
7312	  fi ;;
7313	esac
7314      fi
7315      break
7316    fi
7317  done
7318  IFS="$lt_save_ifs"
7319  MAGIC_CMD="$lt_save_MAGIC_CMD"
7320  ;;
7321esac
7322fi
7323
7324MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7325if test -n "$MAGIC_CMD"; then
7326  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7327$as_echo "$MAGIC_CMD" >&6; }
7328else
7329  { $as_echo "$as_me:$LINENO: result: no" >&5
7330$as_echo "no" >&6; }
7331fi
7332
7333
7334  else
7335    MAGIC_CMD=:
7336  fi
7337fi
7338
7339  fi
7340  ;;
7341esac
7342
7343# Use C for the default configuration in the libtool script
7344
7345lt_save_CC="$CC"
7346ac_ext=c
7347ac_cpp='$CPP $CPPFLAGS'
7348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7350ac_compiler_gnu=$ac_cv_c_compiler_gnu
7351
7352
7353# Source file extension for C test sources.
7354ac_ext=c
7355
7356# Object file extension for compiled C test sources.
7357objext=o
7358objext=$objext
7359
7360# Code to be used in simple compile tests
7361lt_simple_compile_test_code="int some_variable = 0;"
7362
7363# Code to be used in simple link tests
7364lt_simple_link_test_code='int main(){return(0);}'
7365
7366
7367
7368
7369
7370
7371
7372# If no C compiler was specified, use CC.
7373LTCC=${LTCC-"$CC"}
7374
7375# If no C compiler flags were specified, use CFLAGS.
7376LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7377
7378# Allow CC to be a program name with arguments.
7379compiler=$CC
7380
7381# Save the default compiler, since it gets overwritten when the other
7382# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7383compiler_DEFAULT=$CC
7384
7385# save warnings/boilerplate of simple test code
7386ac_outfile=conftest.$ac_objext
7387echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7388eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7389_lt_compiler_boilerplate=`cat conftest.err`
7390$RM conftest*
7391
7392ac_outfile=conftest.$ac_objext
7393echo "$lt_simple_link_test_code" >conftest.$ac_ext
7394eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7395_lt_linker_boilerplate=`cat conftest.err`
7396$RM -r conftest*
7397
7398
7399if test -n "$compiler"; then
7400
7401lt_prog_compiler_no_builtin_flag=
7402
7403if test "$GCC" = yes; then
7404  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7405
7406  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7407$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7408if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7409  $as_echo_n "(cached) " >&6
7410else
7411  lt_cv_prog_compiler_rtti_exceptions=no
7412   ac_outfile=conftest.$ac_objext
7413   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7414   lt_compiler_flag="-fno-rtti -fno-exceptions"
7415   # Insert the option either (1) after the last *FLAGS variable, or
7416   # (2) before a word containing "conftest.", or (3) at the end.
7417   # Note that $ac_compile itself does not contain backslashes and begins
7418   # with a dollar sign (not a hyphen), so the echo should work correctly.
7419   # The option is referenced via a variable to avoid confusing sed.
7420   lt_compile=`echo "$ac_compile" | $SED \
7421   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7422   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423   -e 's:$: $lt_compiler_flag:'`
7424   (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
7425   (eval "$lt_compile" 2>conftest.err)
7426   ac_status=$?
7427   cat conftest.err >&5
7428   echo "$as_me:7428: \$? = $ac_status" >&5
7429   if (exit $ac_status) && test -s "$ac_outfile"; then
7430     # The compiler can only warn and ignore the option if not recognized
7431     # So say no if there are warnings other than the usual output.
7432     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7433     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7434     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7435       lt_cv_prog_compiler_rtti_exceptions=yes
7436     fi
7437   fi
7438   $RM conftest*
7439
7440fi
7441{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7442$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7443
7444if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7445    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7446else
7447    :
7448fi
7449
7450fi
7451
7452
7453
7454
7455
7456
7457  lt_prog_compiler_wl=
7458lt_prog_compiler_pic=
7459lt_prog_compiler_static=
7460
7461{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7462$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7463
7464  if test "$GCC" = yes; then
7465    lt_prog_compiler_wl='-Wl,'
7466    lt_prog_compiler_static='-static'
7467
7468    case $host_os in
7469      aix*)
7470      # All AIX code is PIC.
7471      if test "$host_cpu" = ia64; then
7472	# AIX 5 now supports IA64 processor
7473	lt_prog_compiler_static='-Bstatic'
7474      fi
7475      ;;
7476
7477    amigaos*)
7478      case $host_cpu in
7479      powerpc)
7480            # see comment about AmigaOS4 .so support
7481            lt_prog_compiler_pic='-fPIC'
7482        ;;
7483      m68k)
7484            # FIXME: we need at least 68020 code to build shared libraries, but
7485            # adding the `-m68020' flag to GCC prevents building anything better,
7486            # like `-m68040'.
7487            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7488        ;;
7489      esac
7490      ;;
7491
7492    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7493      # PIC is the default for these OSes.
7494      ;;
7495
7496    mingw* | cygwin* | pw32* | os2* | cegcc*)
7497      # This hack is so that the source file can tell whether it is being
7498      # built for inclusion in a dll (and should export symbols for example).
7499      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7500      # (--disable-auto-import) libraries
7501      lt_prog_compiler_pic='-DDLL_EXPORT'
7502      ;;
7503
7504    darwin* | rhapsody*)
7505      # PIC is the default on this platform
7506      # Common symbols not allowed in MH_DYLIB files
7507      lt_prog_compiler_pic='-fno-common'
7508      ;;
7509
7510    hpux*)
7511      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7512      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7513      # sets the default TLS model and affects inlining.
7514      case $host_cpu in
7515      hppa*64*)
7516	# +Z the default
7517	;;
7518      *)
7519	lt_prog_compiler_pic='-fPIC'
7520	;;
7521      esac
7522      ;;
7523
7524    interix[3-9]*)
7525      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7526      # Instead, we relocate shared libraries at runtime.
7527      ;;
7528
7529    msdosdjgpp*)
7530      # Just because we use GCC doesn't mean we suddenly get shared libraries
7531      # on systems that don't support them.
7532      lt_prog_compiler_can_build_shared=no
7533      enable_shared=no
7534      ;;
7535
7536    *nto* | *qnx*)
7537      # QNX uses GNU C++, but need to define -shared option too, otherwise
7538      # it will coredump.
7539      lt_prog_compiler_pic='-fPIC -shared'
7540      ;;
7541
7542    sysv4*MP*)
7543      if test -d /usr/nec; then
7544	lt_prog_compiler_pic=-Kconform_pic
7545      fi
7546      ;;
7547
7548    *)
7549      lt_prog_compiler_pic='-fPIC'
7550      ;;
7551    esac
7552  else
7553    # PORTME Check for flag to pass linker flags through the system compiler.
7554    case $host_os in
7555    aix*)
7556      lt_prog_compiler_wl='-Wl,'
7557      if test "$host_cpu" = ia64; then
7558	# AIX 5 now supports IA64 processor
7559	lt_prog_compiler_static='-Bstatic'
7560      else
7561	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7562      fi
7563      ;;
7564
7565    mingw* | cygwin* | pw32* | os2* | cegcc*)
7566      # This hack is so that the source file can tell whether it is being
7567      # built for inclusion in a dll (and should export symbols for example).
7568      lt_prog_compiler_pic='-DDLL_EXPORT'
7569      ;;
7570
7571    hpux9* | hpux10* | hpux11*)
7572      lt_prog_compiler_wl='-Wl,'
7573      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7574      # not for PA HP-UX.
7575      case $host_cpu in
7576      hppa*64*|ia64*)
7577	# +Z the default
7578	;;
7579      *)
7580	lt_prog_compiler_pic='+Z'
7581	;;
7582      esac
7583      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7584      lt_prog_compiler_static='${wl}-a ${wl}archive'
7585      ;;
7586
7587    irix5* | irix6* | nonstopux*)
7588      lt_prog_compiler_wl='-Wl,'
7589      # PIC (with -KPIC) is the default.
7590      lt_prog_compiler_static='-non_shared'
7591      ;;
7592
7593    linux* | k*bsd*-gnu)
7594      case $cc_basename in
7595      # old Intel for x86_64 which still supported -KPIC.
7596      ecc*)
7597	lt_prog_compiler_wl='-Wl,'
7598	lt_prog_compiler_pic='-KPIC'
7599	lt_prog_compiler_static='-static'
7600        ;;
7601      # icc used to be incompatible with GCC.
7602      # ICC 10 doesn't accept -KPIC any more.
7603      icc* | ifort*)
7604	lt_prog_compiler_wl='-Wl,'
7605	lt_prog_compiler_pic='-fPIC'
7606	lt_prog_compiler_static='-static'
7607        ;;
7608      # Lahey Fortran 8.1.
7609      lf95*)
7610	lt_prog_compiler_wl='-Wl,'
7611	lt_prog_compiler_pic='--shared'
7612	lt_prog_compiler_static='--static'
7613	;;
7614      pgcc* | pgf77* | pgf90* | pgf95*)
7615        # Portland Group compilers (*not* the Pentium gcc compiler,
7616	# which looks to be a dead project)
7617	lt_prog_compiler_wl='-Wl,'
7618	lt_prog_compiler_pic='-fpic'
7619	lt_prog_compiler_static='-Bstatic'
7620        ;;
7621      ccc*)
7622        lt_prog_compiler_wl='-Wl,'
7623        # All Alpha code is PIC.
7624        lt_prog_compiler_static='-non_shared'
7625        ;;
7626      xl*)
7627	# IBM XL C 8.0/Fortran 10.1 on PPC
7628	lt_prog_compiler_wl='-Wl,'
7629	lt_prog_compiler_pic='-qpic'
7630	lt_prog_compiler_static='-qstaticlink'
7631	;;
7632      *)
7633	case `$CC -V 2>&1 | sed 5q` in
7634	*Sun\ C*)
7635	  # Sun C 5.9
7636	  lt_prog_compiler_pic='-KPIC'
7637	  lt_prog_compiler_static='-Bstatic'
7638	  lt_prog_compiler_wl='-Wl,'
7639	  ;;
7640	*Sun\ F*)
7641	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7642	  lt_prog_compiler_pic='-KPIC'
7643	  lt_prog_compiler_static='-Bstatic'
7644	  lt_prog_compiler_wl=''
7645	  ;;
7646	esac
7647	;;
7648      esac
7649      ;;
7650
7651    newsos6)
7652      lt_prog_compiler_pic='-KPIC'
7653      lt_prog_compiler_static='-Bstatic'
7654      ;;
7655
7656    *nto* | *qnx*)
7657      # QNX uses GNU C++, but need to define -shared option too, otherwise
7658      # it will coredump.
7659      lt_prog_compiler_pic='-fPIC -shared'
7660      ;;
7661
7662    osf3* | osf4* | osf5*)
7663      lt_prog_compiler_wl='-Wl,'
7664      # All OSF/1 code is PIC.
7665      lt_prog_compiler_static='-non_shared'
7666      ;;
7667
7668    rdos*)
7669      lt_prog_compiler_static='-non_shared'
7670      ;;
7671
7672    solaris*)
7673      lt_prog_compiler_pic='-KPIC'
7674      lt_prog_compiler_static='-Bstatic'
7675      case $cc_basename in
7676      f77* | f90* | f95*)
7677	lt_prog_compiler_wl='-Qoption ld ';;
7678      *)
7679	lt_prog_compiler_wl='-Wl,';;
7680      esac
7681      ;;
7682
7683    sunos4*)
7684      lt_prog_compiler_wl='-Qoption ld '
7685      lt_prog_compiler_pic='-PIC'
7686      lt_prog_compiler_static='-Bstatic'
7687      ;;
7688
7689    sysv4 | sysv4.2uw2* | sysv4.3*)
7690      lt_prog_compiler_wl='-Wl,'
7691      lt_prog_compiler_pic='-KPIC'
7692      lt_prog_compiler_static='-Bstatic'
7693      ;;
7694
7695    sysv4*MP*)
7696      if test -d /usr/nec ;then
7697	lt_prog_compiler_pic='-Kconform_pic'
7698	lt_prog_compiler_static='-Bstatic'
7699      fi
7700      ;;
7701
7702    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7703      lt_prog_compiler_wl='-Wl,'
7704      lt_prog_compiler_pic='-KPIC'
7705      lt_prog_compiler_static='-Bstatic'
7706      ;;
7707
7708    unicos*)
7709      lt_prog_compiler_wl='-Wl,'
7710      lt_prog_compiler_can_build_shared=no
7711      ;;
7712
7713    uts4*)
7714      lt_prog_compiler_pic='-pic'
7715      lt_prog_compiler_static='-Bstatic'
7716      ;;
7717
7718    *)
7719      lt_prog_compiler_can_build_shared=no
7720      ;;
7721    esac
7722  fi
7723
7724case $host_os in
7725  # For platforms which do not support PIC, -DPIC is meaningless:
7726  *djgpp*)
7727    lt_prog_compiler_pic=
7728    ;;
7729  *)
7730    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7731    ;;
7732esac
7733{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7734$as_echo "$lt_prog_compiler_pic" >&6; }
7735
7736
7737
7738
7739
7740
7741#
7742# Check to make sure the PIC flag actually works.
7743#
7744if test -n "$lt_prog_compiler_pic"; then
7745  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7746$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7747if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7748  $as_echo_n "(cached) " >&6
7749else
7750  lt_cv_prog_compiler_pic_works=no
7751   ac_outfile=conftest.$ac_objext
7752   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7754   # Insert the option either (1) after the last *FLAGS variable, or
7755   # (2) before a word containing "conftest.", or (3) at the end.
7756   # Note that $ac_compile itself does not contain backslashes and begins
7757   # with a dollar sign (not a hyphen), so the echo should work correctly.
7758   # The option is referenced via a variable to avoid confusing sed.
7759   lt_compile=`echo "$ac_compile" | $SED \
7760   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762   -e 's:$: $lt_compiler_flag:'`
7763   (eval echo "\"\$as_me:7763: $lt_compile\"" >&5)
7764   (eval "$lt_compile" 2>conftest.err)
7765   ac_status=$?
7766   cat conftest.err >&5
7767   echo "$as_me:7767: \$? = $ac_status" >&5
7768   if (exit $ac_status) && test -s "$ac_outfile"; then
7769     # The compiler can only warn and ignore the option if not recognized
7770     # So say no if there are warnings other than the usual output.
7771     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7772     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774       lt_cv_prog_compiler_pic_works=yes
7775     fi
7776   fi
7777   $RM conftest*
7778
7779fi
7780{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7781$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7782
7783if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7784    case $lt_prog_compiler_pic in
7785     "" | " "*) ;;
7786     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7787     esac
7788else
7789    lt_prog_compiler_pic=
7790     lt_prog_compiler_can_build_shared=no
7791fi
7792
7793fi
7794
7795
7796
7797
7798
7799
7800#
7801# Check to make sure the static flag actually works.
7802#
7803wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7804{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7805$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7806if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7807  $as_echo_n "(cached) " >&6
7808else
7809  lt_cv_prog_compiler_static_works=no
7810   save_LDFLAGS="$LDFLAGS"
7811   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7812   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7813   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7814     # The linker can only warn and ignore the option if not recognized
7815     # So say no if there are warnings
7816     if test -s conftest.err; then
7817       # Append any errors to the config.log.
7818       cat conftest.err 1>&5
7819       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7820       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7821       if diff conftest.exp conftest.er2 >/dev/null; then
7822         lt_cv_prog_compiler_static_works=yes
7823       fi
7824     else
7825       lt_cv_prog_compiler_static_works=yes
7826     fi
7827   fi
7828   $RM -r conftest*
7829   LDFLAGS="$save_LDFLAGS"
7830
7831fi
7832{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7833$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7834
7835if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7836    :
7837else
7838    lt_prog_compiler_static=
7839fi
7840
7841
7842
7843
7844
7845
7846
7847  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7848$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7849if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7850  $as_echo_n "(cached) " >&6
7851else
7852  lt_cv_prog_compiler_c_o=no
7853   $RM -r conftest 2>/dev/null
7854   mkdir conftest
7855   cd conftest
7856   mkdir out
7857   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7858
7859   lt_compiler_flag="-o out/conftest2.$ac_objext"
7860   # Insert the option either (1) after the last *FLAGS variable, or
7861   # (2) before a word containing "conftest.", or (3) at the end.
7862   # Note that $ac_compile itself does not contain backslashes and begins
7863   # with a dollar sign (not a hyphen), so the echo should work correctly.
7864   lt_compile=`echo "$ac_compile" | $SED \
7865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867   -e 's:$: $lt_compiler_flag:'`
7868   (eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
7869   (eval "$lt_compile" 2>out/conftest.err)
7870   ac_status=$?
7871   cat out/conftest.err >&5
7872   echo "$as_me:7872: \$? = $ac_status" >&5
7873   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7874   then
7875     # The compiler can only warn and ignore the option if not recognized
7876     # So say no if there are warnings
7877     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7878     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7879     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7880       lt_cv_prog_compiler_c_o=yes
7881     fi
7882   fi
7883   chmod u+w . 2>&5
7884   $RM conftest*
7885   # SGI C++ compiler will create directory out/ii_files/ for
7886   # template instantiation
7887   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7888   $RM out/* && rmdir out
7889   cd ..
7890   $RM -r conftest
7891   $RM conftest*
7892
7893fi
7894{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7895$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7896
7897
7898
7899
7900
7901
7902  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7903$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7904if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7905  $as_echo_n "(cached) " >&6
7906else
7907  lt_cv_prog_compiler_c_o=no
7908   $RM -r conftest 2>/dev/null
7909   mkdir conftest
7910   cd conftest
7911   mkdir out
7912   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7913
7914   lt_compiler_flag="-o out/conftest2.$ac_objext"
7915   # Insert the option either (1) after the last *FLAGS variable, or
7916   # (2) before a word containing "conftest.", or (3) at the end.
7917   # Note that $ac_compile itself does not contain backslashes and begins
7918   # with a dollar sign (not a hyphen), so the echo should work correctly.
7919   lt_compile=`echo "$ac_compile" | $SED \
7920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7922   -e 's:$: $lt_compiler_flag:'`
7923   (eval echo "\"\$as_me:7923: $lt_compile\"" >&5)
7924   (eval "$lt_compile" 2>out/conftest.err)
7925   ac_status=$?
7926   cat out/conftest.err >&5
7927   echo "$as_me:7927: \$? = $ac_status" >&5
7928   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7929   then
7930     # The compiler can only warn and ignore the option if not recognized
7931     # So say no if there are warnings
7932     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7933     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7934     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7935       lt_cv_prog_compiler_c_o=yes
7936     fi
7937   fi
7938   chmod u+w . 2>&5
7939   $RM conftest*
7940   # SGI C++ compiler will create directory out/ii_files/ for
7941   # template instantiation
7942   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7943   $RM out/* && rmdir out
7944   cd ..
7945   $RM -r conftest
7946   $RM conftest*
7947
7948fi
7949{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7950$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7951
7952
7953
7954
7955hard_links="nottested"
7956if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7957  # do not overwrite the value of need_locks provided by the user
7958  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7959$as_echo_n "checking if we can lock with hard links... " >&6; }
7960  hard_links=yes
7961  $RM conftest*
7962  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7963  touch conftest.a
7964  ln conftest.a conftest.b 2>&5 || hard_links=no
7965  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7966  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7967$as_echo "$hard_links" >&6; }
7968  if test "$hard_links" = no; then
7969    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7970$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7971    need_locks=warn
7972  fi
7973else
7974  need_locks=no
7975fi
7976
7977
7978
7979
7980
7981
7982  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7983$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7984
7985  runpath_var=
7986  allow_undefined_flag=
7987  always_export_symbols=no
7988  archive_cmds=
7989  archive_expsym_cmds=
7990  compiler_needs_object=no
7991  enable_shared_with_static_runtimes=no
7992  export_dynamic_flag_spec=
7993  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7994  hardcode_automatic=no
7995  hardcode_direct=no
7996  hardcode_direct_absolute=no
7997  hardcode_libdir_flag_spec=
7998  hardcode_libdir_flag_spec_ld=
7999  hardcode_libdir_separator=
8000  hardcode_minus_L=no
8001  hardcode_shlibpath_var=unsupported
8002  inherit_rpath=no
8003  link_all_deplibs=unknown
8004  module_cmds=
8005  module_expsym_cmds=
8006  old_archive_from_new_cmds=
8007  old_archive_from_expsyms_cmds=
8008  thread_safe_flag_spec=
8009  whole_archive_flag_spec=
8010  # include_expsyms should be a list of space-separated symbols to be *always*
8011  # included in the symbol list
8012  include_expsyms=
8013  # exclude_expsyms can be an extended regexp of symbols to exclude
8014  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8015  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8016  # as well as any symbol that contains `d'.
8017  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8018  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8019  # platforms (ab)use it in PIC code, but their linkers get confused if
8020  # the symbol is explicitly referenced.  Since portable code cannot
8021  # rely on this symbol name, it's probably fine to never include it in
8022  # preloaded symbol tables.
8023  # Exclude shared library initialization/finalization symbols.
8024  extract_expsyms_cmds=
8025
8026  case $host_os in
8027  cygwin* | mingw* | pw32* | cegcc*)
8028    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8029    # When not using gcc, we currently assume that we are using
8030    # Microsoft Visual C++.
8031    if test "$GCC" != yes; then
8032      with_gnu_ld=no
8033    fi
8034    ;;
8035  interix*)
8036    # we just hope/assume this is gcc and not c89 (= MSVC++)
8037    with_gnu_ld=yes
8038    ;;
8039  openbsd*)
8040    with_gnu_ld=no
8041    ;;
8042  esac
8043
8044  ld_shlibs=yes
8045  if test "$with_gnu_ld" = yes; then
8046    # If archive_cmds runs LD, not CC, wlarc should be empty
8047    wlarc='${wl}'
8048
8049    # Set some defaults for GNU ld with shared library support. These
8050    # are reset later if shared libraries are not supported. Putting them
8051    # here allows them to be overridden if necessary.
8052    runpath_var=LD_RUN_PATH
8053    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8054    export_dynamic_flag_spec='${wl}--export-dynamic'
8055    # ancient GNU ld didn't support --whole-archive et. al.
8056    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8057      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8058    else
8059      whole_archive_flag_spec=
8060    fi
8061    supports_anon_versioning=no
8062    case `$LD -v 2>&1` in
8063      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8064      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8065      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8066      *\ 2.11.*) ;; # other 2.11 versions
8067      *) supports_anon_versioning=yes ;;
8068    esac
8069
8070    # See if GNU ld supports shared libraries.
8071    case $host_os in
8072    aix[3-9]*)
8073      # On AIX/PPC, the GNU linker is very broken
8074      if test "$host_cpu" != ia64; then
8075	ld_shlibs=no
8076	cat <<_LT_EOF 1>&2
8077
8078*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8079*** to be unable to reliably create shared libraries on AIX.
8080*** Therefore, libtool is disabling shared libraries support.  If you
8081*** really care for shared libraries, you may want to modify your PATH
8082*** so that a non-GNU linker is found, and then restart.
8083
8084_LT_EOF
8085      fi
8086      ;;
8087
8088    amigaos*)
8089      case $host_cpu in
8090      powerpc)
8091            # see comment about AmigaOS4 .so support
8092            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093            archive_expsym_cmds=''
8094        ;;
8095      m68k)
8096            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)'
8097            hardcode_libdir_flag_spec='-L$libdir'
8098            hardcode_minus_L=yes
8099        ;;
8100      esac
8101      ;;
8102
8103    beos*)
8104      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8105	allow_undefined_flag=unsupported
8106	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8107	# support --undefined.  This deserves some investigation.  FIXME
8108	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8109      else
8110	ld_shlibs=no
8111      fi
8112      ;;
8113
8114    cygwin* | mingw* | pw32* | cegcc*)
8115      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8116      # as there is no search path for DLLs.
8117      hardcode_libdir_flag_spec='-L$libdir'
8118      allow_undefined_flag=unsupported
8119      always_export_symbols=no
8120      enable_shared_with_static_runtimes=yes
8121      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8122
8123      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8124        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8125	# If the export-symbols file already is a .def file (1st line
8126	# is EXPORTS), use it as is; otherwise, prepend...
8127	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8128	  cp $export_symbols $output_objdir/$soname.def;
8129	else
8130	  echo EXPORTS > $output_objdir/$soname.def;
8131	  cat $export_symbols >> $output_objdir/$soname.def;
8132	fi~
8133	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134      else
8135	ld_shlibs=no
8136      fi
8137      ;;
8138
8139    interix[3-9]*)
8140      hardcode_direct=no
8141      hardcode_shlibpath_var=no
8142      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8143      export_dynamic_flag_spec='${wl}-E'
8144      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8145      # Instead, shared libraries are loaded at an image base (0x10000000 by
8146      # default) and relocated if they conflict, which is a slow very memory
8147      # consuming and fragmenting process.  To avoid this, we pick a random,
8148      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8149      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8150      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8151      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'
8152      ;;
8153
8154    gnu* | linux* | tpf* | k*bsd*-gnu)
8155      tmp_diet=no
8156      if test "$host_os" = linux-dietlibc; then
8157	case $cc_basename in
8158	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8159	esac
8160      fi
8161      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8162	 && test "$tmp_diet" = no
8163      then
8164	tmp_addflag=
8165	tmp_sharedflag='-shared'
8166	case $cc_basename,$host_cpu in
8167        pgcc*)				# Portland Group C compiler
8168	  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'
8169	  tmp_addflag=' $pic_flag'
8170	  ;;
8171	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8172	  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'
8173	  tmp_addflag=' $pic_flag -Mnomain' ;;
8174	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8175	  tmp_addflag=' -i_dynamic' ;;
8176	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8177	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8178	ifc* | ifort*)			# Intel Fortran compiler
8179	  tmp_addflag=' -nofor_main' ;;
8180	lf95*)				# Lahey Fortran 8.1
8181	  whole_archive_flag_spec=
8182	  tmp_sharedflag='--shared' ;;
8183	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8184	  tmp_sharedflag='-qmkshrobj'
8185	  tmp_addflag= ;;
8186	esac
8187	case `$CC -V 2>&1 | sed 5q` in
8188	*Sun\ C*)			# Sun C 5.9
8189	  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'
8190	  compiler_needs_object=yes
8191	  tmp_sharedflag='-G' ;;
8192	*Sun\ F*)			# Sun Fortran 8.3
8193	  tmp_sharedflag='-G' ;;
8194	esac
8195	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196
8197        if test "x$supports_anon_versioning" = xyes; then
8198          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8199	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8200	    echo "local: *; };" >> $output_objdir/$libname.ver~
8201	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8202        fi
8203
8204	case $cc_basename in
8205	xlf*)
8206	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8207	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8208	  hardcode_libdir_flag_spec=
8209	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8210	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8211	  if test "x$supports_anon_versioning" = xyes; then
8212	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8213	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8214	      echo "local: *; };" >> $output_objdir/$libname.ver~
8215	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8216	  fi
8217	  ;;
8218	esac
8219      else
8220        ld_shlibs=no
8221      fi
8222      ;;
8223
8224    netbsd*)
8225      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8226	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8227	wlarc=
8228      else
8229	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231      fi
8232      ;;
8233
8234    solaris*)
8235      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8236	ld_shlibs=no
8237	cat <<_LT_EOF 1>&2
8238
8239*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8240*** create shared libraries on Solaris systems.  Therefore, libtool
8241*** is disabling shared libraries support.  We urge you to upgrade GNU
8242*** binutils to release 2.9.1 or newer.  Another option is to modify
8243*** your PATH or compiler configuration so that the native linker is
8244*** used, and then restart.
8245
8246_LT_EOF
8247      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8248	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8250      else
8251	ld_shlibs=no
8252      fi
8253      ;;
8254
8255    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8256      case `$LD -v 2>&1` in
8257        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8258	ld_shlibs=no
8259	cat <<_LT_EOF 1>&2
8260
8261*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8262*** reliably create shared libraries on SCO systems.  Therefore, libtool
8263*** is disabling shared libraries support.  We urge you to upgrade GNU
8264*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8265*** your PATH or compiler configuration so that the native linker is
8266*** used, and then restart.
8267
8268_LT_EOF
8269	;;
8270	*)
8271	  # For security reasons, it is highly recommended that you always
8272	  # use absolute paths for naming shared libraries, and exclude the
8273	  # DT_RUNPATH tag from executables and libraries.  But doing so
8274	  # requires that you compile everything twice, which is a pain.
8275	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8276	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8277	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8279	  else
8280	    ld_shlibs=no
8281	  fi
8282	;;
8283      esac
8284      ;;
8285
8286    sunos4*)
8287      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8288      wlarc=
8289      hardcode_direct=yes
8290      hardcode_shlibpath_var=no
8291      ;;
8292
8293    *)
8294      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8295	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8297      else
8298	ld_shlibs=no
8299      fi
8300      ;;
8301    esac
8302
8303    if test "$ld_shlibs" = no; then
8304      runpath_var=
8305      hardcode_libdir_flag_spec=
8306      export_dynamic_flag_spec=
8307      whole_archive_flag_spec=
8308    fi
8309  else
8310    # PORTME fill in a description of your system's linker (not GNU ld)
8311    case $host_os in
8312    aix3*)
8313      allow_undefined_flag=unsupported
8314      always_export_symbols=yes
8315      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'
8316      # Note: this linker hardcodes the directories in LIBPATH if there
8317      # are no directories specified by -L.
8318      hardcode_minus_L=yes
8319      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8320	# Neither direct hardcoding nor static linking is supported with a
8321	# broken collect2.
8322	hardcode_direct=unsupported
8323      fi
8324      ;;
8325
8326    aix[4-9]*)
8327      if test "$host_cpu" = ia64; then
8328	# On IA64, the linker does run time linking by default, so we don't
8329	# have to do anything special.
8330	aix_use_runtimelinking=no
8331	exp_sym_flag='-Bexport'
8332	no_entry_flag=""
8333      else
8334	# If we're using GNU nm, then we don't want the "-C" option.
8335	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8336	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8337	  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'
8338	else
8339	  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'
8340	fi
8341	aix_use_runtimelinking=no
8342
8343	# Test if we are trying to use run time linking or normal
8344	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8345	# need to do runtime linking.
8346	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8347	  for ld_flag in $LDFLAGS; do
8348	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8349	    aix_use_runtimelinking=yes
8350	    break
8351	  fi
8352	  done
8353	  ;;
8354	esac
8355
8356	exp_sym_flag='-bexport'
8357	no_entry_flag='-bnoentry'
8358      fi
8359
8360      # When large executables or shared objects are built, AIX ld can
8361      # have problems creating the table of contents.  If linking a library
8362      # or program results in "error TOC overflow" add -mminimal-toc to
8363      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8364      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8365
8366      archive_cmds=''
8367      hardcode_direct=yes
8368      hardcode_direct_absolute=yes
8369      hardcode_libdir_separator=':'
8370      link_all_deplibs=yes
8371      file_list_spec='${wl}-f,'
8372
8373      if test "$GCC" = yes; then
8374	case $host_os in aix4.[012]|aix4.[012].*)
8375	# We only want to do this on AIX 4.2 and lower, the check
8376	# below for broken collect2 doesn't work under 4.3+
8377	  collect2name=`${CC} -print-prog-name=collect2`
8378	  if test -f "$collect2name" &&
8379	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8380	  then
8381	  # We have reworked collect2
8382	  :
8383	  else
8384	  # We have old collect2
8385	  hardcode_direct=unsupported
8386	  # It fails to find uninstalled libraries when the uninstalled
8387	  # path is not listed in the libpath.  Setting hardcode_minus_L
8388	  # to unsupported forces relinking
8389	  hardcode_minus_L=yes
8390	  hardcode_libdir_flag_spec='-L$libdir'
8391	  hardcode_libdir_separator=
8392	  fi
8393	  ;;
8394	esac
8395	shared_flag='-shared'
8396	if test "$aix_use_runtimelinking" = yes; then
8397	  shared_flag="$shared_flag "'${wl}-G'
8398	fi
8399      else
8400	# not using gcc
8401	if test "$host_cpu" = ia64; then
8402	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8403	# chokes on -Wl,-G. The following line is correct:
8404	  shared_flag='-G'
8405	else
8406	  if test "$aix_use_runtimelinking" = yes; then
8407	    shared_flag='${wl}-G'
8408	  else
8409	    shared_flag='${wl}-bM:SRE'
8410	  fi
8411	fi
8412      fi
8413
8414      export_dynamic_flag_spec='${wl}-bexpall'
8415      # It seems that -bexpall does not export symbols beginning with
8416      # underscore (_), so it is better to generate a list of symbols to export.
8417      always_export_symbols=yes
8418      if test "$aix_use_runtimelinking" = yes; then
8419	# Warning - without using the other runtime loading flags (-brtl),
8420	# -berok will link without error, but may produce a broken library.
8421	allow_undefined_flag='-berok'
8422        # Determine the default libpath from the value encoded in an
8423        # empty executable.
8424        cat >conftest.$ac_ext <<_ACEOF
8425/* confdefs.h.  */
8426_ACEOF
8427cat confdefs.h >>conftest.$ac_ext
8428cat >>conftest.$ac_ext <<_ACEOF
8429/* end confdefs.h.  */
8430
8431int
8432main ()
8433{
8434
8435  ;
8436  return 0;
8437}
8438_ACEOF
8439rm -f conftest.$ac_objext conftest$ac_exeext
8440if { (ac_try="$ac_link"
8441case "(($ac_try" in
8442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443  *) ac_try_echo=$ac_try;;
8444esac
8445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8446$as_echo "$ac_try_echo") >&5
8447  (eval "$ac_link") 2>conftest.er1
8448  ac_status=$?
8449  grep -v '^ *+' conftest.er1 >conftest.err
8450  rm -f conftest.er1
8451  cat conftest.err >&5
8452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453  (exit $ac_status); } && {
8454	 test -z "$ac_c_werror_flag" ||
8455	 test ! -s conftest.err
8456       } && test -s conftest$ac_exeext && {
8457	 test "$cross_compiling" = yes ||
8458	 $as_test_x conftest$ac_exeext
8459       }; then
8460
8461lt_aix_libpath_sed='
8462    /Import File Strings/,/^$/ {
8463	/^0/ {
8464	    s/^0  *\(.*\)$/\1/
8465	    p
8466	}
8467    }'
8468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8469# Check for a 64-bit object if we didn't find anything.
8470if test -z "$aix_libpath"; then
8471  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8472fi
8473else
8474  $as_echo "$as_me: failed program was:" >&5
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477
8478fi
8479
8480rm -rf conftest.dSYM
8481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8482      conftest$ac_exeext conftest.$ac_ext
8483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8484
8485        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8486        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"
8487      else
8488	if test "$host_cpu" = ia64; then
8489	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8490	  allow_undefined_flag="-z nodefs"
8491	  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"
8492	else
8493	 # Determine the default libpath from the value encoded in an
8494	 # empty executable.
8495	 cat >conftest.$ac_ext <<_ACEOF
8496/* confdefs.h.  */
8497_ACEOF
8498cat confdefs.h >>conftest.$ac_ext
8499cat >>conftest.$ac_ext <<_ACEOF
8500/* end confdefs.h.  */
8501
8502int
8503main ()
8504{
8505
8506  ;
8507  return 0;
8508}
8509_ACEOF
8510rm -f conftest.$ac_objext conftest$ac_exeext
8511if { (ac_try="$ac_link"
8512case "(($ac_try" in
8513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514  *) ac_try_echo=$ac_try;;
8515esac
8516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8517$as_echo "$ac_try_echo") >&5
8518  (eval "$ac_link") 2>conftest.er1
8519  ac_status=$?
8520  grep -v '^ *+' conftest.er1 >conftest.err
8521  rm -f conftest.er1
8522  cat conftest.err >&5
8523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524  (exit $ac_status); } && {
8525	 test -z "$ac_c_werror_flag" ||
8526	 test ! -s conftest.err
8527       } && test -s conftest$ac_exeext && {
8528	 test "$cross_compiling" = yes ||
8529	 $as_test_x conftest$ac_exeext
8530       }; then
8531
8532lt_aix_libpath_sed='
8533    /Import File Strings/,/^$/ {
8534	/^0/ {
8535	    s/^0  *\(.*\)$/\1/
8536	    p
8537	}
8538    }'
8539aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8540# Check for a 64-bit object if we didn't find anything.
8541if test -z "$aix_libpath"; then
8542  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8543fi
8544else
8545  $as_echo "$as_me: failed program was:" >&5
8546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548
8549fi
8550
8551rm -rf conftest.dSYM
8552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8553      conftest$ac_exeext conftest.$ac_ext
8554if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8555
8556	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8557	  # Warning - without using the other run time loading flags,
8558	  # -berok will link without error, but may produce a broken library.
8559	  no_undefined_flag=' ${wl}-bernotok'
8560	  allow_undefined_flag=' ${wl}-berok'
8561	  # Exported symbols can be pulled into shared objects from archives
8562	  whole_archive_flag_spec='$convenience'
8563	  archive_cmds_need_lc=yes
8564	  # This is similar to how AIX traditionally builds its shared libraries.
8565	  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'
8566	fi
8567      fi
8568      ;;
8569
8570    amigaos*)
8571      case $host_cpu in
8572      powerpc)
8573            # see comment about AmigaOS4 .so support
8574            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8575            archive_expsym_cmds=''
8576        ;;
8577      m68k)
8578            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)'
8579            hardcode_libdir_flag_spec='-L$libdir'
8580            hardcode_minus_L=yes
8581        ;;
8582      esac
8583      ;;
8584
8585    bsdi[45]*)
8586      export_dynamic_flag_spec=-rdynamic
8587      ;;
8588
8589    cygwin* | mingw* | pw32* | cegcc*)
8590      # When not using gcc, we currently assume that we are using
8591      # Microsoft Visual C++.
8592      # hardcode_libdir_flag_spec is actually meaningless, as there is
8593      # no search path for DLLs.
8594      hardcode_libdir_flag_spec=' '
8595      allow_undefined_flag=unsupported
8596      # Tell ltmain to make .lib files, not .a files.
8597      libext=lib
8598      # Tell ltmain to make .dll files, not .so files.
8599      shrext_cmds=".dll"
8600      # FIXME: Setting linknames here is a bad hack.
8601      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8602      # The linker will automatically build a .lib file if we build a DLL.
8603      old_archive_from_new_cmds='true'
8604      # FIXME: Should let the user specify the lib program.
8605      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8606      fix_srcfile_path='`cygpath -w "$srcfile"`'
8607      enable_shared_with_static_runtimes=yes
8608      ;;
8609
8610    darwin* | rhapsody*)
8611
8612
8613  archive_cmds_need_lc=no
8614  hardcode_direct=no
8615  hardcode_automatic=yes
8616  hardcode_shlibpath_var=unsupported
8617  whole_archive_flag_spec=''
8618  link_all_deplibs=yes
8619  allow_undefined_flag="$_lt_dar_allow_undefined"
8620  case $cc_basename in
8621     ifort*) _lt_dar_can_shared=yes ;;
8622     *) _lt_dar_can_shared=$GCC ;;
8623  esac
8624  if test "$_lt_dar_can_shared" = "yes"; then
8625    output_verbose_link_cmd=echo
8626    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8627    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8628    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}"
8629    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}"
8630
8631  else
8632  ld_shlibs=no
8633  fi
8634
8635      ;;
8636
8637    dgux*)
8638      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639      hardcode_libdir_flag_spec='-L$libdir'
8640      hardcode_shlibpath_var=no
8641      ;;
8642
8643    freebsd1*)
8644      ld_shlibs=no
8645      ;;
8646
8647    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8648    # support.  Future versions do this automatically, but an explicit c++rt0.o
8649    # does not break anything, and helps significantly (at the cost of a little
8650    # extra space).
8651    freebsd2.2*)
8652      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8653      hardcode_libdir_flag_spec='-R$libdir'
8654      hardcode_direct=yes
8655      hardcode_shlibpath_var=no
8656      ;;
8657
8658    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8659    freebsd2*)
8660      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661      hardcode_direct=yes
8662      hardcode_minus_L=yes
8663      hardcode_shlibpath_var=no
8664      ;;
8665
8666    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8667    freebsd* | dragonfly*)
8668      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8669      hardcode_libdir_flag_spec='-R$libdir'
8670      hardcode_direct=yes
8671      hardcode_shlibpath_var=no
8672      ;;
8673
8674    hpux9*)
8675      if test "$GCC" = yes; then
8676	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'
8677      else
8678	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'
8679      fi
8680      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8681      hardcode_libdir_separator=:
8682      hardcode_direct=yes
8683
8684      # hardcode_minus_L: Not really in the search PATH,
8685      # but as the default location of the library.
8686      hardcode_minus_L=yes
8687      export_dynamic_flag_spec='${wl}-E'
8688      ;;
8689
8690    hpux10*)
8691      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8692	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8693      else
8694	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8695      fi
8696      if test "$with_gnu_ld" = no; then
8697	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8698	hardcode_libdir_flag_spec_ld='+b $libdir'
8699	hardcode_libdir_separator=:
8700	hardcode_direct=yes
8701	hardcode_direct_absolute=yes
8702	export_dynamic_flag_spec='${wl}-E'
8703	# hardcode_minus_L: Not really in the search PATH,
8704	# but as the default location of the library.
8705	hardcode_minus_L=yes
8706      fi
8707      ;;
8708
8709    hpux11*)
8710      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8711	case $host_cpu in
8712	hppa*64*)
8713	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714	  ;;
8715	ia64*)
8716	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8717	  ;;
8718	*)
8719	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8720	  ;;
8721	esac
8722      else
8723	case $host_cpu in
8724	hppa*64*)
8725	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726	  ;;
8727	ia64*)
8728	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8729	  ;;
8730	*)
8731	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8732	  ;;
8733	esac
8734      fi
8735      if test "$with_gnu_ld" = no; then
8736	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737	hardcode_libdir_separator=:
8738
8739	case $host_cpu in
8740	hppa*64*|ia64*)
8741	  hardcode_direct=no
8742	  hardcode_shlibpath_var=no
8743	  ;;
8744	*)
8745	  hardcode_direct=yes
8746	  hardcode_direct_absolute=yes
8747	  export_dynamic_flag_spec='${wl}-E'
8748
8749	  # hardcode_minus_L: Not really in the search PATH,
8750	  # but as the default location of the library.
8751	  hardcode_minus_L=yes
8752	  ;;
8753	esac
8754      fi
8755      ;;
8756
8757    irix5* | irix6* | nonstopux*)
8758      if test "$GCC" = yes; then
8759	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'
8760	# Try to use the -exported_symbol ld option, if it does not
8761	# work, assume that -exports_file does not work either and
8762	# implicitly export all symbols.
8763        save_LDFLAGS="$LDFLAGS"
8764        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8765        cat >conftest.$ac_ext <<_ACEOF
8766int foo(void) {}
8767_ACEOF
8768rm -f conftest.$ac_objext conftest$ac_exeext
8769if { (ac_try="$ac_link"
8770case "(($ac_try" in
8771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772  *) ac_try_echo=$ac_try;;
8773esac
8774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8775$as_echo "$ac_try_echo") >&5
8776  (eval "$ac_link") 2>conftest.er1
8777  ac_status=$?
8778  grep -v '^ *+' conftest.er1 >conftest.err
8779  rm -f conftest.er1
8780  cat conftest.err >&5
8781  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782  (exit $ac_status); } && {
8783	 test -z "$ac_c_werror_flag" ||
8784	 test ! -s conftest.err
8785       } && test -s conftest$ac_exeext && {
8786	 test "$cross_compiling" = yes ||
8787	 $as_test_x conftest$ac_exeext
8788       }; then
8789  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'
8790
8791else
8792  $as_echo "$as_me: failed program was:" >&5
8793sed 's/^/| /' conftest.$ac_ext >&5
8794
8795
8796fi
8797
8798rm -rf conftest.dSYM
8799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8800      conftest$ac_exeext conftest.$ac_ext
8801        LDFLAGS="$save_LDFLAGS"
8802      else
8803	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'
8804	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'
8805      fi
8806      archive_cmds_need_lc='no'
8807      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808      hardcode_libdir_separator=:
8809      inherit_rpath=yes
8810      link_all_deplibs=yes
8811      ;;
8812
8813    netbsd*)
8814      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8815	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8816      else
8817	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8818      fi
8819      hardcode_libdir_flag_spec='-R$libdir'
8820      hardcode_direct=yes
8821      hardcode_shlibpath_var=no
8822      ;;
8823
8824    newsos6)
8825      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8826      hardcode_direct=yes
8827      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8828      hardcode_libdir_separator=:
8829      hardcode_shlibpath_var=no
8830      ;;
8831
8832    *nto* | *qnx*)
8833      ;;
8834
8835    openbsd*)
8836      if test -f /usr/libexec/ld.so; then
8837	hardcode_direct=yes
8838	hardcode_shlibpath_var=no
8839	hardcode_direct_absolute=yes
8840	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8841	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8842	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8843	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8844	  export_dynamic_flag_spec='${wl}-E'
8845	else
8846	  case $host_os in
8847	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8848	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8849	     hardcode_libdir_flag_spec='-R$libdir'
8850	     ;;
8851	   *)
8852	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8853	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8854	     ;;
8855	  esac
8856	fi
8857      else
8858	ld_shlibs=no
8859      fi
8860      ;;
8861
8862    os2*)
8863      hardcode_libdir_flag_spec='-L$libdir'
8864      hardcode_minus_L=yes
8865      allow_undefined_flag=unsupported
8866      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'
8867      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8868      ;;
8869
8870    osf3*)
8871      if test "$GCC" = yes; then
8872	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8873	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'
8874      else
8875	allow_undefined_flag=' -expect_unresolved \*'
8876	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'
8877      fi
8878      archive_cmds_need_lc='no'
8879      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880      hardcode_libdir_separator=:
8881      ;;
8882
8883    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8884      if test "$GCC" = yes; then
8885	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8886	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'
8887	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888      else
8889	allow_undefined_flag=' -expect_unresolved \*'
8890	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'
8891	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~
8892	$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'
8893
8894	# Both c and cxx compiler support -rpath directly
8895	hardcode_libdir_flag_spec='-rpath $libdir'
8896      fi
8897      archive_cmds_need_lc='no'
8898      hardcode_libdir_separator=:
8899      ;;
8900
8901    solaris*)
8902      no_undefined_flag=' -z defs'
8903      if test "$GCC" = yes; then
8904	wlarc='${wl}'
8905	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8906	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8907	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8908      else
8909	case `$CC -V 2>&1` in
8910	*"Compilers 5.0"*)
8911	  wlarc=''
8912	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8914	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8915	  ;;
8916	*)
8917	  wlarc='${wl}'
8918	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8919	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8920	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8921	  ;;
8922	esac
8923      fi
8924      hardcode_libdir_flag_spec='-R$libdir'
8925      hardcode_shlibpath_var=no
8926      case $host_os in
8927      solaris2.[0-5] | solaris2.[0-5].*) ;;
8928      *)
8929	# The compiler driver will combine and reorder linker options,
8930	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8931	# but is careful enough not to reorder.
8932	# Supported since Solaris 2.6 (maybe 2.5.1?)
8933	if test "$GCC" = yes; then
8934	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8935	else
8936	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8937	fi
8938	;;
8939      esac
8940      link_all_deplibs=yes
8941      ;;
8942
8943    sunos4*)
8944      if test "x$host_vendor" = xsequent; then
8945	# Use $CC to link under sequent, because it throws in some extra .o
8946	# files that make .init and .fini sections work.
8947	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8948      else
8949	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8950      fi
8951      hardcode_libdir_flag_spec='-L$libdir'
8952      hardcode_direct=yes
8953      hardcode_minus_L=yes
8954      hardcode_shlibpath_var=no
8955      ;;
8956
8957    sysv4)
8958      case $host_vendor in
8959	sni)
8960	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961	  hardcode_direct=yes # is this really true???
8962	;;
8963	siemens)
8964	  ## LD is ld it makes a PLAMLIB
8965	  ## CC just makes a GrossModule.
8966	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8967	  reload_cmds='$CC -r -o $output$reload_objs'
8968	  hardcode_direct=no
8969        ;;
8970	motorola)
8971	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8973	;;
8974      esac
8975      runpath_var='LD_RUN_PATH'
8976      hardcode_shlibpath_var=no
8977      ;;
8978
8979    sysv4.3*)
8980      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981      hardcode_shlibpath_var=no
8982      export_dynamic_flag_spec='-Bexport'
8983      ;;
8984
8985    sysv4*MP*)
8986      if test -d /usr/nec; then
8987	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988	hardcode_shlibpath_var=no
8989	runpath_var=LD_RUN_PATH
8990	hardcode_runpath_var=yes
8991	ld_shlibs=yes
8992      fi
8993      ;;
8994
8995    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8996      no_undefined_flag='${wl}-z,text'
8997      archive_cmds_need_lc=no
8998      hardcode_shlibpath_var=no
8999      runpath_var='LD_RUN_PATH'
9000
9001      if test "$GCC" = yes; then
9002	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9003	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9004      else
9005	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9006	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9007      fi
9008      ;;
9009
9010    sysv5* | sco3.2v5* | sco5v6*)
9011      # Note: We can NOT use -z defs as we might desire, because we do not
9012      # link with -lc, and that would cause any symbols used from libc to
9013      # always be unresolved, which means just about no library would
9014      # ever link correctly.  If we're not using GNU ld we use -z text
9015      # though, which does catch some bad symbols but isn't as heavy-handed
9016      # as -z defs.
9017      no_undefined_flag='${wl}-z,text'
9018      allow_undefined_flag='${wl}-z,nodefs'
9019      archive_cmds_need_lc=no
9020      hardcode_shlibpath_var=no
9021      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9022      hardcode_libdir_separator=':'
9023      link_all_deplibs=yes
9024      export_dynamic_flag_spec='${wl}-Bexport'
9025      runpath_var='LD_RUN_PATH'
9026
9027      if test "$GCC" = yes; then
9028	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9029	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9030      else
9031	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9033      fi
9034      ;;
9035
9036    uts4*)
9037      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038      hardcode_libdir_flag_spec='-L$libdir'
9039      hardcode_shlibpath_var=no
9040      ;;
9041
9042    *)
9043      ld_shlibs=no
9044      ;;
9045    esac
9046
9047    if test x$host_vendor = xsni; then
9048      case $host in
9049      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9050	export_dynamic_flag_spec='${wl}-Blargedynsym'
9051	;;
9052      esac
9053    fi
9054  fi
9055
9056{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9057$as_echo "$ld_shlibs" >&6; }
9058test "$ld_shlibs" = no && can_build_shared=no
9059
9060with_gnu_ld=$with_gnu_ld
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076#
9077# Do we need to explicitly link libc?
9078#
9079case "x$archive_cmds_need_lc" in
9080x|xyes)
9081  # Assume -lc should be added
9082  archive_cmds_need_lc=yes
9083
9084  if test "$enable_shared" = yes && test "$GCC" = yes; then
9085    case $archive_cmds in
9086    *'~'*)
9087      # FIXME: we may have to deal with multi-command sequences.
9088      ;;
9089    '$CC '*)
9090      # Test whether the compiler implicitly links with -lc since on some
9091      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9092      # to ld, don't add -lc before -lgcc.
9093      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9094$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9095      $RM conftest*
9096      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097
9098      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099  (eval $ac_compile) 2>&5
9100  ac_status=$?
9101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); } 2>conftest.err; then
9103        soname=conftest
9104        lib=conftest
9105        libobjs=conftest.$ac_objext
9106        deplibs=
9107        wl=$lt_prog_compiler_wl
9108	pic_flag=$lt_prog_compiler_pic
9109        compiler_flags=-v
9110        linker_flags=-v
9111        verstring=
9112        output_objdir=.
9113        libname=conftest
9114        lt_save_allow_undefined_flag=$allow_undefined_flag
9115        allow_undefined_flag=
9116        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9117  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9118  ac_status=$?
9119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); }
9121        then
9122	  archive_cmds_need_lc=no
9123        else
9124	  archive_cmds_need_lc=yes
9125        fi
9126        allow_undefined_flag=$lt_save_allow_undefined_flag
9127      else
9128        cat conftest.err 1>&5
9129      fi
9130      $RM conftest*
9131      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9132$as_echo "$archive_cmds_need_lc" >&6; }
9133      ;;
9134    esac
9135  fi
9136  ;;
9137esac
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9296$as_echo_n "checking dynamic linker characteristics... " >&6; }
9297
9298if test "$GCC" = yes; then
9299  case $host_os in
9300    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9301    *) lt_awk_arg="/^libraries:/" ;;
9302  esac
9303  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9304  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9305    # if the path contains ";" then we assume it to be the separator
9306    # otherwise default to the standard path separator (i.e. ":") - it is
9307    # assumed that no part of a normal pathname contains ";" but that should
9308    # okay in the real world where ";" in dirpaths is itself problematic.
9309    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9310  else
9311    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9312  fi
9313  # Ok, now we have the path, separated by spaces, we can step through it
9314  # and add multilib dir if necessary.
9315  lt_tmp_lt_search_path_spec=
9316  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9317  for lt_sys_path in $lt_search_path_spec; do
9318    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9319      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9320    else
9321      test -d "$lt_sys_path" && \
9322	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9323    fi
9324  done
9325  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9326BEGIN {RS=" "; FS="/|\n";} {
9327  lt_foo="";
9328  lt_count=0;
9329  for (lt_i = NF; lt_i > 0; lt_i--) {
9330    if ($lt_i != "" && $lt_i != ".") {
9331      if ($lt_i == "..") {
9332        lt_count++;
9333      } else {
9334        if (lt_count == 0) {
9335          lt_foo="/" $lt_i lt_foo;
9336        } else {
9337          lt_count--;
9338        }
9339      }
9340    }
9341  }
9342  if (lt_foo != "") { lt_freq[lt_foo]++; }
9343  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9344}'`
9345  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9346else
9347  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9348fi
9349library_names_spec=
9350libname_spec='lib$name'
9351soname_spec=
9352shrext_cmds=".so"
9353postinstall_cmds=
9354postuninstall_cmds=
9355finish_cmds=
9356finish_eval=
9357shlibpath_var=
9358shlibpath_overrides_runpath=unknown
9359version_type=none
9360dynamic_linker="$host_os ld.so"
9361sys_lib_dlsearch_path_spec="/lib /usr/lib"
9362need_lib_prefix=unknown
9363hardcode_into_libs=no
9364
9365# when you set need_version to no, make sure it does not cause -set_version
9366# flags to be left without arguments
9367need_version=unknown
9368
9369case $host_os in
9370aix3*)
9371  version_type=linux
9372  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9373  shlibpath_var=LIBPATH
9374
9375  # AIX 3 has no versioning support, so we append a major version to the name.
9376  soname_spec='${libname}${release}${shared_ext}$major'
9377  ;;
9378
9379aix[4-9]*)
9380  version_type=linux
9381  need_lib_prefix=no
9382  need_version=no
9383  hardcode_into_libs=yes
9384  if test "$host_cpu" = ia64; then
9385    # AIX 5 supports IA64
9386    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9387    shlibpath_var=LD_LIBRARY_PATH
9388  else
9389    # With GCC up to 2.95.x, collect2 would create an import file
9390    # for dependence libraries.  The import file would start with
9391    # the line `#! .'.  This would cause the generated library to
9392    # depend on `.', always an invalid library.  This was fixed in
9393    # development snapshots of GCC prior to 3.0.
9394    case $host_os in
9395      aix4 | aix4.[01] | aix4.[01].*)
9396      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9397	   echo ' yes '
9398	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9399	:
9400      else
9401	can_build_shared=no
9402      fi
9403      ;;
9404    esac
9405    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9406    # soname into executable. Probably we can add versioning support to
9407    # collect2, so additional links can be useful in future.
9408    if test "$aix_use_runtimelinking" = yes; then
9409      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9410      # instead of lib<name>.a to let people know that these are not
9411      # typical AIX shared libraries.
9412      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9413    else
9414      # We preserve .a as extension for shared libraries through AIX4.2
9415      # and later when we are not doing run time linking.
9416      library_names_spec='${libname}${release}.a $libname.a'
9417      soname_spec='${libname}${release}${shared_ext}$major'
9418    fi
9419    shlibpath_var=LIBPATH
9420  fi
9421  ;;
9422
9423amigaos*)
9424  case $host_cpu in
9425  powerpc)
9426    # Since July 2007 AmigaOS4 officially supports .so libraries.
9427    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429    ;;
9430  m68k)
9431    library_names_spec='$libname.ixlibrary $libname.a'
9432    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9433    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'
9434    ;;
9435  esac
9436  ;;
9437
9438beos*)
9439  library_names_spec='${libname}${shared_ext}'
9440  dynamic_linker="$host_os ld.so"
9441  shlibpath_var=LIBRARY_PATH
9442  ;;
9443
9444bsdi[45]*)
9445  version_type=linux
9446  need_version=no
9447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448  soname_spec='${libname}${release}${shared_ext}$major'
9449  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9450  shlibpath_var=LD_LIBRARY_PATH
9451  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9452  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9453  # the default ld.so.conf also contains /usr/contrib/lib and
9454  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9455  # libtool to hard-code these into programs
9456  ;;
9457
9458cygwin* | mingw* | pw32* | cegcc*)
9459  version_type=windows
9460  shrext_cmds=".dll"
9461  need_version=no
9462  need_lib_prefix=no
9463
9464  case $GCC,$host_os in
9465  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9466    library_names_spec='$libname.dll.a'
9467    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9468    postinstall_cmds='base_file=`basename \${file}`~
9469      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9470      dldir=$destdir/`dirname \$dlpath`~
9471      test -d \$dldir || mkdir -p \$dldir~
9472      $install_prog $dir/$dlname \$dldir/$dlname~
9473      chmod a+x \$dldir/$dlname~
9474      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9475        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9476      fi'
9477    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9478      dlpath=$dir/\$dldll~
9479       $RM \$dlpath'
9480    shlibpath_overrides_runpath=yes
9481
9482    case $host_os in
9483    cygwin*)
9484      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9485      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9486      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9487      ;;
9488    mingw* | cegcc*)
9489      # MinGW DLLs use traditional 'lib' prefix
9490      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9491      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9492      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9493        # It is most probably a Windows format PATH printed by
9494        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9495        # path with ; separators, and with drive letters. We can handle the
9496        # drive letters (cygwin fileutils understands them), so leave them,
9497        # especially as we might pass files found there to a mingw objdump,
9498        # which wouldn't understand a cygwinified path. Ahh.
9499        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9500      else
9501        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9502      fi
9503      ;;
9504    pw32*)
9505      # pw32 DLLs use 'pw' prefix rather than 'lib'
9506      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9507      ;;
9508    esac
9509    ;;
9510
9511  *)
9512    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9513    ;;
9514  esac
9515  dynamic_linker='Win32 ld.exe'
9516  # FIXME: first we should search . and the directory the executable is in
9517  shlibpath_var=PATH
9518  ;;
9519
9520darwin* | rhapsody*)
9521  dynamic_linker="$host_os dyld"
9522  version_type=darwin
9523  need_lib_prefix=no
9524  need_version=no
9525  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9526  soname_spec='${libname}${release}${major}$shared_ext'
9527  shlibpath_overrides_runpath=yes
9528  shlibpath_var=DYLD_LIBRARY_PATH
9529  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9530
9531  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9532  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9533  ;;
9534
9535dgux*)
9536  version_type=linux
9537  need_lib_prefix=no
9538  need_version=no
9539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9540  soname_spec='${libname}${release}${shared_ext}$major'
9541  shlibpath_var=LD_LIBRARY_PATH
9542  ;;
9543
9544freebsd1*)
9545  dynamic_linker=no
9546  ;;
9547
9548freebsd* | dragonfly*)
9549  # DragonFly does not have aout.  When/if they implement a new
9550  # versioning mechanism, adjust this.
9551  if test -x /usr/bin/objformat; then
9552    objformat=`/usr/bin/objformat`
9553  else
9554    case $host_os in
9555    freebsd[123]*) objformat=aout ;;
9556    *) objformat=elf ;;
9557    esac
9558  fi
9559  version_type=freebsd-$objformat
9560  case $version_type in
9561    freebsd-elf*)
9562      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9563      need_version=no
9564      need_lib_prefix=no
9565      ;;
9566    freebsd-*)
9567      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9568      need_version=yes
9569      ;;
9570  esac
9571  shlibpath_var=LD_LIBRARY_PATH
9572  case $host_os in
9573  freebsd2*)
9574    shlibpath_overrides_runpath=yes
9575    ;;
9576  freebsd3.[01]* | freebsdelf3.[01]*)
9577    shlibpath_overrides_runpath=yes
9578    hardcode_into_libs=yes
9579    ;;
9580  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9581  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9582    shlibpath_overrides_runpath=no
9583    hardcode_into_libs=yes
9584    ;;
9585  *) # from 4.6 on, and DragonFly
9586    shlibpath_overrides_runpath=yes
9587    hardcode_into_libs=yes
9588    ;;
9589  esac
9590  ;;
9591
9592gnu*)
9593  version_type=linux
9594  need_lib_prefix=no
9595  need_version=no
9596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9597  soname_spec='${libname}${release}${shared_ext}$major'
9598  shlibpath_var=LD_LIBRARY_PATH
9599  hardcode_into_libs=yes
9600  ;;
9601
9602hpux9* | hpux10* | hpux11*)
9603  # Give a soname corresponding to the major version so that dld.sl refuses to
9604  # link against other versions.
9605  version_type=sunos
9606  need_lib_prefix=no
9607  need_version=no
9608  case $host_cpu in
9609  ia64*)
9610    shrext_cmds='.so'
9611    hardcode_into_libs=yes
9612    dynamic_linker="$host_os dld.so"
9613    shlibpath_var=LD_LIBRARY_PATH
9614    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9615    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616    soname_spec='${libname}${release}${shared_ext}$major'
9617    if test "X$HPUX_IA64_MODE" = X32; then
9618      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9619    else
9620      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9621    fi
9622    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9623    ;;
9624  hppa*64*)
9625    shrext_cmds='.sl'
9626    hardcode_into_libs=yes
9627    dynamic_linker="$host_os dld.sl"
9628    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9629    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9630    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631    soname_spec='${libname}${release}${shared_ext}$major'
9632    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9633    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9634    ;;
9635  *)
9636    shrext_cmds='.sl'
9637    dynamic_linker="$host_os dld.sl"
9638    shlibpath_var=SHLIB_PATH
9639    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9640    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641    soname_spec='${libname}${release}${shared_ext}$major'
9642    ;;
9643  esac
9644  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9645  postinstall_cmds='chmod 555 $lib'
9646  ;;
9647
9648interix[3-9]*)
9649  version_type=linux
9650  need_lib_prefix=no
9651  need_version=no
9652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9653  soname_spec='${libname}${release}${shared_ext}$major'
9654  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9655  shlibpath_var=LD_LIBRARY_PATH
9656  shlibpath_overrides_runpath=no
9657  hardcode_into_libs=yes
9658  ;;
9659
9660irix5* | irix6* | nonstopux*)
9661  case $host_os in
9662    nonstopux*) version_type=nonstopux ;;
9663    *)
9664	if test "$lt_cv_prog_gnu_ld" = yes; then
9665		version_type=linux
9666	else
9667		version_type=irix
9668	fi ;;
9669  esac
9670  need_lib_prefix=no
9671  need_version=no
9672  soname_spec='${libname}${release}${shared_ext}$major'
9673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9674  case $host_os in
9675  irix5* | nonstopux*)
9676    libsuff= shlibsuff=
9677    ;;
9678  *)
9679    case $LD in # libtool.m4 will add one of these switches to LD
9680    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9681      libsuff= shlibsuff= libmagic=32-bit;;
9682    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9683      libsuff=32 shlibsuff=N32 libmagic=N32;;
9684    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9685      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9686    *) libsuff= shlibsuff= libmagic=never-match;;
9687    esac
9688    ;;
9689  esac
9690  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9691  shlibpath_overrides_runpath=no
9692  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9693  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9694  hardcode_into_libs=yes
9695  ;;
9696
9697# No shared lib support for Linux oldld, aout, or coff.
9698linux*oldld* | linux*aout* | linux*coff*)
9699  dynamic_linker=no
9700  ;;
9701
9702# This must be Linux ELF.
9703linux* | k*bsd*-gnu)
9704  version_type=linux
9705  need_lib_prefix=no
9706  need_version=no
9707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708  soname_spec='${libname}${release}${shared_ext}$major'
9709  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9710  shlibpath_var=LD_LIBRARY_PATH
9711  shlibpath_overrides_runpath=no
9712  # Some binutils ld are patched to set DT_RUNPATH
9713  save_LDFLAGS=$LDFLAGS
9714  save_libdir=$libdir
9715  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9716       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9717  cat >conftest.$ac_ext <<_ACEOF
9718/* confdefs.h.  */
9719_ACEOF
9720cat confdefs.h >>conftest.$ac_ext
9721cat >>conftest.$ac_ext <<_ACEOF
9722/* end confdefs.h.  */
9723
9724int
9725main ()
9726{
9727
9728  ;
9729  return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (ac_try="$ac_link"
9734case "(($ac_try" in
9735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736  *) ac_try_echo=$ac_try;;
9737esac
9738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9739$as_echo "$ac_try_echo") >&5
9740  (eval "$ac_link") 2>conftest.er1
9741  ac_status=$?
9742  grep -v '^ *+' conftest.er1 >conftest.err
9743  rm -f conftest.er1
9744  cat conftest.err >&5
9745  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746  (exit $ac_status); } && {
9747	 test -z "$ac_c_werror_flag" ||
9748	 test ! -s conftest.err
9749       } && test -s conftest$ac_exeext && {
9750	 test "$cross_compiling" = yes ||
9751	 $as_test_x conftest$ac_exeext
9752       }; then
9753  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9754  shlibpath_overrides_runpath=yes
9755fi
9756
9757else
9758  $as_echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
9761
9762fi
9763
9764rm -rf conftest.dSYM
9765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9766      conftest$ac_exeext conftest.$ac_ext
9767  LDFLAGS=$save_LDFLAGS
9768  libdir=$save_libdir
9769
9770  # This implies no fast_install, which is unacceptable.
9771  # Some rework will be needed to allow for fast_install
9772  # before this can be enabled.
9773  hardcode_into_libs=yes
9774
9775  # Append ld.so.conf contents to the search path
9776  if test -f /etc/ld.so.conf; then
9777    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' ' '`
9778    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9779  fi
9780
9781  # We used to test for /lib/ld.so.1 and disable shared libraries on
9782  # powerpc, because MkLinux only supported shared libraries with the
9783  # GNU dynamic linker.  Since this was broken with cross compilers,
9784  # most powerpc-linux boxes support dynamic linking these days and
9785  # people can always --disable-shared, the test was removed, and we
9786  # assume the GNU/Linux dynamic linker is in use.
9787  dynamic_linker='GNU/Linux ld.so'
9788  ;;
9789
9790netbsd*)
9791  version_type=sunos
9792  need_lib_prefix=no
9793  need_version=no
9794  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9796    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9797    dynamic_linker='NetBSD (a.out) ld.so'
9798  else
9799    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9800    soname_spec='${libname}${release}${shared_ext}$major'
9801    dynamic_linker='NetBSD ld.elf_so'
9802  fi
9803  shlibpath_var=LD_LIBRARY_PATH
9804  shlibpath_overrides_runpath=yes
9805  hardcode_into_libs=yes
9806  ;;
9807
9808newsos6)
9809  version_type=linux
9810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811  shlibpath_var=LD_LIBRARY_PATH
9812  shlibpath_overrides_runpath=yes
9813  ;;
9814
9815*nto* | *qnx*)
9816  version_type=qnx
9817  need_lib_prefix=no
9818  need_version=no
9819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820  soname_spec='${libname}${release}${shared_ext}$major'
9821  shlibpath_var=LD_LIBRARY_PATH
9822  shlibpath_overrides_runpath=no
9823  hardcode_into_libs=yes
9824  dynamic_linker='ldqnx.so'
9825  ;;
9826
9827openbsd*)
9828  version_type=sunos
9829  sys_lib_dlsearch_path_spec="/usr/lib"
9830  need_lib_prefix=no
9831  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9832  case $host_os in
9833    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9834    *)				need_version=no  ;;
9835  esac
9836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9838  shlibpath_var=LD_LIBRARY_PATH
9839  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9840    case $host_os in
9841      openbsd2.[89] | openbsd2.[89].*)
9842	shlibpath_overrides_runpath=no
9843	;;
9844      *)
9845	shlibpath_overrides_runpath=yes
9846	;;
9847      esac
9848  else
9849    shlibpath_overrides_runpath=yes
9850  fi
9851  ;;
9852
9853os2*)
9854  libname_spec='$name'
9855  shrext_cmds=".dll"
9856  need_lib_prefix=no
9857  library_names_spec='$libname${shared_ext} $libname.a'
9858  dynamic_linker='OS/2 ld.exe'
9859  shlibpath_var=LIBPATH
9860  ;;
9861
9862osf3* | osf4* | osf5*)
9863  version_type=osf
9864  need_lib_prefix=no
9865  need_version=no
9866  soname_spec='${libname}${release}${shared_ext}$major'
9867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868  shlibpath_var=LD_LIBRARY_PATH
9869  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9870  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9871  ;;
9872
9873rdos*)
9874  dynamic_linker=no
9875  ;;
9876
9877solaris*)
9878  version_type=linux
9879  need_lib_prefix=no
9880  need_version=no
9881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882  soname_spec='${libname}${release}${shared_ext}$major'
9883  shlibpath_var=LD_LIBRARY_PATH
9884  shlibpath_overrides_runpath=yes
9885  hardcode_into_libs=yes
9886  # ldd complains unless libraries are executable
9887  postinstall_cmds='chmod +x $lib'
9888  ;;
9889
9890sunos4*)
9891  version_type=sunos
9892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9893  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9894  shlibpath_var=LD_LIBRARY_PATH
9895  shlibpath_overrides_runpath=yes
9896  if test "$with_gnu_ld" = yes; then
9897    need_lib_prefix=no
9898  fi
9899  need_version=yes
9900  ;;
9901
9902sysv4 | sysv4.3*)
9903  version_type=linux
9904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905  soname_spec='${libname}${release}${shared_ext}$major'
9906  shlibpath_var=LD_LIBRARY_PATH
9907  case $host_vendor in
9908    sni)
9909      shlibpath_overrides_runpath=no
9910      need_lib_prefix=no
9911      runpath_var=LD_RUN_PATH
9912      ;;
9913    siemens)
9914      need_lib_prefix=no
9915      ;;
9916    motorola)
9917      need_lib_prefix=no
9918      need_version=no
9919      shlibpath_overrides_runpath=no
9920      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9921      ;;
9922  esac
9923  ;;
9924
9925sysv4*MP*)
9926  if test -d /usr/nec ;then
9927    version_type=linux
9928    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9929    soname_spec='$libname${shared_ext}.$major'
9930    shlibpath_var=LD_LIBRARY_PATH
9931  fi
9932  ;;
9933
9934sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9935  version_type=freebsd-elf
9936  need_lib_prefix=no
9937  need_version=no
9938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9939  soname_spec='${libname}${release}${shared_ext}$major'
9940  shlibpath_var=LD_LIBRARY_PATH
9941  shlibpath_overrides_runpath=yes
9942  hardcode_into_libs=yes
9943  if test "$with_gnu_ld" = yes; then
9944    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9945  else
9946    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9947    case $host_os in
9948      sco3.2v5*)
9949        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9950	;;
9951    esac
9952  fi
9953  sys_lib_dlsearch_path_spec='/usr/lib'
9954  ;;
9955
9956tpf*)
9957  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9958  version_type=linux
9959  need_lib_prefix=no
9960  need_version=no
9961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962  shlibpath_var=LD_LIBRARY_PATH
9963  shlibpath_overrides_runpath=no
9964  hardcode_into_libs=yes
9965  ;;
9966
9967uts4*)
9968  version_type=linux
9969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970  soname_spec='${libname}${release}${shared_ext}$major'
9971  shlibpath_var=LD_LIBRARY_PATH
9972  ;;
9973
9974*)
9975  dynamic_linker=no
9976  ;;
9977esac
9978{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9979$as_echo "$dynamic_linker" >&6; }
9980test "$dynamic_linker" = no && can_build_shared=no
9981
9982variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9983if test "$GCC" = yes; then
9984  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9985fi
9986
9987if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9988  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9989fi
9990if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9991  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9992fi
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10081$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10082hardcode_action=
10083if test -n "$hardcode_libdir_flag_spec" ||
10084   test -n "$runpath_var" ||
10085   test "X$hardcode_automatic" = "Xyes" ; then
10086
10087  # We can hardcode non-existent directories.
10088  if test "$hardcode_direct" != no &&
10089     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10090     # have to relink, otherwise we might link with an installed library
10091     # when we should be linking with a yet-to-be-installed one
10092     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10093     test "$hardcode_minus_L" != no; then
10094    # Linking always hardcodes the temporary library directory.
10095    hardcode_action=relink
10096  else
10097    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10098    hardcode_action=immediate
10099  fi
10100else
10101  # We cannot hardcode anything, or else we can only hardcode existing
10102  # directories.
10103  hardcode_action=unsupported
10104fi
10105{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10106$as_echo "$hardcode_action" >&6; }
10107
10108if test "$hardcode_action" = relink ||
10109   test "$inherit_rpath" = yes; then
10110  # Fast installation is not supported
10111  enable_fast_install=no
10112elif test "$shlibpath_overrides_runpath" = yes ||
10113     test "$enable_shared" = no; then
10114  # Fast installation is not necessary
10115  enable_fast_install=needless
10116fi
10117
10118
10119
10120
10121
10122
10123  if test "x$enable_dlopen" != xyes; then
10124  enable_dlopen=unknown
10125  enable_dlopen_self=unknown
10126  enable_dlopen_self_static=unknown
10127else
10128  lt_cv_dlopen=no
10129  lt_cv_dlopen_libs=
10130
10131  case $host_os in
10132  beos*)
10133    lt_cv_dlopen="load_add_on"
10134    lt_cv_dlopen_libs=
10135    lt_cv_dlopen_self=yes
10136    ;;
10137
10138  mingw* | pw32* | cegcc*)
10139    lt_cv_dlopen="LoadLibrary"
10140    lt_cv_dlopen_libs=
10141    ;;
10142
10143  cygwin*)
10144    lt_cv_dlopen="dlopen"
10145    lt_cv_dlopen_libs=
10146    ;;
10147
10148  darwin*)
10149  # if libdl is installed we need to link against it
10150    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10151$as_echo_n "checking for dlopen in -ldl... " >&6; }
10152if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10153  $as_echo_n "(cached) " >&6
10154else
10155  ac_check_lib_save_LIBS=$LIBS
10156LIBS="-ldl  $LIBS"
10157cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h.  */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h.  */
10163
10164/* Override any GCC internal prototype to avoid an error.
10165   Use char because int might match the return type of a GCC
10166   builtin and then its argument prototype would still apply.  */
10167#ifdef __cplusplus
10168extern "C"
10169#endif
10170char dlopen ();
10171int
10172main ()
10173{
10174return dlopen ();
10175  ;
10176  return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext conftest$ac_exeext
10180if { (ac_try="$ac_link"
10181case "(($ac_try" in
10182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183  *) ac_try_echo=$ac_try;;
10184esac
10185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10186$as_echo "$ac_try_echo") >&5
10187  (eval "$ac_link") 2>conftest.er1
10188  ac_status=$?
10189  grep -v '^ *+' conftest.er1 >conftest.err
10190  rm -f conftest.er1
10191  cat conftest.err >&5
10192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193  (exit $ac_status); } && {
10194	 test -z "$ac_c_werror_flag" ||
10195	 test ! -s conftest.err
10196       } && test -s conftest$ac_exeext && {
10197	 test "$cross_compiling" = yes ||
10198	 $as_test_x conftest$ac_exeext
10199       }; then
10200  ac_cv_lib_dl_dlopen=yes
10201else
10202  $as_echo "$as_me: failed program was:" >&5
10203sed 's/^/| /' conftest.$ac_ext >&5
10204
10205	ac_cv_lib_dl_dlopen=no
10206fi
10207
10208rm -rf conftest.dSYM
10209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10210      conftest$ac_exeext conftest.$ac_ext
10211LIBS=$ac_check_lib_save_LIBS
10212fi
10213{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10214$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10215if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10216  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10217else
10218
10219    lt_cv_dlopen="dyld"
10220    lt_cv_dlopen_libs=
10221    lt_cv_dlopen_self=yes
10222
10223fi
10224
10225    ;;
10226
10227  *)
10228    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10229$as_echo_n "checking for shl_load... " >&6; }
10230if test "${ac_cv_func_shl_load+set}" = set; then
10231  $as_echo_n "(cached) " >&6
10232else
10233  cat >conftest.$ac_ext <<_ACEOF
10234/* confdefs.h.  */
10235_ACEOF
10236cat confdefs.h >>conftest.$ac_ext
10237cat >>conftest.$ac_ext <<_ACEOF
10238/* end confdefs.h.  */
10239/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10240   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10241#define shl_load innocuous_shl_load
10242
10243/* System header to define __stub macros and hopefully few prototypes,
10244    which can conflict with char shl_load (); below.
10245    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246    <limits.h> exists even on freestanding compilers.  */
10247
10248#ifdef __STDC__
10249# include <limits.h>
10250#else
10251# include <assert.h>
10252#endif
10253
10254#undef shl_load
10255
10256/* Override any GCC internal prototype to avoid an error.
10257   Use char because int might match the return type of a GCC
10258   builtin and then its argument prototype would still apply.  */
10259#ifdef __cplusplus
10260extern "C"
10261#endif
10262char shl_load ();
10263/* The GNU C library defines this for functions which it implements
10264    to always fail with ENOSYS.  Some functions are actually named
10265    something starting with __ and the normal name is an alias.  */
10266#if defined __stub_shl_load || defined __stub___shl_load
10267choke me
10268#endif
10269
10270int
10271main ()
10272{
10273return shl_load ();
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278rm -f conftest.$ac_objext conftest$ac_exeext
10279if { (ac_try="$ac_link"
10280case "(($ac_try" in
10281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282  *) ac_try_echo=$ac_try;;
10283esac
10284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10285$as_echo "$ac_try_echo") >&5
10286  (eval "$ac_link") 2>conftest.er1
10287  ac_status=$?
10288  grep -v '^ *+' conftest.er1 >conftest.err
10289  rm -f conftest.er1
10290  cat conftest.err >&5
10291  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292  (exit $ac_status); } && {
10293	 test -z "$ac_c_werror_flag" ||
10294	 test ! -s conftest.err
10295       } && test -s conftest$ac_exeext && {
10296	 test "$cross_compiling" = yes ||
10297	 $as_test_x conftest$ac_exeext
10298       }; then
10299  ac_cv_func_shl_load=yes
10300else
10301  $as_echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
10304	ac_cv_func_shl_load=no
10305fi
10306
10307rm -rf conftest.dSYM
10308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10309      conftest$ac_exeext conftest.$ac_ext
10310fi
10311{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10312$as_echo "$ac_cv_func_shl_load" >&6; }
10313if test "x$ac_cv_func_shl_load" = x""yes; then
10314  lt_cv_dlopen="shl_load"
10315else
10316  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10317$as_echo_n "checking for shl_load in -ldld... " >&6; }
10318if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10319  $as_echo_n "(cached) " >&6
10320else
10321  ac_check_lib_save_LIBS=$LIBS
10322LIBS="-ldld  $LIBS"
10323cat >conftest.$ac_ext <<_ACEOF
10324/* confdefs.h.  */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h.  */
10329
10330/* Override any GCC internal prototype to avoid an error.
10331   Use char because int might match the return type of a GCC
10332   builtin and then its argument prototype would still apply.  */
10333#ifdef __cplusplus
10334extern "C"
10335#endif
10336char shl_load ();
10337int
10338main ()
10339{
10340return shl_load ();
10341  ;
10342  return 0;
10343}
10344_ACEOF
10345rm -f conftest.$ac_objext conftest$ac_exeext
10346if { (ac_try="$ac_link"
10347case "(($ac_try" in
10348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349  *) ac_try_echo=$ac_try;;
10350esac
10351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10352$as_echo "$ac_try_echo") >&5
10353  (eval "$ac_link") 2>conftest.er1
10354  ac_status=$?
10355  grep -v '^ *+' conftest.er1 >conftest.err
10356  rm -f conftest.er1
10357  cat conftest.err >&5
10358  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359  (exit $ac_status); } && {
10360	 test -z "$ac_c_werror_flag" ||
10361	 test ! -s conftest.err
10362       } && test -s conftest$ac_exeext && {
10363	 test "$cross_compiling" = yes ||
10364	 $as_test_x conftest$ac_exeext
10365       }; then
10366  ac_cv_lib_dld_shl_load=yes
10367else
10368  $as_echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371	ac_cv_lib_dld_shl_load=no
10372fi
10373
10374rm -rf conftest.dSYM
10375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10376      conftest$ac_exeext conftest.$ac_ext
10377LIBS=$ac_check_lib_save_LIBS
10378fi
10379{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10380$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10381if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10382  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10383else
10384  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10385$as_echo_n "checking for dlopen... " >&6; }
10386if test "${ac_cv_func_dlopen+set}" = set; then
10387  $as_echo_n "(cached) " >&6
10388else
10389  cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h.  */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h.  */
10395/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10396   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10397#define dlopen innocuous_dlopen
10398
10399/* System header to define __stub macros and hopefully few prototypes,
10400    which can conflict with char dlopen (); below.
10401    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10402    <limits.h> exists even on freestanding compilers.  */
10403
10404#ifdef __STDC__
10405# include <limits.h>
10406#else
10407# include <assert.h>
10408#endif
10409
10410#undef dlopen
10411
10412/* Override any GCC internal prototype to avoid an error.
10413   Use char because int might match the return type of a GCC
10414   builtin and then its argument prototype would still apply.  */
10415#ifdef __cplusplus
10416extern "C"
10417#endif
10418char dlopen ();
10419/* The GNU C library defines this for functions which it implements
10420    to always fail with ENOSYS.  Some functions are actually named
10421    something starting with __ and the normal name is an alias.  */
10422#if defined __stub_dlopen || defined __stub___dlopen
10423choke me
10424#endif
10425
10426int
10427main ()
10428{
10429return dlopen ();
10430  ;
10431  return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext conftest$ac_exeext
10435if { (ac_try="$ac_link"
10436case "(($ac_try" in
10437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438  *) ac_try_echo=$ac_try;;
10439esac
10440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10441$as_echo "$ac_try_echo") >&5
10442  (eval "$ac_link") 2>conftest.er1
10443  ac_status=$?
10444  grep -v '^ *+' conftest.er1 >conftest.err
10445  rm -f conftest.er1
10446  cat conftest.err >&5
10447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); } && {
10449	 test -z "$ac_c_werror_flag" ||
10450	 test ! -s conftest.err
10451       } && test -s conftest$ac_exeext && {
10452	 test "$cross_compiling" = yes ||
10453	 $as_test_x conftest$ac_exeext
10454       }; then
10455  ac_cv_func_dlopen=yes
10456else
10457  $as_echo "$as_me: failed program was:" >&5
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
10460	ac_cv_func_dlopen=no
10461fi
10462
10463rm -rf conftest.dSYM
10464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465      conftest$ac_exeext conftest.$ac_ext
10466fi
10467{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10468$as_echo "$ac_cv_func_dlopen" >&6; }
10469if test "x$ac_cv_func_dlopen" = x""yes; then
10470  lt_cv_dlopen="dlopen"
10471else
10472  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10473$as_echo_n "checking for dlopen in -ldl... " >&6; }
10474if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10475  $as_echo_n "(cached) " >&6
10476else
10477  ac_check_lib_save_LIBS=$LIBS
10478LIBS="-ldl  $LIBS"
10479cat >conftest.$ac_ext <<_ACEOF
10480/* confdefs.h.  */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h.  */
10485
10486/* Override any GCC internal prototype to avoid an error.
10487   Use char because int might match the return type of a GCC
10488   builtin and then its argument prototype would still apply.  */
10489#ifdef __cplusplus
10490extern "C"
10491#endif
10492char dlopen ();
10493int
10494main ()
10495{
10496return dlopen ();
10497  ;
10498  return 0;
10499}
10500_ACEOF
10501rm -f conftest.$ac_objext conftest$ac_exeext
10502if { (ac_try="$ac_link"
10503case "(($ac_try" in
10504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505  *) ac_try_echo=$ac_try;;
10506esac
10507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10508$as_echo "$ac_try_echo") >&5
10509  (eval "$ac_link") 2>conftest.er1
10510  ac_status=$?
10511  grep -v '^ *+' conftest.er1 >conftest.err
10512  rm -f conftest.er1
10513  cat conftest.err >&5
10514  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515  (exit $ac_status); } && {
10516	 test -z "$ac_c_werror_flag" ||
10517	 test ! -s conftest.err
10518       } && test -s conftest$ac_exeext && {
10519	 test "$cross_compiling" = yes ||
10520	 $as_test_x conftest$ac_exeext
10521       }; then
10522  ac_cv_lib_dl_dlopen=yes
10523else
10524  $as_echo "$as_me: failed program was:" >&5
10525sed 's/^/| /' conftest.$ac_ext >&5
10526
10527	ac_cv_lib_dl_dlopen=no
10528fi
10529
10530rm -rf conftest.dSYM
10531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10532      conftest$ac_exeext conftest.$ac_ext
10533LIBS=$ac_check_lib_save_LIBS
10534fi
10535{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10536$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10537if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10538  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10539else
10540  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10541$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10542if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10543  $as_echo_n "(cached) " >&6
10544else
10545  ac_check_lib_save_LIBS=$LIBS
10546LIBS="-lsvld  $LIBS"
10547cat >conftest.$ac_ext <<_ACEOF
10548/* confdefs.h.  */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h.  */
10553
10554/* Override any GCC internal prototype to avoid an error.
10555   Use char because int might match the return type of a GCC
10556   builtin and then its argument prototype would still apply.  */
10557#ifdef __cplusplus
10558extern "C"
10559#endif
10560char dlopen ();
10561int
10562main ()
10563{
10564return dlopen ();
10565  ;
10566  return 0;
10567}
10568_ACEOF
10569rm -f conftest.$ac_objext conftest$ac_exeext
10570if { (ac_try="$ac_link"
10571case "(($ac_try" in
10572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573  *) ac_try_echo=$ac_try;;
10574esac
10575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10576$as_echo "$ac_try_echo") >&5
10577  (eval "$ac_link") 2>conftest.er1
10578  ac_status=$?
10579  grep -v '^ *+' conftest.er1 >conftest.err
10580  rm -f conftest.er1
10581  cat conftest.err >&5
10582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583  (exit $ac_status); } && {
10584	 test -z "$ac_c_werror_flag" ||
10585	 test ! -s conftest.err
10586       } && test -s conftest$ac_exeext && {
10587	 test "$cross_compiling" = yes ||
10588	 $as_test_x conftest$ac_exeext
10589       }; then
10590  ac_cv_lib_svld_dlopen=yes
10591else
10592  $as_echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
10595	ac_cv_lib_svld_dlopen=no
10596fi
10597
10598rm -rf conftest.dSYM
10599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600      conftest$ac_exeext conftest.$ac_ext
10601LIBS=$ac_check_lib_save_LIBS
10602fi
10603{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10604$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10605if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10606  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10607else
10608  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10609$as_echo_n "checking for dld_link in -ldld... " >&6; }
10610if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10611  $as_echo_n "(cached) " >&6
10612else
10613  ac_check_lib_save_LIBS=$LIBS
10614LIBS="-ldld  $LIBS"
10615cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h.  */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
10620/* end confdefs.h.  */
10621
10622/* Override any GCC internal prototype to avoid an error.
10623   Use char because int might match the return type of a GCC
10624   builtin and then its argument prototype would still apply.  */
10625#ifdef __cplusplus
10626extern "C"
10627#endif
10628char dld_link ();
10629int
10630main ()
10631{
10632return dld_link ();
10633  ;
10634  return 0;
10635}
10636_ACEOF
10637rm -f conftest.$ac_objext conftest$ac_exeext
10638if { (ac_try="$ac_link"
10639case "(($ac_try" in
10640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641  *) ac_try_echo=$ac_try;;
10642esac
10643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10644$as_echo "$ac_try_echo") >&5
10645  (eval "$ac_link") 2>conftest.er1
10646  ac_status=$?
10647  grep -v '^ *+' conftest.er1 >conftest.err
10648  rm -f conftest.er1
10649  cat conftest.err >&5
10650  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651  (exit $ac_status); } && {
10652	 test -z "$ac_c_werror_flag" ||
10653	 test ! -s conftest.err
10654       } && test -s conftest$ac_exeext && {
10655	 test "$cross_compiling" = yes ||
10656	 $as_test_x conftest$ac_exeext
10657       }; then
10658  ac_cv_lib_dld_dld_link=yes
10659else
10660  $as_echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663	ac_cv_lib_dld_dld_link=no
10664fi
10665
10666rm -rf conftest.dSYM
10667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10668      conftest$ac_exeext conftest.$ac_ext
10669LIBS=$ac_check_lib_save_LIBS
10670fi
10671{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10672$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10673if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10674  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10675fi
10676
10677
10678fi
10679
10680
10681fi
10682
10683
10684fi
10685
10686
10687fi
10688
10689
10690fi
10691
10692    ;;
10693  esac
10694
10695  if test "x$lt_cv_dlopen" != xno; then
10696    enable_dlopen=yes
10697  else
10698    enable_dlopen=no
10699  fi
10700
10701  case $lt_cv_dlopen in
10702  dlopen)
10703    save_CPPFLAGS="$CPPFLAGS"
10704    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10705
10706    save_LDFLAGS="$LDFLAGS"
10707    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10708
10709    save_LIBS="$LIBS"
10710    LIBS="$lt_cv_dlopen_libs $LIBS"
10711
10712    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10713$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10714if test "${lt_cv_dlopen_self+set}" = set; then
10715  $as_echo_n "(cached) " >&6
10716else
10717  	  if test "$cross_compiling" = yes; then :
10718  lt_cv_dlopen_self=cross
10719else
10720  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10721  lt_status=$lt_dlunknown
10722  cat > conftest.$ac_ext <<_LT_EOF
10723#line 10723 "configure"
10724#include "confdefs.h"
10725
10726#if HAVE_DLFCN_H
10727#include <dlfcn.h>
10728#endif
10729
10730#include <stdio.h>
10731
10732#ifdef RTLD_GLOBAL
10733#  define LT_DLGLOBAL		RTLD_GLOBAL
10734#else
10735#  ifdef DL_GLOBAL
10736#    define LT_DLGLOBAL		DL_GLOBAL
10737#  else
10738#    define LT_DLGLOBAL		0
10739#  endif
10740#endif
10741
10742/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10743   find out it does not work in some platform. */
10744#ifndef LT_DLLAZY_OR_NOW
10745#  ifdef RTLD_LAZY
10746#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10747#  else
10748#    ifdef DL_LAZY
10749#      define LT_DLLAZY_OR_NOW		DL_LAZY
10750#    else
10751#      ifdef RTLD_NOW
10752#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10753#      else
10754#        ifdef DL_NOW
10755#          define LT_DLLAZY_OR_NOW	DL_NOW
10756#        else
10757#          define LT_DLLAZY_OR_NOW	0
10758#        endif
10759#      endif
10760#    endif
10761#  endif
10762#endif
10763
10764void fnord() { int i=42;}
10765int main ()
10766{
10767  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10768  int status = $lt_dlunknown;
10769
10770  if (self)
10771    {
10772      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10773      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10774      /* dlclose (self); */
10775    }
10776  else
10777    puts (dlerror ());
10778
10779  return status;
10780}
10781_LT_EOF
10782  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783  (eval $ac_link) 2>&5
10784  ac_status=$?
10785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10787    (./conftest; exit; ) >&5 2>/dev/null
10788    lt_status=$?
10789    case x$lt_status in
10790      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10791      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10792      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10793    esac
10794  else :
10795    # compilation failed
10796    lt_cv_dlopen_self=no
10797  fi
10798fi
10799rm -fr conftest*
10800
10801
10802fi
10803{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10804$as_echo "$lt_cv_dlopen_self" >&6; }
10805
10806    if test "x$lt_cv_dlopen_self" = xyes; then
10807      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10808      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10809$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10810if test "${lt_cv_dlopen_self_static+set}" = set; then
10811  $as_echo_n "(cached) " >&6
10812else
10813  	  if test "$cross_compiling" = yes; then :
10814  lt_cv_dlopen_self_static=cross
10815else
10816  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10817  lt_status=$lt_dlunknown
10818  cat > conftest.$ac_ext <<_LT_EOF
10819#line 10819 "configure"
10820#include "confdefs.h"
10821
10822#if HAVE_DLFCN_H
10823#include <dlfcn.h>
10824#endif
10825
10826#include <stdio.h>
10827
10828#ifdef RTLD_GLOBAL
10829#  define LT_DLGLOBAL		RTLD_GLOBAL
10830#else
10831#  ifdef DL_GLOBAL
10832#    define LT_DLGLOBAL		DL_GLOBAL
10833#  else
10834#    define LT_DLGLOBAL		0
10835#  endif
10836#endif
10837
10838/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10839   find out it does not work in some platform. */
10840#ifndef LT_DLLAZY_OR_NOW
10841#  ifdef RTLD_LAZY
10842#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10843#  else
10844#    ifdef DL_LAZY
10845#      define LT_DLLAZY_OR_NOW		DL_LAZY
10846#    else
10847#      ifdef RTLD_NOW
10848#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10849#      else
10850#        ifdef DL_NOW
10851#          define LT_DLLAZY_OR_NOW	DL_NOW
10852#        else
10853#          define LT_DLLAZY_OR_NOW	0
10854#        endif
10855#      endif
10856#    endif
10857#  endif
10858#endif
10859
10860void fnord() { int i=42;}
10861int main ()
10862{
10863  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10864  int status = $lt_dlunknown;
10865
10866  if (self)
10867    {
10868      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10869      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10870      /* dlclose (self); */
10871    }
10872  else
10873    puts (dlerror ());
10874
10875  return status;
10876}
10877_LT_EOF
10878  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10879  (eval $ac_link) 2>&5
10880  ac_status=$?
10881  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10883    (./conftest; exit; ) >&5 2>/dev/null
10884    lt_status=$?
10885    case x$lt_status in
10886      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10887      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10888      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10889    esac
10890  else :
10891    # compilation failed
10892    lt_cv_dlopen_self_static=no
10893  fi
10894fi
10895rm -fr conftest*
10896
10897
10898fi
10899{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10900$as_echo "$lt_cv_dlopen_self_static" >&6; }
10901    fi
10902
10903    CPPFLAGS="$save_CPPFLAGS"
10904    LDFLAGS="$save_LDFLAGS"
10905    LIBS="$save_LIBS"
10906    ;;
10907  esac
10908
10909  case $lt_cv_dlopen_self in
10910  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10911  *) enable_dlopen_self=unknown ;;
10912  esac
10913
10914  case $lt_cv_dlopen_self_static in
10915  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10916  *) enable_dlopen_self_static=unknown ;;
10917  esac
10918fi
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936striplib=
10937old_striplib=
10938{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10939$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10940if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10941  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10942  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10943  { $as_echo "$as_me:$LINENO: result: yes" >&5
10944$as_echo "yes" >&6; }
10945else
10946# FIXME - insert some real tests, host_os isn't really good enough
10947  case $host_os in
10948  darwin*)
10949    if test -n "$STRIP" ; then
10950      striplib="$STRIP -x"
10951      old_striplib="$STRIP -S"
10952      { $as_echo "$as_me:$LINENO: result: yes" >&5
10953$as_echo "yes" >&6; }
10954    else
10955      { $as_echo "$as_me:$LINENO: result: no" >&5
10956$as_echo "no" >&6; }
10957    fi
10958    ;;
10959  *)
10960    { $as_echo "$as_me:$LINENO: result: no" >&5
10961$as_echo "no" >&6; }
10962    ;;
10963  esac
10964fi
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977  # Report which library types will actually be built
10978  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10979$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10980  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10981$as_echo "$can_build_shared" >&6; }
10982
10983  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10984$as_echo_n "checking whether to build shared libraries... " >&6; }
10985  test "$can_build_shared" = "no" && enable_shared=no
10986
10987  # On AIX, shared libraries and static libraries use the same namespace, and
10988  # are all built from PIC.
10989  case $host_os in
10990  aix3*)
10991    test "$enable_shared" = yes && enable_static=no
10992    if test -n "$RANLIB"; then
10993      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10994      postinstall_cmds='$RANLIB $lib'
10995    fi
10996    ;;
10997
10998  aix[4-9]*)
10999    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11000      test "$enable_shared" = yes && enable_static=no
11001    fi
11002    ;;
11003  esac
11004  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11005$as_echo "$enable_shared" >&6; }
11006
11007  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11008$as_echo_n "checking whether to build static libraries... " >&6; }
11009  # Make sure either enable_shared or enable_static is yes.
11010  test "$enable_shared" = yes || enable_static=yes
11011  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11012$as_echo "$enable_static" >&6; }
11013
11014
11015
11016
11017fi
11018ac_ext=c
11019ac_cpp='$CPP $CPPFLAGS'
11020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11022ac_compiler_gnu=$ac_cv_c_compiler_gnu
11023
11024CC="$lt_save_CC"
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038        ac_config_commands="$ac_config_commands libtool"
11039
11040
11041
11042
11043# Only expand once:
11044
11045
11046
11047
11048 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11049$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11050if test "${ac_cv_c_bigendian+set}" = set; then
11051  $as_echo_n "(cached) " >&6
11052else
11053  ac_cv_c_bigendian=unknown
11054    # See if we're dealing with a universal compiler.
11055    cat >conftest.$ac_ext <<_ACEOF
11056/* confdefs.h.  */
11057_ACEOF
11058cat confdefs.h >>conftest.$ac_ext
11059cat >>conftest.$ac_ext <<_ACEOF
11060/* end confdefs.h.  */
11061#ifndef __APPLE_CC__
11062	       not a universal capable compiler
11063	     #endif
11064	     typedef int dummy;
11065
11066_ACEOF
11067rm -f conftest.$ac_objext
11068if { (ac_try="$ac_compile"
11069case "(($ac_try" in
11070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071  *) ac_try_echo=$ac_try;;
11072esac
11073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11074$as_echo "$ac_try_echo") >&5
11075  (eval "$ac_compile") 2>conftest.er1
11076  ac_status=$?
11077  grep -v '^ *+' conftest.er1 >conftest.err
11078  rm -f conftest.er1
11079  cat conftest.err >&5
11080  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081  (exit $ac_status); } && {
11082	 test -z "$ac_c_werror_flag" ||
11083	 test ! -s conftest.err
11084       } && test -s conftest.$ac_objext; then
11085
11086	# Check for potential -arch flags.  It is not universal unless
11087	# there are some -arch flags.  Note that *ppc* also matches
11088	# ppc64.  This check is also rather less than ideal.
11089	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
11090	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
11091	esac
11092else
11093  $as_echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096
11097fi
11098
11099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100    if test $ac_cv_c_bigendian = unknown; then
11101      # See if sys/param.h defines the BYTE_ORDER macro.
11102      cat >conftest.$ac_ext <<_ACEOF
11103/* confdefs.h.  */
11104_ACEOF
11105cat confdefs.h >>conftest.$ac_ext
11106cat >>conftest.$ac_ext <<_ACEOF
11107/* end confdefs.h.  */
11108#include <sys/types.h>
11109	     #include <sys/param.h>
11110
11111int
11112main ()
11113{
11114#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11115		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11116		     && LITTLE_ENDIAN)
11117	      bogus endian macros
11118	     #endif
11119
11120  ;
11121  return 0;
11122}
11123_ACEOF
11124rm -f conftest.$ac_objext
11125if { (ac_try="$ac_compile"
11126case "(($ac_try" in
11127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128  *) ac_try_echo=$ac_try;;
11129esac
11130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11131$as_echo "$ac_try_echo") >&5
11132  (eval "$ac_compile") 2>conftest.er1
11133  ac_status=$?
11134  grep -v '^ *+' conftest.er1 >conftest.err
11135  rm -f conftest.er1
11136  cat conftest.err >&5
11137  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138  (exit $ac_status); } && {
11139	 test -z "$ac_c_werror_flag" ||
11140	 test ! -s conftest.err
11141       } && test -s conftest.$ac_objext; then
11142  # It does; now see whether it defined to BIG_ENDIAN or not.
11143	 cat >conftest.$ac_ext <<_ACEOF
11144/* confdefs.h.  */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h.  */
11149#include <sys/types.h>
11150		#include <sys/param.h>
11151
11152int
11153main ()
11154{
11155#if BYTE_ORDER != BIG_ENDIAN
11156		 not big endian
11157		#endif
11158
11159  ;
11160  return 0;
11161}
11162_ACEOF
11163rm -f conftest.$ac_objext
11164if { (ac_try="$ac_compile"
11165case "(($ac_try" in
11166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167  *) ac_try_echo=$ac_try;;
11168esac
11169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11170$as_echo "$ac_try_echo") >&5
11171  (eval "$ac_compile") 2>conftest.er1
11172  ac_status=$?
11173  grep -v '^ *+' conftest.er1 >conftest.err
11174  rm -f conftest.er1
11175  cat conftest.err >&5
11176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177  (exit $ac_status); } && {
11178	 test -z "$ac_c_werror_flag" ||
11179	 test ! -s conftest.err
11180       } && test -s conftest.$ac_objext; then
11181  ac_cv_c_bigendian=yes
11182else
11183  $as_echo "$as_me: failed program was:" >&5
11184sed 's/^/| /' conftest.$ac_ext >&5
11185
11186	ac_cv_c_bigendian=no
11187fi
11188
11189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190else
11191  $as_echo "$as_me: failed program was:" >&5
11192sed 's/^/| /' conftest.$ac_ext >&5
11193
11194
11195fi
11196
11197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198    fi
11199    if test $ac_cv_c_bigendian = unknown; then
11200      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11201      cat >conftest.$ac_ext <<_ACEOF
11202/* confdefs.h.  */
11203_ACEOF
11204cat confdefs.h >>conftest.$ac_ext
11205cat >>conftest.$ac_ext <<_ACEOF
11206/* end confdefs.h.  */
11207#include <limits.h>
11208
11209int
11210main ()
11211{
11212#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11213	      bogus endian macros
11214	     #endif
11215
11216  ;
11217  return 0;
11218}
11219_ACEOF
11220rm -f conftest.$ac_objext
11221if { (ac_try="$ac_compile"
11222case "(($ac_try" in
11223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224  *) ac_try_echo=$ac_try;;
11225esac
11226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11227$as_echo "$ac_try_echo") >&5
11228  (eval "$ac_compile") 2>conftest.er1
11229  ac_status=$?
11230  grep -v '^ *+' conftest.er1 >conftest.err
11231  rm -f conftest.er1
11232  cat conftest.err >&5
11233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234  (exit $ac_status); } && {
11235	 test -z "$ac_c_werror_flag" ||
11236	 test ! -s conftest.err
11237       } && test -s conftest.$ac_objext; then
11238  # It does; now see whether it defined to _BIG_ENDIAN or not.
11239	 cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h.  */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h.  */
11245#include <limits.h>
11246
11247int
11248main ()
11249{
11250#ifndef _BIG_ENDIAN
11251		 not big endian
11252		#endif
11253
11254  ;
11255  return 0;
11256}
11257_ACEOF
11258rm -f conftest.$ac_objext
11259if { (ac_try="$ac_compile"
11260case "(($ac_try" in
11261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262  *) ac_try_echo=$ac_try;;
11263esac
11264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11265$as_echo "$ac_try_echo") >&5
11266  (eval "$ac_compile") 2>conftest.er1
11267  ac_status=$?
11268  grep -v '^ *+' conftest.er1 >conftest.err
11269  rm -f conftest.er1
11270  cat conftest.err >&5
11271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272  (exit $ac_status); } && {
11273	 test -z "$ac_c_werror_flag" ||
11274	 test ! -s conftest.err
11275       } && test -s conftest.$ac_objext; then
11276  ac_cv_c_bigendian=yes
11277else
11278  $as_echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
11281	ac_cv_c_bigendian=no
11282fi
11283
11284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285else
11286  $as_echo "$as_me: failed program was:" >&5
11287sed 's/^/| /' conftest.$ac_ext >&5
11288
11289
11290fi
11291
11292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293    fi
11294    if test $ac_cv_c_bigendian = unknown; then
11295      # Compile a test program.
11296      if test "$cross_compiling" = yes; then
11297  # Try to guess by grepping values from an object file.
11298	 cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h.  */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h.  */
11304short int ascii_mm[] =
11305		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11306		short int ascii_ii[] =
11307		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11308		int use_ascii (int i) {
11309		  return ascii_mm[i] + ascii_ii[i];
11310		}
11311		short int ebcdic_ii[] =
11312		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11313		short int ebcdic_mm[] =
11314		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11315		int use_ebcdic (int i) {
11316		  return ebcdic_mm[i] + ebcdic_ii[i];
11317		}
11318		extern int foo;
11319
11320int
11321main ()
11322{
11323return use_ascii (foo) == use_ebcdic (foo);
11324  ;
11325  return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext
11329if { (ac_try="$ac_compile"
11330case "(($ac_try" in
11331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332  *) ac_try_echo=$ac_try;;
11333esac
11334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11335$as_echo "$ac_try_echo") >&5
11336  (eval "$ac_compile") 2>conftest.er1
11337  ac_status=$?
11338  grep -v '^ *+' conftest.er1 >conftest.err
11339  rm -f conftest.er1
11340  cat conftest.err >&5
11341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342  (exit $ac_status); } && {
11343	 test -z "$ac_c_werror_flag" ||
11344	 test ! -s conftest.err
11345       } && test -s conftest.$ac_objext; then
11346  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11347	      ac_cv_c_bigendian=yes
11348	    fi
11349	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11350	      if test "$ac_cv_c_bigendian" = unknown; then
11351		ac_cv_c_bigendian=no
11352	      else
11353		# finding both strings is unlikely to happen, but who knows?
11354		ac_cv_c_bigendian=unknown
11355	      fi
11356	    fi
11357else
11358  $as_echo "$as_me: failed program was:" >&5
11359sed 's/^/| /' conftest.$ac_ext >&5
11360
11361
11362fi
11363
11364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365else
11366  cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h.  */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h.  */
11372$ac_includes_default
11373int
11374main ()
11375{
11376
11377	     /* Are we little or big endian?  From Harbison&Steele.  */
11378	     union
11379	     {
11380	       long int l;
11381	       char c[sizeof (long int)];
11382	     } u;
11383	     u.l = 1;
11384	     return u.c[sizeof (long int) - 1] == 1;
11385
11386  ;
11387  return 0;
11388}
11389_ACEOF
11390rm -f conftest$ac_exeext
11391if { (ac_try="$ac_link"
11392case "(($ac_try" in
11393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394  *) ac_try_echo=$ac_try;;
11395esac
11396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397$as_echo "$ac_try_echo") >&5
11398  (eval "$ac_link") 2>&5
11399  ac_status=$?
11400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11402  { (case "(($ac_try" in
11403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404  *) ac_try_echo=$ac_try;;
11405esac
11406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11407$as_echo "$ac_try_echo") >&5
11408  (eval "$ac_try") 2>&5
11409  ac_status=$?
11410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411  (exit $ac_status); }; }; then
11412  ac_cv_c_bigendian=no
11413else
11414  $as_echo "$as_me: program exited with status $ac_status" >&5
11415$as_echo "$as_me: failed program was:" >&5
11416sed 's/^/| /' conftest.$ac_ext >&5
11417
11418( exit $ac_status )
11419ac_cv_c_bigendian=yes
11420fi
11421rm -rf conftest.dSYM
11422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11423fi
11424
11425
11426    fi
11427fi
11428{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11429$as_echo "$ac_cv_c_bigendian" >&6; }
11430 case $ac_cv_c_bigendian in #(
11431   yes)
11432     cat >>confdefs.h <<\_ACEOF
11433#define WORDS_BIGENDIAN 1
11434_ACEOF
11435;; #(
11436   no)
11437      ;; #(
11438   universal)
11439
11440cat >>confdefs.h <<\_ACEOF
11441#define AC_APPLE_UNIVERSAL_BUILD 1
11442_ACEOF
11443
11444     ;; #(
11445   *)
11446     { { $as_echo "$as_me:$LINENO: error: unknown endianness
11447 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11448$as_echo "$as_me: error: unknown endianness
11449 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11450   { (exit 1); exit 1; }; } ;;
11451 esac
11452
11453
11454
11455
11456
11457
11458
11459for ac_header in math.h stdarg.h pthread.h dirent.h ladspa.h
11460do
11461as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11464$as_echo_n "checking for $ac_header... " >&6; }
11465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466  $as_echo_n "(cached) " >&6
11467fi
11468ac_res=`eval 'as_val=${'$as_ac_Header'}
11469		 $as_echo "$as_val"'`
11470	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11471$as_echo "$ac_res" >&6; }
11472else
11473  # Is the header compilable?
11474{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11475$as_echo_n "checking $ac_header usability... " >&6; }
11476cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h.  */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h.  */
11482$ac_includes_default
11483#include <$ac_header>
11484_ACEOF
11485rm -f conftest.$ac_objext
11486if { (ac_try="$ac_compile"
11487case "(($ac_try" in
11488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489  *) ac_try_echo=$ac_try;;
11490esac
11491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11492$as_echo "$ac_try_echo") >&5
11493  (eval "$ac_compile") 2>conftest.er1
11494  ac_status=$?
11495  grep -v '^ *+' conftest.er1 >conftest.err
11496  rm -f conftest.er1
11497  cat conftest.err >&5
11498  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499  (exit $ac_status); } && {
11500	 test -z "$ac_c_werror_flag" ||
11501	 test ! -s conftest.err
11502       } && test -s conftest.$ac_objext; then
11503  ac_header_compiler=yes
11504else
11505  $as_echo "$as_me: failed program was:" >&5
11506sed 's/^/| /' conftest.$ac_ext >&5
11507
11508	ac_header_compiler=no
11509fi
11510
11511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513$as_echo "$ac_header_compiler" >&6; }
11514
11515# Is the header present?
11516{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11517$as_echo_n "checking $ac_header presence... " >&6; }
11518cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h.  */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h.  */
11524#include <$ac_header>
11525_ACEOF
11526if { (ac_try="$ac_cpp conftest.$ac_ext"
11527case "(($ac_try" in
11528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529  *) ac_try_echo=$ac_try;;
11530esac
11531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11532$as_echo "$ac_try_echo") >&5
11533  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11534  ac_status=$?
11535  grep -v '^ *+' conftest.er1 >conftest.err
11536  rm -f conftest.er1
11537  cat conftest.err >&5
11538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539  (exit $ac_status); } >/dev/null && {
11540	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11541	 test ! -s conftest.err
11542       }; then
11543  ac_header_preproc=yes
11544else
11545  $as_echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548  ac_header_preproc=no
11549fi
11550
11551rm -f conftest.err conftest.$ac_ext
11552{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553$as_echo "$ac_header_preproc" >&6; }
11554
11555# So?  What about this header?
11556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557  yes:no: )
11558    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11559$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11561$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11562    ac_header_preproc=yes
11563    ;;
11564  no:yes:* )
11565    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11566$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11567    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11568$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11569    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11570$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11571    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11572$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11573    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11574$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11575    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11576$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11577    ( cat <<\_ASBOX
11578## ----------------------------------------------- ##
11579## Report this to dssi-devel@lists.sourceforge.net ##
11580## ----------------------------------------------- ##
11581_ASBOX
11582     ) | sed "s/^/$as_me: WARNING:     /" >&2
11583    ;;
11584esac
11585{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11586$as_echo_n "checking for $ac_header... " >&6; }
11587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588  $as_echo_n "(cached) " >&6
11589else
11590  eval "$as_ac_Header=\$ac_header_preproc"
11591fi
11592ac_res=`eval 'as_val=${'$as_ac_Header'}
11593		 $as_echo "$as_val"'`
11594	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11595$as_echo "$ac_res" >&6; }
11596
11597fi
11598as_val=`eval 'as_val=${'$as_ac_Header'}
11599		 $as_echo "$as_val"'`
11600   if test "x$as_val" = x""yes; then
11601  cat >>confdefs.h <<_ACEOF
11602#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11603_ACEOF
11604
11605fi
11606
11607done
11608
11609
11610
11611
11612if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11613	if test -n "$ac_tool_prefix"; then
11614  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11615set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11616{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11617$as_echo_n "checking for $ac_word... " >&6; }
11618if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619  $as_echo_n "(cached) " >&6
11620else
11621  case $PKG_CONFIG in
11622  [\\/]* | ?:[\\/]*)
11623  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11624  ;;
11625  *)
11626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627for as_dir in $PATH
11628do
11629  IFS=$as_save_IFS
11630  test -z "$as_dir" && as_dir=.
11631  for ac_exec_ext in '' $ac_executable_extensions; do
11632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11634    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635    break 2
11636  fi
11637done
11638done
11639IFS=$as_save_IFS
11640
11641  ;;
11642esac
11643fi
11644PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11645if test -n "$PKG_CONFIG"; then
11646  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11647$as_echo "$PKG_CONFIG" >&6; }
11648else
11649  { $as_echo "$as_me:$LINENO: result: no" >&5
11650$as_echo "no" >&6; }
11651fi
11652
11653
11654fi
11655if test -z "$ac_cv_path_PKG_CONFIG"; then
11656  ac_pt_PKG_CONFIG=$PKG_CONFIG
11657  # Extract the first word of "pkg-config", so it can be a program name with args.
11658set dummy pkg-config; ac_word=$2
11659{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11660$as_echo_n "checking for $ac_word... " >&6; }
11661if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11662  $as_echo_n "(cached) " >&6
11663else
11664  case $ac_pt_PKG_CONFIG in
11665  [\\/]* | ?:[\\/]*)
11666  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11667  ;;
11668  *)
11669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670for as_dir in $PATH
11671do
11672  IFS=$as_save_IFS
11673  test -z "$as_dir" && as_dir=.
11674  for ac_exec_ext in '' $ac_executable_extensions; do
11675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11676    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11677    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11678    break 2
11679  fi
11680done
11681done
11682IFS=$as_save_IFS
11683
11684  ;;
11685esac
11686fi
11687ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11688if test -n "$ac_pt_PKG_CONFIG"; then
11689  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11690$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11691else
11692  { $as_echo "$as_me:$LINENO: result: no" >&5
11693$as_echo "no" >&6; }
11694fi
11695
11696  if test "x$ac_pt_PKG_CONFIG" = x; then
11697    PKG_CONFIG=""
11698  else
11699    case $cross_compiling:$ac_tool_warned in
11700yes:)
11701{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11703ac_tool_warned=yes ;;
11704esac
11705    PKG_CONFIG=$ac_pt_PKG_CONFIG
11706  fi
11707else
11708  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11709fi
11710
11711fi
11712if test -n "$PKG_CONFIG"; then
11713	_pkg_min_version=0.9.0
11714	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11715$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11716	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11717		{ $as_echo "$as_me:$LINENO: result: yes" >&5
11718$as_echo "yes" >&6; }
11719	else
11720		{ $as_echo "$as_me:$LINENO: result: no" >&5
11721$as_echo "no" >&6; }
11722		PKG_CONFIG=""
11723	fi
11724
11725fi
11726
11727pkg_failed=no
11728{ $as_echo "$as_me:$LINENO: checking for FLUID" >&5
11729$as_echo_n "checking for FLUID... " >&6; }
11730
11731if test -n "$FLUID_CFLAGS"; then
11732    pkg_cv_FLUID_CFLAGS="$FLUID_CFLAGS"
11733 elif test -n "$PKG_CONFIG"; then
11734    if test -n "$PKG_CONFIG" && \
11735    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 1.0.3\"") >&5
11736  ($PKG_CONFIG --exists --print-errors "fluidsynth >= 1.0.3") 2>&5
11737  ac_status=$?
11738  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739  (exit $ac_status); }; then
11740  pkg_cv_FLUID_CFLAGS=`$PKG_CONFIG --cflags "fluidsynth >= 1.0.3" 2>/dev/null`
11741else
11742  pkg_failed=yes
11743fi
11744 else
11745    pkg_failed=untried
11746fi
11747if test -n "$FLUID_LIBS"; then
11748    pkg_cv_FLUID_LIBS="$FLUID_LIBS"
11749 elif test -n "$PKG_CONFIG"; then
11750    if test -n "$PKG_CONFIG" && \
11751    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 1.0.3\"") >&5
11752  ($PKG_CONFIG --exists --print-errors "fluidsynth >= 1.0.3") 2>&5
11753  ac_status=$?
11754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755  (exit $ac_status); }; then
11756  pkg_cv_FLUID_LIBS=`$PKG_CONFIG --libs "fluidsynth >= 1.0.3" 2>/dev/null`
11757else
11758  pkg_failed=yes
11759fi
11760 else
11761    pkg_failed=untried
11762fi
11763
11764
11765
11766if test $pkg_failed = yes; then
11767
11768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11769        _pkg_short_errors_supported=yes
11770else
11771        _pkg_short_errors_supported=no
11772fi
11773        if test $_pkg_short_errors_supported = yes; then
11774	        FLUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fluidsynth >= 1.0.3" 2>&1`
11775        else
11776	        FLUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "fluidsynth >= 1.0.3" 2>&1`
11777        fi
11778	# Put the nasty error message in config.log where it belongs
11779	echo "$FLUID_PKG_ERRORS" >&5
11780
11781	{ { $as_echo "$as_me:$LINENO: error: Package requirements (fluidsynth >= 1.0.3) were not met:
11782
11783$FLUID_PKG_ERRORS
11784
11785Consider adjusting the PKG_CONFIG_PATH environment variable if you
11786installed software in a non-standard prefix.
11787
11788Alternatively, you may set the environment variables FLUID_CFLAGS
11789and FLUID_LIBS to avoid the need to call pkg-config.
11790See the pkg-config man page for more details.
11791" >&5
11792$as_echo "$as_me: error: Package requirements (fluidsynth >= 1.0.3) were not met:
11793
11794$FLUID_PKG_ERRORS
11795
11796Consider adjusting the PKG_CONFIG_PATH environment variable if you
11797installed software in a non-standard prefix.
11798
11799Alternatively, you may set the environment variables FLUID_CFLAGS
11800and FLUID_LIBS to avoid the need to call pkg-config.
11801See the pkg-config man page for more details.
11802" >&2;}
11803   { (exit 1); exit 1; }; }
11804elif test $pkg_failed = untried; then
11805	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11807{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11808is in your PATH or set the PKG_CONFIG environment variable to the full
11809path to pkg-config.
11810
11811Alternatively, you may set the environment variables FLUID_CFLAGS
11812and FLUID_LIBS to avoid the need to call pkg-config.
11813See the pkg-config man page for more details.
11814
11815To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11816See \`config.log' for more details." >&5
11817$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11818is in your PATH or set the PKG_CONFIG environment variable to the full
11819path to pkg-config.
11820
11821Alternatively, you may set the environment variables FLUID_CFLAGS
11822and FLUID_LIBS to avoid the need to call pkg-config.
11823See the pkg-config man page for more details.
11824
11825To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11826See \`config.log' for more details." >&2;}
11827   { (exit 1); exit 1; }; }; }
11828else
11829	FLUID_CFLAGS=$pkg_cv_FLUID_CFLAGS
11830	FLUID_LIBS=$pkg_cv_FLUID_LIBS
11831        { $as_echo "$as_me:$LINENO: result: yes" >&5
11832$as_echo "yes" >&6; }
11833	:
11834fi
11835
11836
11837have106=no
11838if test -n "$PKG_CONFIG" && \
11839    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 1.0.6\"") >&5
11840  ($PKG_CONFIG --exists --print-errors "fluidsynth >= 1.0.6") 2>&5
11841  ac_status=$?
11842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843  (exit $ac_status); }; then
11844  have106=yes
11845fi
11846if test "x${have106}" = xyes ; then
11847  echo "using FluidSynth polyphony-setting API"
11848
11849cat >>confdefs.h <<\_ACEOF
11850#define USE_AUGMENTED_FLUIDSYNTH_API 1
11851_ACEOF
11852
11853  echo "using fluid_synth_nwrite_float() directly"
11854
11855cat >>confdefs.h <<\_ACEOF
11856#define NWRITE_FLOAT_WORKS_CORRECTLY 1
11857_ACEOF
11858
11859else
11860  echo "FluidSynth polyphony-setting API not available"
11861  echo "using fluid_synth_nwrite_float() workaround"
11862  echo "(You may wish to upgrade your FluidSynth to version 1.0.6 or later)"
11863fi
11864
11865
11866# Check whether --with-gtk2 was given.
11867if test "${with_gtk2+set}" = set; then
11868  withval=$with_gtk2;  if test $withval = "yes"; then try_gtk2=yes ;
11869              else try_gtk2=no ; fi
11870else
11871  try_gtk2=yes
11872fi
11873
11874with_gtk=no
11875if test "x${try_gtk2}" = 'xyes'; then
11876    # Check whether --enable-gtktest was given.
11877if test "${enable_gtktest+set}" = set; then
11878  enableval=$enable_gtktest;
11879else
11880  enable_gtktest=yes
11881fi
11882
11883
11884  pkg_config_args=gtk+-2.0
11885  for module in .
11886  do
11887      case "$module" in
11888         gthread)
11889             pkg_config_args="$pkg_config_args gthread-2.0"
11890         ;;
11891      esac
11892  done
11893
11894  no_gtk=""
11895
11896  # Extract the first word of "pkg-config", so it can be a program name with args.
11897set dummy pkg-config; ac_word=$2
11898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11899$as_echo_n "checking for $ac_word... " >&6; }
11900if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11901  $as_echo_n "(cached) " >&6
11902else
11903  case $PKG_CONFIG in
11904  [\\/]* | ?:[\\/]*)
11905  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11906  ;;
11907  *)
11908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909for as_dir in $PATH
11910do
11911  IFS=$as_save_IFS
11912  test -z "$as_dir" && as_dir=.
11913  for ac_exec_ext in '' $ac_executable_extensions; do
11914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11915    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11916    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11917    break 2
11918  fi
11919done
11920done
11921IFS=$as_save_IFS
11922
11923  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11924  ;;
11925esac
11926fi
11927PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11928if test -n "$PKG_CONFIG"; then
11929  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11930$as_echo "$PKG_CONFIG" >&6; }
11931else
11932  { $as_echo "$as_me:$LINENO: result: no" >&5
11933$as_echo "no" >&6; }
11934fi
11935
11936
11937
11938  if test x$PKG_CONFIG != xno ; then
11939    if pkg-config --atleast-pkgconfig-version 0.7 ; then
11940      :
11941    else
11942      echo "*** pkg-config too old; version 0.7 or better required."
11943      no_gtk=yes
11944      PKG_CONFIG=no
11945    fi
11946  else
11947    no_gtk=yes
11948  fi
11949
11950  min_gtk_version=2.0.0
11951  { $as_echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
11952$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
11953
11954  if test x$PKG_CONFIG != xno ; then
11955    ## don't try to run the test against uninstalled libtool libs
11956    if $PKG_CONFIG --uninstalled $pkg_config_args; then
11957	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11958	  enable_gtktest=no
11959    fi
11960
11961    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11962	  :
11963    else
11964	  no_gtk=yes
11965    fi
11966  fi
11967
11968  if test x"$no_gtk" = x ; then
11969    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11970    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11971    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11972           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11973    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11974           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11975    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11976           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11977    if test "x$enable_gtktest" = "xyes" ; then
11978      ac_save_CFLAGS="$CFLAGS"
11979      ac_save_LIBS="$LIBS"
11980      CFLAGS="$CFLAGS $GTK_CFLAGS"
11981      LIBS="$GTK_LIBS $LIBS"
11982      rm -f conf.gtktest
11983      if test "$cross_compiling" = yes; then
11984  echo $ac_n "cross compiling; assumed OK... $ac_c"
11985else
11986  cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h.  */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h.  */
11992
11993#include <gtk/gtk.h>
11994#include <stdio.h>
11995#include <stdlib.h>
11996
11997int
11998main ()
11999{
12000  int major, minor, micro;
12001  char *tmp_version;
12002
12003  system ("touch conf.gtktest");
12004
12005  /* HP/UX 9 (%@#!) writes to sscanf strings */
12006  tmp_version = g_strdup("$min_gtk_version");
12007  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12008     printf("%s, bad version string\n", "$min_gtk_version");
12009     exit(1);
12010   }
12011
12012  if ((gtk_major_version != $gtk_config_major_version) ||
12013      (gtk_minor_version != $gtk_config_minor_version) ||
12014      (gtk_micro_version != $gtk_config_micro_version))
12015    {
12016      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12017             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12018             gtk_major_version, gtk_minor_version, gtk_micro_version);
12019      printf ("*** was found! If pkg-config was correct, then it is best\n");
12020      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12021      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12022      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12023      printf("*** required on your system.\n");
12024      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12025      printf("*** to point to the correct configuration files\n");
12026    }
12027  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12028	   (gtk_minor_version != GTK_MINOR_VERSION) ||
12029           (gtk_micro_version != GTK_MICRO_VERSION))
12030    {
12031      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12032	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12033      printf("*** library (version %d.%d.%d)\n",
12034	     gtk_major_version, gtk_minor_version, gtk_micro_version);
12035    }
12036  else
12037    {
12038      if ((gtk_major_version > major) ||
12039        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12040        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12041      {
12042        return 0;
12043       }
12044     else
12045      {
12046        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12047               gtk_major_version, gtk_minor_version, gtk_micro_version);
12048        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12049	       major, minor, micro);
12050        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12051        printf("***\n");
12052        printf("*** If you have already installed a sufficiently new version, this error\n");
12053        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12054        printf("*** being found. The easiest way to fix this is to remove the old version\n");
12055        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12056        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12057        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12058        printf("*** so that the correct libraries are found at run-time))\n");
12059      }
12060    }
12061  return 1;
12062}
12063
12064_ACEOF
12065rm -f conftest$ac_exeext
12066if { (ac_try="$ac_link"
12067case "(($ac_try" in
12068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069  *) ac_try_echo=$ac_try;;
12070esac
12071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12072$as_echo "$ac_try_echo") >&5
12073  (eval "$ac_link") 2>&5
12074  ac_status=$?
12075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12077  { (case "(($ac_try" in
12078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079  *) ac_try_echo=$ac_try;;
12080esac
12081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12082$as_echo "$ac_try_echo") >&5
12083  (eval "$ac_try") 2>&5
12084  ac_status=$?
12085  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086  (exit $ac_status); }; }; then
12087  :
12088else
12089  $as_echo "$as_me: program exited with status $ac_status" >&5
12090$as_echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
12093( exit $ac_status )
12094no_gtk=yes
12095fi
12096rm -rf conftest.dSYM
12097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12098fi
12099
12100
12101       CFLAGS="$ac_save_CFLAGS"
12102       LIBS="$ac_save_LIBS"
12103     fi
12104  fi
12105  if test "x$no_gtk" = x ; then
12106     { $as_echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
12107$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
12108     with_gtk='yes (version 2.0)'
12109  else
12110     { $as_echo "$as_me:$LINENO: result: no" >&5
12111$as_echo "no" >&6; }
12112     if test "$PKG_CONFIG" = "no" ; then
12113       echo "*** A new enough version of pkg-config was not found."
12114       echo "*** See http://pkgconfig.sourceforge.net"
12115     else
12116       if test -f conf.gtktest ; then
12117        :
12118       else
12119          echo "*** Could not run GTK+ test program, checking why..."
12120	  ac_save_CFLAGS="$CFLAGS"
12121	  ac_save_LIBS="$LIBS"
12122          CFLAGS="$CFLAGS $GTK_CFLAGS"
12123          LIBS="$LIBS $GTK_LIBS"
12124          cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h.  */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h.  */
12130
12131#include <gtk/gtk.h>
12132#include <stdio.h>
12133
12134int
12135main ()
12136{
12137 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12138  ;
12139  return 0;
12140}
12141_ACEOF
12142rm -f conftest.$ac_objext conftest$ac_exeext
12143if { (ac_try="$ac_link"
12144case "(($ac_try" in
12145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146  *) ac_try_echo=$ac_try;;
12147esac
12148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12149$as_echo "$ac_try_echo") >&5
12150  (eval "$ac_link") 2>conftest.er1
12151  ac_status=$?
12152  grep -v '^ *+' conftest.er1 >conftest.err
12153  rm -f conftest.er1
12154  cat conftest.err >&5
12155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156  (exit $ac_status); } && {
12157	 test -z "$ac_c_werror_flag" ||
12158	 test ! -s conftest.err
12159       } && test -s conftest$ac_exeext && {
12160	 test "$cross_compiling" = yes ||
12161	 $as_test_x conftest$ac_exeext
12162       }; then
12163   echo "*** The test program compiled, but did not run. This usually means"
12164          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12165          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12166          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12167          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12168          echo "*** is required on your system"
12169	  echo "***"
12170          echo "*** If you have an old version installed, it is best to remove it, although"
12171          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12172else
12173  $as_echo "$as_me: failed program was:" >&5
12174sed 's/^/| /' conftest.$ac_ext >&5
12175
12176	 echo "*** The test program failed to compile or link. See the file config.log for the"
12177          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12178fi
12179
12180rm -rf conftest.dSYM
12181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12182      conftest$ac_exeext conftest.$ac_ext
12183          CFLAGS="$ac_save_CFLAGS"
12184          LIBS="$ac_save_LIBS"
12185       fi
12186     fi
12187     GTK_CFLAGS=""
12188     GTK_LIBS=""
12189     with_gtk=no
12190  fi
12191
12192
12193  rm -f conf.gtktest
12194
12195fi
12196if test "x${with_gtk}" = 'xno'; then
12197
12198# Check whether --with-gtk-prefix was given.
12199if test "${with_gtk_prefix+set}" = set; then
12200  withval=$with_gtk_prefix; gtk_config_prefix="$withval"
12201else
12202  gtk_config_prefix=""
12203fi
12204
12205
12206# Check whether --with-gtk-exec-prefix was given.
12207if test "${with_gtk_exec_prefix+set}" = set; then
12208  withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
12209else
12210  gtk_config_exec_prefix=""
12211fi
12212
12213# Check whether --enable-gtktest was given.
12214if test "${enable_gtktest+set}" = set; then
12215  enableval=$enable_gtktest;
12216else
12217  enable_gtktest=yes
12218fi
12219
12220
12221  for module in .
12222  do
12223      case "$module" in
12224         gthread)
12225             gtk_config_args="$gtk_config_args gthread"
12226         ;;
12227      esac
12228  done
12229
12230  if test x$gtk_config_exec_prefix != x ; then
12231     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12232     if test x${GTK_CONFIG+set} != xset ; then
12233        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12234     fi
12235  fi
12236  if test x$gtk_config_prefix != x ; then
12237     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12238     if test x${GTK_CONFIG+set} != xset ; then
12239        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12240     fi
12241  fi
12242
12243  # Extract the first word of "gtk-config", so it can be a program name with args.
12244set dummy gtk-config; ac_word=$2
12245{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12246$as_echo_n "checking for $ac_word... " >&6; }
12247if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
12248  $as_echo_n "(cached) " >&6
12249else
12250  case $GTK_CONFIG in
12251  [\\/]* | ?:[\\/]*)
12252  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12253  ;;
12254  *)
12255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256for as_dir in $PATH
12257do
12258  IFS=$as_save_IFS
12259  test -z "$as_dir" && as_dir=.
12260  for ac_exec_ext in '' $ac_executable_extensions; do
12261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12263    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12264    break 2
12265  fi
12266done
12267done
12268IFS=$as_save_IFS
12269
12270  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12271  ;;
12272esac
12273fi
12274GTK_CONFIG=$ac_cv_path_GTK_CONFIG
12275if test -n "$GTK_CONFIG"; then
12276  { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
12277$as_echo "$GTK_CONFIG" >&6; }
12278else
12279  { $as_echo "$as_me:$LINENO: result: no" >&5
12280$as_echo "no" >&6; }
12281fi
12282
12283
12284  min_gtk_version=1.2.0
12285  { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
12286$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
12287  no_gtk=""
12288  if test "$GTK_CONFIG" = "no" ; then
12289    no_gtk=yes
12290  else
12291    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12292    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12293    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12294           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12295    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12296           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12297    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12298           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12299    if test "x$enable_gtktest" = "xyes" ; then
12300      ac_save_CFLAGS="$CFLAGS"
12301      ac_save_LIBS="$LIBS"
12302      CFLAGS="$CFLAGS $GTK_CFLAGS"
12303      LIBS="$GTK_LIBS $LIBS"
12304      rm -f conf.gtktest
12305      if test "$cross_compiling" = yes; then
12306  echo $ac_n "cross compiling; assumed OK... $ac_c"
12307else
12308  cat >conftest.$ac_ext <<_ACEOF
12309/* confdefs.h.  */
12310_ACEOF
12311cat confdefs.h >>conftest.$ac_ext
12312cat >>conftest.$ac_ext <<_ACEOF
12313/* end confdefs.h.  */
12314
12315#include <gtk/gtk.h>
12316#include <stdio.h>
12317#include <stdlib.h>
12318
12319int
12320main ()
12321{
12322  int major, minor, micro;
12323  char *tmp_version;
12324
12325  system ("touch conf.gtktest");
12326
12327  /* HP/UX 9 (%@#!) writes to sscanf strings */
12328  tmp_version = g_strdup("$min_gtk_version");
12329  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12330     printf("%s, bad version string\n", "$min_gtk_version");
12331     exit(1);
12332   }
12333
12334  if ((gtk_major_version != $gtk_config_major_version) ||
12335      (gtk_minor_version != $gtk_config_minor_version) ||
12336      (gtk_micro_version != $gtk_config_micro_version))
12337    {
12338      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12339             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12340             gtk_major_version, gtk_minor_version, gtk_micro_version);
12341      printf ("*** was found! If gtk-config was correct, then it is best\n");
12342      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12343      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12344      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12345      printf("*** required on your system.\n");
12346      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12347      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12348      printf("*** before re-running configure\n");
12349    }
12350#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12351  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12352	   (gtk_minor_version != GTK_MINOR_VERSION) ||
12353           (gtk_micro_version != GTK_MICRO_VERSION))
12354    {
12355      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12356	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12357      printf("*** library (version %d.%d.%d)\n",
12358	     gtk_major_version, gtk_minor_version, gtk_micro_version);
12359    }
12360#endif /* defined (GTK_MAJOR_VERSION) ... */
12361  else
12362    {
12363      if ((gtk_major_version > major) ||
12364        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12365        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12366      {
12367        return 0;
12368       }
12369     else
12370      {
12371        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12372               gtk_major_version, gtk_minor_version, gtk_micro_version);
12373        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12374	       major, minor, micro);
12375        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12376        printf("***\n");
12377        printf("*** If you have already installed a sufficiently new version, this error\n");
12378        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12379        printf("*** being found. The easiest way to fix this is to remove the old version\n");
12380        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12381        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12382        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12383        printf("*** so that the correct libraries are found at run-time))\n");
12384      }
12385    }
12386  return 1;
12387}
12388
12389_ACEOF
12390rm -f conftest$ac_exeext
12391if { (ac_try="$ac_link"
12392case "(($ac_try" in
12393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394  *) ac_try_echo=$ac_try;;
12395esac
12396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397$as_echo "$ac_try_echo") >&5
12398  (eval "$ac_link") 2>&5
12399  ac_status=$?
12400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12402  { (case "(($ac_try" in
12403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404  *) ac_try_echo=$ac_try;;
12405esac
12406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12407$as_echo "$ac_try_echo") >&5
12408  (eval "$ac_try") 2>&5
12409  ac_status=$?
12410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411  (exit $ac_status); }; }; then
12412  :
12413else
12414  $as_echo "$as_me: program exited with status $ac_status" >&5
12415$as_echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418( exit $ac_status )
12419no_gtk=yes
12420fi
12421rm -rf conftest.dSYM
12422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12423fi
12424
12425
12426       CFLAGS="$ac_save_CFLAGS"
12427       LIBS="$ac_save_LIBS"
12428     fi
12429  fi
12430  if test "x$no_gtk" = x ; then
12431     { $as_echo "$as_me:$LINENO: result: yes" >&5
12432$as_echo "yes" >&6; }
12433     with_gtk='yes (version 1.2)'
12434  else
12435     { $as_echo "$as_me:$LINENO: result: no" >&5
12436$as_echo "no" >&6; }
12437     if test "$GTK_CONFIG" = "no" ; then
12438       echo "*** The gtk-config script installed by GTK could not be found"
12439       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12440       echo "*** your path, or set the GTK_CONFIG environment variable to the"
12441       echo "*** full path to gtk-config."
12442     else
12443       if test -f conf.gtktest ; then
12444        :
12445       else
12446          echo "*** Could not run GTK test program, checking why..."
12447          CFLAGS="$CFLAGS $GTK_CFLAGS"
12448          LIBS="$LIBS $GTK_LIBS"
12449          cat >conftest.$ac_ext <<_ACEOF
12450/* confdefs.h.  */
12451_ACEOF
12452cat confdefs.h >>conftest.$ac_ext
12453cat >>conftest.$ac_ext <<_ACEOF
12454/* end confdefs.h.  */
12455
12456#include <gtk/gtk.h>
12457#include <stdio.h>
12458
12459int
12460main ()
12461{
12462 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12463  ;
12464  return 0;
12465}
12466_ACEOF
12467rm -f conftest.$ac_objext conftest$ac_exeext
12468if { (ac_try="$ac_link"
12469case "(($ac_try" in
12470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471  *) ac_try_echo=$ac_try;;
12472esac
12473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12474$as_echo "$ac_try_echo") >&5
12475  (eval "$ac_link") 2>conftest.er1
12476  ac_status=$?
12477  grep -v '^ *+' conftest.er1 >conftest.err
12478  rm -f conftest.er1
12479  cat conftest.err >&5
12480  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481  (exit $ac_status); } && {
12482	 test -z "$ac_c_werror_flag" ||
12483	 test ! -s conftest.err
12484       } && test -s conftest$ac_exeext && {
12485	 test "$cross_compiling" = yes ||
12486	 $as_test_x conftest$ac_exeext
12487       }; then
12488   echo "*** The test program compiled, but did not run. This usually means"
12489          echo "*** that the run-time linker is not finding GTK or finding the wrong"
12490          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12491          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12492          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12493          echo "*** is required on your system"
12494	  echo "***"
12495          echo "*** If you have an old version installed, it is best to remove it, although"
12496          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12497          echo "***"
12498          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12499          echo "*** came with the system with the command"
12500          echo "***"
12501          echo "***    rpm --erase --nodeps gtk gtk-devel"
12502else
12503  $as_echo "$as_me: failed program was:" >&5
12504sed 's/^/| /' conftest.$ac_ext >&5
12505
12506	 echo "*** The test program failed to compile or link. See the file config.log for the"
12507          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12508          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12509          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12510fi
12511
12512rm -rf conftest.dSYM
12513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12514      conftest$ac_exeext conftest.$ac_ext
12515          CFLAGS="$ac_save_CFLAGS"
12516          LIBS="$ac_save_LIBS"
12517       fi
12518     fi
12519     GTK_CFLAGS=""
12520     GTK_LIBS=""
12521     { $as_echo "$as_me:$LINENO: WARNING: GUI will not be built because no version of GTK+ was found" >&5
12522$as_echo "$as_me: WARNING: GUI will not be built because no version of GTK+ was found" >&2;}
12523  fi
12524
12525
12526  rm -f conf.gtktest
12527
12528fi
12529 if test "x${with_gtk}" != 'xno'; then
12530  BUILD_GUI_TRUE=
12531  BUILD_GUI_FALSE='#'
12532else
12533  BUILD_GUI_TRUE='#'
12534  BUILD_GUI_FALSE=
12535fi
12536
12537echo "GTK support: $with_gtk"
12538
12539
12540pkg_failed=no
12541{ $as_echo "$as_me:$LINENO: checking for ALSA" >&5
12542$as_echo_n "checking for ALSA... " >&6; }
12543
12544if test -n "$ALSA_CFLAGS"; then
12545    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
12546 elif test -n "$PKG_CONFIG"; then
12547    if test -n "$PKG_CONFIG" && \
12548    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12549  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12550  ac_status=$?
12551  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552  (exit $ac_status); }; then
12553  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
12554else
12555  pkg_failed=yes
12556fi
12557 else
12558    pkg_failed=untried
12559fi
12560if test -n "$ALSA_LIBS"; then
12561    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
12562 elif test -n "$PKG_CONFIG"; then
12563    if test -n "$PKG_CONFIG" && \
12564    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12565  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12566  ac_status=$?
12567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568  (exit $ac_status); }; then
12569  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
12570else
12571  pkg_failed=yes
12572fi
12573 else
12574    pkg_failed=untried
12575fi
12576
12577
12578
12579if test $pkg_failed = yes; then
12580
12581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12582        _pkg_short_errors_supported=yes
12583else
12584        _pkg_short_errors_supported=no
12585fi
12586        if test $_pkg_short_errors_supported = yes; then
12587	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
12588        else
12589	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
12590        fi
12591	# Put the nasty error message in config.log where it belongs
12592	echo "$ALSA_PKG_ERRORS" >&5
12593
12594	{ $as_echo "$as_me:$LINENO: result: no" >&5
12595$as_echo "no" >&6; }
12596                alsa=no
12597elif test $pkg_failed = untried; then
12598	alsa=no
12599else
12600	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
12601	ALSA_LIBS=$pkg_cv_ALSA_LIBS
12602        { $as_echo "$as_me:$LINENO: result: yes" >&5
12603$as_echo "yes" >&6; }
12604	alsa=ALSA
12605fi
12606if test "x${alsa}" = xno ; then
12607
12608pkg_failed=no
12609{ $as_echo "$as_me:$LINENO: checking for ALSA" >&5
12610$as_echo_n "checking for ALSA... " >&6; }
12611
12612if test -n "$ALSA_CFLAGS"; then
12613    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
12614 elif test -n "$PKG_CONFIG"; then
12615    if test -n "$PKG_CONFIG" && \
12616    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdssialsacompat\"") >&5
12617  ($PKG_CONFIG --exists --print-errors "libdssialsacompat") 2>&5
12618  ac_status=$?
12619  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620  (exit $ac_status); }; then
12621  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "libdssialsacompat" 2>/dev/null`
12622else
12623  pkg_failed=yes
12624fi
12625 else
12626    pkg_failed=untried
12627fi
12628if test -n "$ALSA_LIBS"; then
12629    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
12630 elif test -n "$PKG_CONFIG"; then
12631    if test -n "$PKG_CONFIG" && \
12632    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdssialsacompat\"") >&5
12633  ($PKG_CONFIG --exists --print-errors "libdssialsacompat") 2>&5
12634  ac_status=$?
12635  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636  (exit $ac_status); }; then
12637  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "libdssialsacompat" 2>/dev/null`
12638else
12639  pkg_failed=yes
12640fi
12641 else
12642    pkg_failed=untried
12643fi
12644
12645
12646
12647if test $pkg_failed = yes; then
12648
12649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12650        _pkg_short_errors_supported=yes
12651else
12652        _pkg_short_errors_supported=no
12653fi
12654        if test $_pkg_short_errors_supported = yes; then
12655	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdssialsacompat" 2>&1`
12656        else
12657	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdssialsacompat" 2>&1`
12658        fi
12659	# Put the nasty error message in config.log where it belongs
12660	echo "$ALSA_PKG_ERRORS" >&5
12661
12662	{ $as_echo "$as_me:$LINENO: result: no" >&5
12663$as_echo "no" >&6; }
12664                { { $as_echo "$as_me:$LINENO: error: neither ALSA nor libdssialsacompat found" >&5
12665$as_echo "$as_me: error: neither ALSA nor libdssialsacompat found" >&2;}
12666   { (exit 1); exit 1; }; }
12667elif test $pkg_failed = untried; then
12668	{ { $as_echo "$as_me:$LINENO: error: neither ALSA nor libdssialsacompat found" >&5
12669$as_echo "$as_me: error: neither ALSA nor libdssialsacompat found" >&2;}
12670   { (exit 1); exit 1; }; }
12671else
12672	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
12673	ALSA_LIBS=$pkg_cv_ALSA_LIBS
12674        { $as_echo "$as_me:$LINENO: result: yes" >&5
12675$as_echo "yes" >&6; }
12676	alsa=libdssialsacompat
12677fi
12678fi
12679if test "x${alsa}" = xALSA ; then
12680  unset ALSA_LIBS  # we only need the headers
12681fi
12682
12683
12684pkg_failed=no
12685{ $as_echo "$as_me:$LINENO: checking for MODULE" >&5
12686$as_echo_n "checking for MODULE... " >&6; }
12687
12688if test -n "$MODULE_CFLAGS"; then
12689    pkg_cv_MODULE_CFLAGS="$MODULE_CFLAGS"
12690 elif test -n "$PKG_CONFIG"; then
12691    if test -n "$PKG_CONFIG" && \
12692    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dssi >= 0.9 liblo >= 0.12\"") >&5
12693  ($PKG_CONFIG --exists --print-errors "dssi >= 0.9 liblo >= 0.12") 2>&5
12694  ac_status=$?
12695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696  (exit $ac_status); }; then
12697  pkg_cv_MODULE_CFLAGS=`$PKG_CONFIG --cflags "dssi >= 0.9 liblo >= 0.12" 2>/dev/null`
12698else
12699  pkg_failed=yes
12700fi
12701 else
12702    pkg_failed=untried
12703fi
12704if test -n "$MODULE_LIBS"; then
12705    pkg_cv_MODULE_LIBS="$MODULE_LIBS"
12706 elif test -n "$PKG_CONFIG"; then
12707    if test -n "$PKG_CONFIG" && \
12708    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dssi >= 0.9 liblo >= 0.12\"") >&5
12709  ($PKG_CONFIG --exists --print-errors "dssi >= 0.9 liblo >= 0.12") 2>&5
12710  ac_status=$?
12711  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712  (exit $ac_status); }; then
12713  pkg_cv_MODULE_LIBS=`$PKG_CONFIG --libs "dssi >= 0.9 liblo >= 0.12" 2>/dev/null`
12714else
12715  pkg_failed=yes
12716fi
12717 else
12718    pkg_failed=untried
12719fi
12720
12721
12722
12723if test $pkg_failed = yes; then
12724
12725if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12726        _pkg_short_errors_supported=yes
12727else
12728        _pkg_short_errors_supported=no
12729fi
12730        if test $_pkg_short_errors_supported = yes; then
12731	        MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dssi >= 0.9 liblo >= 0.12" 2>&1`
12732        else
12733	        MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "dssi >= 0.9 liblo >= 0.12" 2>&1`
12734        fi
12735	# Put the nasty error message in config.log where it belongs
12736	echo "$MODULE_PKG_ERRORS" >&5
12737
12738	{ { $as_echo "$as_me:$LINENO: error: Package requirements (dssi >= 0.9 liblo >= 0.12) were not met:
12739
12740$MODULE_PKG_ERRORS
12741
12742Consider adjusting the PKG_CONFIG_PATH environment variable if you
12743installed software in a non-standard prefix.
12744
12745Alternatively, you may set the environment variables MODULE_CFLAGS
12746and MODULE_LIBS to avoid the need to call pkg-config.
12747See the pkg-config man page for more details.
12748" >&5
12749$as_echo "$as_me: error: Package requirements (dssi >= 0.9 liblo >= 0.12) were not met:
12750
12751$MODULE_PKG_ERRORS
12752
12753Consider adjusting the PKG_CONFIG_PATH environment variable if you
12754installed software in a non-standard prefix.
12755
12756Alternatively, you may set the environment variables MODULE_CFLAGS
12757and MODULE_LIBS to avoid the need to call pkg-config.
12758See the pkg-config man page for more details.
12759" >&2;}
12760   { (exit 1); exit 1; }; }
12761elif test $pkg_failed = untried; then
12762	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12764{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12765is in your PATH or set the PKG_CONFIG environment variable to the full
12766path to pkg-config.
12767
12768Alternatively, you may set the environment variables MODULE_CFLAGS
12769and MODULE_LIBS to avoid the need to call pkg-config.
12770See the pkg-config man page for more details.
12771
12772To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12773See \`config.log' for more details." >&5
12774$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12775is in your PATH or set the PKG_CONFIG environment variable to the full
12776path to pkg-config.
12777
12778Alternatively, you may set the environment variables MODULE_CFLAGS
12779and MODULE_LIBS to avoid the need to call pkg-config.
12780See the pkg-config man page for more details.
12781
12782To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12783See \`config.log' for more details." >&2;}
12784   { (exit 1); exit 1; }; }; }
12785else
12786	MODULE_CFLAGS=$pkg_cv_MODULE_CFLAGS
12787	MODULE_LIBS=$pkg_cv_MODULE_LIBS
12788        { $as_echo "$as_me:$LINENO: result: yes" >&5
12789$as_echo "yes" >&6; }
12790	:
12791fi
12792
12793case "${host_os}" in
12794darwin*)
12795  darwin=yes
12796  ;;
12797*)
12798  darwin=no
12799  ;;
12800esac
12801 if test x$darwin = xyes; then
12802  DARWIN_TRUE=
12803  DARWIN_FALSE='#'
12804else
12805  DARWIN_TRUE='#'
12806  DARWIN_FALSE=
12807fi
12808
12809
12810CFLAGS="$CFLAGS $ALSA_CFLAGS $MODULE_CFLAGS"
12811LDFLAGS="$LDFLAGS $ALSA_LIBS $MODULE_LIBS"
12812if test "x$GCC" = "xyes"; then
12813  case " $CFLAGS " in
12814    *[\ \	]-Wall[\ \	]*) ;;
12815    *) CFLAGS="$CFLAGS -Wall" ;;
12816  esac
12817  case " $CFLAGS " in
12818    *[\ \	]-O[1-9][\ \	]*) ;;
12819    *) CFLAGS="$CFLAGS -O2" ;;
12820  esac
12821  case " $CFLAGS " in
12822    *[\ \	]-ffast-math[\ \	]*) ;;
12823    *) CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-loops -finline-functions -ffast-math -Winline" ;;
12824  esac
12825fi
12826
12827ac_config_files="$ac_config_files Makefile src/Makefile"
12828
12829cat >confcache <<\_ACEOF
12830# This file is a shell script that caches the results of configure
12831# tests run on this system so they can be shared between configure
12832# scripts and configure runs, see configure's option --config-cache.
12833# It is not useful on other systems.  If it contains results you don't
12834# want to keep, you may remove or edit it.
12835#
12836# config.status only pays attention to the cache file if you give it
12837# the --recheck option to rerun configure.
12838#
12839# `ac_cv_env_foo' variables (set or unset) will be overridden when
12840# loading this file, other *unset* `ac_cv_foo' will be assigned the
12841# following values.
12842
12843_ACEOF
12844
12845# The following way of writing the cache mishandles newlines in values,
12846# but we know of no workaround that is simple, portable, and efficient.
12847# So, we kill variables containing newlines.
12848# Ultrix sh set writes to stderr and can't be redirected directly,
12849# and sets the high bit in the cache file unless we assign to the vars.
12850(
12851  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12852    eval ac_val=\$$ac_var
12853    case $ac_val in #(
12854    *${as_nl}*)
12855      case $ac_var in #(
12856      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12857$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12858      esac
12859      case $ac_var in #(
12860      _ | IFS | as_nl) ;; #(
12861      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12862      *) $as_unset $ac_var ;;
12863      esac ;;
12864    esac
12865  done
12866
12867  (set) 2>&1 |
12868    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12869    *${as_nl}ac_space=\ *)
12870      # `set' does not quote correctly, so add quotes (double-quote
12871      # substitution turns \\\\ into \\, and sed turns \\ into \).
12872      sed -n \
12873	"s/'/'\\\\''/g;
12874	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12875      ;; #(
12876    *)
12877      # `set' quotes correctly as required by POSIX, so do not add quotes.
12878      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12879      ;;
12880    esac |
12881    sort
12882) |
12883  sed '
12884     /^ac_cv_env_/b end
12885     t clear
12886     :clear
12887     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12888     t end
12889     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12890     :end' >>confcache
12891if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12892  if test -w "$cache_file"; then
12893    test "x$cache_file" != "x/dev/null" &&
12894      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12895$as_echo "$as_me: updating cache $cache_file" >&6;}
12896    cat confcache >$cache_file
12897  else
12898    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12899$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12900  fi
12901fi
12902rm -f confcache
12903
12904test "x$prefix" = xNONE && prefix=$ac_default_prefix
12905# Let make expand exec_prefix.
12906test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12907
12908DEFS=-DHAVE_CONFIG_H
12909
12910ac_libobjs=
12911ac_ltlibobjs=
12912for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12913  # 1. Remove the extension, and $U if already installed.
12914  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12915  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12916  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12917  #    will be set to the directory where LIBOBJS objects are built.
12918  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12919  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12920done
12921LIBOBJS=$ac_libobjs
12922
12923LTLIBOBJS=$ac_ltlibobjs
12924
12925
12926if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12927  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12928Usually this means the macro was only invoked conditionally." >&5
12929$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12930Usually this means the macro was only invoked conditionally." >&2;}
12931   { (exit 1); exit 1; }; }
12932fi
12933if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12934  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12935Usually this means the macro was only invoked conditionally." >&5
12936$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12937Usually this means the macro was only invoked conditionally." >&2;}
12938   { (exit 1); exit 1; }; }
12939fi
12940
12941if test -z "${BUILD_GUI_TRUE}" && test -z "${BUILD_GUI_FALSE}"; then
12942  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GUI\" was never defined.
12943Usually this means the macro was only invoked conditionally." >&5
12944$as_echo "$as_me: error: conditional \"BUILD_GUI\" was never defined.
12945Usually this means the macro was only invoked conditionally." >&2;}
12946   { (exit 1); exit 1; }; }
12947fi
12948if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then
12949  { { $as_echo "$as_me:$LINENO: error: conditional \"DARWIN\" was never defined.
12950Usually this means the macro was only invoked conditionally." >&5
12951$as_echo "$as_me: error: conditional \"DARWIN\" was never defined.
12952Usually this means the macro was only invoked conditionally." >&2;}
12953   { (exit 1); exit 1; }; }
12954fi
12955
12956: ${CONFIG_STATUS=./config.status}
12957ac_write_fail=0
12958ac_clean_files_save=$ac_clean_files
12959ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12960{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12961$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12962cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12963#! $SHELL
12964# Generated by $as_me.
12965# Run this file to recreate the current configuration.
12966# Compiler output produced by configure, useful for debugging
12967# configure, is in config.log if it exists.
12968
12969debug=false
12970ac_cs_recheck=false
12971ac_cs_silent=false
12972SHELL=\${CONFIG_SHELL-$SHELL}
12973_ACEOF
12974
12975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12976## --------------------- ##
12977## M4sh Initialization.  ##
12978## --------------------- ##
12979
12980# Be more Bourne compatible
12981DUALCASE=1; export DUALCASE # for MKS sh
12982if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12983  emulate sh
12984  NULLCMD=:
12985  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12986  # is contrary to our usage.  Disable this feature.
12987  alias -g '${1+"$@"}'='"$@"'
12988  setopt NO_GLOB_SUBST
12989else
12990  case `(set -o) 2>/dev/null` in
12991  *posix*) set -o posix ;;
12992esac
12993
12994fi
12995
12996
12997
12998
12999# PATH needs CR
13000# Avoid depending upon Character Ranges.
13001as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13002as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13003as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13004as_cr_digits='0123456789'
13005as_cr_alnum=$as_cr_Letters$as_cr_digits
13006
13007as_nl='
13008'
13009export as_nl
13010# Printing a long string crashes Solaris 7 /usr/bin/printf.
13011as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13012as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13013as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13014if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13015  as_echo='printf %s\n'
13016  as_echo_n='printf %s'
13017else
13018  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13019    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13020    as_echo_n='/usr/ucb/echo -n'
13021  else
13022    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13023    as_echo_n_body='eval
13024      arg=$1;
13025      case $arg in
13026      *"$as_nl"*)
13027	expr "X$arg" : "X\\(.*\\)$as_nl";
13028	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13029      esac;
13030      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13031    '
13032    export as_echo_n_body
13033    as_echo_n='sh -c $as_echo_n_body as_echo'
13034  fi
13035  export as_echo_body
13036  as_echo='sh -c $as_echo_body as_echo'
13037fi
13038
13039# The user is always right.
13040if test "${PATH_SEPARATOR+set}" != set; then
13041  PATH_SEPARATOR=:
13042  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13043    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13044      PATH_SEPARATOR=';'
13045  }
13046fi
13047
13048# Support unset when possible.
13049if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13050  as_unset=unset
13051else
13052  as_unset=false
13053fi
13054
13055
13056# IFS
13057# We need space, tab and new line, in precisely that order.  Quoting is
13058# there to prevent editors from complaining about space-tab.
13059# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13060# splitting by setting IFS to empty value.)
13061IFS=" ""	$as_nl"
13062
13063# Find who we are.  Look in the path if we contain no directory separator.
13064case $0 in
13065  *[\\/]* ) as_myself=$0 ;;
13066  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067for as_dir in $PATH
13068do
13069  IFS=$as_save_IFS
13070  test -z "$as_dir" && as_dir=.
13071  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13072done
13073IFS=$as_save_IFS
13074
13075     ;;
13076esac
13077# We did not find ourselves, most probably we were run as `sh COMMAND'
13078# in which case we are not to be found in the path.
13079if test "x$as_myself" = x; then
13080  as_myself=$0
13081fi
13082if test ! -f "$as_myself"; then
13083  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13084  { (exit 1); exit 1; }
13085fi
13086
13087# Work around bugs in pre-3.0 UWIN ksh.
13088for as_var in ENV MAIL MAILPATH
13089do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13090done
13091PS1='$ '
13092PS2='> '
13093PS4='+ '
13094
13095# NLS nuisances.
13096LC_ALL=C
13097export LC_ALL
13098LANGUAGE=C
13099export LANGUAGE
13100
13101# Required to use basename.
13102if expr a : '\(a\)' >/dev/null 2>&1 &&
13103   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13104  as_expr=expr
13105else
13106  as_expr=false
13107fi
13108
13109if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13110  as_basename=basename
13111else
13112  as_basename=false
13113fi
13114
13115
13116# Name of the executable.
13117as_me=`$as_basename -- "$0" ||
13118$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13119	 X"$0" : 'X\(//\)$' \| \
13120	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13121$as_echo X/"$0" |
13122    sed '/^.*\/\([^/][^/]*\)\/*$/{
13123	    s//\1/
13124	    q
13125	  }
13126	  /^X\/\(\/\/\)$/{
13127	    s//\1/
13128	    q
13129	  }
13130	  /^X\/\(\/\).*/{
13131	    s//\1/
13132	    q
13133	  }
13134	  s/.*/./; q'`
13135
13136# CDPATH.
13137$as_unset CDPATH
13138
13139
13140
13141  as_lineno_1=$LINENO
13142  as_lineno_2=$LINENO
13143  test "x$as_lineno_1" != "x$as_lineno_2" &&
13144  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13145
13146  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13147  # uniformly replaced by the line number.  The first 'sed' inserts a
13148  # line-number line after each line using $LINENO; the second 'sed'
13149  # does the real work.  The second script uses 'N' to pair each
13150  # line-number line with the line containing $LINENO, and appends
13151  # trailing '-' during substitution so that $LINENO is not a special
13152  # case at line end.
13153  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13154  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13155  # E. McMahon (1931-1989) for sed's syntax.  :-)
13156  sed -n '
13157    p
13158    /[$]LINENO/=
13159  ' <$as_myself |
13160    sed '
13161      s/[$]LINENO.*/&-/
13162      t lineno
13163      b
13164      :lineno
13165      N
13166      :loop
13167      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13168      t loop
13169      s/-\n.*//
13170    ' >$as_me.lineno &&
13171  chmod +x "$as_me.lineno" ||
13172    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13173   { (exit 1); exit 1; }; }
13174
13175  # Don't try to exec as it changes $[0], causing all sort of problems
13176  # (the dirname of $[0] is not the place where we might find the
13177  # original and so on.  Autoconf is especially sensitive to this).
13178  . "./$as_me.lineno"
13179  # Exit status is that of the last command.
13180  exit
13181}
13182
13183
13184if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13185  as_dirname=dirname
13186else
13187  as_dirname=false
13188fi
13189
13190ECHO_C= ECHO_N= ECHO_T=
13191case `echo -n x` in
13192-n*)
13193  case `echo 'x\c'` in
13194  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13195  *)   ECHO_C='\c';;
13196  esac;;
13197*)
13198  ECHO_N='-n';;
13199esac
13200if expr a : '\(a\)' >/dev/null 2>&1 &&
13201   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13202  as_expr=expr
13203else
13204  as_expr=false
13205fi
13206
13207rm -f conf$$ conf$$.exe conf$$.file
13208if test -d conf$$.dir; then
13209  rm -f conf$$.dir/conf$$.file
13210else
13211  rm -f conf$$.dir
13212  mkdir conf$$.dir 2>/dev/null
13213fi
13214if (echo >conf$$.file) 2>/dev/null; then
13215  if ln -s conf$$.file conf$$ 2>/dev/null; then
13216    as_ln_s='ln -s'
13217    # ... but there are two gotchas:
13218    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13219    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13220    # In both cases, we have to default to `cp -p'.
13221    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13222      as_ln_s='cp -p'
13223  elif ln conf$$.file conf$$ 2>/dev/null; then
13224    as_ln_s=ln
13225  else
13226    as_ln_s='cp -p'
13227  fi
13228else
13229  as_ln_s='cp -p'
13230fi
13231rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13232rmdir conf$$.dir 2>/dev/null
13233
13234if mkdir -p . 2>/dev/null; then
13235  as_mkdir_p=:
13236else
13237  test -d ./-p && rmdir ./-p
13238  as_mkdir_p=false
13239fi
13240
13241if test -x / >/dev/null 2>&1; then
13242  as_test_x='test -x'
13243else
13244  if ls -dL / >/dev/null 2>&1; then
13245    as_ls_L_option=L
13246  else
13247    as_ls_L_option=
13248  fi
13249  as_test_x='
13250    eval sh -c '\''
13251      if test -d "$1"; then
13252	test -d "$1/.";
13253      else
13254	case $1 in
13255	-*)set "./$1";;
13256	esac;
13257	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13258	???[sx]*):;;*)false;;esac;fi
13259    '\'' sh
13260  '
13261fi
13262as_executable_p=$as_test_x
13263
13264# Sed expression to map a string onto a valid CPP name.
13265as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13266
13267# Sed expression to map a string onto a valid variable name.
13268as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13269
13270
13271exec 6>&1
13272
13273# Save the log message, to keep $[0] and so on meaningful, and to
13274# report actual input values of CONFIG_FILES etc. instead of their
13275# values after options handling.
13276ac_log="
13277This file was extended by FluidSynth-DSSI $as_me 1.0.0, which was
13278generated by GNU Autoconf 2.63.  Invocation command line was
13279
13280  CONFIG_FILES    = $CONFIG_FILES
13281  CONFIG_HEADERS  = $CONFIG_HEADERS
13282  CONFIG_LINKS    = $CONFIG_LINKS
13283  CONFIG_COMMANDS = $CONFIG_COMMANDS
13284  $ $0 $@
13285
13286on `(hostname || uname -n) 2>/dev/null | sed 1q`
13287"
13288
13289_ACEOF
13290
13291case $ac_config_files in *"
13292"*) set x $ac_config_files; shift; ac_config_files=$*;;
13293esac
13294
13295case $ac_config_headers in *"
13296"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13297esac
13298
13299
13300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13301# Files that config.status was made for.
13302config_files="$ac_config_files"
13303config_headers="$ac_config_headers"
13304config_commands="$ac_config_commands"
13305
13306_ACEOF
13307
13308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13309ac_cs_usage="\
13310\`$as_me' instantiates files from templates according to the
13311current configuration.
13312
13313Usage: $0 [OPTION]... [FILE]...
13314
13315  -h, --help       print this help, then exit
13316  -V, --version    print version number and configuration settings, then exit
13317  -q, --quiet, --silent
13318                   do not print progress messages
13319  -d, --debug      don't remove temporary files
13320      --recheck    update $as_me by reconfiguring in the same conditions
13321      --file=FILE[:TEMPLATE]
13322                   instantiate the configuration file FILE
13323      --header=FILE[:TEMPLATE]
13324                   instantiate the configuration header FILE
13325
13326Configuration files:
13327$config_files
13328
13329Configuration headers:
13330$config_headers
13331
13332Configuration commands:
13333$config_commands
13334
13335Report bugs to <bug-autoconf@gnu.org>."
13336
13337_ACEOF
13338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13339ac_cs_version="\\
13340FluidSynth-DSSI config.status 1.0.0
13341configured by $0, generated by GNU Autoconf 2.63,
13342  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13343
13344Copyright (C) 2008 Free Software Foundation, Inc.
13345This config.status script is free software; the Free Software Foundation
13346gives unlimited permission to copy, distribute and modify it."
13347
13348ac_pwd='$ac_pwd'
13349srcdir='$srcdir'
13350INSTALL='$INSTALL'
13351MKDIR_P='$MKDIR_P'
13352AWK='$AWK'
13353test -n "\$AWK" || AWK=awk
13354_ACEOF
13355
13356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13357# The default lists apply if the user does not specify any file.
13358ac_need_defaults=:
13359while test $# != 0
13360do
13361  case $1 in
13362  --*=*)
13363    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13364    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13365    ac_shift=:
13366    ;;
13367  *)
13368    ac_option=$1
13369    ac_optarg=$2
13370    ac_shift=shift
13371    ;;
13372  esac
13373
13374  case $ac_option in
13375  # Handling of the options.
13376  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13377    ac_cs_recheck=: ;;
13378  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13379    $as_echo "$ac_cs_version"; exit ;;
13380  --debug | --debu | --deb | --de | --d | -d )
13381    debug=: ;;
13382  --file | --fil | --fi | --f )
13383    $ac_shift
13384    case $ac_optarg in
13385    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13386    esac
13387    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13388    ac_need_defaults=false;;
13389  --header | --heade | --head | --hea )
13390    $ac_shift
13391    case $ac_optarg in
13392    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13393    esac
13394    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13395    ac_need_defaults=false;;
13396  --he | --h)
13397    # Conflict between --help and --header
13398    { $as_echo "$as_me: error: ambiguous option: $1
13399Try \`$0 --help' for more information." >&2
13400   { (exit 1); exit 1; }; };;
13401  --help | --hel | -h )
13402    $as_echo "$ac_cs_usage"; exit ;;
13403  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13404  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13405    ac_cs_silent=: ;;
13406
13407  # This is an error.
13408  -*) { $as_echo "$as_me: error: unrecognized option: $1
13409Try \`$0 --help' for more information." >&2
13410   { (exit 1); exit 1; }; } ;;
13411
13412  *) ac_config_targets="$ac_config_targets $1"
13413     ac_need_defaults=false ;;
13414
13415  esac
13416  shift
13417done
13418
13419ac_configure_extra_args=
13420
13421if $ac_cs_silent; then
13422  exec 6>/dev/null
13423  ac_configure_extra_args="$ac_configure_extra_args --silent"
13424fi
13425
13426_ACEOF
13427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428if \$ac_cs_recheck; then
13429  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13430  shift
13431  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13432  CONFIG_SHELL='$SHELL'
13433  export CONFIG_SHELL
13434  exec "\$@"
13435fi
13436
13437_ACEOF
13438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13439exec 5>>config.log
13440{
13441  echo
13442  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13443## Running $as_me. ##
13444_ASBOX
13445  $as_echo "$ac_log"
13446} >&5
13447
13448_ACEOF
13449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13450#
13451# INIT-COMMANDS
13452#
13453AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13454
13455
13456# The HP-UX ksh and POSIX shell print the target directory to stdout
13457# if CDPATH is set.
13458(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13459
13460sed_quote_subst='$sed_quote_subst'
13461double_quote_subst='$double_quote_subst'
13462delay_variable_subst='$delay_variable_subst'
13463enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13464enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13465macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13466macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13467pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13468enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13469host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13470host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13471host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13472build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13473build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13474build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13475SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13476Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13477GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13478EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13479FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13480LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13481NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13482LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13483max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13484ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13485exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13486lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13487lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13488lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13489reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13490reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13492deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13493file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13494AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13495AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13496STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13497RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13498old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13499old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13500old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13502CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13503compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13504GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13505lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13506lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13507lt_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"`'
13508lt_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"`'
13509objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13510SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13511ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13512MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13513lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13514lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13515lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13516lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13517lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13518need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13519DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13520NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13521LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13522OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13523OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13524libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13525shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13526extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13528enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13529export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13530whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13531compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13532old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13533old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13534archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13535archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13536module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13537module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13538with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13539allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13540no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13541hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13542hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13543hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13544hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13545hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13546hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13547hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13548hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13549inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13550link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13551fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13552always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13553export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13554exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13555include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13556prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13557file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13558variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13559need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13560need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13561version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13562runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13563shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13564shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13565libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13566library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13567soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13568postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13569postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13570finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13571finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13572hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13573sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13574sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13575hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13576enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13577enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13578enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13579old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13580striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13581
13582LTCC='$LTCC'
13583LTCFLAGS='$LTCFLAGS'
13584compiler='$compiler_DEFAULT'
13585
13586# Quote evaled strings.
13587for var in SED \
13588GREP \
13589EGREP \
13590FGREP \
13591LD \
13592NM \
13593LN_S \
13594lt_SP2NL \
13595lt_NL2SP \
13596reload_flag \
13597OBJDUMP \
13598deplibs_check_method \
13599file_magic_cmd \
13600AR \
13601AR_FLAGS \
13602STRIP \
13603RANLIB \
13604CC \
13605CFLAGS \
13606compiler \
13607lt_cv_sys_global_symbol_pipe \
13608lt_cv_sys_global_symbol_to_cdecl \
13609lt_cv_sys_global_symbol_to_c_name_address \
13610lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13611SHELL \
13612ECHO \
13613lt_prog_compiler_no_builtin_flag \
13614lt_prog_compiler_wl \
13615lt_prog_compiler_pic \
13616lt_prog_compiler_static \
13617lt_cv_prog_compiler_c_o \
13618need_locks \
13619DSYMUTIL \
13620NMEDIT \
13621LIPO \
13622OTOOL \
13623OTOOL64 \
13624shrext_cmds \
13625export_dynamic_flag_spec \
13626whole_archive_flag_spec \
13627compiler_needs_object \
13628with_gnu_ld \
13629allow_undefined_flag \
13630no_undefined_flag \
13631hardcode_libdir_flag_spec \
13632hardcode_libdir_flag_spec_ld \
13633hardcode_libdir_separator \
13634fix_srcfile_path \
13635exclude_expsyms \
13636include_expsyms \
13637file_list_spec \
13638variables_saved_for_relink \
13639libname_spec \
13640library_names_spec \
13641soname_spec \
13642finish_eval \
13643old_striplib \
13644striplib; do
13645    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13646    *[\\\\\\\`\\"\\\$]*)
13647      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13648      ;;
13649    *)
13650      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13651      ;;
13652    esac
13653done
13654
13655# Double-quote double-evaled strings.
13656for var in reload_cmds \
13657old_postinstall_cmds \
13658old_postuninstall_cmds \
13659old_archive_cmds \
13660extract_expsyms_cmds \
13661old_archive_from_new_cmds \
13662old_archive_from_expsyms_cmds \
13663archive_cmds \
13664archive_expsym_cmds \
13665module_cmds \
13666module_expsym_cmds \
13667export_symbols_cmds \
13668prelink_cmds \
13669postinstall_cmds \
13670postuninstall_cmds \
13671finish_cmds \
13672sys_lib_search_path_spec \
13673sys_lib_dlsearch_path_spec; do
13674    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13675    *[\\\\\\\`\\"\\\$]*)
13676      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13677      ;;
13678    *)
13679      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13680      ;;
13681    esac
13682done
13683
13684# Fix-up fallback echo if it was mangled by the above quoting rules.
13685case \$lt_ECHO in
13686*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13687  ;;
13688esac
13689
13690ac_aux_dir='$ac_aux_dir'
13691xsi_shell='$xsi_shell'
13692lt_shell_append='$lt_shell_append'
13693
13694# See if we are running on zsh, and set the options which allow our
13695# commands through without removal of \ escapes INIT.
13696if test -n "\${ZSH_VERSION+set}" ; then
13697   setopt NO_GLOB_SUBST
13698fi
13699
13700
13701    PACKAGE='$PACKAGE'
13702    VERSION='$VERSION'
13703    TIMESTAMP='$TIMESTAMP'
13704    RM='$RM'
13705    ofile='$ofile'
13706
13707
13708
13709
13710_ACEOF
13711
13712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13713
13714# Handling of arguments.
13715for ac_config_target in $ac_config_targets
13716do
13717  case $ac_config_target in
13718    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13719    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13720    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13721    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13722    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13723
13724  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13725$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13726   { (exit 1); exit 1; }; };;
13727  esac
13728done
13729
13730
13731# If the user did not use the arguments to specify the items to instantiate,
13732# then the envvar interface is used.  Set only those that are not.
13733# We use the long form for the default assignment because of an extremely
13734# bizarre bug on SunOS 4.1.3.
13735if $ac_need_defaults; then
13736  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13737  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13738  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13739fi
13740
13741# Have a temporary directory for convenience.  Make it in the build tree
13742# simply because there is no reason against having it here, and in addition,
13743# creating and moving files from /tmp can sometimes cause problems.
13744# Hook for its removal unless debugging.
13745# Note that there is a small window in which the directory will not be cleaned:
13746# after its creation but before its name has been assigned to `$tmp'.
13747$debug ||
13748{
13749  tmp=
13750  trap 'exit_status=$?
13751  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13752' 0
13753  trap '{ (exit 1); exit 1; }' 1 2 13 15
13754}
13755# Create a (secure) tmp directory for tmp files.
13756
13757{
13758  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13759  test -n "$tmp" && test -d "$tmp"
13760}  ||
13761{
13762  tmp=./conf$$-$RANDOM
13763  (umask 077 && mkdir "$tmp")
13764} ||
13765{
13766   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13767   { (exit 1); exit 1; }
13768}
13769
13770# Set up the scripts for CONFIG_FILES section.
13771# No need to generate them if there are no CONFIG_FILES.
13772# This happens for instance with `./config.status config.h'.
13773if test -n "$CONFIG_FILES"; then
13774
13775
13776ac_cr='
13777'
13778ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13779if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13780  ac_cs_awk_cr='\\r'
13781else
13782  ac_cs_awk_cr=$ac_cr
13783fi
13784
13785echo 'BEGIN {' >"$tmp/subs1.awk" &&
13786_ACEOF
13787
13788
13789{
13790  echo "cat >conf$$subs.awk <<_ACEOF" &&
13791  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13792  echo "_ACEOF"
13793} >conf$$subs.sh ||
13794  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13795$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13796   { (exit 1); exit 1; }; }
13797ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13798ac_delim='%!_!# '
13799for ac_last_try in false false false false false :; do
13800  . ./conf$$subs.sh ||
13801    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13802$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13803   { (exit 1); exit 1; }; }
13804
13805  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13806  if test $ac_delim_n = $ac_delim_num; then
13807    break
13808  elif $ac_last_try; then
13809    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13810$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13811   { (exit 1); exit 1; }; }
13812  else
13813    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13814  fi
13815done
13816rm -f conf$$subs.sh
13817
13818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13819cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13820_ACEOF
13821sed -n '
13822h
13823s/^/S["/; s/!.*/"]=/
13824p
13825g
13826s/^[^!]*!//
13827:repl
13828t repl
13829s/'"$ac_delim"'$//
13830t delim
13831:nl
13832h
13833s/\(.\{148\}\).*/\1/
13834t more1
13835s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13836p
13837n
13838b repl
13839:more1
13840s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13841p
13842g
13843s/.\{148\}//
13844t nl
13845:delim
13846h
13847s/\(.\{148\}\).*/\1/
13848t more2
13849s/["\\]/\\&/g; s/^/"/; s/$/"/
13850p
13851b
13852:more2
13853s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13854p
13855g
13856s/.\{148\}//
13857t delim
13858' <conf$$subs.awk | sed '
13859/^[^""]/{
13860  N
13861  s/\n//
13862}
13863' >>$CONFIG_STATUS || ac_write_fail=1
13864rm -f conf$$subs.awk
13865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13866_ACAWK
13867cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13868  for (key in S) S_is_set[key] = 1
13869  FS = ""
13870
13871}
13872{
13873  line = $ 0
13874  nfields = split(line, field, "@")
13875  substed = 0
13876  len = length(field[1])
13877  for (i = 2; i < nfields; i++) {
13878    key = field[i]
13879    keylen = length(key)
13880    if (S_is_set[key]) {
13881      value = S[key]
13882      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13883      len += length(value) + length(field[++i])
13884      substed = 1
13885    } else
13886      len += 1 + keylen
13887  }
13888
13889  print line
13890}
13891
13892_ACAWK
13893_ACEOF
13894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13895if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13896  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13897else
13898  cat
13899fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13900  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13901$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13902   { (exit 1); exit 1; }; }
13903_ACEOF
13904
13905# VPATH may cause trouble with some makes, so we remove $(srcdir),
13906# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13907# trailing colons and then remove the whole line if VPATH becomes empty
13908# (actually we leave an empty line to preserve line numbers).
13909if test "x$srcdir" = x.; then
13910  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13911s/:*\$(srcdir):*/:/
13912s/:*\${srcdir}:*/:/
13913s/:*@srcdir@:*/:/
13914s/^\([^=]*=[	 ]*\):*/\1/
13915s/:*$//
13916s/^[^=]*=[	 ]*$//
13917}'
13918fi
13919
13920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13921fi # test -n "$CONFIG_FILES"
13922
13923# Set up the scripts for CONFIG_HEADERS section.
13924# No need to generate them if there are no CONFIG_HEADERS.
13925# This happens for instance with `./config.status Makefile'.
13926if test -n "$CONFIG_HEADERS"; then
13927cat >"$tmp/defines.awk" <<\_ACAWK ||
13928BEGIN {
13929_ACEOF
13930
13931# Transform confdefs.h into an awk script `defines.awk', embedded as
13932# here-document in config.status, that substitutes the proper values into
13933# config.h.in to produce config.h.
13934
13935# Create a delimiter string that does not exist in confdefs.h, to ease
13936# handling of long lines.
13937ac_delim='%!_!# '
13938for ac_last_try in false false :; do
13939  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13940  if test -z "$ac_t"; then
13941    break
13942  elif $ac_last_try; then
13943    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13944$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13945   { (exit 1); exit 1; }; }
13946  else
13947    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13948  fi
13949done
13950
13951# For the awk script, D is an array of macro values keyed by name,
13952# likewise P contains macro parameters if any.  Preserve backslash
13953# newline sequences.
13954
13955ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13956sed -n '
13957s/.\{148\}/&'"$ac_delim"'/g
13958t rset
13959:rset
13960s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13961t def
13962d
13963:def
13964s/\\$//
13965t bsnl
13966s/["\\]/\\&/g
13967s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13968D["\1"]=" \3"/p
13969s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13970d
13971:bsnl
13972s/["\\]/\\&/g
13973s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13974D["\1"]=" \3\\\\\\n"\\/p
13975t cont
13976s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13977t cont
13978d
13979:cont
13980n
13981s/.\{148\}/&'"$ac_delim"'/g
13982t clear
13983:clear
13984s/\\$//
13985t bsnlc
13986s/["\\]/\\&/g; s/^/"/; s/$/"/p
13987d
13988:bsnlc
13989s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13990b cont
13991' <confdefs.h | sed '
13992s/'"$ac_delim"'/"\\\
13993"/g' >>$CONFIG_STATUS || ac_write_fail=1
13994
13995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13996  for (key in D) D_is_set[key] = 1
13997  FS = ""
13998}
13999/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14000  line = \$ 0
14001  split(line, arg, " ")
14002  if (arg[1] == "#") {
14003    defundef = arg[2]
14004    mac1 = arg[3]
14005  } else {
14006    defundef = substr(arg[1], 2)
14007    mac1 = arg[2]
14008  }
14009  split(mac1, mac2, "(") #)
14010  macro = mac2[1]
14011  prefix = substr(line, 1, index(line, defundef) - 1)
14012  if (D_is_set[macro]) {
14013    # Preserve the white space surrounding the "#".
14014    print prefix "define", macro P[macro] D[macro]
14015    next
14016  } else {
14017    # Replace #undef with comments.  This is necessary, for example,
14018    # in the case of _POSIX_SOURCE, which is predefined and required
14019    # on some systems where configure will not decide to define it.
14020    if (defundef == "undef") {
14021      print "/*", prefix defundef, macro, "*/"
14022      next
14023    }
14024  }
14025}
14026{ print }
14027_ACAWK
14028_ACEOF
14029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14030  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14031$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14032   { (exit 1); exit 1; }; }
14033fi # test -n "$CONFIG_HEADERS"
14034
14035
14036eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14037shift
14038for ac_tag
14039do
14040  case $ac_tag in
14041  :[FHLC]) ac_mode=$ac_tag; continue;;
14042  esac
14043  case $ac_mode$ac_tag in
14044  :[FHL]*:*);;
14045  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14046$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14047   { (exit 1); exit 1; }; };;
14048  :[FH]-) ac_tag=-:-;;
14049  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14050  esac
14051  ac_save_IFS=$IFS
14052  IFS=:
14053  set x $ac_tag
14054  IFS=$ac_save_IFS
14055  shift
14056  ac_file=$1
14057  shift
14058
14059  case $ac_mode in
14060  :L) ac_source=$1;;
14061  :[FH])
14062    ac_file_inputs=
14063    for ac_f
14064    do
14065      case $ac_f in
14066      -) ac_f="$tmp/stdin";;
14067      *) # Look for the file first in the build tree, then in the source tree
14068	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14069	 # because $ac_f cannot contain `:'.
14070	 test -f "$ac_f" ||
14071	   case $ac_f in
14072	   [\\/$]*) false;;
14073	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14074	   esac ||
14075	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14076$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14077   { (exit 1); exit 1; }; };;
14078      esac
14079      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14080      ac_file_inputs="$ac_file_inputs '$ac_f'"
14081    done
14082
14083    # Let's still pretend it is `configure' which instantiates (i.e., don't
14084    # use $as_me), people would be surprised to read:
14085    #    /* config.h.  Generated by config.status.  */
14086    configure_input='Generated from '`
14087	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14088	`' by configure.'
14089    if test x"$ac_file" != x-; then
14090      configure_input="$ac_file.  $configure_input"
14091      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14092$as_echo "$as_me: creating $ac_file" >&6;}
14093    fi
14094    # Neutralize special characters interpreted by sed in replacement strings.
14095    case $configure_input in #(
14096    *\&* | *\|* | *\\* )
14097       ac_sed_conf_input=`$as_echo "$configure_input" |
14098       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14099    *) ac_sed_conf_input=$configure_input;;
14100    esac
14101
14102    case $ac_tag in
14103    *:-:* | *:-) cat >"$tmp/stdin" \
14104      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14105$as_echo "$as_me: error: could not create $ac_file" >&2;}
14106   { (exit 1); exit 1; }; } ;;
14107    esac
14108    ;;
14109  esac
14110
14111  ac_dir=`$as_dirname -- "$ac_file" ||
14112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14113	 X"$ac_file" : 'X\(//\)[^/]' \| \
14114	 X"$ac_file" : 'X\(//\)$' \| \
14115	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14116$as_echo X"$ac_file" |
14117    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14118	    s//\1/
14119	    q
14120	  }
14121	  /^X\(\/\/\)[^/].*/{
14122	    s//\1/
14123	    q
14124	  }
14125	  /^X\(\/\/\)$/{
14126	    s//\1/
14127	    q
14128	  }
14129	  /^X\(\/\).*/{
14130	    s//\1/
14131	    q
14132	  }
14133	  s/.*/./; q'`
14134  { as_dir="$ac_dir"
14135  case $as_dir in #(
14136  -*) as_dir=./$as_dir;;
14137  esac
14138  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14139    as_dirs=
14140    while :; do
14141      case $as_dir in #(
14142      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14143      *) as_qdir=$as_dir;;
14144      esac
14145      as_dirs="'$as_qdir' $as_dirs"
14146      as_dir=`$as_dirname -- "$as_dir" ||
14147$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14148	 X"$as_dir" : 'X\(//\)[^/]' \| \
14149	 X"$as_dir" : 'X\(//\)$' \| \
14150	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14151$as_echo X"$as_dir" |
14152    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14153	    s//\1/
14154	    q
14155	  }
14156	  /^X\(\/\/\)[^/].*/{
14157	    s//\1/
14158	    q
14159	  }
14160	  /^X\(\/\/\)$/{
14161	    s//\1/
14162	    q
14163	  }
14164	  /^X\(\/\).*/{
14165	    s//\1/
14166	    q
14167	  }
14168	  s/.*/./; q'`
14169      test -d "$as_dir" && break
14170    done
14171    test -z "$as_dirs" || eval "mkdir $as_dirs"
14172  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14173$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14174   { (exit 1); exit 1; }; }; }
14175  ac_builddir=.
14176
14177case "$ac_dir" in
14178.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14179*)
14180  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14181  # A ".." for each directory in $ac_dir_suffix.
14182  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14183  case $ac_top_builddir_sub in
14184  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14185  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14186  esac ;;
14187esac
14188ac_abs_top_builddir=$ac_pwd
14189ac_abs_builddir=$ac_pwd$ac_dir_suffix
14190# for backward compatibility:
14191ac_top_builddir=$ac_top_build_prefix
14192
14193case $srcdir in
14194  .)  # We are building in place.
14195    ac_srcdir=.
14196    ac_top_srcdir=$ac_top_builddir_sub
14197    ac_abs_top_srcdir=$ac_pwd ;;
14198  [\\/]* | ?:[\\/]* )  # Absolute name.
14199    ac_srcdir=$srcdir$ac_dir_suffix;
14200    ac_top_srcdir=$srcdir
14201    ac_abs_top_srcdir=$srcdir ;;
14202  *) # Relative name.
14203    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14204    ac_top_srcdir=$ac_top_build_prefix$srcdir
14205    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14206esac
14207ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14208
14209
14210  case $ac_mode in
14211  :F)
14212  #
14213  # CONFIG_FILE
14214  #
14215
14216  case $INSTALL in
14217  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14218  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14219  esac
14220  ac_MKDIR_P=$MKDIR_P
14221  case $MKDIR_P in
14222  [\\/$]* | ?:[\\/]* ) ;;
14223  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14224  esac
14225_ACEOF
14226
14227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14228# If the template does not know about datarootdir, expand it.
14229# FIXME: This hack should be removed a few years after 2.60.
14230ac_datarootdir_hack=; ac_datarootdir_seen=
14231
14232ac_sed_dataroot='
14233/datarootdir/ {
14234  p
14235  q
14236}
14237/@datadir@/p
14238/@docdir@/p
14239/@infodir@/p
14240/@localedir@/p
14241/@mandir@/p
14242'
14243case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14244*datarootdir*) ac_datarootdir_seen=yes;;
14245*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14246  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14247$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14248_ACEOF
14249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14250  ac_datarootdir_hack='
14251  s&@datadir@&$datadir&g
14252  s&@docdir@&$docdir&g
14253  s&@infodir@&$infodir&g
14254  s&@localedir@&$localedir&g
14255  s&@mandir@&$mandir&g
14256    s&\\\${datarootdir}&$datarootdir&g' ;;
14257esac
14258_ACEOF
14259
14260# Neutralize VPATH when `$srcdir' = `.'.
14261# Shell code in configure.ac might set extrasub.
14262# FIXME: do we really want to maintain this feature?
14263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14264ac_sed_extra="$ac_vpsub
14265$extrasub
14266_ACEOF
14267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14268:t
14269/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14270s|@configure_input@|$ac_sed_conf_input|;t t
14271s&@top_builddir@&$ac_top_builddir_sub&;t t
14272s&@top_build_prefix@&$ac_top_build_prefix&;t t
14273s&@srcdir@&$ac_srcdir&;t t
14274s&@abs_srcdir@&$ac_abs_srcdir&;t t
14275s&@top_srcdir@&$ac_top_srcdir&;t t
14276s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14277s&@builddir@&$ac_builddir&;t t
14278s&@abs_builddir@&$ac_abs_builddir&;t t
14279s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14280s&@INSTALL@&$ac_INSTALL&;t t
14281s&@MKDIR_P@&$ac_MKDIR_P&;t t
14282$ac_datarootdir_hack
14283"
14284eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14285  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14286$as_echo "$as_me: error: could not create $ac_file" >&2;}
14287   { (exit 1); exit 1; }; }
14288
14289test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14290  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14291  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14292  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14293which seems to be undefined.  Please make sure it is defined." >&5
14294$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14295which seems to be undefined.  Please make sure it is defined." >&2;}
14296
14297  rm -f "$tmp/stdin"
14298  case $ac_file in
14299  -) cat "$tmp/out" && rm -f "$tmp/out";;
14300  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14301  esac \
14302  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14303$as_echo "$as_me: error: could not create $ac_file" >&2;}
14304   { (exit 1); exit 1; }; }
14305 ;;
14306  :H)
14307  #
14308  # CONFIG_HEADER
14309  #
14310  if test x"$ac_file" != x-; then
14311    {
14312      $as_echo "/* $configure_input  */" \
14313      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14314    } >"$tmp/config.h" \
14315      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14316$as_echo "$as_me: error: could not create $ac_file" >&2;}
14317   { (exit 1); exit 1; }; }
14318    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14319      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14320$as_echo "$as_me: $ac_file is unchanged" >&6;}
14321    else
14322      rm -f "$ac_file"
14323      mv "$tmp/config.h" "$ac_file" \
14324	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14325$as_echo "$as_me: error: could not create $ac_file" >&2;}
14326   { (exit 1); exit 1; }; }
14327    fi
14328  else
14329    $as_echo "/* $configure_input  */" \
14330      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14331      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14332$as_echo "$as_me: error: could not create -" >&2;}
14333   { (exit 1); exit 1; }; }
14334  fi
14335# Compute "$ac_file"'s index in $config_headers.
14336_am_arg="$ac_file"
14337_am_stamp_count=1
14338for _am_header in $config_headers :; do
14339  case $_am_header in
14340    $_am_arg | $_am_arg:* )
14341      break ;;
14342    * )
14343      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14344  esac
14345done
14346echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14347$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14348	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14349	 X"$_am_arg" : 'X\(//\)$' \| \
14350	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14351$as_echo X"$_am_arg" |
14352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14353	    s//\1/
14354	    q
14355	  }
14356	  /^X\(\/\/\)[^/].*/{
14357	    s//\1/
14358	    q
14359	  }
14360	  /^X\(\/\/\)$/{
14361	    s//\1/
14362	    q
14363	  }
14364	  /^X\(\/\).*/{
14365	    s//\1/
14366	    q
14367	  }
14368	  s/.*/./; q'`/stamp-h$_am_stamp_count
14369 ;;
14370
14371  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14372$as_echo "$as_me: executing $ac_file commands" >&6;}
14373 ;;
14374  esac
14375
14376
14377  case $ac_file$ac_mode in
14378    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14379  # Strip MF so we end up with the name of the file.
14380  mf=`echo "$mf" | sed -e 's/:.*$//'`
14381  # Check whether this is an Automake generated Makefile or not.
14382  # We used to match only the files named `Makefile.in', but
14383  # some people rename them; so instead we look at the file content.
14384  # Grep'ing the first line is not enough: some people post-process
14385  # each Makefile.in and add a new line on top of each file to say so.
14386  # Grep'ing the whole file is not good either: AIX grep has a line
14387  # limit of 2048, but all sed's we know have understand at least 4000.
14388  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14389    dirpart=`$as_dirname -- "$mf" ||
14390$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14391	 X"$mf" : 'X\(//\)[^/]' \| \
14392	 X"$mf" : 'X\(//\)$' \| \
14393	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14394$as_echo X"$mf" |
14395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14396	    s//\1/
14397	    q
14398	  }
14399	  /^X\(\/\/\)[^/].*/{
14400	    s//\1/
14401	    q
14402	  }
14403	  /^X\(\/\/\)$/{
14404	    s//\1/
14405	    q
14406	  }
14407	  /^X\(\/\).*/{
14408	    s//\1/
14409	    q
14410	  }
14411	  s/.*/./; q'`
14412  else
14413    continue
14414  fi
14415  # Extract the definition of DEPDIR, am__include, and am__quote
14416  # from the Makefile without running `make'.
14417  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14418  test -z "$DEPDIR" && continue
14419  am__include=`sed -n 's/^am__include = //p' < "$mf"`
14420  test -z "am__include" && continue
14421  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14422  # When using ansi2knr, U may be empty or an underscore; expand it
14423  U=`sed -n 's/^U = //p' < "$mf"`
14424  # Find all dependency output files, they are included files with
14425  # $(DEPDIR) in their names.  We invoke sed twice because it is the
14426  # simplest approach to changing $(DEPDIR) to its actual value in the
14427  # expansion.
14428  for file in `sed -n "
14429    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14430       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14431    # Make sure the directory exists.
14432    test -f "$dirpart/$file" && continue
14433    fdir=`$as_dirname -- "$file" ||
14434$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14435	 X"$file" : 'X\(//\)[^/]' \| \
14436	 X"$file" : 'X\(//\)$' \| \
14437	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14438$as_echo X"$file" |
14439    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14440	    s//\1/
14441	    q
14442	  }
14443	  /^X\(\/\/\)[^/].*/{
14444	    s//\1/
14445	    q
14446	  }
14447	  /^X\(\/\/\)$/{
14448	    s//\1/
14449	    q
14450	  }
14451	  /^X\(\/\).*/{
14452	    s//\1/
14453	    q
14454	  }
14455	  s/.*/./; q'`
14456    { as_dir=$dirpart/$fdir
14457  case $as_dir in #(
14458  -*) as_dir=./$as_dir;;
14459  esac
14460  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14461    as_dirs=
14462    while :; do
14463      case $as_dir in #(
14464      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14465      *) as_qdir=$as_dir;;
14466      esac
14467      as_dirs="'$as_qdir' $as_dirs"
14468      as_dir=`$as_dirname -- "$as_dir" ||
14469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14470	 X"$as_dir" : 'X\(//\)[^/]' \| \
14471	 X"$as_dir" : 'X\(//\)$' \| \
14472	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14473$as_echo X"$as_dir" |
14474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14475	    s//\1/
14476	    q
14477	  }
14478	  /^X\(\/\/\)[^/].*/{
14479	    s//\1/
14480	    q
14481	  }
14482	  /^X\(\/\/\)$/{
14483	    s//\1/
14484	    q
14485	  }
14486	  /^X\(\/\).*/{
14487	    s//\1/
14488	    q
14489	  }
14490	  s/.*/./; q'`
14491      test -d "$as_dir" && break
14492    done
14493    test -z "$as_dirs" || eval "mkdir $as_dirs"
14494  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14495$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14496   { (exit 1); exit 1; }; }; }
14497    # echo "creating $dirpart/$file"
14498    echo '# dummy' > "$dirpart/$file"
14499  done
14500done
14501 ;;
14502    "libtool":C)
14503
14504    # See if we are running on zsh, and set the options which allow our
14505    # commands through without removal of \ escapes.
14506    if test -n "${ZSH_VERSION+set}" ; then
14507      setopt NO_GLOB_SUBST
14508    fi
14509
14510    cfgfile="${ofile}T"
14511    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14512    $RM "$cfgfile"
14513
14514    cat <<_LT_EOF >> "$cfgfile"
14515#! $SHELL
14516
14517# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14518# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14519# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14520# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14521#
14522#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14523#                 2006, 2007, 2008 Free Software Foundation, Inc.
14524#   Written by Gordon Matzigkeit, 1996
14525#
14526#   This file is part of GNU Libtool.
14527#
14528# GNU Libtool is free software; you can redistribute it and/or
14529# modify it under the terms of the GNU General Public License as
14530# published by the Free Software Foundation; either version 2 of
14531# the License, or (at your option) any later version.
14532#
14533# As a special exception to the GNU General Public License,
14534# if you distribute this file as part of a program or library that
14535# is built using GNU Libtool, you may include this file under the
14536# same distribution terms that you use for the rest of that program.
14537#
14538# GNU Libtool is distributed in the hope that it will be useful,
14539# but WITHOUT ANY WARRANTY; without even the implied warranty of
14540# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14541# GNU General Public License for more details.
14542#
14543# You should have received a copy of the GNU General Public License
14544# along with GNU Libtool; see the file COPYING.  If not, a copy
14545# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14546# obtained by writing to the Free Software Foundation, Inc.,
14547# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14548
14549
14550# The names of the tagged configurations supported by this script.
14551available_tags=""
14552
14553# ### BEGIN LIBTOOL CONFIG
14554
14555# Whether or not to build static libraries.
14556build_old_libs=$enable_static
14557
14558# Whether or not to build shared libraries.
14559build_libtool_libs=$enable_shared
14560
14561# Which release of libtool.m4 was used?
14562macro_version=$macro_version
14563macro_revision=$macro_revision
14564
14565# What type of objects to build.
14566pic_mode=$pic_mode
14567
14568# Whether or not to optimize for fast installation.
14569fast_install=$enable_fast_install
14570
14571# The host system.
14572host_alias=$host_alias
14573host=$host
14574host_os=$host_os
14575
14576# The build system.
14577build_alias=$build_alias
14578build=$build
14579build_os=$build_os
14580
14581# A sed program that does not truncate output.
14582SED=$lt_SED
14583
14584# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14585Xsed="\$SED -e 1s/^X//"
14586
14587# A grep program that handles long lines.
14588GREP=$lt_GREP
14589
14590# An ERE matcher.
14591EGREP=$lt_EGREP
14592
14593# A literal string matcher.
14594FGREP=$lt_FGREP
14595
14596# A BSD- or MS-compatible name lister.
14597NM=$lt_NM
14598
14599# Whether we need soft or hard links.
14600LN_S=$lt_LN_S
14601
14602# What is the maximum length of a command?
14603max_cmd_len=$max_cmd_len
14604
14605# Object file suffix (normally "o").
14606objext=$ac_objext
14607
14608# Executable file suffix (normally "").
14609exeext=$exeext
14610
14611# whether the shell understands "unset".
14612lt_unset=$lt_unset
14613
14614# turn spaces into newlines.
14615SP2NL=$lt_lt_SP2NL
14616
14617# turn newlines into spaces.
14618NL2SP=$lt_lt_NL2SP
14619
14620# How to create reloadable object files.
14621reload_flag=$lt_reload_flag
14622reload_cmds=$lt_reload_cmds
14623
14624# An object symbol dumper.
14625OBJDUMP=$lt_OBJDUMP
14626
14627# Method to check whether dependent libraries are shared objects.
14628deplibs_check_method=$lt_deplibs_check_method
14629
14630# Command to use when deplibs_check_method == "file_magic".
14631file_magic_cmd=$lt_file_magic_cmd
14632
14633# The archiver.
14634AR=$lt_AR
14635AR_FLAGS=$lt_AR_FLAGS
14636
14637# A symbol stripping program.
14638STRIP=$lt_STRIP
14639
14640# Commands used to install an old-style archive.
14641RANLIB=$lt_RANLIB
14642old_postinstall_cmds=$lt_old_postinstall_cmds
14643old_postuninstall_cmds=$lt_old_postuninstall_cmds
14644
14645# A C compiler.
14646LTCC=$lt_CC
14647
14648# LTCC compiler flags.
14649LTCFLAGS=$lt_CFLAGS
14650
14651# Take the output of nm and produce a listing of raw symbols and C names.
14652global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14653
14654# Transform the output of nm in a proper C declaration.
14655global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14656
14657# Transform the output of nm in a C name address pair.
14658global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14659
14660# Transform the output of nm in a C name address pair when lib prefix is needed.
14661global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14662
14663# The name of the directory that contains temporary libtool files.
14664objdir=$objdir
14665
14666# Shell to use when invoking shell scripts.
14667SHELL=$lt_SHELL
14668
14669# An echo program that does not interpret backslashes.
14670ECHO=$lt_ECHO
14671
14672# Used to examine libraries when file_magic_cmd begins with "file".
14673MAGIC_CMD=$MAGIC_CMD
14674
14675# Must we lock files when doing compilation?
14676need_locks=$lt_need_locks
14677
14678# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14679DSYMUTIL=$lt_DSYMUTIL
14680
14681# Tool to change global to local symbols on Mac OS X.
14682NMEDIT=$lt_NMEDIT
14683
14684# Tool to manipulate fat objects and archives on Mac OS X.
14685LIPO=$lt_LIPO
14686
14687# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14688OTOOL=$lt_OTOOL
14689
14690# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14691OTOOL64=$lt_OTOOL64
14692
14693# Old archive suffix (normally "a").
14694libext=$libext
14695
14696# Shared library suffix (normally ".so").
14697shrext_cmds=$lt_shrext_cmds
14698
14699# The commands to extract the exported symbol list from a shared archive.
14700extract_expsyms_cmds=$lt_extract_expsyms_cmds
14701
14702# Variables whose values should be saved in libtool wrapper scripts and
14703# restored at link time.
14704variables_saved_for_relink=$lt_variables_saved_for_relink
14705
14706# Do we need the "lib" prefix for modules?
14707need_lib_prefix=$need_lib_prefix
14708
14709# Do we need a version for libraries?
14710need_version=$need_version
14711
14712# Library versioning type.
14713version_type=$version_type
14714
14715# Shared library runtime path variable.
14716runpath_var=$runpath_var
14717
14718# Shared library path variable.
14719shlibpath_var=$shlibpath_var
14720
14721# Is shlibpath searched before the hard-coded library search path?
14722shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14723
14724# Format of library name prefix.
14725libname_spec=$lt_libname_spec
14726
14727# List of archive names.  First name is the real one, the rest are links.
14728# The last name is the one that the linker finds with -lNAME
14729library_names_spec=$lt_library_names_spec
14730
14731# The coded name of the library, if different from the real name.
14732soname_spec=$lt_soname_spec
14733
14734# Command to use after installation of a shared archive.
14735postinstall_cmds=$lt_postinstall_cmds
14736
14737# Command to use after uninstallation of a shared archive.
14738postuninstall_cmds=$lt_postuninstall_cmds
14739
14740# Commands used to finish a libtool library installation in a directory.
14741finish_cmds=$lt_finish_cmds
14742
14743# As "finish_cmds", except a single script fragment to be evaled but
14744# not shown.
14745finish_eval=$lt_finish_eval
14746
14747# Whether we should hardcode library paths into libraries.
14748hardcode_into_libs=$hardcode_into_libs
14749
14750# Compile-time system search path for libraries.
14751sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14752
14753# Run-time system search path for libraries.
14754sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14755
14756# Whether dlopen is supported.
14757dlopen_support=$enable_dlopen
14758
14759# Whether dlopen of programs is supported.
14760dlopen_self=$enable_dlopen_self
14761
14762# Whether dlopen of statically linked programs is supported.
14763dlopen_self_static=$enable_dlopen_self_static
14764
14765# Commands to strip libraries.
14766old_striplib=$lt_old_striplib
14767striplib=$lt_striplib
14768
14769
14770# The linker used to build libraries.
14771LD=$lt_LD
14772
14773# Commands used to build an old-style archive.
14774old_archive_cmds=$lt_old_archive_cmds
14775
14776# A language specific compiler.
14777CC=$lt_compiler
14778
14779# Is the compiler the GNU compiler?
14780with_gcc=$GCC
14781
14782# Compiler flag to turn off builtin functions.
14783no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14784
14785# How to pass a linker flag through the compiler.
14786wl=$lt_lt_prog_compiler_wl
14787
14788# Additional compiler flags for building library objects.
14789pic_flag=$lt_lt_prog_compiler_pic
14790
14791# Compiler flag to prevent dynamic linking.
14792link_static_flag=$lt_lt_prog_compiler_static
14793
14794# Does compiler simultaneously support -c and -o options?
14795compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14796
14797# Whether or not to add -lc for building shared libraries.
14798build_libtool_need_lc=$archive_cmds_need_lc
14799
14800# Whether or not to disallow shared libs when runtime libs are static.
14801allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14802
14803# Compiler flag to allow reflexive dlopens.
14804export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14805
14806# Compiler flag to generate shared objects directly from archives.
14807whole_archive_flag_spec=$lt_whole_archive_flag_spec
14808
14809# Whether the compiler copes with passing no objects directly.
14810compiler_needs_object=$lt_compiler_needs_object
14811
14812# Create an old-style archive from a shared archive.
14813old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14814
14815# Create a temporary old-style archive to link instead of a shared archive.
14816old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14817
14818# Commands used to build a shared archive.
14819archive_cmds=$lt_archive_cmds
14820archive_expsym_cmds=$lt_archive_expsym_cmds
14821
14822# Commands used to build a loadable module if different from building
14823# a shared archive.
14824module_cmds=$lt_module_cmds
14825module_expsym_cmds=$lt_module_expsym_cmds
14826
14827# Whether we are building with GNU ld or not.
14828with_gnu_ld=$lt_with_gnu_ld
14829
14830# Flag that allows shared libraries with undefined symbols to be built.
14831allow_undefined_flag=$lt_allow_undefined_flag
14832
14833# Flag that enforces no undefined symbols.
14834no_undefined_flag=$lt_no_undefined_flag
14835
14836# Flag to hardcode \$libdir into a binary during linking.
14837# This must work even if \$libdir does not exist
14838hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14839
14840# If ld is used when linking, flag to hardcode \$libdir into a binary
14841# during linking.  This must work even if \$libdir does not exist.
14842hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14843
14844# Whether we need a single "-rpath" flag with a separated argument.
14845hardcode_libdir_separator=$lt_hardcode_libdir_separator
14846
14847# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14848# DIR into the resulting binary.
14849hardcode_direct=$hardcode_direct
14850
14851# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14852# DIR into the resulting binary and the resulting library dependency is
14853# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14854# library is relocated.
14855hardcode_direct_absolute=$hardcode_direct_absolute
14856
14857# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14858# into the resulting binary.
14859hardcode_minus_L=$hardcode_minus_L
14860
14861# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14862# into the resulting binary.
14863hardcode_shlibpath_var=$hardcode_shlibpath_var
14864
14865# Set to "yes" if building a shared library automatically hardcodes DIR
14866# into the library and all subsequent libraries and executables linked
14867# against it.
14868hardcode_automatic=$hardcode_automatic
14869
14870# Set to yes if linker adds runtime paths of dependent libraries
14871# to runtime path list.
14872inherit_rpath=$inherit_rpath
14873
14874# Whether libtool must link a program against all its dependency libraries.
14875link_all_deplibs=$link_all_deplibs
14876
14877# Fix the shell variable \$srcfile for the compiler.
14878fix_srcfile_path=$lt_fix_srcfile_path
14879
14880# Set to "yes" if exported symbols are required.
14881always_export_symbols=$always_export_symbols
14882
14883# The commands to list exported symbols.
14884export_symbols_cmds=$lt_export_symbols_cmds
14885
14886# Symbols that should not be listed in the preloaded symbols.
14887exclude_expsyms=$lt_exclude_expsyms
14888
14889# Symbols that must always be exported.
14890include_expsyms=$lt_include_expsyms
14891
14892# Commands necessary for linking programs (against libraries) with templates.
14893prelink_cmds=$lt_prelink_cmds
14894
14895# Specify filename containing input files.
14896file_list_spec=$lt_file_list_spec
14897
14898# How to hardcode a shared library path into an executable.
14899hardcode_action=$hardcode_action
14900
14901# ### END LIBTOOL CONFIG
14902
14903_LT_EOF
14904
14905  case $host_os in
14906  aix3*)
14907    cat <<\_LT_EOF >> "$cfgfile"
14908# AIX sometimes has problems with the GCC collect2 program.  For some
14909# reason, if we set the COLLECT_NAMES environment variable, the problems
14910# vanish in a puff of smoke.
14911if test "X${COLLECT_NAMES+set}" != Xset; then
14912  COLLECT_NAMES=
14913  export COLLECT_NAMES
14914fi
14915_LT_EOF
14916    ;;
14917  esac
14918
14919
14920ltmain="$ac_aux_dir/ltmain.sh"
14921
14922
14923  # We use sed instead of cat because bash on DJGPP gets confused if
14924  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14925  # text mode, it properly converts lines to CR/LF.  This bash problem
14926  # is reportedly fixed, but why not run on old versions too?
14927  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14928    || (rm -f "$cfgfile"; exit 1)
14929
14930  case $xsi_shell in
14931  yes)
14932    cat << \_LT_EOF >> "$cfgfile"
14933
14934# func_dirname file append nondir_replacement
14935# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14936# otherwise set result to NONDIR_REPLACEMENT.
14937func_dirname ()
14938{
14939  case ${1} in
14940    */*) func_dirname_result="${1%/*}${2}" ;;
14941    *  ) func_dirname_result="${3}" ;;
14942  esac
14943}
14944
14945# func_basename file
14946func_basename ()
14947{
14948  func_basename_result="${1##*/}"
14949}
14950
14951# func_dirname_and_basename file append nondir_replacement
14952# perform func_basename and func_dirname in a single function
14953# call:
14954#   dirname:  Compute the dirname of FILE.  If nonempty,
14955#             add APPEND to the result, otherwise set result
14956#             to NONDIR_REPLACEMENT.
14957#             value returned in "$func_dirname_result"
14958#   basename: Compute filename of FILE.
14959#             value retuned in "$func_basename_result"
14960# Implementation must be kept synchronized with func_dirname
14961# and func_basename. For efficiency, we do not delegate to
14962# those functions but instead duplicate the functionality here.
14963func_dirname_and_basename ()
14964{
14965  case ${1} in
14966    */*) func_dirname_result="${1%/*}${2}" ;;
14967    *  ) func_dirname_result="${3}" ;;
14968  esac
14969  func_basename_result="${1##*/}"
14970}
14971
14972# func_stripname prefix suffix name
14973# strip PREFIX and SUFFIX off of NAME.
14974# PREFIX and SUFFIX must not contain globbing or regex special
14975# characters, hashes, percent signs, but SUFFIX may contain a leading
14976# dot (in which case that matches only a dot).
14977func_stripname ()
14978{
14979  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14980  # positional parameters, so assign one to ordinary parameter first.
14981  func_stripname_result=${3}
14982  func_stripname_result=${func_stripname_result#"${1}"}
14983  func_stripname_result=${func_stripname_result%"${2}"}
14984}
14985
14986# func_opt_split
14987func_opt_split ()
14988{
14989  func_opt_split_opt=${1%%=*}
14990  func_opt_split_arg=${1#*=}
14991}
14992
14993# func_lo2o object
14994func_lo2o ()
14995{
14996  case ${1} in
14997    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14998    *)    func_lo2o_result=${1} ;;
14999  esac
15000}
15001
15002# func_xform libobj-or-source
15003func_xform ()
15004{
15005  func_xform_result=${1%.*}.lo
15006}
15007
15008# func_arith arithmetic-term...
15009func_arith ()
15010{
15011  func_arith_result=$(( $* ))
15012}
15013
15014# func_len string
15015# STRING may not start with a hyphen.
15016func_len ()
15017{
15018  func_len_result=${#1}
15019}
15020
15021_LT_EOF
15022    ;;
15023  *) # Bourne compatible functions.
15024    cat << \_LT_EOF >> "$cfgfile"
15025
15026# func_dirname file append nondir_replacement
15027# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15028# otherwise set result to NONDIR_REPLACEMENT.
15029func_dirname ()
15030{
15031  # Extract subdirectory from the argument.
15032  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15033  if test "X$func_dirname_result" = "X${1}"; then
15034    func_dirname_result="${3}"
15035  else
15036    func_dirname_result="$func_dirname_result${2}"
15037  fi
15038}
15039
15040# func_basename file
15041func_basename ()
15042{
15043  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15044}
15045
15046
15047# func_stripname prefix suffix name
15048# strip PREFIX and SUFFIX off of NAME.
15049# PREFIX and SUFFIX must not contain globbing or regex special
15050# characters, hashes, percent signs, but SUFFIX may contain a leading
15051# dot (in which case that matches only a dot).
15052# func_strip_suffix prefix name
15053func_stripname ()
15054{
15055  case ${2} in
15056    .*) func_stripname_result=`$ECHO "X${3}" \
15057           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15058    *)  func_stripname_result=`$ECHO "X${3}" \
15059           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15060  esac
15061}
15062
15063# sed scripts:
15064my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15065my_sed_long_arg='1s/^-[^=]*=//'
15066
15067# func_opt_split
15068func_opt_split ()
15069{
15070  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15071  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15072}
15073
15074# func_lo2o object
15075func_lo2o ()
15076{
15077  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15078}
15079
15080# func_xform libobj-or-source
15081func_xform ()
15082{
15083  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15084}
15085
15086# func_arith arithmetic-term...
15087func_arith ()
15088{
15089  func_arith_result=`expr "$@"`
15090}
15091
15092# func_len string
15093# STRING may not start with a hyphen.
15094func_len ()
15095{
15096  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15097}
15098
15099_LT_EOF
15100esac
15101
15102case $lt_shell_append in
15103  yes)
15104    cat << \_LT_EOF >> "$cfgfile"
15105
15106# func_append var value
15107# Append VALUE to the end of shell variable VAR.
15108func_append ()
15109{
15110  eval "$1+=\$2"
15111}
15112_LT_EOF
15113    ;;
15114  *)
15115    cat << \_LT_EOF >> "$cfgfile"
15116
15117# func_append var value
15118# Append VALUE to the end of shell variable VAR.
15119func_append ()
15120{
15121  eval "$1=\$$1\$2"
15122}
15123
15124_LT_EOF
15125    ;;
15126  esac
15127
15128
15129  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15130    || (rm -f "$cfgfile"; exit 1)
15131
15132  mv -f "$cfgfile" "$ofile" ||
15133    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15134  chmod +x "$ofile"
15135
15136 ;;
15137
15138  esac
15139done # for ac_tag
15140
15141
15142{ (exit 0); exit 0; }
15143_ACEOF
15144chmod +x $CONFIG_STATUS
15145ac_clean_files=$ac_clean_files_save
15146
15147test $ac_write_fail = 0 ||
15148  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15149$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15150   { (exit 1); exit 1; }; }
15151
15152
15153# configure is writing to config.log, and then calls config.status.
15154# config.status does its own redirection, appending to config.log.
15155# Unfortunately, on DOS this fails, as config.log is still kept open
15156# by configure, so config.status won't be able to write to it; its
15157# output is simply discarded.  So we exec the FD to /dev/null,
15158# effectively closing config.log, so it can be properly (re)opened and
15159# appended to by config.status.  When coming back to configure, we
15160# need to make the FD available again.
15161if test "$no_create" != yes; then
15162  ac_cs_success=:
15163  ac_config_status_args=
15164  test "$silent" = yes &&
15165    ac_config_status_args="$ac_config_status_args --quiet"
15166  exec 5>/dev/null
15167  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15168  exec 5>>config.log
15169  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15170  # would make configure fail if this is the last instruction.
15171  $ac_cs_success || { (exit 1); exit 1; }
15172fi
15173if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15174  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15175$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15176fi
15177
15178
15179