1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for MP4v2 2.0.0.
4#
5# Report bugs to <kidjan@gmail.com>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and kidjan@gmail.com
234$0: about your system, including any error possibly output
235$0: before this message. Then install a modern shell, or
236$0: manually run the script under such a shell if you do
237$0: have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$?; test $as_status -eq 0 && as_status=1
370  if test "$3"; then
371    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373  fi
374  $as_echo "$as_me: error: $1" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='MP4v2'
703PACKAGE_TARNAME='mp4v2'
704PACKAGE_VERSION='2.0.0'
705PACKAGE_STRING='MP4v2 2.0.0'
706PACKAGE_BUGREPORT='kidjan@gmail.com'
707PACKAGE_URL=''
708
709ac_unique_file="src/mp4.cpp"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724#  include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729#  include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750X_MINGW_LIBS
751X_CXX_I
752X_CXX_D
753X_CXX_W
754X_CXX_ARCH
755ADD_MANS_FALSE
756ADD_MANS_TRUE
757ADD_UTIL_FALSE
758ADD_UTIL_TRUE
759ADD_PLATFORM_WIN32_FALSE
760ADD_PLATFORM_WIN32_TRUE
761ADD_PLATFORM_POSIX_FALSE
762ADD_PLATFORM_POSIX_TRUE
763X_GCH_SHARED_FLAGS
764X_GCH_SHARED
765X_GCH_STATIC_FLAGS
766X_GCH_STATIC
767X_GCH_FLAGS
768X_GCH
769X_libmp4v2_la_LDFLAGS
770PROJECT_build
771PROJECT_repo_type
772PROJECT_repo_date
773PROJECT_repo_rev
774PROJECT_repo_uuid
775PROJECT_repo_root
776PROJECT_repo_branch
777PROJECT_repo_url
778PROJECT_version_point
779PROJECT_version_minor
780PROJECT_version_major
781PROJECT_version_hex
782PROJECT_version
783PROJECT_bugreport
784PROJECT_irc
785PROJECT_url_discussion
786PROJECT_url_downloads
787PROJECT_url_website
788PROJECT_name_formal
789PROJECT_name_upper
790PROJECT_name_lower
791PROJECT_name
792FOUND_HELP2MAN
793CXXCPP
794CPP
795OTOOL64
796OTOOL
797LIPO
798NMEDIT
799DSYMUTIL
800lt_ECHO
801RANLIB
802AR
803OBJDUMP
804LN_S
805NM
806ac_ct_DUMPBIN
807DUMPBIN
808LD
809FGREP
810EGREP
811GREP
812SED
813am__fastdepCC_FALSE
814am__fastdepCC_TRUE
815CCDEPMODE
816ac_ct_CC
817CFLAGS
818CC
819LIBTOOL
820am__fastdepCXX_FALSE
821am__fastdepCXX_TRUE
822CXXDEPMODE
823AMDEPBACKSLASH
824AMDEP_FALSE
825AMDEP_TRUE
826am__quote
827am__include
828DEPDIR
829OBJEXT
830EXEEXT
831ac_ct_CXX
832CPPFLAGS
833LDFLAGS
834CXXFLAGS
835CXX
836host_os
837host_vendor
838host_cpu
839host
840build_os
841build_vendor
842build_cpu
843build
844am__untar
845am__tar
846AMTAR
847am__leading_dot
848SET_MAKE
849AWK
850mkdir_p
851MKDIR_P
852INSTALL_STRIP_PROGRAM
853STRIP
854install_sh
855MAKEINFO
856AUTOHEADER
857AUTOMAKE
858AUTOCONF
859ACLOCAL
860VERSION
861PACKAGE
862CYGPATH_W
863am__isrc
864INSTALL_DATA
865INSTALL_SCRIPT
866INSTALL_PROGRAM
867target_alias
868host_alias
869build_alias
870LIBS
871ECHO_T
872ECHO_N
873ECHO_C
874DEFS
875mandir
876localedir
877libdir
878psdir
879pdfdir
880dvidir
881htmldir
882infodir
883docdir
884oldincludedir
885includedir
886localstatedir
887sharedstatedir
888sysconfdir
889datadir
890datarootdir
891libexecdir
892sbindir
893bindir
894program_transform_name
895prefix
896exec_prefix
897PACKAGE_URL
898PACKAGE_BUGREPORT
899PACKAGE_STRING
900PACKAGE_VERSION
901PACKAGE_TARNAME
902PACKAGE_NAME
903PATH_SEPARATOR
904SHELL'
905ac_subst_files=''
906ac_user_opts='
907enable_option_checking
908enable_debug
909enable_optimize
910enable_fvisibility
911enable_gch
912enable_largefile
913enable_util
914enable_bi
915enable_ub
916enable_cygwin_win32
917enable_mingw_mt
918enable_dependency_tracking
919enable_shared
920enable_static
921with_pic
922enable_fast_install
923with_gnu_ld
924enable_libtool_lock
925'
926      ac_precious_vars='build_alias
927host_alias
928target_alias
929CXX
930CXXFLAGS
931LDFLAGS
932LIBS
933CPPFLAGS
934CCC
935CC
936CFLAGS
937CPP
938CXXCPP'
939
940
941# Initialize some variables set by options.
942ac_init_help=
943ac_init_version=false
944ac_unrecognized_opts=
945ac_unrecognized_sep=
946# The variables have the same names as the options, with
947# dashes changed to underlines.
948cache_file=/dev/null
949exec_prefix=NONE
950no_create=
951no_recursion=
952prefix=NONE
953program_prefix=NONE
954program_suffix=NONE
955program_transform_name=s,x,x,
956silent=
957site=
958srcdir=
959verbose=
960x_includes=NONE
961x_libraries=NONE
962
963# Installation directory options.
964# These are left unexpanded so users can "make install exec_prefix=/foo"
965# and all the variables that are supposed to be based on exec_prefix
966# by default will actually change.
967# Use braces instead of parens because sh, perl, etc. also accept them.
968# (The list follows the same order as the GNU Coding Standards.)
969bindir='${exec_prefix}/bin'
970sbindir='${exec_prefix}/sbin'
971libexecdir='${exec_prefix}/libexec'
972datarootdir='${prefix}/share'
973datadir='${datarootdir}'
974sysconfdir='${prefix}/etc'
975sharedstatedir='${prefix}/com'
976localstatedir='${prefix}/var'
977includedir='${prefix}/include'
978oldincludedir='/usr/include'
979docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980infodir='${datarootdir}/info'
981htmldir='${docdir}'
982dvidir='${docdir}'
983pdfdir='${docdir}'
984psdir='${docdir}'
985libdir='${exec_prefix}/lib'
986localedir='${datarootdir}/locale'
987mandir='${datarootdir}/man'
988
989ac_prev=
990ac_dashdash=
991for ac_option
992do
993  # If the previous option needs an argument, assign it.
994  if test -n "$ac_prev"; then
995    eval $ac_prev=\$ac_option
996    ac_prev=
997    continue
998  fi
999
1000  case $ac_option in
1001  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002  *)	ac_optarg=yes ;;
1003  esac
1004
1005  # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007  case $ac_dashdash$ac_option in
1008  --)
1009    ac_dashdash=yes ;;
1010
1011  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012    ac_prev=bindir ;;
1013  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014    bindir=$ac_optarg ;;
1015
1016  -build | --build | --buil | --bui | --bu)
1017    ac_prev=build_alias ;;
1018  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019    build_alias=$ac_optarg ;;
1020
1021  -cache-file | --cache-file | --cache-fil | --cache-fi \
1022  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023    ac_prev=cache_file ;;
1024  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026    cache_file=$ac_optarg ;;
1027
1028  --config-cache | -C)
1029    cache_file=config.cache ;;
1030
1031  -datadir | --datadir | --datadi | --datad)
1032    ac_prev=datadir ;;
1033  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034    datadir=$ac_optarg ;;
1035
1036  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037  | --dataroo | --dataro | --datar)
1038    ac_prev=datarootdir ;;
1039  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041    datarootdir=$ac_optarg ;;
1042
1043  -disable-* | --disable-*)
1044    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045    # Reject names that are not valid shell variable names.
1046    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047      as_fn_error "invalid feature name: $ac_useropt"
1048    ac_useropt_orig=$ac_useropt
1049    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050    case $ac_user_opts in
1051      *"
1052"enable_$ac_useropt"
1053"*) ;;
1054      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055	 ac_unrecognized_sep=', ';;
1056    esac
1057    eval enable_$ac_useropt=no ;;
1058
1059  -docdir | --docdir | --docdi | --doc | --do)
1060    ac_prev=docdir ;;
1061  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062    docdir=$ac_optarg ;;
1063
1064  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065    ac_prev=dvidir ;;
1066  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067    dvidir=$ac_optarg ;;
1068
1069  -enable-* | --enable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error "invalid feature name: $ac_useropt"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087  | --exec | --exe | --ex)
1088    ac_prev=exec_prefix ;;
1089  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091  | --exec=* | --exe=* | --ex=*)
1092    exec_prefix=$ac_optarg ;;
1093
1094  -gas | --gas | --ga | --g)
1095    # Obsolete; use --with-gas.
1096    with_gas=yes ;;
1097
1098  -help | --help | --hel | --he | -h)
1099    ac_init_help=long ;;
1100  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101    ac_init_help=recursive ;;
1102  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103    ac_init_help=short ;;
1104
1105  -host | --host | --hos | --ho)
1106    ac_prev=host_alias ;;
1107  -host=* | --host=* | --hos=* | --ho=*)
1108    host_alias=$ac_optarg ;;
1109
1110  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111    ac_prev=htmldir ;;
1112  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113  | --ht=*)
1114    htmldir=$ac_optarg ;;
1115
1116  -includedir | --includedir | --includedi | --included | --include \
1117  | --includ | --inclu | --incl | --inc)
1118    ac_prev=includedir ;;
1119  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120  | --includ=* | --inclu=* | --incl=* | --inc=*)
1121    includedir=$ac_optarg ;;
1122
1123  -infodir | --infodir | --infodi | --infod | --info | --inf)
1124    ac_prev=infodir ;;
1125  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126    infodir=$ac_optarg ;;
1127
1128  -libdir | --libdir | --libdi | --libd)
1129    ac_prev=libdir ;;
1130  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131    libdir=$ac_optarg ;;
1132
1133  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134  | --libexe | --libex | --libe)
1135    ac_prev=libexecdir ;;
1136  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137  | --libexe=* | --libex=* | --libe=*)
1138    libexecdir=$ac_optarg ;;
1139
1140  -localedir | --localedir | --localedi | --localed | --locale)
1141    ac_prev=localedir ;;
1142  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143    localedir=$ac_optarg ;;
1144
1145  -localstatedir | --localstatedir | --localstatedi | --localstated \
1146  | --localstate | --localstat | --localsta | --localst | --locals)
1147    ac_prev=localstatedir ;;
1148  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150    localstatedir=$ac_optarg ;;
1151
1152  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153    ac_prev=mandir ;;
1154  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155    mandir=$ac_optarg ;;
1156
1157  -nfp | --nfp | --nf)
1158    # Obsolete; use --without-fp.
1159    with_fp=no ;;
1160
1161  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162  | --no-cr | --no-c | -n)
1163    no_create=yes ;;
1164
1165  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167    no_recursion=yes ;;
1168
1169  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171  | --oldin | --oldi | --old | --ol | --o)
1172    ac_prev=oldincludedir ;;
1173  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176    oldincludedir=$ac_optarg ;;
1177
1178  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179    ac_prev=prefix ;;
1180  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181    prefix=$ac_optarg ;;
1182
1183  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184  | --program-pre | --program-pr | --program-p)
1185    ac_prev=program_prefix ;;
1186  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188    program_prefix=$ac_optarg ;;
1189
1190  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191  | --program-suf | --program-su | --program-s)
1192    ac_prev=program_suffix ;;
1193  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195    program_suffix=$ac_optarg ;;
1196
1197  -program-transform-name | --program-transform-name \
1198  | --program-transform-nam | --program-transform-na \
1199  | --program-transform-n | --program-transform- \
1200  | --program-transform | --program-transfor \
1201  | --program-transfo | --program-transf \
1202  | --program-trans | --program-tran \
1203  | --progr-tra | --program-tr | --program-t)
1204    ac_prev=program_transform_name ;;
1205  -program-transform-name=* | --program-transform-name=* \
1206  | --program-transform-nam=* | --program-transform-na=* \
1207  | --program-transform-n=* | --program-transform-=* \
1208  | --program-transform=* | --program-transfor=* \
1209  | --program-transfo=* | --program-transf=* \
1210  | --program-trans=* | --program-tran=* \
1211  | --progr-tra=* | --program-tr=* | --program-t=*)
1212    program_transform_name=$ac_optarg ;;
1213
1214  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215    ac_prev=pdfdir ;;
1216  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217    pdfdir=$ac_optarg ;;
1218
1219  -psdir | --psdir | --psdi | --psd | --ps)
1220    ac_prev=psdir ;;
1221  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222    psdir=$ac_optarg ;;
1223
1224  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225  | -silent | --silent | --silen | --sile | --sil)
1226    silent=yes ;;
1227
1228  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229    ac_prev=sbindir ;;
1230  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231  | --sbi=* | --sb=*)
1232    sbindir=$ac_optarg ;;
1233
1234  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236  | --sharedst | --shareds | --shared | --share | --shar \
1237  | --sha | --sh)
1238    ac_prev=sharedstatedir ;;
1239  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242  | --sha=* | --sh=*)
1243    sharedstatedir=$ac_optarg ;;
1244
1245  -site | --site | --sit)
1246    ac_prev=site ;;
1247  -site=* | --site=* | --sit=*)
1248    site=$ac_optarg ;;
1249
1250  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251    ac_prev=srcdir ;;
1252  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253    srcdir=$ac_optarg ;;
1254
1255  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256  | --syscon | --sysco | --sysc | --sys | --sy)
1257    ac_prev=sysconfdir ;;
1258  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260    sysconfdir=$ac_optarg ;;
1261
1262  -target | --target | --targe | --targ | --tar | --ta | --t)
1263    ac_prev=target_alias ;;
1264  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265    target_alias=$ac_optarg ;;
1266
1267  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268    verbose=yes ;;
1269
1270  -version | --version | --versio | --versi | --vers | -V)
1271    ac_init_version=: ;;
1272
1273  -with-* | --with-*)
1274    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275    # Reject names that are not valid shell variable names.
1276    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277      as_fn_error "invalid package name: $ac_useropt"
1278    ac_useropt_orig=$ac_useropt
1279    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280    case $ac_user_opts in
1281      *"
1282"with_$ac_useropt"
1283"*) ;;
1284      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285	 ac_unrecognized_sep=', ';;
1286    esac
1287    eval with_$ac_useropt=\$ac_optarg ;;
1288
1289  -without-* | --without-*)
1290    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291    # Reject names that are not valid shell variable names.
1292    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293      as_fn_error "invalid package name: $ac_useropt"
1294    ac_useropt_orig=$ac_useropt
1295    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296    case $ac_user_opts in
1297      *"
1298"with_$ac_useropt"
1299"*) ;;
1300      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301	 ac_unrecognized_sep=', ';;
1302    esac
1303    eval with_$ac_useropt=no ;;
1304
1305  --x)
1306    # Obsolete; use --with-x.
1307    with_x=yes ;;
1308
1309  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310  | --x-incl | --x-inc | --x-in | --x-i)
1311    ac_prev=x_includes ;;
1312  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314    x_includes=$ac_optarg ;;
1315
1316  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318    ac_prev=x_libraries ;;
1319  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321    x_libraries=$ac_optarg ;;
1322
1323  -*) as_fn_error "unrecognized option: \`$ac_option'
1324Try \`$0 --help' for more information."
1325    ;;
1326
1327  *=*)
1328    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329    # Reject names that are not valid shell variable names.
1330    case $ac_envvar in #(
1331      '' | [0-9]* | *[!_$as_cr_alnum]* )
1332      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333    esac
1334    eval $ac_envvar=\$ac_optarg
1335    export $ac_envvar ;;
1336
1337  *)
1338    # FIXME: should be removed in autoconf 3.0.
1339    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343    ;;
1344
1345  esac
1346done
1347
1348if test -n "$ac_prev"; then
1349  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350  as_fn_error "missing argument to $ac_option"
1351fi
1352
1353if test -n "$ac_unrecognized_opts"; then
1354  case $enable_option_checking in
1355    no) ;;
1356    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358  esac
1359fi
1360
1361# Check all directory arguments for consistency.
1362for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363		datadir sysconfdir sharedstatedir localstatedir includedir \
1364		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365		libdir localedir mandir
1366do
1367  eval ac_val=\$$ac_var
1368  # Remove trailing slashes.
1369  case $ac_val in
1370    */ )
1371      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372      eval $ac_var=\$ac_val;;
1373  esac
1374  # Be sure to have absolute directory names.
1375  case $ac_val in
1376    [\\/$]* | ?:[\\/]* )  continue;;
1377    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378  esac
1379  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380done
1381
1382# There might be people who depend on the old broken behavior: `$host'
1383# used to hold the argument of --host etc.
1384# FIXME: To remove some day.
1385build=$build_alias
1386host=$host_alias
1387target=$target_alias
1388
1389# FIXME: To remove some day.
1390if test "x$host_alias" != x; then
1391  if test "x$build_alias" = x; then
1392    cross_compiling=maybe
1393    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394    If a cross compiler is detected then cross compile mode will be used." >&2
1395  elif test "x$build_alias" != "x$host_alias"; then
1396    cross_compiling=yes
1397  fi
1398fi
1399
1400ac_tool_prefix=
1401test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403test "$silent" = yes && exec 6>/dev/null
1404
1405
1406ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407ac_ls_di=`ls -di .` &&
1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409  as_fn_error "working directory cannot be determined"
1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411  as_fn_error "pwd does not report name of working directory"
1412
1413
1414# Find the source files, if location was not specified.
1415if test -z "$srcdir"; then
1416  ac_srcdir_defaulted=yes
1417  # Try the directory containing this script, then the parent directory.
1418  ac_confdir=`$as_dirname -- "$as_myself" ||
1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420	 X"$as_myself" : 'X\(//\)[^/]' \| \
1421	 X"$as_myself" : 'X\(//\)$' \| \
1422	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423$as_echo X"$as_myself" |
1424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425	    s//\1/
1426	    q
1427	  }
1428	  /^X\(\/\/\)[^/].*/{
1429	    s//\1/
1430	    q
1431	  }
1432	  /^X\(\/\/\)$/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\).*/{
1437	    s//\1/
1438	    q
1439	  }
1440	  s/.*/./; q'`
1441  srcdir=$ac_confdir
1442  if test ! -r "$srcdir/$ac_unique_file"; then
1443    srcdir=..
1444  fi
1445else
1446  ac_srcdir_defaulted=no
1447fi
1448if test ! -r "$srcdir/$ac_unique_file"; then
1449  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451fi
1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453ac_abs_confdir=`(
1454	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455	pwd)`
1456# When building in place, set srcdir=.
1457if test "$ac_abs_confdir" = "$ac_pwd"; then
1458  srcdir=.
1459fi
1460# Remove unnecessary trailing slashes from srcdir.
1461# Double slashes in file names in object file debugging info
1462# mess up M-x gdb in Emacs.
1463case $srcdir in
1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465esac
1466for ac_var in $ac_precious_vars; do
1467  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468  eval ac_env_${ac_var}_value=\$${ac_var}
1469  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471done
1472
1473#
1474# Report the --help message.
1475#
1476if test "$ac_init_help" = "long"; then
1477  # Omit some internal or obsolete options to make the list less imposing.
1478  # This message is too long to be a string in the A/UX 3.1 sh.
1479  cat <<_ACEOF
1480\`configure' configures MP4v2 2.0.0 to adapt to many kinds of systems.
1481
1482Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487Defaults for the options are specified in brackets.
1488
1489Configuration:
1490  -h, --help              display this help and exit
1491      --help=short        display options specific to this package
1492      --help=recursive    display the short help of all the included packages
1493  -V, --version           display version information and exit
1494  -q, --quiet, --silent   do not print \`checking...' messages
1495      --cache-file=FILE   cache test results in FILE [disabled]
1496  -C, --config-cache      alias for \`--cache-file=config.cache'
1497  -n, --no-create         do not create output files
1498      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500Installation directories:
1501  --prefix=PREFIX         install architecture-independent files in PREFIX
1502                          [$ac_default_prefix]
1503  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                          [PREFIX]
1505
1506By default, \`make install' will install all the files in
1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509for instance \`--prefix=\$HOME'.
1510
1511For better control, use the options below.
1512
1513Fine tuning of the installation directories:
1514  --bindir=DIR            user executables [EPREFIX/bin]
1515  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516  --libexecdir=DIR        program executables [EPREFIX/libexec]
1517  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520  --libdir=DIR            object code libraries [EPREFIX/lib]
1521  --includedir=DIR        C header files [PREFIX/include]
1522  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1523  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1524  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1525  --infodir=DIR           info documentation [DATAROOTDIR/info]
1526  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1527  --mandir=DIR            man documentation [DATAROOTDIR/man]
1528  --docdir=DIR            documentation root [DATAROOTDIR/doc/mp4v2]
1529  --htmldir=DIR           html documentation [DOCDIR]
1530  --dvidir=DIR            dvi documentation [DOCDIR]
1531  --pdfdir=DIR            pdf documentation [DOCDIR]
1532  --psdir=DIR             ps documentation [DOCDIR]
1533_ACEOF
1534
1535  cat <<\_ACEOF
1536
1537Program names:
1538  --program-prefix=PREFIX            prepend PREFIX to installed program names
1539  --program-suffix=SUFFIX            append SUFFIX to installed program names
1540  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1541
1542System types:
1543  --build=BUILD     configure for building on BUILD [guessed]
1544  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545_ACEOF
1546fi
1547
1548if test -n "$ac_init_help"; then
1549  case $ac_init_help in
1550     short | recursive ) echo "Configuration of MP4v2 2.0.0:";;
1551   esac
1552  cat <<\_ACEOF
1553
1554Optional Features:
1555  --disable-option-checking  ignore unrecognized --enable/--with options
1556  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558  --disable-debug         disable debugging compilation
1559  --disable-optimize      disable optimizing compilation
1560  --disable-fvisibility   disable use of -fvisibility
1561  --disable-gch           disable GCC precompiled-headers
1562  --disable-largefile     disable LFS (large file support)
1563  --disable-util          disable build of command-line utilities
1564  --enable-bi=ARCH        enable -mARCH for bi-arch compilation
1565  --enable-ub[=ARCHS]     enable -arch ARCH for universal-binaries (OSX only)
1566  --enable-cygwin-win32   when building with Cygwin use -mwin32
1567  --enable-mingw-threads  when building with MinGW use -mthreads
1568  --disable-dependency-tracking  speeds up one-time build
1569  --enable-dependency-tracking   do not reject slow dependency extractors
1570  --enable-shared[=PKGS]  build shared libraries [default=yes]
1571  --enable-static[=PKGS]  build static libraries [default=yes]
1572  --enable-fast-install[=PKGS]
1573                          optimize for fast installation [default=yes]
1574  --disable-libtool-lock  avoid locking (might break parallel builds)
1575
1576Optional Packages:
1577  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1578  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1579  --with-pic              try to use only PIC/non-PIC objects [default=use
1580                          both]
1581  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582
1583Some influential environment variables:
1584  CXX         C++ compiler command
1585  CXXFLAGS    C++ compiler flags
1586  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587              nonstandard directory <lib dir>
1588  LIBS        libraries to pass to the linker, e.g. -l<library>
1589  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590              you have headers in a nonstandard directory <include dir>
1591  CC          C compiler command
1592  CFLAGS      C compiler flags
1593  CPP         C preprocessor
1594  CXXCPP      C++ preprocessor
1595
1596Use these variables to override the choices made by `configure' or to help
1597it to find libraries and programs with nonstandard names/locations.
1598
1599Report bugs to <kidjan@gmail.com>.
1600_ACEOF
1601ac_status=$?
1602fi
1603
1604if test "$ac_init_help" = "recursive"; then
1605  # If there are subdirs, report their specific --help.
1606  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607    test -d "$ac_dir" ||
1608      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609      continue
1610    ac_builddir=.
1611
1612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
1615  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616  # A ".." for each directory in $ac_dir_suffix.
1617  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618  case $ac_top_builddir_sub in
1619  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621  esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
1627
1628case $srcdir in
1629  .)  # We are building in place.
1630    ac_srcdir=.
1631    ac_top_srcdir=$ac_top_builddir_sub
1632    ac_abs_top_srcdir=$ac_pwd ;;
1633  [\\/]* | ?:[\\/]* )  # Absolute name.
1634    ac_srcdir=$srcdir$ac_dir_suffix;
1635    ac_top_srcdir=$srcdir
1636    ac_abs_top_srcdir=$srcdir ;;
1637  *) # Relative name.
1638    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639    ac_top_srcdir=$ac_top_build_prefix$srcdir
1640    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641esac
1642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644    cd "$ac_dir" || { ac_status=$?; continue; }
1645    # Check for guested configure.
1646    if test -f "$ac_srcdir/configure.gnu"; then
1647      echo &&
1648      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649    elif test -f "$ac_srcdir/configure"; then
1650      echo &&
1651      $SHELL "$ac_srcdir/configure" --help=recursive
1652    else
1653      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654    fi || ac_status=$?
1655    cd "$ac_pwd" || { ac_status=$?; break; }
1656  done
1657fi
1658
1659test -n "$ac_init_help" && exit $ac_status
1660if $ac_init_version; then
1661  cat <<\_ACEOF
1662MP4v2 configure 2.0.0
1663generated by GNU Autoconf 2.65
1664
1665Copyright (C) 2009 Free Software Foundation, Inc.
1666This configure script is free software; the Free Software Foundation
1667gives unlimited permission to copy, distribute and modify it.
1668_ACEOF
1669  exit
1670fi
1671
1672## ------------------------ ##
1673## Autoconf initialization. ##
1674## ------------------------ ##
1675
1676# ac_fn_cxx_try_compile LINENO
1677# ----------------------------
1678# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_cxx_try_compile ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  rm -f conftest.$ac_objext
1683  if { { ac_try="$ac_compile"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_compile") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && {
1699	 test -z "$ac_cxx_werror_flag" ||
1700	 test ! -s conftest.err
1701       } && test -s conftest.$ac_objext; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707	ac_retval=1
1708fi
1709  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_cxx_try_compile
1713
1714# ac_fn_c_try_compile LINENO
1715# --------------------------
1716# Try to compile conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_compile ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  rm -f conftest.$ac_objext
1721  if { { ac_try="$ac_compile"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_compile") 2>conftest.err
1729  ac_status=$?
1730  if test -s conftest.err; then
1731    grep -v '^ *+' conftest.err >conftest.er1
1732    cat conftest.er1 >&5
1733    mv -f conftest.er1 conftest.err
1734  fi
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && {
1737	 test -z "$ac_c_werror_flag" ||
1738	 test ! -s conftest.err
1739       } && test -s conftest.$ac_objext; then :
1740  ac_retval=0
1741else
1742  $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745	ac_retval=1
1746fi
1747  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748  as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_compile
1751
1752# ac_fn_c_try_link LINENO
1753# -----------------------
1754# Try to link conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_c_try_link ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  rm -f conftest.$ac_objext conftest$ac_exeext
1759  if { { ac_try="$ac_link"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_link") 2>conftest.err
1767  ac_status=$?
1768  if test -s conftest.err; then
1769    grep -v '^ *+' conftest.err >conftest.er1
1770    cat conftest.er1 >&5
1771    mv -f conftest.er1 conftest.err
1772  fi
1773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774  test $ac_status = 0; } && {
1775	 test -z "$ac_c_werror_flag" ||
1776	 test ! -s conftest.err
1777       } && test -s conftest$ac_exeext && {
1778	 test "$cross_compiling" = yes ||
1779	 $as_test_x conftest$ac_exeext
1780       }; then :
1781  ac_retval=0
1782else
1783  $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786	ac_retval=1
1787fi
1788  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1789  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1790  # interfere with the next link command; also delete a directory that is
1791  # left behind by Apple's compiler.  We do this before executing the actions.
1792  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794  as_fn_set_status $ac_retval
1795
1796} # ac_fn_c_try_link
1797
1798# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799# -------------------------------------------------------
1800# Tests whether HEADER exists and can be compiled using the include files in
1801# INCLUDES, setting the cache variable VAR accordingly.
1802ac_fn_c_check_header_compile ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
1807if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1808  $as_echo_n "(cached) " >&6
1809else
1810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"; then :
1816  eval "$3=yes"
1817else
1818  eval "$3=no"
1819fi
1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821fi
1822eval ac_res=\$$3
1823	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826
1827} # ac_fn_c_check_header_compile
1828
1829# ac_fn_c_try_cpp LINENO
1830# ----------------------
1831# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_c_try_cpp ()
1833{
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  if { { ac_try="$ac_cpp conftest.$ac_ext"
1836case "(($ac_try" in
1837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838  *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843  ac_status=$?
1844  if test -s conftest.err; then
1845    grep -v '^ *+' conftest.err >conftest.er1
1846    cat conftest.er1 >&5
1847    mv -f conftest.er1 conftest.err
1848  fi
1849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850  test $ac_status = 0; } >/dev/null && {
1851	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1852	 test ! -s conftest.err
1853       }; then :
1854  ac_retval=0
1855else
1856  $as_echo "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859    ac_retval=1
1860fi
1861  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862  as_fn_set_status $ac_retval
1863
1864} # ac_fn_c_try_cpp
1865
1866# ac_fn_c_try_run LINENO
1867# ----------------------
1868# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1869# that executables *can* be run.
1870ac_fn_c_try_run ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  if { { ac_try="$ac_link"
1874case "(($ac_try" in
1875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876  *) ac_try_echo=$ac_try;;
1877esac
1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879$as_echo "$ac_try_echo"; } >&5
1880  (eval "$ac_link") 2>&5
1881  ac_status=$?
1882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1884  { { case "(($ac_try" in
1885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886  *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890  (eval "$ac_try") 2>&5
1891  ac_status=$?
1892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893  test $ac_status = 0; }; }; then :
1894  ac_retval=0
1895else
1896  $as_echo "$as_me: program exited with status $ac_status" >&5
1897       $as_echo "$as_me: failed program was:" >&5
1898sed 's/^/| /' conftest.$ac_ext >&5
1899
1900       ac_retval=$ac_status
1901fi
1902  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904  as_fn_set_status $ac_retval
1905
1906} # ac_fn_c_try_run
1907
1908# ac_fn_c_check_func LINENO FUNC VAR
1909# ----------------------------------
1910# Tests whether FUNC exists, setting the cache variable VAR accordingly
1911ac_fn_c_check_func ()
1912{
1913  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917  $as_echo_n "(cached) " >&6
1918else
1919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h.  */
1921/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1922   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1923#define $2 innocuous_$2
1924
1925/* System header to define __stub macros and hopefully few prototypes,
1926    which can conflict with char $2 (); below.
1927    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1928    <limits.h> exists even on freestanding compilers.  */
1929
1930#ifdef __STDC__
1931# include <limits.h>
1932#else
1933# include <assert.h>
1934#endif
1935
1936#undef $2
1937
1938/* Override any GCC internal prototype to avoid an error.
1939   Use char because int might match the return type of a GCC
1940   builtin and then its argument prototype would still apply.  */
1941#ifdef __cplusplus
1942extern "C"
1943#endif
1944char $2 ();
1945/* The GNU C library defines this for functions which it implements
1946    to always fail with ENOSYS.  Some functions are actually named
1947    something starting with __ and the normal name is an alias.  */
1948#if defined __stub_$2 || defined __stub___$2
1949choke me
1950#endif
1951
1952int
1953main ()
1954{
1955return $2 ();
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_link "$LINENO"; then :
1961  eval "$3=yes"
1962else
1963  eval "$3=no"
1964fi
1965rm -f core conftest.err conftest.$ac_objext \
1966    conftest$ac_exeext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972
1973} # ac_fn_c_check_func
1974
1975# ac_fn_cxx_try_cpp LINENO
1976# ------------------------
1977# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1978ac_fn_cxx_try_cpp ()
1979{
1980  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981  if { { ac_try="$ac_cpp conftest.$ac_ext"
1982case "(($ac_try" in
1983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984  *) ac_try_echo=$ac_try;;
1985esac
1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987$as_echo "$ac_try_echo"; } >&5
1988  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1989  ac_status=$?
1990  if test -s conftest.err; then
1991    grep -v '^ *+' conftest.err >conftest.er1
1992    cat conftest.er1 >&5
1993    mv -f conftest.er1 conftest.err
1994  fi
1995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996  test $ac_status = 0; } >/dev/null && {
1997	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1998	 test ! -s conftest.err
1999       }; then :
2000  ac_retval=0
2001else
2002  $as_echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005    ac_retval=1
2006fi
2007  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008  as_fn_set_status $ac_retval
2009
2010} # ac_fn_cxx_try_cpp
2011
2012# ac_fn_cxx_try_link LINENO
2013# -------------------------
2014# Try to link conftest.$ac_ext, and return whether this succeeded.
2015ac_fn_cxx_try_link ()
2016{
2017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018  rm -f conftest.$ac_objext conftest$ac_exeext
2019  if { { ac_try="$ac_link"
2020case "(($ac_try" in
2021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022  *) ac_try_echo=$ac_try;;
2023esac
2024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025$as_echo "$ac_try_echo"; } >&5
2026  (eval "$ac_link") 2>conftest.err
2027  ac_status=$?
2028  if test -s conftest.err; then
2029    grep -v '^ *+' conftest.err >conftest.er1
2030    cat conftest.er1 >&5
2031    mv -f conftest.er1 conftest.err
2032  fi
2033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034  test $ac_status = 0; } && {
2035	 test -z "$ac_cxx_werror_flag" ||
2036	 test ! -s conftest.err
2037       } && test -s conftest$ac_exeext && {
2038	 test "$cross_compiling" = yes ||
2039	 $as_test_x conftest$ac_exeext
2040       }; then :
2041  ac_retval=0
2042else
2043  $as_echo "$as_me: failed program was:" >&5
2044sed 's/^/| /' conftest.$ac_ext >&5
2045
2046	ac_retval=1
2047fi
2048  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2049  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2050  # interfere with the next link command; also delete a directory that is
2051  # left behind by Apple's compiler.  We do this before executing the actions.
2052  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2053  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054  as_fn_set_status $ac_retval
2055
2056} # ac_fn_cxx_try_link
2057cat >config.log <<_ACEOF
2058This file contains any messages produced by compilers while
2059running configure, to aid debugging if configure makes a mistake.
2060
2061It was created by MP4v2 $as_me 2.0.0, which was
2062generated by GNU Autoconf 2.65.  Invocation command line was
2063
2064  $ $0 $@
2065
2066_ACEOF
2067exec 5>>config.log
2068{
2069cat <<_ASUNAME
2070## --------- ##
2071## Platform. ##
2072## --------- ##
2073
2074hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078uname -v = `(uname -v) 2>/dev/null || echo unknown`
2079
2080/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2082
2083/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2084/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2085/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2087/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2088/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2089/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2090
2091_ASUNAME
2092
2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094for as_dir in $PATH
2095do
2096  IFS=$as_save_IFS
2097  test -z "$as_dir" && as_dir=.
2098    $as_echo "PATH: $as_dir"
2099  done
2100IFS=$as_save_IFS
2101
2102} >&5
2103
2104cat >&5 <<_ACEOF
2105
2106
2107## ----------- ##
2108## Core tests. ##
2109## ----------- ##
2110
2111_ACEOF
2112
2113
2114# Keep a trace of the command line.
2115# Strip out --no-create and --no-recursion so they do not pile up.
2116# Strip out --silent because we don't want to record it for future runs.
2117# Also quote any args containing shell meta-characters.
2118# Make two passes to allow for proper duplicate-argument suppression.
2119ac_configure_args=
2120ac_configure_args0=
2121ac_configure_args1=
2122ac_must_keep_next=false
2123for ac_pass in 1 2
2124do
2125  for ac_arg
2126  do
2127    case $ac_arg in
2128    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130    | -silent | --silent | --silen | --sile | --sil)
2131      continue ;;
2132    *\'*)
2133      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2134    esac
2135    case $ac_pass in
2136    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2137    2)
2138      as_fn_append ac_configure_args1 " '$ac_arg'"
2139      if test $ac_must_keep_next = true; then
2140	ac_must_keep_next=false # Got value, back to normal.
2141      else
2142	case $ac_arg in
2143	  *=* | --config-cache | -C | -disable-* | --disable-* \
2144	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146	  | -with-* | --with-* | -without-* | --without-* | --x)
2147	    case "$ac_configure_args0 " in
2148	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2149	    esac
2150	    ;;
2151	  -* ) ac_must_keep_next=true ;;
2152	esac
2153      fi
2154      as_fn_append ac_configure_args " '$ac_arg'"
2155      ;;
2156    esac
2157  done
2158done
2159{ ac_configure_args0=; unset ac_configure_args0;}
2160{ ac_configure_args1=; unset ac_configure_args1;}
2161
2162# When interrupted or exit'd, cleanup temporary files, and complete
2163# config.log.  We remove comments because anyway the quotes in there
2164# would cause problems or look ugly.
2165# WARNING: Use '\'' to represent an apostrophe within the trap.
2166# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167trap 'exit_status=$?
2168  # Save into config.log some information that might help in debugging.
2169  {
2170    echo
2171
2172    cat <<\_ASBOX
2173## ---------------- ##
2174## Cache variables. ##
2175## ---------------- ##
2176_ASBOX
2177    echo
2178    # The following way of writing the cache mishandles newlines in values,
2179(
2180  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181    eval ac_val=\$$ac_var
2182    case $ac_val in #(
2183    *${as_nl}*)
2184      case $ac_var in #(
2185      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187      esac
2188      case $ac_var in #(
2189      _ | IFS | as_nl) ;; #(
2190      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191      *) { eval $ac_var=; unset $ac_var;} ;;
2192      esac ;;
2193    esac
2194  done
2195  (set) 2>&1 |
2196    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197    *${as_nl}ac_space=\ *)
2198      sed -n \
2199	"s/'\''/'\''\\\\'\'''\''/g;
2200	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201      ;; #(
2202    *)
2203      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2204      ;;
2205    esac |
2206    sort
2207)
2208    echo
2209
2210    cat <<\_ASBOX
2211## ----------------- ##
2212## Output variables. ##
2213## ----------------- ##
2214_ASBOX
2215    echo
2216    for ac_var in $ac_subst_vars
2217    do
2218      eval ac_val=\$$ac_var
2219      case $ac_val in
2220      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221      esac
2222      $as_echo "$ac_var='\''$ac_val'\''"
2223    done | sort
2224    echo
2225
2226    if test -n "$ac_subst_files"; then
2227      cat <<\_ASBOX
2228## ------------------- ##
2229## File substitutions. ##
2230## ------------------- ##
2231_ASBOX
2232      echo
2233      for ac_var in $ac_subst_files
2234      do
2235	eval ac_val=\$$ac_var
2236	case $ac_val in
2237	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238	esac
2239	$as_echo "$ac_var='\''$ac_val'\''"
2240      done | sort
2241      echo
2242    fi
2243
2244    if test -s confdefs.h; then
2245      cat <<\_ASBOX
2246## ----------- ##
2247## confdefs.h. ##
2248## ----------- ##
2249_ASBOX
2250      echo
2251      cat confdefs.h
2252      echo
2253    fi
2254    test "$ac_signal" != 0 &&
2255      $as_echo "$as_me: caught signal $ac_signal"
2256    $as_echo "$as_me: exit $exit_status"
2257  } >&5
2258  rm -f core *.core core.conftest.* &&
2259    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260    exit $exit_status
2261' 0
2262for ac_signal in 1 2 13 15; do
2263  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264done
2265ac_signal=0
2266
2267# confdefs.h avoids OS command line length limits that DEFS can exceed.
2268rm -f -r conftest* confdefs.h
2269
2270$as_echo "/* confdefs.h */" > confdefs.h
2271
2272# Predefined preprocessor variables.
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_NAME "$PACKAGE_NAME"
2276_ACEOF
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280_ACEOF
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_VERSION "$PACKAGE_VERSION"
2284_ACEOF
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_STRING "$PACKAGE_STRING"
2288_ACEOF
2289
2290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292_ACEOF
2293
2294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_URL "$PACKAGE_URL"
2296_ACEOF
2297
2298
2299# Let the site file select an alternate cache file if it wants to.
2300# Prefer an explicitly selected file to automatically selected ones.
2301ac_site_file1=NONE
2302ac_site_file2=NONE
2303if test -n "$CONFIG_SITE"; then
2304  ac_site_file1=$CONFIG_SITE
2305elif test "x$prefix" != xNONE; then
2306  ac_site_file1=$prefix/share/config.site
2307  ac_site_file2=$prefix/etc/config.site
2308else
2309  ac_site_file1=$ac_default_prefix/share/config.site
2310  ac_site_file2=$ac_default_prefix/etc/config.site
2311fi
2312for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313do
2314  test "x$ac_site_file" = xNONE && continue
2315  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2316    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318    sed 's/^/| /' "$ac_site_file" >&5
2319    . "$ac_site_file"
2320  fi
2321done
2322
2323if test -r "$cache_file"; then
2324  # Some versions of bash will fail to source /dev/null (special files
2325  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2326  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2327    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2328$as_echo "$as_me: loading cache $cache_file" >&6;}
2329    case $cache_file in
2330      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331      *)                      . "./$cache_file";;
2332    esac
2333  fi
2334else
2335  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2336$as_echo "$as_me: creating cache $cache_file" >&6;}
2337  >$cache_file
2338fi
2339
2340# Check that the precious variables saved in the cache have kept the same
2341# value.
2342ac_cache_corrupted=false
2343for ac_var in $ac_precious_vars; do
2344  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345  eval ac_new_set=\$ac_env_${ac_var}_set
2346  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347  eval ac_new_val=\$ac_env_${ac_var}_value
2348  case $ac_old_set,$ac_new_set in
2349    set,)
2350      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2352      ac_cache_corrupted=: ;;
2353    ,set)
2354      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2355$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2356      ac_cache_corrupted=: ;;
2357    ,);;
2358    *)
2359      if test "x$ac_old_val" != "x$ac_new_val"; then
2360	# differences in whitespace do not lead to failure.
2361	ac_old_val_w=`echo x $ac_old_val`
2362	ac_new_val_w=`echo x $ac_new_val`
2363	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2364	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2365$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2366	  ac_cache_corrupted=:
2367	else
2368	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2369$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2370	  eval $ac_var=\$ac_old_val
2371	fi
2372	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2373$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2374	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2375$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2376      fi;;
2377  esac
2378  # Pass precious variables to config.status.
2379  if test "$ac_new_set" = set; then
2380    case $ac_new_val in
2381    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2382    *) ac_arg=$ac_var=$ac_new_val ;;
2383    esac
2384    case " $ac_configure_args " in
2385      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2386      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2387    esac
2388  fi
2389done
2390if $ac_cache_corrupted; then
2391  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2394$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2395  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2396fi
2397## -------------------- ##
2398## Main body of script. ##
2399## -------------------- ##
2400
2401ac_ext=c
2402ac_cpp='$CPP $CPPFLAGS'
2403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406
2407
2408
2409{ $as_echo "$as_me:${as_lineno-$LINENO}:
2410  -->
2411  --> Configuring MP4v2 2.0.0
2412  -->" >&5
2413$as_echo "$as_me:
2414  -->
2415  --> Configuring MP4v2 2.0.0
2416  -->" >&6;}
2417
2418ac_aux_dir=
2419for ac_dir in autoaux "$srcdir"/autoaux; do
2420  for ac_t in install-sh install.sh shtool; do
2421    if test -f "$ac_dir/$ac_t"; then
2422      ac_aux_dir=$ac_dir
2423      ac_install_sh="$ac_aux_dir/$ac_t -c"
2424      break 2
2425    fi
2426  done
2427done
2428if test -z "$ac_aux_dir"; then
2429  as_fn_error "cannot find install-sh, install.sh, or shtool in autoaux \"$srcdir\"/autoaux" "$LINENO" 5
2430fi
2431
2432# These three variables are undocumented and unsupported,
2433# and are intended to be withdrawn in a future Autoconf release.
2434# They can cause serious problems if a builder's source tree is in a directory
2435# whose full name contains unusual characters.
2436ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2437ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2438ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2439
2440
2441am__api_version='1.11'
2442
2443# Find a good install program.  We prefer a C program (faster),
2444# so one script is as good as another.  But avoid the broken or
2445# incompatible versions:
2446# SysV /etc/install, /usr/sbin/install
2447# SunOS /usr/etc/install
2448# IRIX /sbin/install
2449# AIX /bin/install
2450# AmigaOS /C/install, which installs bootblocks on floppy discs
2451# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2452# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2453# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2454# OS/2's system install, which has a completely different semantic
2455# ./install, which can be erroneously created by make from ./install.sh.
2456# Reject install programs that cannot install multiple files.
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2458$as_echo_n "checking for a BSD-compatible install... " >&6; }
2459if test -z "$INSTALL"; then
2460if test "${ac_cv_path_install+set}" = set; then :
2461  $as_echo_n "(cached) " >&6
2462else
2463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468    # Account for people who put trailing slashes in PATH elements.
2469case $as_dir/ in #((
2470  ./ | .// | /[cC]/* | \
2471  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2473  /usr/ucb/* ) ;;
2474  *)
2475    # OSF1 and SCO ODT 3.0 have their own names for install.
2476    # Don't use installbsd from OSF since it installs stuff as root
2477    # by default.
2478    for ac_prog in ginstall scoinst install; do
2479      for ac_exec_ext in '' $ac_executable_extensions; do
2480	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2481	  if test $ac_prog = install &&
2482	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483	    # AIX install.  It has an incompatible calling convention.
2484	    :
2485	  elif test $ac_prog = install &&
2486	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487	    # program-specific install script used by HP pwplus--don't use.
2488	    :
2489	  else
2490	    rm -rf conftest.one conftest.two conftest.dir
2491	    echo one > conftest.one
2492	    echo two > conftest.two
2493	    mkdir conftest.dir
2494	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2495	      test -s conftest.one && test -s conftest.two &&
2496	      test -s conftest.dir/conftest.one &&
2497	      test -s conftest.dir/conftest.two
2498	    then
2499	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2500	      break 3
2501	    fi
2502	  fi
2503	fi
2504      done
2505    done
2506    ;;
2507esac
2508
2509  done
2510IFS=$as_save_IFS
2511
2512rm -rf conftest.one conftest.two conftest.dir
2513
2514fi
2515  if test "${ac_cv_path_install+set}" = set; then
2516    INSTALL=$ac_cv_path_install
2517  else
2518    # As a last resort, use the slow shell script.  Don't cache a
2519    # value for INSTALL within a source directory, because that will
2520    # break other packages using the cache if that directory is
2521    # removed, or if the value is a relative name.
2522    INSTALL=$ac_install_sh
2523  fi
2524fi
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2526$as_echo "$INSTALL" >&6; }
2527
2528# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2529# It thinks the first close brace ends the variable substitution.
2530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531
2532test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533
2534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2537$as_echo_n "checking whether build environment is sane... " >&6; }
2538# Just in case
2539sleep 1
2540echo timestamp > conftest.file
2541# Reject unsafe characters in $srcdir or the absolute working directory
2542# name.  Accept space and tab only in the latter.
2543am_lf='
2544'
2545case `pwd` in
2546  *[\\\"\#\$\&\'\`$am_lf]*)
2547    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2548esac
2549case $srcdir in
2550  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2551    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2552esac
2553
2554# Do `set' in a subshell so we don't clobber the current shell's
2555# arguments.  Must try -L first in case configure is actually a
2556# symlink; some systems play weird games with the mod time of symlinks
2557# (eg FreeBSD returns the mod time of the symlink's containing
2558# directory).
2559if (
2560   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2561   if test "$*" = "X"; then
2562      # -L didn't work.
2563      set X `ls -t "$srcdir/configure" conftest.file`
2564   fi
2565   rm -f conftest.file
2566   if test "$*" != "X $srcdir/configure conftest.file" \
2567      && test "$*" != "X conftest.file $srcdir/configure"; then
2568
2569      # If neither matched, then we have a broken ls.  This can happen
2570      # if, for instance, CONFIG_SHELL is bash and it inherits a
2571      # broken ls alias from the environment.  This has actually
2572      # happened.  Such a system could not be considered "sane".
2573      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2574alias in your environment" "$LINENO" 5
2575   fi
2576
2577   test "$2" = conftest.file
2578   )
2579then
2580   # Ok.
2581   :
2582else
2583   as_fn_error "newly created file is older than distributed files!
2584Check your system clock" "$LINENO" 5
2585fi
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2587$as_echo "yes" >&6; }
2588test "$program_prefix" != NONE &&
2589  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2590# Use a double $ so make ignores it.
2591test "$program_suffix" != NONE &&
2592  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2593# Double any \ or $.
2594# By default was `s,x,x', remove it if useless.
2595ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2596program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2597
2598# expand $ac_aux_dir to an absolute path
2599am_aux_dir=`cd $ac_aux_dir && pwd`
2600
2601if test x"${MISSING+set}" != xset; then
2602  case $am_aux_dir in
2603  *\ * | *\	*)
2604    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2605  *)
2606    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2607  esac
2608fi
2609# Use eval to expand $SHELL
2610if eval "$MISSING --run true"; then
2611  am_missing_run="$MISSING --run "
2612else
2613  am_missing_run=
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2615$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2616fi
2617
2618if test x"${install_sh}" != xset; then
2619  case $am_aux_dir in
2620  *\ * | *\	*)
2621    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2622  *)
2623    install_sh="\${SHELL} $am_aux_dir/install-sh"
2624  esac
2625fi
2626
2627# Installed binaries are usually stripped using `strip' when the user
2628# run `make install-strip'.  However `strip' might not be the right
2629# tool to use in cross-compilation environments, therefore Automake
2630# will honor the `STRIP' environment variable to overrule this program.
2631if test "$cross_compiling" != no; then
2632  if test -n "$ac_tool_prefix"; then
2633  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2634set dummy ${ac_tool_prefix}strip; ac_word=$2
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636$as_echo_n "checking for $ac_word... " >&6; }
2637if test "${ac_cv_prog_STRIP+set}" = set; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  if test -n "$STRIP"; then
2641  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646  IFS=$as_save_IFS
2647  test -z "$as_dir" && as_dir=.
2648    for ac_exec_ext in '' $ac_executable_extensions; do
2649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652    break 2
2653  fi
2654done
2655  done
2656IFS=$as_save_IFS
2657
2658fi
2659fi
2660STRIP=$ac_cv_prog_STRIP
2661if test -n "$STRIP"; then
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2663$as_echo "$STRIP" >&6; }
2664else
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666$as_echo "no" >&6; }
2667fi
2668
2669
2670fi
2671if test -z "$ac_cv_prog_STRIP"; then
2672  ac_ct_STRIP=$STRIP
2673  # Extract the first word of "strip", so it can be a program name with args.
2674set dummy strip; ac_word=$2
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
2677if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2678  $as_echo_n "(cached) " >&6
2679else
2680  if test -n "$ac_ct_STRIP"; then
2681  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686  IFS=$as_save_IFS
2687  test -z "$as_dir" && as_dir=.
2688    for ac_exec_ext in '' $ac_executable_extensions; do
2689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690    ac_cv_prog_ac_ct_STRIP="strip"
2691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692    break 2
2693  fi
2694done
2695  done
2696IFS=$as_save_IFS
2697
2698fi
2699fi
2700ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2701if test -n "$ac_ct_STRIP"; then
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2703$as_echo "$ac_ct_STRIP" >&6; }
2704else
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707fi
2708
2709  if test "x$ac_ct_STRIP" = x; then
2710    STRIP=":"
2711  else
2712    case $cross_compiling:$ac_tool_warned in
2713yes:)
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716ac_tool_warned=yes ;;
2717esac
2718    STRIP=$ac_ct_STRIP
2719  fi
2720else
2721  STRIP="$ac_cv_prog_STRIP"
2722fi
2723
2724fi
2725INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2726
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2728$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2729if test -z "$MKDIR_P"; then
2730  if test "${ac_cv_path_mkdir+set}" = set; then :
2731  $as_echo_n "(cached) " >&6
2732else
2733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2735do
2736  IFS=$as_save_IFS
2737  test -z "$as_dir" && as_dir=.
2738    for ac_prog in mkdir gmkdir; do
2739	 for ac_exec_ext in '' $ac_executable_extensions; do
2740	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2741	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2742	     'mkdir (GNU coreutils) '* | \
2743	     'mkdir (coreutils) '* | \
2744	     'mkdir (fileutils) '4.1*)
2745	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2746	       break 3;;
2747	   esac
2748	 done
2749       done
2750  done
2751IFS=$as_save_IFS
2752
2753fi
2754
2755  test -d ./--version && rmdir ./--version
2756  if test "${ac_cv_path_mkdir+set}" = set; then
2757    MKDIR_P="$ac_cv_path_mkdir -p"
2758  else
2759    # As a last resort, use the slow shell script.  Don't cache a
2760    # value for MKDIR_P within a source directory, because that will
2761    # break other packages using the cache if that directory is
2762    # removed, or if the value is a relative name.
2763    MKDIR_P="$ac_install_sh -d"
2764  fi
2765fi
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2767$as_echo "$MKDIR_P" >&6; }
2768
2769mkdir_p="$MKDIR_P"
2770case $mkdir_p in
2771  [\\/$]* | ?:[\\/]*) ;;
2772  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2773esac
2774
2775for ac_prog in gawk mawk nawk awk
2776do
2777  # Extract the first word of "$ac_prog", so it can be a program name with args.
2778set dummy $ac_prog; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if test "${ac_cv_prog_AWK+set}" = set; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  if test -n "$AWK"; then
2785  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792    for ac_exec_ext in '' $ac_executable_extensions; do
2793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794    ac_cv_prog_AWK="$ac_prog"
2795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796    break 2
2797  fi
2798done
2799  done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804AWK=$ac_cv_prog_AWK
2805if test -n "$AWK"; then
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2807$as_echo "$AWK" >&6; }
2808else
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813
2814  test -n "$AWK" && break
2815done
2816
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2818$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2819set x ${MAKE-make}
2820ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2821if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2822  $as_echo_n "(cached) " >&6
2823else
2824  cat >conftest.make <<\_ACEOF
2825SHELL = /bin/sh
2826all:
2827	@echo '@@@%%%=$(MAKE)=@@@%%%'
2828_ACEOF
2829# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2830case `${MAKE-make} -f conftest.make 2>/dev/null` in
2831  *@@@%%%=?*=@@@%%%*)
2832    eval ac_cv_prog_make_${ac_make}_set=yes;;
2833  *)
2834    eval ac_cv_prog_make_${ac_make}_set=no;;
2835esac
2836rm -f conftest.make
2837fi
2838if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2840$as_echo "yes" >&6; }
2841  SET_MAKE=
2842else
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845  SET_MAKE="MAKE=${MAKE-make}"
2846fi
2847
2848rm -rf .tst 2>/dev/null
2849mkdir .tst 2>/dev/null
2850if test -d .tst; then
2851  am__leading_dot=.
2852else
2853  am__leading_dot=_
2854fi
2855rmdir .tst 2>/dev/null
2856
2857if test "`cd $srcdir && pwd`" != "`pwd`"; then
2858  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2859  # is not polluted with repeated "-I."
2860  am__isrc=' -I$(srcdir)'
2861  # test to see if srcdir already configured
2862  if test -f $srcdir/config.status; then
2863    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2864  fi
2865fi
2866
2867# test whether we have cygpath
2868if test -z "$CYGPATH_W"; then
2869  if (cygpath --version) >/dev/null 2>/dev/null; then
2870    CYGPATH_W='cygpath -w'
2871  else
2872    CYGPATH_W=echo
2873  fi
2874fi
2875
2876
2877# Define the identity of the package.
2878 PACKAGE='mp4v2'
2879 VERSION='2.0.0'
2880
2881
2882cat >>confdefs.h <<_ACEOF
2883#define PACKAGE "$PACKAGE"
2884_ACEOF
2885
2886
2887cat >>confdefs.h <<_ACEOF
2888#define VERSION "$VERSION"
2889_ACEOF
2890
2891# Some tools Automake needs.
2892
2893ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2894
2895
2896AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2897
2898
2899AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2900
2901
2902AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2903
2904
2905MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2906
2907# We need awk for the "check" target.  The system "awk" is bad on
2908# some platforms.
2909# Always define AMTAR for backward compatibility.
2910
2911AMTAR=${AMTAR-"${am_missing_run}tar"}
2912
2913am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2914
2915
2916
2917
2918
2919
2920
2921
2922# disable unused langs (improves config speed, reduces configure file size)
2923
2924
2925
2926
2927# Make sure we can run config.sub.
2928$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2929  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2930
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2932$as_echo_n "checking build system type... " >&6; }
2933if test "${ac_cv_build+set}" = set; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  ac_build_alias=$build_alias
2937test "x$ac_build_alias" = x &&
2938  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2939test "x$ac_build_alias" = x &&
2940  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2941ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2942  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2943
2944fi
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2946$as_echo "$ac_cv_build" >&6; }
2947case $ac_cv_build in
2948*-*-*) ;;
2949*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2950esac
2951build=$ac_cv_build
2952ac_save_IFS=$IFS; IFS='-'
2953set x $ac_cv_build
2954shift
2955build_cpu=$1
2956build_vendor=$2
2957shift; shift
2958# Remember, the first character of IFS is used to create $*,
2959# except with old shells:
2960build_os=$*
2961IFS=$ac_save_IFS
2962case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2963
2964
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2966$as_echo_n "checking host system type... " >&6; }
2967if test "${ac_cv_host+set}" = set; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test "x$host_alias" = x; then
2971  ac_cv_host=$ac_cv_build
2972else
2973  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2974    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2975fi
2976
2977fi
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2979$as_echo "$ac_cv_host" >&6; }
2980case $ac_cv_host in
2981*-*-*) ;;
2982*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2983esac
2984host=$ac_cv_host
2985ac_save_IFS=$IFS; IFS='-'
2986set x $ac_cv_host
2987shift
2988host_cpu=$1
2989host_vendor=$2
2990shift; shift
2991# Remember, the first character of IFS is used to create $*,
2992# except with old shells:
2993host_os=$*
2994IFS=$ac_save_IFS
2995case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2996
2997
2998
2999###############################################################################
3000# add configure options
3001###############################################################################
3002
3003if test -z "$enable_dependency_tracking"; then
3004    enable_dependency_tracking=no
3005fi
3006
3007# Check whether --enable-debug was given.
3008if test "${enable_debug+set}" = set; then :
3009  enableval=$enable_debug;
3010fi
3011
3012# Check whether --enable-optimize was given.
3013if test "${enable_optimize+set}" = set; then :
3014  enableval=$enable_optimize;
3015fi
3016
3017# Check whether --enable-fvisibility was given.
3018if test "${enable_fvisibility+set}" = set; then :
3019  enableval=$enable_fvisibility;
3020fi
3021
3022# Check whether --enable-gch was given.
3023if test "${enable_gch+set}" = set; then :
3024  enableval=$enable_gch;
3025fi
3026
3027# Check whether --enable-largefile was given.
3028if test "${enable_largefile+set}" = set; then :
3029  enableval=$enable_largefile;
3030fi
3031
3032# Check whether --enable-util was given.
3033if test "${enable_util+set}" = set; then :
3034  enableval=$enable_util;
3035fi
3036
3037# Check whether --enable-bi was given.
3038if test "${enable_bi+set}" = set; then :
3039  enableval=$enable_bi;
3040fi
3041
3042# Check whether --enable-ub was given.
3043if test "${enable_ub+set}" = set; then :
3044  enableval=$enable_ub;
3045fi
3046
3047# Check whether --enable-cygwin_win32 was given.
3048if test "${enable_cygwin_win32+set}" = set; then :
3049  enableval=$enable_cygwin_win32;
3050fi
3051
3052# Check whether --enable-mingw_mt was given.
3053if test "${enable_mingw_mt+set}" = set; then :
3054  enableval=$enable_mingw_mt;
3055fi
3056
3057
3058###############################################################################
3059# checks for programs
3060###############################################################################
3061
3062ac_ext=cpp
3063ac_cpp='$CXXCPP $CPPFLAGS'
3064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3067if test -z "$CXX"; then
3068  if test -n "$CCC"; then
3069    CXX=$CCC
3070  else
3071    if test -n "$ac_tool_prefix"; then
3072  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3073  do
3074    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if test "${ac_cv_prog_CXX+set}" = set; then :
3079  $as_echo_n "(cached) " >&6
3080else
3081  if test -n "$CXX"; then
3082  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  test -z "$as_dir" && as_dir=.
3089    for ac_exec_ext in '' $ac_executable_extensions; do
3090  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093    break 2
3094  fi
3095done
3096  done
3097IFS=$as_save_IFS
3098
3099fi
3100fi
3101CXX=$ac_cv_prog_CXX
3102if test -n "$CXX"; then
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3104$as_echo "$CXX" >&6; }
3105else
3106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107$as_echo "no" >&6; }
3108fi
3109
3110
3111    test -n "$CXX" && break
3112  done
3113fi
3114if test -z "$CXX"; then
3115  ac_ct_CXX=$CXX
3116  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3117do
3118  # Extract the first word of "$ac_prog", so it can be a program name with args.
3119set dummy $ac_prog; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$ac_ct_CXX"; then
3126  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133    for ac_exec_ext in '' $ac_executable_extensions; do
3134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135    ac_cv_prog_ac_ct_CXX="$ac_prog"
3136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140  done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3146if test -n "$ac_ct_CXX"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3148$as_echo "$ac_ct_CXX" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155  test -n "$ac_ct_CXX" && break
3156done
3157
3158  if test "x$ac_ct_CXX" = x; then
3159    CXX="g++"
3160  else
3161    case $cross_compiling:$ac_tool_warned in
3162yes:)
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165ac_tool_warned=yes ;;
3166esac
3167    CXX=$ac_ct_CXX
3168  fi
3169fi
3170
3171  fi
3172fi
3173# Provide some information about the compiler.
3174$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3175set X $ac_compile
3176ac_compiler=$2
3177for ac_option in --version -v -V -qversion; do
3178  { { ac_try="$ac_compiler $ac_option >&5"
3179case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184$as_echo "$ac_try_echo"; } >&5
3185  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3186  ac_status=$?
3187  if test -s conftest.err; then
3188    sed '10a\
3189... rest of stderr output deleted ...
3190         10q' conftest.err >conftest.er1
3191    cat conftest.er1 >&5
3192  fi
3193  rm -f conftest.er1 conftest.err
3194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195  test $ac_status = 0; }
3196done
3197
3198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199/* end confdefs.h.  */
3200
3201int
3202main ()
3203{
3204
3205  ;
3206  return 0;
3207}
3208_ACEOF
3209ac_clean_files_save=$ac_clean_files
3210ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3211# Try to create an executable without -o first, disregard a.out.
3212# It will help us diagnose broken compilers, and finding out an intuition
3213# of exeext.
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3215$as_echo_n "checking whether the C++ compiler works... " >&6; }
3216ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3217
3218# The possible output files:
3219ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3220
3221ac_rmfiles=
3222for ac_file in $ac_files
3223do
3224  case $ac_file in
3225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3226    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3227  esac
3228done
3229rm -f $ac_rmfiles
3230
3231if { { ac_try="$ac_link_default"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238  (eval "$ac_link_default") 2>&5
3239  ac_status=$?
3240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241  test $ac_status = 0; }; then :
3242  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3243# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3244# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3245# so that the user can short-circuit this test for compilers unknown to
3246# Autoconf.
3247for ac_file in $ac_files ''
3248do
3249  test -f "$ac_file" || continue
3250  case $ac_file in
3251    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3252	;;
3253    [ab].out )
3254	# We found the default executable, but exeext='' is most
3255	# certainly right.
3256	break;;
3257    *.* )
3258	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3259	then :; else
3260	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3261	fi
3262	# We set ac_cv_exeext here because the later test for it is not
3263	# safe: cross compilers may not add the suffix if given an `-o'
3264	# argument, so we may need to know it at that point already.
3265	# Even if this section looks crufty: it has the advantage of
3266	# actually working.
3267	break;;
3268    * )
3269	break;;
3270  esac
3271done
3272test "$ac_cv_exeext" = no && ac_cv_exeext=
3273
3274else
3275  ac_file=''
3276fi
3277if test -z "$ac_file"; then :
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
3280$as_echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285{ as_fn_set_status 77
3286as_fn_error "C++ compiler cannot create executables
3287See \`config.log' for more details." "$LINENO" 5; }; }
3288else
3289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290$as_echo "yes" >&6; }
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3293$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3295$as_echo "$ac_file" >&6; }
3296ac_exeext=$ac_cv_exeext
3297
3298rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3299ac_clean_files=$ac_clean_files_save
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3301$as_echo_n "checking for suffix of executables... " >&6; }
3302if { { ac_try="$ac_link"
3303case "(($ac_try" in
3304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305  *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309  (eval "$ac_link") 2>&5
3310  ac_status=$?
3311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312  test $ac_status = 0; }; then :
3313  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3315# work properly (i.e., refer to `conftest.exe'), while it won't with
3316# `rm'.
3317for ac_file in conftest.exe conftest conftest.*; do
3318  test -f "$ac_file" || continue
3319  case $ac_file in
3320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322	  break;;
3323    * ) break;;
3324  esac
3325done
3326else
3327  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329as_fn_error "cannot compute suffix of executables: cannot compile and link
3330See \`config.log' for more details." "$LINENO" 5; }
3331fi
3332rm -f conftest conftest$ac_cv_exeext
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3334$as_echo "$ac_cv_exeext" >&6; }
3335
3336rm -f conftest.$ac_ext
3337EXEEXT=$ac_cv_exeext
3338ac_exeext=$EXEEXT
3339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h.  */
3341#include <stdio.h>
3342int
3343main ()
3344{
3345FILE *f = fopen ("conftest.out", "w");
3346 return ferror (f) || fclose (f) != 0;
3347
3348  ;
3349  return 0;
3350}
3351_ACEOF
3352ac_clean_files="$ac_clean_files conftest.out"
3353# Check that the compiler produces executables we can run.  If not, either
3354# the compiler is broken, or we cross compile.
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3356$as_echo_n "checking whether we are cross compiling... " >&6; }
3357if test "$cross_compiling" != yes; then
3358  { { ac_try="$ac_link"
3359case "(($ac_try" in
3360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361  *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364$as_echo "$ac_try_echo"; } >&5
3365  (eval "$ac_link") 2>&5
3366  ac_status=$?
3367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368  test $ac_status = 0; }
3369  if { ac_try='./conftest$ac_cv_exeext'
3370  { { case "(($ac_try" in
3371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372  *) ac_try_echo=$ac_try;;
3373esac
3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375$as_echo "$ac_try_echo"; } >&5
3376  (eval "$ac_try") 2>&5
3377  ac_status=$?
3378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379  test $ac_status = 0; }; }; then
3380    cross_compiling=no
3381  else
3382    if test "$cross_compiling" = maybe; then
3383	cross_compiling=yes
3384    else
3385	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387as_fn_error "cannot run C++ compiled programs.
3388If you meant to cross compile, use \`--host'.
3389See \`config.log' for more details." "$LINENO" 5; }
3390    fi
3391  fi
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3394$as_echo "$cross_compiling" >&6; }
3395
3396rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3397ac_clean_files=$ac_clean_files_save
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3399$as_echo_n "checking for suffix of object files... " >&6; }
3400if test "${ac_cv_objext+set}" = set; then :
3401  $as_echo_n "(cached) " >&6
3402else
3403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414rm -f conftest.o conftest.obj
3415if { { ac_try="$ac_compile"
3416case "(($ac_try" in
3417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418  *) ac_try_echo=$ac_try;;
3419esac
3420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421$as_echo "$ac_try_echo"; } >&5
3422  (eval "$ac_compile") 2>&5
3423  ac_status=$?
3424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425  test $ac_status = 0; }; then :
3426  for ac_file in conftest.o conftest.obj conftest.*; do
3427  test -f "$ac_file" || continue;
3428  case $ac_file in
3429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3430    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3431       break;;
3432  esac
3433done
3434else
3435  $as_echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440as_fn_error "cannot compute suffix of object files: cannot compile
3441See \`config.log' for more details." "$LINENO" 5; }
3442fi
3443rm -f conftest.$ac_cv_objext conftest.$ac_ext
3444fi
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3446$as_echo "$ac_cv_objext" >&6; }
3447OBJEXT=$ac_cv_objext
3448ac_objext=$OBJEXT
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3450$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3451if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3452  $as_echo_n "(cached) " >&6
3453else
3454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455/* end confdefs.h.  */
3456
3457int
3458main ()
3459{
3460#ifndef __GNUC__
3461       choke me
3462#endif
3463
3464  ;
3465  return 0;
3466}
3467_ACEOF
3468if ac_fn_cxx_try_compile "$LINENO"; then :
3469  ac_compiler_gnu=yes
3470else
3471  ac_compiler_gnu=no
3472fi
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3475
3476fi
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3478$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3479if test $ac_compiler_gnu = yes; then
3480  GXX=yes
3481else
3482  GXX=
3483fi
3484ac_test_CXXFLAGS=${CXXFLAGS+set}
3485ac_save_CXXFLAGS=$CXXFLAGS
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3487$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3488if test "${ac_cv_prog_cxx_g+set}" = set; then :
3489  $as_echo_n "(cached) " >&6
3490else
3491  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3492   ac_cxx_werror_flag=yes
3493   ac_cv_prog_cxx_g=no
3494   CXXFLAGS="-g"
3495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h.  */
3497
3498int
3499main ()
3500{
3501
3502  ;
3503  return 0;
3504}
3505_ACEOF
3506if ac_fn_cxx_try_compile "$LINENO"; then :
3507  ac_cv_prog_cxx_g=yes
3508else
3509  CXXFLAGS=""
3510      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511/* end confdefs.h.  */
3512
3513int
3514main ()
3515{
3516
3517  ;
3518  return 0;
3519}
3520_ACEOF
3521if ac_fn_cxx_try_compile "$LINENO"; then :
3522
3523else
3524  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3525	 CXXFLAGS="-g"
3526	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528
3529int
3530main ()
3531{
3532
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537if ac_fn_cxx_try_compile "$LINENO"; then :
3538  ac_cv_prog_cxx_g=yes
3539fi
3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541fi
3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543fi
3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3546fi
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3548$as_echo "$ac_cv_prog_cxx_g" >&6; }
3549if test "$ac_test_CXXFLAGS" = set; then
3550  CXXFLAGS=$ac_save_CXXFLAGS
3551elif test $ac_cv_prog_cxx_g = yes; then
3552  if test "$GXX" = yes; then
3553    CXXFLAGS="-g -O2"
3554  else
3555    CXXFLAGS="-g"
3556  fi
3557else
3558  if test "$GXX" = yes; then
3559    CXXFLAGS="-O2"
3560  else
3561    CXXFLAGS=
3562  fi
3563fi
3564ac_ext=c
3565ac_cpp='$CPP $CPPFLAGS'
3566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569DEPDIR="${am__leading_dot}deps"
3570
3571ac_config_commands="$ac_config_commands depfiles"
3572
3573
3574am_make=${MAKE-make}
3575cat > confinc << 'END'
3576am__doit:
3577	@echo this is the am__doit target
3578.PHONY: am__doit
3579END
3580# If we don't find an include directive, just comment out the code.
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3582$as_echo_n "checking for style of include used by $am_make... " >&6; }
3583am__include="#"
3584am__quote=
3585_am_result=none
3586# First try GNU make style include.
3587echo "include confinc" > confmf
3588# Ignore all kinds of additional output from `make'.
3589case `$am_make -s -f confmf 2> /dev/null` in #(
3590*the\ am__doit\ target*)
3591  am__include=include
3592  am__quote=
3593  _am_result=GNU
3594  ;;
3595esac
3596# Now try BSD make style include.
3597if test "$am__include" = "#"; then
3598   echo '.include "confinc"' > confmf
3599   case `$am_make -s -f confmf 2> /dev/null` in #(
3600   *the\ am__doit\ target*)
3601     am__include=.include
3602     am__quote="\""
3603     _am_result=BSD
3604     ;;
3605   esac
3606fi
3607
3608
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3610$as_echo "$_am_result" >&6; }
3611rm -f confinc confmf
3612
3613# Check whether --enable-dependency-tracking was given.
3614if test "${enable_dependency_tracking+set}" = set; then :
3615  enableval=$enable_dependency_tracking;
3616fi
3617
3618if test "x$enable_dependency_tracking" != xno; then
3619  am_depcomp="$ac_aux_dir/depcomp"
3620  AMDEPBACKSLASH='\'
3621fi
3622 if test "x$enable_dependency_tracking" != xno; then
3623  AMDEP_TRUE=
3624  AMDEP_FALSE='#'
3625else
3626  AMDEP_TRUE='#'
3627  AMDEP_FALSE=
3628fi
3629
3630
3631
3632depcc="$CXX"  am_compiler_list=
3633
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3635$as_echo_n "checking dependency style of $depcc... " >&6; }
3636if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3640  # We make a subdir and do the tests there.  Otherwise we can end up
3641  # making bogus files that we don't know about and never remove.  For
3642  # instance it was reported that on HP-UX the gcc test will end up
3643  # making a dummy file named `D' -- because `-MD' means `put the output
3644  # in D'.
3645  mkdir conftest.dir
3646  # Copy depcomp to subdir because otherwise we won't find it if we're
3647  # using a relative directory.
3648  cp "$am_depcomp" conftest.dir
3649  cd conftest.dir
3650  # We will build objects and dependencies in a subdirectory because
3651  # it helps to detect inapplicable dependency modes.  For instance
3652  # both Tru64's cc and ICC support -MD to output dependencies as a
3653  # side effect of compilation, but ICC will put the dependencies in
3654  # the current directory while Tru64 will put them in the object
3655  # directory.
3656  mkdir sub
3657
3658  am_cv_CXX_dependencies_compiler_type=none
3659  if test "$am_compiler_list" = ""; then
3660     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3661  fi
3662  am__universal=false
3663  case " $depcc " in #(
3664     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3665     esac
3666
3667  for depmode in $am_compiler_list; do
3668    # Setup a source with many dependencies, because some compilers
3669    # like to wrap large dependency lists on column 80 (with \), and
3670    # we should not choose a depcomp mode which is confused by this.
3671    #
3672    # We need to recreate these files for each test, as the compiler may
3673    # overwrite some of them when testing with obscure command lines.
3674    # This happens at least with the AIX C compiler.
3675    : > sub/conftest.c
3676    for i in 1 2 3 4 5 6; do
3677      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3678      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3679      # Solaris 8's {/usr,}/bin/sh.
3680      touch sub/conftst$i.h
3681    done
3682    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3683
3684    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3685    # mode.  It turns out that the SunPro C++ compiler does not properly
3686    # handle `-M -o', and we need to detect this.  Also, some Intel
3687    # versions had trouble with output in subdirs
3688    am__obj=sub/conftest.${OBJEXT-o}
3689    am__minus_obj="-o $am__obj"
3690    case $depmode in
3691    gcc)
3692      # This depmode causes a compiler race in universal mode.
3693      test "$am__universal" = false || continue
3694      ;;
3695    nosideeffect)
3696      # after this tag, mechanisms are not by side-effect, so they'll
3697      # only be used when explicitly requested
3698      if test "x$enable_dependency_tracking" = xyes; then
3699	continue
3700      else
3701	break
3702      fi
3703      ;;
3704    msvisualcpp | msvcmsys)
3705      # This compiler won't grok `-c -o', but also, the minuso test has
3706      # not run yet.  These depmodes are late enough in the game, and
3707      # so weak that their functioning should not be impacted.
3708      am__obj=conftest.${OBJEXT-o}
3709      am__minus_obj=
3710      ;;
3711    none) break ;;
3712    esac
3713    if depmode=$depmode \
3714       source=sub/conftest.c object=$am__obj \
3715       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3716       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3717         >/dev/null 2>conftest.err &&
3718       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3719       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3720       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3721       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3722      # icc doesn't choke on unknown options, it will just issue warnings
3723      # or remarks (even with -Werror).  So we grep stderr for any message
3724      # that says an option was ignored or not supported.
3725      # When given -MP, icc 7.0 and 7.1 complain thusly:
3726      #   icc: Command line warning: ignoring option '-M'; no argument required
3727      # The diagnosis changed in icc 8.0:
3728      #   icc: Command line remark: option '-MP' not supported
3729      if (grep 'ignoring option' conftest.err ||
3730          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3731        am_cv_CXX_dependencies_compiler_type=$depmode
3732        break
3733      fi
3734    fi
3735  done
3736
3737  cd ..
3738  rm -rf conftest.dir
3739else
3740  am_cv_CXX_dependencies_compiler_type=none
3741fi
3742
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3745$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3746CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3747
3748 if
3749  test "x$enable_dependency_tracking" != xno \
3750  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3751  am__fastdepCXX_TRUE=
3752  am__fastdepCXX_FALSE='#'
3753else
3754  am__fastdepCXX_TRUE='#'
3755  am__fastdepCXX_FALSE=
3756fi
3757
3758
3759case `pwd` in
3760  *\ * | *\	*)
3761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3762$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3763esac
3764
3765
3766
3767macro_version='2.2.6b'
3768macro_revision='1.3017'
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782ltmain="$ac_aux_dir/ltmain.sh"
3783
3784ac_ext=c
3785ac_cpp='$CPP $CPPFLAGS'
3786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789if test -n "$ac_tool_prefix"; then
3790  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3791set dummy ${ac_tool_prefix}gcc; ac_word=$2
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793$as_echo_n "checking for $ac_word... " >&6; }
3794if test "${ac_cv_prog_CC+set}" = set; then :
3795  $as_echo_n "(cached) " >&6
3796else
3797  if test -n "$CC"; then
3798  ac_cv_prog_CC="$CC" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803  IFS=$as_save_IFS
3804  test -z "$as_dir" && as_dir=.
3805    for ac_exec_ext in '' $ac_executable_extensions; do
3806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809    break 2
3810  fi
3811done
3812  done
3813IFS=$as_save_IFS
3814
3815fi
3816fi
3817CC=$ac_cv_prog_CC
3818if test -n "$CC"; then
3819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820$as_echo "$CC" >&6; }
3821else
3822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823$as_echo "no" >&6; }
3824fi
3825
3826
3827fi
3828if test -z "$ac_cv_prog_CC"; then
3829  ac_ct_CC=$CC
3830  # Extract the first word of "gcc", so it can be a program name with args.
3831set dummy gcc; ac_word=$2
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833$as_echo_n "checking for $ac_word... " >&6; }
3834if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3835  $as_echo_n "(cached) " >&6
3836else
3837  if test -n "$ac_ct_CC"; then
3838  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3839else
3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843  IFS=$as_save_IFS
3844  test -z "$as_dir" && as_dir=.
3845    for ac_exec_ext in '' $ac_executable_extensions; do
3846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3847    ac_cv_prog_ac_ct_CC="gcc"
3848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849    break 2
3850  fi
3851done
3852  done
3853IFS=$as_save_IFS
3854
3855fi
3856fi
3857ac_ct_CC=$ac_cv_prog_ac_ct_CC
3858if test -n "$ac_ct_CC"; then
3859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3860$as_echo "$ac_ct_CC" >&6; }
3861else
3862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863$as_echo "no" >&6; }
3864fi
3865
3866  if test "x$ac_ct_CC" = x; then
3867    CC=""
3868  else
3869    case $cross_compiling:$ac_tool_warned in
3870yes:)
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3873ac_tool_warned=yes ;;
3874esac
3875    CC=$ac_ct_CC
3876  fi
3877else
3878  CC="$ac_cv_prog_CC"
3879fi
3880
3881if test -z "$CC"; then
3882          if test -n "$ac_tool_prefix"; then
3883    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3884set dummy ${ac_tool_prefix}cc; ac_word=$2
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886$as_echo_n "checking for $ac_word... " >&6; }
3887if test "${ac_cv_prog_CC+set}" = set; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  if test -n "$CC"; then
3891  ac_cv_prog_CC="$CC" # Let the user override the test.
3892else
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896  IFS=$as_save_IFS
3897  test -z "$as_dir" && as_dir=.
3898    for ac_exec_ext in '' $ac_executable_extensions; do
3899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900    ac_cv_prog_CC="${ac_tool_prefix}cc"
3901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902    break 2
3903  fi
3904done
3905  done
3906IFS=$as_save_IFS
3907
3908fi
3909fi
3910CC=$ac_cv_prog_CC
3911if test -n "$CC"; then
3912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3913$as_echo "$CC" >&6; }
3914else
3915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916$as_echo "no" >&6; }
3917fi
3918
3919
3920  fi
3921fi
3922if test -z "$CC"; then
3923  # Extract the first word of "cc", so it can be a program name with args.
3924set dummy cc; ac_word=$2
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926$as_echo_n "checking for $ac_word... " >&6; }
3927if test "${ac_cv_prog_CC+set}" = set; then :
3928  $as_echo_n "(cached) " >&6
3929else
3930  if test -n "$CC"; then
3931  ac_cv_prog_CC="$CC" # Let the user override the test.
3932else
3933  ac_prog_rejected=no
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937  IFS=$as_save_IFS
3938  test -z "$as_dir" && as_dir=.
3939    for ac_exec_ext in '' $ac_executable_extensions; do
3940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3941    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3942       ac_prog_rejected=yes
3943       continue
3944     fi
3945    ac_cv_prog_CC="cc"
3946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947    break 2
3948  fi
3949done
3950  done
3951IFS=$as_save_IFS
3952
3953if test $ac_prog_rejected = yes; then
3954  # We found a bogon in the path, so make sure we never use it.
3955  set dummy $ac_cv_prog_CC
3956  shift
3957  if test $# != 0; then
3958    # We chose a different compiler from the bogus one.
3959    # However, it has the same basename, so the bogon will be chosen
3960    # first if we set CC to just the basename; use the full file name.
3961    shift
3962    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3963  fi
3964fi
3965fi
3966fi
3967CC=$ac_cv_prog_CC
3968if test -n "$CC"; then
3969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3970$as_echo "$CC" >&6; }
3971else
3972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973$as_echo "no" >&6; }
3974fi
3975
3976
3977fi
3978if test -z "$CC"; then
3979  if test -n "$ac_tool_prefix"; then
3980  for ac_prog in cl.exe
3981  do
3982    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985$as_echo_n "checking for $ac_word... " >&6; }
3986if test "${ac_cv_prog_CC+set}" = set; then :
3987  $as_echo_n "(cached) " >&6
3988else
3989  if test -n "$CC"; then
3990  ac_cv_prog_CC="$CC" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995  IFS=$as_save_IFS
3996  test -z "$as_dir" && as_dir=.
3997    for ac_exec_ext in '' $ac_executable_extensions; do
3998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001    break 2
4002  fi
4003done
4004  done
4005IFS=$as_save_IFS
4006
4007fi
4008fi
4009CC=$ac_cv_prog_CC
4010if test -n "$CC"; then
4011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4012$as_echo "$CC" >&6; }
4013else
4014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015$as_echo "no" >&6; }
4016fi
4017
4018
4019    test -n "$CC" && break
4020  done
4021fi
4022if test -z "$CC"; then
4023  ac_ct_CC=$CC
4024  for ac_prog in cl.exe
4025do
4026  # Extract the first word of "$ac_prog", so it can be a program name with args.
4027set dummy $ac_prog; ac_word=$2
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
4030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033  if test -n "$ac_ct_CC"; then
4034  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4035else
4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
4039  IFS=$as_save_IFS
4040  test -z "$as_dir" && as_dir=.
4041    for ac_exec_ext in '' $ac_executable_extensions; do
4042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043    ac_cv_prog_ac_ct_CC="$ac_prog"
4044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045    break 2
4046  fi
4047done
4048  done
4049IFS=$as_save_IFS
4050
4051fi
4052fi
4053ac_ct_CC=$ac_cv_prog_ac_ct_CC
4054if test -n "$ac_ct_CC"; then
4055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4056$as_echo "$ac_ct_CC" >&6; }
4057else
4058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
4060fi
4061
4062
4063  test -n "$ac_ct_CC" && break
4064done
4065
4066  if test "x$ac_ct_CC" = x; then
4067    CC=""
4068  else
4069    case $cross_compiling:$ac_tool_warned in
4070yes:)
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4073ac_tool_warned=yes ;;
4074esac
4075    CC=$ac_ct_CC
4076  fi
4077fi
4078
4079fi
4080
4081
4082test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084as_fn_error "no acceptable C compiler found in \$PATH
4085See \`config.log' for more details." "$LINENO" 5; }
4086
4087# Provide some information about the compiler.
4088$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4089set X $ac_compile
4090ac_compiler=$2
4091for ac_option in --version -v -V -qversion; do
4092  { { ac_try="$ac_compiler $ac_option >&5"
4093case "(($ac_try" in
4094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095  *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098$as_echo "$ac_try_echo"; } >&5
4099  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4100  ac_status=$?
4101  if test -s conftest.err; then
4102    sed '10a\
4103... rest of stderr output deleted ...
4104         10q' conftest.err >conftest.er1
4105    cat conftest.er1 >&5
4106  fi
4107  rm -f conftest.er1 conftest.err
4108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109  test $ac_status = 0; }
4110done
4111
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4113$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4114if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119
4120int
4121main ()
4122{
4123#ifndef __GNUC__
4124       choke me
4125#endif
4126
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131if ac_fn_c_try_compile "$LINENO"; then :
4132  ac_compiler_gnu=yes
4133else
4134  ac_compiler_gnu=no
4135fi
4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137ac_cv_c_compiler_gnu=$ac_compiler_gnu
4138
4139fi
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4141$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4142if test $ac_compiler_gnu = yes; then
4143  GCC=yes
4144else
4145  GCC=
4146fi
4147ac_test_CFLAGS=${CFLAGS+set}
4148ac_save_CFLAGS=$CFLAGS
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4150$as_echo_n "checking whether $CC accepts -g... " >&6; }
4151if test "${ac_cv_prog_cc_g+set}" = set; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  ac_save_c_werror_flag=$ac_c_werror_flag
4155   ac_c_werror_flag=yes
4156   ac_cv_prog_cc_g=no
4157   CFLAGS="-g"
4158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159/* end confdefs.h.  */
4160
4161int
4162main ()
4163{
4164
4165  ;
4166  return 0;
4167}
4168_ACEOF
4169if ac_fn_c_try_compile "$LINENO"; then :
4170  ac_cv_prog_cc_g=yes
4171else
4172  CFLAGS=""
4173      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175
4176int
4177main ()
4178{
4179
4180  ;
4181  return 0;
4182}
4183_ACEOF
4184if ac_fn_c_try_compile "$LINENO"; then :
4185
4186else
4187  ac_c_werror_flag=$ac_save_c_werror_flag
4188	 CFLAGS="-g"
4189	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h.  */
4191
4192int
4193main ()
4194{
4195
4196  ;
4197  return 0;
4198}
4199_ACEOF
4200if ac_fn_c_try_compile "$LINENO"; then :
4201  ac_cv_prog_cc_g=yes
4202fi
4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204fi
4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206fi
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208   ac_c_werror_flag=$ac_save_c_werror_flag
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4211$as_echo "$ac_cv_prog_cc_g" >&6; }
4212if test "$ac_test_CFLAGS" = set; then
4213  CFLAGS=$ac_save_CFLAGS
4214elif test $ac_cv_prog_cc_g = yes; then
4215  if test "$GCC" = yes; then
4216    CFLAGS="-g -O2"
4217  else
4218    CFLAGS="-g"
4219  fi
4220else
4221  if test "$GCC" = yes; then
4222    CFLAGS="-O2"
4223  else
4224    CFLAGS=
4225  fi
4226fi
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4228$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4229if test "${ac_cv_prog_cc_c89+set}" = set; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  ac_cv_prog_cc_c89=no
4233ac_save_CC=$CC
4234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h.  */
4236#include <stdarg.h>
4237#include <stdio.h>
4238#include <sys/types.h>
4239#include <sys/stat.h>
4240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4241struct buf { int x; };
4242FILE * (*rcsopen) (struct buf *, struct stat *, int);
4243static char *e (p, i)
4244     char **p;
4245     int i;
4246{
4247  return p[i];
4248}
4249static char *f (char * (*g) (char **, int), char **p, ...)
4250{
4251  char *s;
4252  va_list v;
4253  va_start (v,p);
4254  s = g (p, va_arg (v,int));
4255  va_end (v);
4256  return s;
4257}
4258
4259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4260   function prototypes and stuff, but not '\xHH' hex character constants.
4261   These don't provoke an error unfortunately, instead are silently treated
4262   as 'x'.  The following induces an error, until -std is added to get
4263   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4264   array size at least.  It's necessary to write '\x00'==0 to get something
4265   that's true only with -std.  */
4266int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4267
4268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4269   inside strings and character constants.  */
4270#define FOO(x) 'x'
4271int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4272
4273int test (int i, double x);
4274struct s1 {int (*f) (int a);};
4275struct s2 {int (*f) (double a);};
4276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277int argc;
4278char **argv;
4279int
4280main ()
4281{
4282return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4283  ;
4284  return 0;
4285}
4286_ACEOF
4287for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4288	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4289do
4290  CC="$ac_save_CC $ac_arg"
4291  if ac_fn_c_try_compile "$LINENO"; then :
4292  ac_cv_prog_cc_c89=$ac_arg
4293fi
4294rm -f core conftest.err conftest.$ac_objext
4295  test "x$ac_cv_prog_cc_c89" != "xno" && break
4296done
4297rm -f conftest.$ac_ext
4298CC=$ac_save_CC
4299
4300fi
4301# AC_CACHE_VAL
4302case "x$ac_cv_prog_cc_c89" in
4303  x)
4304    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305$as_echo "none needed" >&6; } ;;
4306  xno)
4307    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4308$as_echo "unsupported" >&6; } ;;
4309  *)
4310    CC="$CC $ac_cv_prog_cc_c89"
4311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4312$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4313esac
4314if test "x$ac_cv_prog_cc_c89" != xno; then :
4315
4316fi
4317
4318ac_ext=c
4319ac_cpp='$CPP $CPPFLAGS'
4320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324depcc="$CC"   am_compiler_list=
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327$as_echo_n "checking dependency style of $depcc... " >&6; }
4328if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332  # We make a subdir and do the tests there.  Otherwise we can end up
4333  # making bogus files that we don't know about and never remove.  For
4334  # instance it was reported that on HP-UX the gcc test will end up
4335  # making a dummy file named `D' -- because `-MD' means `put the output
4336  # in D'.
4337  mkdir conftest.dir
4338  # Copy depcomp to subdir because otherwise we won't find it if we're
4339  # using a relative directory.
4340  cp "$am_depcomp" conftest.dir
4341  cd conftest.dir
4342  # We will build objects and dependencies in a subdirectory because
4343  # it helps to detect inapplicable dependency modes.  For instance
4344  # both Tru64's cc and ICC support -MD to output dependencies as a
4345  # side effect of compilation, but ICC will put the dependencies in
4346  # the current directory while Tru64 will put them in the object
4347  # directory.
4348  mkdir sub
4349
4350  am_cv_CC_dependencies_compiler_type=none
4351  if test "$am_compiler_list" = ""; then
4352     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353  fi
4354  am__universal=false
4355  case " $depcc " in #(
4356     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4357     esac
4358
4359  for depmode in $am_compiler_list; do
4360    # Setup a source with many dependencies, because some compilers
4361    # like to wrap large dependency lists on column 80 (with \), and
4362    # we should not choose a depcomp mode which is confused by this.
4363    #
4364    # We need to recreate these files for each test, as the compiler may
4365    # overwrite some of them when testing with obscure command lines.
4366    # This happens at least with the AIX C compiler.
4367    : > sub/conftest.c
4368    for i in 1 2 3 4 5 6; do
4369      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4370      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4371      # Solaris 8's {/usr,}/bin/sh.
4372      touch sub/conftst$i.h
4373    done
4374    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375
4376    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377    # mode.  It turns out that the SunPro C++ compiler does not properly
4378    # handle `-M -o', and we need to detect this.  Also, some Intel
4379    # versions had trouble with output in subdirs
4380    am__obj=sub/conftest.${OBJEXT-o}
4381    am__minus_obj="-o $am__obj"
4382    case $depmode in
4383    gcc)
4384      # This depmode causes a compiler race in universal mode.
4385      test "$am__universal" = false || continue
4386      ;;
4387    nosideeffect)
4388      # after this tag, mechanisms are not by side-effect, so they'll
4389      # only be used when explicitly requested
4390      if test "x$enable_dependency_tracking" = xyes; then
4391	continue
4392      else
4393	break
4394      fi
4395      ;;
4396    msvisualcpp | msvcmsys)
4397      # This compiler won't grok `-c -o', but also, the minuso test has
4398      # not run yet.  These depmodes are late enough in the game, and
4399      # so weak that their functioning should not be impacted.
4400      am__obj=conftest.${OBJEXT-o}
4401      am__minus_obj=
4402      ;;
4403    none) break ;;
4404    esac
4405    if depmode=$depmode \
4406       source=sub/conftest.c object=$am__obj \
4407       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4409         >/dev/null 2>conftest.err &&
4410       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4411       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4412       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4413       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414      # icc doesn't choke on unknown options, it will just issue warnings
4415      # or remarks (even with -Werror).  So we grep stderr for any message
4416      # that says an option was ignored or not supported.
4417      # When given -MP, icc 7.0 and 7.1 complain thusly:
4418      #   icc: Command line warning: ignoring option '-M'; no argument required
4419      # The diagnosis changed in icc 8.0:
4420      #   icc: Command line remark: option '-MP' not supported
4421      if (grep 'ignoring option' conftest.err ||
4422          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423        am_cv_CC_dependencies_compiler_type=$depmode
4424        break
4425      fi
4426    fi
4427  done
4428
4429  cd ..
4430  rm -rf conftest.dir
4431else
4432  am_cv_CC_dependencies_compiler_type=none
4433fi
4434
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4437$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4438CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439
4440 if
4441  test "x$enable_dependency_tracking" != xno \
4442  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4443  am__fastdepCC_TRUE=
4444  am__fastdepCC_FALSE='#'
4445else
4446  am__fastdepCC_TRUE='#'
4447  am__fastdepCC_FALSE=
4448fi
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4452$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4453if test "${ac_cv_path_SED+set}" = set; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4457     for ac_i in 1 2 3 4 5 6 7; do
4458       ac_script="$ac_script$as_nl$ac_script"
4459     done
4460     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4461     { ac_script=; unset ac_script;}
4462     if test -z "$SED"; then
4463  ac_path_SED_found=false
4464  # Loop through the user's path and test for each of PROGNAME-LIST
4465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468  IFS=$as_save_IFS
4469  test -z "$as_dir" && as_dir=.
4470    for ac_prog in sed gsed; do
4471    for ac_exec_ext in '' $ac_executable_extensions; do
4472      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4473      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4474# Check for GNU ac_path_SED and select it if it is found.
4475  # Check for GNU $ac_path_SED
4476case `"$ac_path_SED" --version 2>&1` in
4477*GNU*)
4478  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4479*)
4480  ac_count=0
4481  $as_echo_n 0123456789 >"conftest.in"
4482  while :
4483  do
4484    cat "conftest.in" "conftest.in" >"conftest.tmp"
4485    mv "conftest.tmp" "conftest.in"
4486    cp "conftest.in" "conftest.nl"
4487    $as_echo '' >> "conftest.nl"
4488    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490    as_fn_arith $ac_count + 1 && ac_count=$as_val
4491    if test $ac_count -gt ${ac_path_SED_max-0}; then
4492      # Best one so far, save it but keep looking for a better one
4493      ac_cv_path_SED="$ac_path_SED"
4494      ac_path_SED_max=$ac_count
4495    fi
4496    # 10*(2^10) chars as input seems more than enough
4497    test $ac_count -gt 10 && break
4498  done
4499  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500esac
4501
4502      $ac_path_SED_found && break 3
4503    done
4504  done
4505  done
4506IFS=$as_save_IFS
4507  if test -z "$ac_cv_path_SED"; then
4508    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4509  fi
4510else
4511  ac_cv_path_SED=$SED
4512fi
4513
4514fi
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4516$as_echo "$ac_cv_path_SED" >&6; }
4517 SED="$ac_cv_path_SED"
4518  rm -f conftest.sed
4519
4520test -z "$SED" && SED=sed
4521Xsed="$SED -e 1s/^X//"
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4534$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4535if test "${ac_cv_path_GREP+set}" = set; then :
4536  $as_echo_n "(cached) " >&6
4537else
4538  if test -z "$GREP"; then
4539  ac_path_GREP_found=false
4540  # Loop through the user's path and test for each of PROGNAME-LIST
4541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4543do
4544  IFS=$as_save_IFS
4545  test -z "$as_dir" && as_dir=.
4546    for ac_prog in grep ggrep; do
4547    for ac_exec_ext in '' $ac_executable_extensions; do
4548      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4549      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4550# Check for GNU ac_path_GREP and select it if it is found.
4551  # Check for GNU $ac_path_GREP
4552case `"$ac_path_GREP" --version 2>&1` in
4553*GNU*)
4554  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4555*)
4556  ac_count=0
4557  $as_echo_n 0123456789 >"conftest.in"
4558  while :
4559  do
4560    cat "conftest.in" "conftest.in" >"conftest.tmp"
4561    mv "conftest.tmp" "conftest.in"
4562    cp "conftest.in" "conftest.nl"
4563    $as_echo 'GREP' >> "conftest.nl"
4564    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4565    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4566    as_fn_arith $ac_count + 1 && ac_count=$as_val
4567    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4568      # Best one so far, save it but keep looking for a better one
4569      ac_cv_path_GREP="$ac_path_GREP"
4570      ac_path_GREP_max=$ac_count
4571    fi
4572    # 10*(2^10) chars as input seems more than enough
4573    test $ac_count -gt 10 && break
4574  done
4575  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4576esac
4577
4578      $ac_path_GREP_found && break 3
4579    done
4580  done
4581  done
4582IFS=$as_save_IFS
4583  if test -z "$ac_cv_path_GREP"; then
4584    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4585  fi
4586else
4587  ac_cv_path_GREP=$GREP
4588fi
4589
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4592$as_echo "$ac_cv_path_GREP" >&6; }
4593 GREP="$ac_cv_path_GREP"
4594
4595
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4597$as_echo_n "checking for egrep... " >&6; }
4598if test "${ac_cv_path_EGREP+set}" = set; then :
4599  $as_echo_n "(cached) " >&6
4600else
4601  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4602   then ac_cv_path_EGREP="$GREP -E"
4603   else
4604     if test -z "$EGREP"; then
4605  ac_path_EGREP_found=false
4606  # Loop through the user's path and test for each of PROGNAME-LIST
4607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4609do
4610  IFS=$as_save_IFS
4611  test -z "$as_dir" && as_dir=.
4612    for ac_prog in egrep; do
4613    for ac_exec_ext in '' $ac_executable_extensions; do
4614      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4615      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4616# Check for GNU ac_path_EGREP and select it if it is found.
4617  # Check for GNU $ac_path_EGREP
4618case `"$ac_path_EGREP" --version 2>&1` in
4619*GNU*)
4620  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4621*)
4622  ac_count=0
4623  $as_echo_n 0123456789 >"conftest.in"
4624  while :
4625  do
4626    cat "conftest.in" "conftest.in" >"conftest.tmp"
4627    mv "conftest.tmp" "conftest.in"
4628    cp "conftest.in" "conftest.nl"
4629    $as_echo 'EGREP' >> "conftest.nl"
4630    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632    as_fn_arith $ac_count + 1 && ac_count=$as_val
4633    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4634      # Best one so far, save it but keep looking for a better one
4635      ac_cv_path_EGREP="$ac_path_EGREP"
4636      ac_path_EGREP_max=$ac_count
4637    fi
4638    # 10*(2^10) chars as input seems more than enough
4639    test $ac_count -gt 10 && break
4640  done
4641  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642esac
4643
4644      $ac_path_EGREP_found && break 3
4645    done
4646  done
4647  done
4648IFS=$as_save_IFS
4649  if test -z "$ac_cv_path_EGREP"; then
4650    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4651  fi
4652else
4653  ac_cv_path_EGREP=$EGREP
4654fi
4655
4656   fi
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4659$as_echo "$ac_cv_path_EGREP" >&6; }
4660 EGREP="$ac_cv_path_EGREP"
4661
4662
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4664$as_echo_n "checking for fgrep... " >&6; }
4665if test "${ac_cv_path_FGREP+set}" = set; then :
4666  $as_echo_n "(cached) " >&6
4667else
4668  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4669   then ac_cv_path_FGREP="$GREP -F"
4670   else
4671     if test -z "$FGREP"; then
4672  ac_path_FGREP_found=false
4673  # Loop through the user's path and test for each of PROGNAME-LIST
4674  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4676do
4677  IFS=$as_save_IFS
4678  test -z "$as_dir" && as_dir=.
4679    for ac_prog in fgrep; do
4680    for ac_exec_ext in '' $ac_executable_extensions; do
4681      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4682      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4683# Check for GNU ac_path_FGREP and select it if it is found.
4684  # Check for GNU $ac_path_FGREP
4685case `"$ac_path_FGREP" --version 2>&1` in
4686*GNU*)
4687  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4688*)
4689  ac_count=0
4690  $as_echo_n 0123456789 >"conftest.in"
4691  while :
4692  do
4693    cat "conftest.in" "conftest.in" >"conftest.tmp"
4694    mv "conftest.tmp" "conftest.in"
4695    cp "conftest.in" "conftest.nl"
4696    $as_echo 'FGREP' >> "conftest.nl"
4697    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4698    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4699    as_fn_arith $ac_count + 1 && ac_count=$as_val
4700    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4701      # Best one so far, save it but keep looking for a better one
4702      ac_cv_path_FGREP="$ac_path_FGREP"
4703      ac_path_FGREP_max=$ac_count
4704    fi
4705    # 10*(2^10) chars as input seems more than enough
4706    test $ac_count -gt 10 && break
4707  done
4708  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4709esac
4710
4711      $ac_path_FGREP_found && break 3
4712    done
4713  done
4714  done
4715IFS=$as_save_IFS
4716  if test -z "$ac_cv_path_FGREP"; then
4717    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4718  fi
4719else
4720  ac_cv_path_FGREP=$FGREP
4721fi
4722
4723   fi
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4726$as_echo "$ac_cv_path_FGREP" >&6; }
4727 FGREP="$ac_cv_path_FGREP"
4728
4729
4730test -z "$GREP" && GREP=grep
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750# Check whether --with-gnu-ld was given.
4751if test "${with_gnu_ld+set}" = set; then :
4752  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4753else
4754  with_gnu_ld=no
4755fi
4756
4757ac_prog=ld
4758if test "$GCC" = yes; then
4759  # Check if gcc -print-prog-name=ld gives a path.
4760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4761$as_echo_n "checking for ld used by $CC... " >&6; }
4762  case $host in
4763  *-*-mingw*)
4764    # gcc leaves a trailing carriage return which upsets mingw
4765    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4766  *)
4767    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4768  esac
4769  case $ac_prog in
4770    # Accept absolute paths.
4771    [\\/]* | ?:[\\/]*)
4772      re_direlt='/[^/][^/]*/\.\./'
4773      # Canonicalize the pathname of ld
4774      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4775      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4776	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4777      done
4778      test -z "$LD" && LD="$ac_prog"
4779      ;;
4780  "")
4781    # If it fails, then pretend we aren't using GCC.
4782    ac_prog=ld
4783    ;;
4784  *)
4785    # If it is relative, then search for the first ld in PATH.
4786    with_gnu_ld=unknown
4787    ;;
4788  esac
4789elif test "$with_gnu_ld" = yes; then
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4791$as_echo_n "checking for GNU ld... " >&6; }
4792else
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4794$as_echo_n "checking for non-GNU ld... " >&6; }
4795fi
4796if test "${lt_cv_path_LD+set}" = set; then :
4797  $as_echo_n "(cached) " >&6
4798else
4799  if test -z "$LD"; then
4800  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4801  for ac_dir in $PATH; do
4802    IFS="$lt_save_ifs"
4803    test -z "$ac_dir" && ac_dir=.
4804    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4805      lt_cv_path_LD="$ac_dir/$ac_prog"
4806      # Check to see if the program is GNU ld.  I'd rather use --version,
4807      # but apparently some variants of GNU ld only accept -v.
4808      # Break only if it was the GNU/non-GNU ld that we prefer.
4809      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4810      *GNU* | *'with BFD'*)
4811	test "$with_gnu_ld" != no && break
4812	;;
4813      *)
4814	test "$with_gnu_ld" != yes && break
4815	;;
4816      esac
4817    fi
4818  done
4819  IFS="$lt_save_ifs"
4820else
4821  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4822fi
4823fi
4824
4825LD="$lt_cv_path_LD"
4826if test -n "$LD"; then
4827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4828$as_echo "$LD" >&6; }
4829else
4830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831$as_echo "no" >&6; }
4832fi
4833test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4835$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4836if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4837  $as_echo_n "(cached) " >&6
4838else
4839  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4840case `$LD -v 2>&1 </dev/null` in
4841*GNU* | *'with BFD'*)
4842  lt_cv_prog_gnu_ld=yes
4843  ;;
4844*)
4845  lt_cv_prog_gnu_ld=no
4846  ;;
4847esac
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4850$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4851with_gnu_ld=$lt_cv_prog_gnu_ld
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4862$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4863if test "${lt_cv_path_NM+set}" = set; then :
4864  $as_echo_n "(cached) " >&6
4865else
4866  if test -n "$NM"; then
4867  # Let the user override the test.
4868  lt_cv_path_NM="$NM"
4869else
4870  lt_nm_to_check="${ac_tool_prefix}nm"
4871  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4872    lt_nm_to_check="$lt_nm_to_check nm"
4873  fi
4874  for lt_tmp_nm in $lt_nm_to_check; do
4875    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4876    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4877      IFS="$lt_save_ifs"
4878      test -z "$ac_dir" && ac_dir=.
4879      tmp_nm="$ac_dir/$lt_tmp_nm"
4880      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4881	# Check to see if the nm accepts a BSD-compat flag.
4882	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4883	#   nm: unknown option "B" ignored
4884	# Tru64's nm complains that /dev/null is an invalid object file
4885	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4886	*/dev/null* | *'Invalid file or object type'*)
4887	  lt_cv_path_NM="$tmp_nm -B"
4888	  break
4889	  ;;
4890	*)
4891	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4892	  */dev/null*)
4893	    lt_cv_path_NM="$tmp_nm -p"
4894	    break
4895	    ;;
4896	  *)
4897	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4898	    continue # so that we can try to find one that supports BSD flags
4899	    ;;
4900	  esac
4901	  ;;
4902	esac
4903      fi
4904    done
4905    IFS="$lt_save_ifs"
4906  done
4907  : ${lt_cv_path_NM=no}
4908fi
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4911$as_echo "$lt_cv_path_NM" >&6; }
4912if test "$lt_cv_path_NM" != "no"; then
4913  NM="$lt_cv_path_NM"
4914else
4915  # Didn't find any BSD compatible name lister, look for dumpbin.
4916  if test -n "$ac_tool_prefix"; then
4917  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4918  do
4919    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922$as_echo_n "checking for $ac_word... " >&6; }
4923if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  if test -n "$DUMPBIN"; then
4927  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932  IFS=$as_save_IFS
4933  test -z "$as_dir" && as_dir=.
4934    for ac_exec_ext in '' $ac_executable_extensions; do
4935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938    break 2
4939  fi
4940done
4941  done
4942IFS=$as_save_IFS
4943
4944fi
4945fi
4946DUMPBIN=$ac_cv_prog_DUMPBIN
4947if test -n "$DUMPBIN"; then
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4949$as_echo "$DUMPBIN" >&6; }
4950else
4951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952$as_echo "no" >&6; }
4953fi
4954
4955
4956    test -n "$DUMPBIN" && break
4957  done
4958fi
4959if test -z "$DUMPBIN"; then
4960  ac_ct_DUMPBIN=$DUMPBIN
4961  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4962do
4963  # Extract the first word of "$ac_prog", so it can be a program name with args.
4964set dummy $ac_prog; ac_word=$2
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966$as_echo_n "checking for $ac_word... " >&6; }
4967if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  if test -n "$ac_ct_DUMPBIN"; then
4971  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4972else
4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976  IFS=$as_save_IFS
4977  test -z "$as_dir" && as_dir=.
4978    for ac_exec_ext in '' $ac_executable_extensions; do
4979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982    break 2
4983  fi
4984done
4985  done
4986IFS=$as_save_IFS
4987
4988fi
4989fi
4990ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4991if test -n "$ac_ct_DUMPBIN"; then
4992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4993$as_echo "$ac_ct_DUMPBIN" >&6; }
4994else
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996$as_echo "no" >&6; }
4997fi
4998
4999
5000  test -n "$ac_ct_DUMPBIN" && break
5001done
5002
5003  if test "x$ac_ct_DUMPBIN" = x; then
5004    DUMPBIN=":"
5005  else
5006    case $cross_compiling:$ac_tool_warned in
5007yes:)
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010ac_tool_warned=yes ;;
5011esac
5012    DUMPBIN=$ac_ct_DUMPBIN
5013  fi
5014fi
5015
5016
5017  if test "$DUMPBIN" != ":"; then
5018    NM="$DUMPBIN"
5019  fi
5020fi
5021test -z "$NM" && NM=nm
5022
5023
5024
5025
5026
5027
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5029$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5030if test "${lt_cv_nm_interface+set}" = set; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  lt_cv_nm_interface="BSD nm"
5034  echo "int some_variable = 0;" > conftest.$ac_ext
5035  (eval echo "\"\$as_me:5035: $ac_compile\"" >&5)
5036  (eval "$ac_compile" 2>conftest.err)
5037  cat conftest.err >&5
5038  (eval echo "\"\$as_me:5038: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5039  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5040  cat conftest.err >&5
5041  (eval echo "\"\$as_me:5041: output\"" >&5)
5042  cat conftest.out >&5
5043  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5044    lt_cv_nm_interface="MS dumpbin"
5045  fi
5046  rm -f conftest*
5047fi
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5049$as_echo "$lt_cv_nm_interface" >&6; }
5050
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5052$as_echo_n "checking whether ln -s works... " >&6; }
5053LN_S=$as_ln_s
5054if test "$LN_S" = "ln -s"; then
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5056$as_echo "yes" >&6; }
5057else
5058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5059$as_echo "no, using $LN_S" >&6; }
5060fi
5061
5062# find the maximum length of command line arguments
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5064$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5065if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068    i=0
5069  teststring="ABCD"
5070
5071  case $build_os in
5072  msdosdjgpp*)
5073    # On DJGPP, this test can blow up pretty badly due to problems in libc
5074    # (any single argument exceeding 2000 bytes causes a buffer overrun
5075    # during glob expansion).  Even if it were fixed, the result of this
5076    # check would be larger than it should be.
5077    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5078    ;;
5079
5080  gnu*)
5081    # Under GNU Hurd, this test is not required because there is
5082    # no limit to the length of command line arguments.
5083    # Libtool will interpret -1 as no limit whatsoever
5084    lt_cv_sys_max_cmd_len=-1;
5085    ;;
5086
5087  cygwin* | mingw* | cegcc*)
5088    # On Win9x/ME, this test blows up -- it succeeds, but takes
5089    # about 5 minutes as the teststring grows exponentially.
5090    # Worse, since 9x/ME are not pre-emptively multitasking,
5091    # you end up with a "frozen" computer, even though with patience
5092    # the test eventually succeeds (with a max line length of 256k).
5093    # Instead, let's just punt: use the minimum linelength reported by
5094    # all of the supported platforms: 8192 (on NT/2K/XP).
5095    lt_cv_sys_max_cmd_len=8192;
5096    ;;
5097
5098  amigaos*)
5099    # On AmigaOS with pdksh, this test takes hours, literally.
5100    # So we just punt and use a minimum line length of 8192.
5101    lt_cv_sys_max_cmd_len=8192;
5102    ;;
5103
5104  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5105    # This has been around since 386BSD, at least.  Likely further.
5106    if test -x /sbin/sysctl; then
5107      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5108    elif test -x /usr/sbin/sysctl; then
5109      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5110    else
5111      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5112    fi
5113    # And add a safety zone
5114    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5115    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5116    ;;
5117
5118  interix*)
5119    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5120    lt_cv_sys_max_cmd_len=196608
5121    ;;
5122
5123  osf*)
5124    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5125    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5126    # nice to cause kernel panics so lets avoid the loop below.
5127    # First set a reasonable default.
5128    lt_cv_sys_max_cmd_len=16384
5129    #
5130    if test -x /sbin/sysconfig; then
5131      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5132        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5133      esac
5134    fi
5135    ;;
5136  sco3.2v5*)
5137    lt_cv_sys_max_cmd_len=102400
5138    ;;
5139  sysv5* | sco5v6* | sysv4.2uw2*)
5140    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5141    if test -n "$kargmax"; then
5142      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5143    else
5144      lt_cv_sys_max_cmd_len=32768
5145    fi
5146    ;;
5147  *)
5148    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5149    if test -n "$lt_cv_sys_max_cmd_len"; then
5150      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5151      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5152    else
5153      # Make teststring a little bigger before we do anything with it.
5154      # a 1K string should be a reasonable start.
5155      for i in 1 2 3 4 5 6 7 8 ; do
5156        teststring=$teststring$teststring
5157      done
5158      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5159      # If test is not a shell built-in, we'll probably end up computing a
5160      # maximum length that is only half of the actual maximum length, but
5161      # we can't tell.
5162      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5163	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5164	      test $i != 17 # 1/2 MB should be enough
5165      do
5166        i=`expr $i + 1`
5167        teststring=$teststring$teststring
5168      done
5169      # Only check the string length outside the loop.
5170      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5171      teststring=
5172      # Add a significant safety factor because C++ compilers can tack on
5173      # massive amounts of additional arguments before passing them to the
5174      # linker.  It appears as though 1/2 is a usable value.
5175      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5176    fi
5177    ;;
5178  esac
5179
5180fi
5181
5182if test -n $lt_cv_sys_max_cmd_len ; then
5183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5184$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5185else
5186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5187$as_echo "none" >&6; }
5188fi
5189max_cmd_len=$lt_cv_sys_max_cmd_len
5190
5191
5192
5193
5194
5195
5196: ${CP="cp -f"}
5197: ${MV="mv -f"}
5198: ${RM="rm -f"}
5199
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5201$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5202# Try some XSI features
5203xsi_shell=no
5204( _lt_dummy="a/b/c"
5205  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5206      = c,a/b,, \
5207    && eval 'test $(( 1 + 1 )) -eq 2 \
5208    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5209  && xsi_shell=yes
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5211$as_echo "$xsi_shell" >&6; }
5212
5213
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5215$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5216lt_shell_append=no
5217( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5218    >/dev/null 2>&1 \
5219  && lt_shell_append=yes
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5221$as_echo "$lt_shell_append" >&6; }
5222
5223
5224if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5225  lt_unset=unset
5226else
5227  lt_unset=false
5228fi
5229
5230
5231
5232
5233
5234# test EBCDIC or ASCII
5235case `echo X|tr X '\101'` in
5236 A) # ASCII based system
5237    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5238  lt_SP2NL='tr \040 \012'
5239  lt_NL2SP='tr \015\012 \040\040'
5240  ;;
5241 *) # EBCDIC based system
5242  lt_SP2NL='tr \100 \n'
5243  lt_NL2SP='tr \r\n \100\100'
5244  ;;
5245esac
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5256$as_echo_n "checking for $LD option to reload object files... " >&6; }
5257if test "${lt_cv_ld_reload_flag+set}" = set; then :
5258  $as_echo_n "(cached) " >&6
5259else
5260  lt_cv_ld_reload_flag='-r'
5261fi
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5263$as_echo "$lt_cv_ld_reload_flag" >&6; }
5264reload_flag=$lt_cv_ld_reload_flag
5265case $reload_flag in
5266"" | " "*) ;;
5267*) reload_flag=" $reload_flag" ;;
5268esac
5269reload_cmds='$LD$reload_flag -o $output$reload_objs'
5270case $host_os in
5271  darwin*)
5272    if test "$GCC" = yes; then
5273      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5274    else
5275      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5276    fi
5277    ;;
5278esac
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288if test -n "$ac_tool_prefix"; then
5289  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5290set dummy ${ac_tool_prefix}objdump; ac_word=$2
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292$as_echo_n "checking for $ac_word... " >&6; }
5293if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296  if test -n "$OBJDUMP"; then
5297  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5298else
5299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300for as_dir in $PATH
5301do
5302  IFS=$as_save_IFS
5303  test -z "$as_dir" && as_dir=.
5304    for ac_exec_ext in '' $ac_executable_extensions; do
5305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308    break 2
5309  fi
5310done
5311  done
5312IFS=$as_save_IFS
5313
5314fi
5315fi
5316OBJDUMP=$ac_cv_prog_OBJDUMP
5317if test -n "$OBJDUMP"; then
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5319$as_echo "$OBJDUMP" >&6; }
5320else
5321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322$as_echo "no" >&6; }
5323fi
5324
5325
5326fi
5327if test -z "$ac_cv_prog_OBJDUMP"; then
5328  ac_ct_OBJDUMP=$OBJDUMP
5329  # Extract the first word of "objdump", so it can be a program name with args.
5330set dummy objdump; ac_word=$2
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332$as_echo_n "checking for $ac_word... " >&6; }
5333if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5334  $as_echo_n "(cached) " >&6
5335else
5336  if test -n "$ac_ct_OBJDUMP"; then
5337  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5338else
5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342  IFS=$as_save_IFS
5343  test -z "$as_dir" && as_dir=.
5344    for ac_exec_ext in '' $ac_executable_extensions; do
5345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348    break 2
5349  fi
5350done
5351  done
5352IFS=$as_save_IFS
5353
5354fi
5355fi
5356ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5357if test -n "$ac_ct_OBJDUMP"; then
5358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5359$as_echo "$ac_ct_OBJDUMP" >&6; }
5360else
5361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362$as_echo "no" >&6; }
5363fi
5364
5365  if test "x$ac_ct_OBJDUMP" = x; then
5366    OBJDUMP="false"
5367  else
5368    case $cross_compiling:$ac_tool_warned in
5369yes:)
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5372ac_tool_warned=yes ;;
5373esac
5374    OBJDUMP=$ac_ct_OBJDUMP
5375  fi
5376else
5377  OBJDUMP="$ac_cv_prog_OBJDUMP"
5378fi
5379
5380test -z "$OBJDUMP" && OBJDUMP=objdump
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5391$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5392if test "${lt_cv_deplibs_check_method+set}" = set; then :
5393  $as_echo_n "(cached) " >&6
5394else
5395  lt_cv_file_magic_cmd='$MAGIC_CMD'
5396lt_cv_file_magic_test_file=
5397lt_cv_deplibs_check_method='unknown'
5398# Need to set the preceding variable on all platforms that support
5399# interlibrary dependencies.
5400# 'none' -- dependencies not supported.
5401# `unknown' -- same as none, but documents that we really don't know.
5402# 'pass_all' -- all dependencies passed with no checks.
5403# 'test_compile' -- check by making test program.
5404# 'file_magic [[regex]]' -- check by looking for files in library path
5405# which responds to the $file_magic_cmd with a given extended regex.
5406# If you have `file' or equivalent on your system and you're not sure
5407# whether `pass_all' will *always* work, you probably want this one.
5408
5409case $host_os in
5410aix[4-9]*)
5411  lt_cv_deplibs_check_method=pass_all
5412  ;;
5413
5414beos*)
5415  lt_cv_deplibs_check_method=pass_all
5416  ;;
5417
5418bsdi[45]*)
5419  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5420  lt_cv_file_magic_cmd='/usr/bin/file -L'
5421  lt_cv_file_magic_test_file=/shlib/libc.so
5422  ;;
5423
5424cygwin*)
5425  # func_win32_libid is a shell function defined in ltmain.sh
5426  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5427  lt_cv_file_magic_cmd='func_win32_libid'
5428  ;;
5429
5430mingw* | pw32*)
5431  # Base MSYS/MinGW do not provide the 'file' command needed by
5432  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5433  # unless we find 'file', for example because we are cross-compiling.
5434  if ( file / ) >/dev/null 2>&1; then
5435    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5436    lt_cv_file_magic_cmd='func_win32_libid'
5437  else
5438    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5439    lt_cv_file_magic_cmd='$OBJDUMP -f'
5440  fi
5441  ;;
5442
5443cegcc)
5444  # use the weaker test based on 'objdump'. See mingw*.
5445  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5446  lt_cv_file_magic_cmd='$OBJDUMP -f'
5447  ;;
5448
5449darwin* | rhapsody*)
5450  lt_cv_deplibs_check_method=pass_all
5451  ;;
5452
5453freebsd* | dragonfly*)
5454  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5455    case $host_cpu in
5456    i*86 )
5457      # Not sure whether the presence of OpenBSD here was a mistake.
5458      # Let's accept both of them until this is cleared up.
5459      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5460      lt_cv_file_magic_cmd=/usr/bin/file
5461      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5462      ;;
5463    esac
5464  else
5465    lt_cv_deplibs_check_method=pass_all
5466  fi
5467  ;;
5468
5469gnu*)
5470  lt_cv_deplibs_check_method=pass_all
5471  ;;
5472
5473hpux10.20* | hpux11*)
5474  lt_cv_file_magic_cmd=/usr/bin/file
5475  case $host_cpu in
5476  ia64*)
5477    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5478    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5479    ;;
5480  hppa*64*)
5481    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]'
5482    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5483    ;;
5484  *)
5485    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5486    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5487    ;;
5488  esac
5489  ;;
5490
5491interix[3-9]*)
5492  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5493  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5494  ;;
5495
5496irix5* | irix6* | nonstopux*)
5497  case $LD in
5498  *-32|*"-32 ") libmagic=32-bit;;
5499  *-n32|*"-n32 ") libmagic=N32;;
5500  *-64|*"-64 ") libmagic=64-bit;;
5501  *) libmagic=never-match;;
5502  esac
5503  lt_cv_deplibs_check_method=pass_all
5504  ;;
5505
5506# This must be Linux ELF.
5507linux* | k*bsd*-gnu | kopensolaris*-gnu)
5508  lt_cv_deplibs_check_method=pass_all
5509  ;;
5510
5511netbsd* | netbsdelf*-gnu)
5512  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5514  else
5515    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5516  fi
5517  ;;
5518
5519newos6*)
5520  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5521  lt_cv_file_magic_cmd=/usr/bin/file
5522  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5523  ;;
5524
5525*nto* | *qnx*)
5526  lt_cv_deplibs_check_method=pass_all
5527  ;;
5528
5529openbsd*)
5530  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5531    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5532  else
5533    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5534  fi
5535  ;;
5536
5537osf3* | osf4* | osf5*)
5538  lt_cv_deplibs_check_method=pass_all
5539  ;;
5540
5541rdos*)
5542  lt_cv_deplibs_check_method=pass_all
5543  ;;
5544
5545solaris*)
5546  lt_cv_deplibs_check_method=pass_all
5547  ;;
5548
5549sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550  lt_cv_deplibs_check_method=pass_all
5551  ;;
5552
5553sysv4 | sysv4.3*)
5554  case $host_vendor in
5555  motorola)
5556    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]'
5557    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5558    ;;
5559  ncr)
5560    lt_cv_deplibs_check_method=pass_all
5561    ;;
5562  sequent)
5563    lt_cv_file_magic_cmd='/bin/file'
5564    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5565    ;;
5566  sni)
5567    lt_cv_file_magic_cmd='/bin/file'
5568    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5569    lt_cv_file_magic_test_file=/lib/libc.so
5570    ;;
5571  siemens)
5572    lt_cv_deplibs_check_method=pass_all
5573    ;;
5574  pc)
5575    lt_cv_deplibs_check_method=pass_all
5576    ;;
5577  esac
5578  ;;
5579
5580tpf*)
5581  lt_cv_deplibs_check_method=pass_all
5582  ;;
5583esac
5584
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5587$as_echo "$lt_cv_deplibs_check_method" >&6; }
5588file_magic_cmd=$lt_cv_file_magic_cmd
5589deplibs_check_method=$lt_cv_deplibs_check_method
5590test -z "$deplibs_check_method" && deplibs_check_method=unknown
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603if test -n "$ac_tool_prefix"; then
5604  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5605set dummy ${ac_tool_prefix}ar; ac_word=$2
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607$as_echo_n "checking for $ac_word... " >&6; }
5608if test "${ac_cv_prog_AR+set}" = set; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  if test -n "$AR"; then
5612  ac_cv_prog_AR="$AR" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617  IFS=$as_save_IFS
5618  test -z "$as_dir" && as_dir=.
5619    for ac_exec_ext in '' $ac_executable_extensions; do
5620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621    ac_cv_prog_AR="${ac_tool_prefix}ar"
5622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623    break 2
5624  fi
5625done
5626  done
5627IFS=$as_save_IFS
5628
5629fi
5630fi
5631AR=$ac_cv_prog_AR
5632if test -n "$AR"; then
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5634$as_echo "$AR" >&6; }
5635else
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
5638fi
5639
5640
5641fi
5642if test -z "$ac_cv_prog_AR"; then
5643  ac_ct_AR=$AR
5644  # Extract the first word of "ar", so it can be a program name with args.
5645set dummy ar; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  if test -n "$ac_ct_AR"; then
5652  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657  IFS=$as_save_IFS
5658  test -z "$as_dir" && as_dir=.
5659    for ac_exec_ext in '' $ac_executable_extensions; do
5660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661    ac_cv_prog_ac_ct_AR="ar"
5662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663    break 2
5664  fi
5665done
5666  done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671ac_ct_AR=$ac_cv_prog_ac_ct_AR
5672if test -n "$ac_ct_AR"; then
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5674$as_echo "$ac_ct_AR" >&6; }
5675else
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680  if test "x$ac_ct_AR" = x; then
5681    AR="false"
5682  else
5683    case $cross_compiling:$ac_tool_warned in
5684yes:)
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687ac_tool_warned=yes ;;
5688esac
5689    AR=$ac_ct_AR
5690  fi
5691else
5692  AR="$ac_cv_prog_AR"
5693fi
5694
5695test -z "$AR" && AR=ar
5696test -z "$AR_FLAGS" && AR_FLAGS=cru
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708if test -n "$ac_tool_prefix"; then
5709  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5710set dummy ${ac_tool_prefix}strip; ac_word=$2
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712$as_echo_n "checking for $ac_word... " >&6; }
5713if test "${ac_cv_prog_STRIP+set}" = set; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  if test -n "$STRIP"; then
5717  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724    for ac_exec_ext in '' $ac_executable_extensions; do
5725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731  done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736STRIP=$ac_cv_prog_STRIP
5737if test -n "$STRIP"; then
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5739$as_echo "$STRIP" >&6; }
5740else
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743fi
5744
5745
5746fi
5747if test -z "$ac_cv_prog_STRIP"; then
5748  ac_ct_STRIP=$STRIP
5749  # Extract the first word of "strip", so it can be a program name with args.
5750set dummy strip; ac_word=$2
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752$as_echo_n "checking for $ac_word... " >&6; }
5753if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  if test -n "$ac_ct_STRIP"; then
5757  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5758else
5759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH
5761do
5762  IFS=$as_save_IFS
5763  test -z "$as_dir" && as_dir=.
5764    for ac_exec_ext in '' $ac_executable_extensions; do
5765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5766    ac_cv_prog_ac_ct_STRIP="strip"
5767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768    break 2
5769  fi
5770done
5771  done
5772IFS=$as_save_IFS
5773
5774fi
5775fi
5776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5777if test -n "$ac_ct_STRIP"; then
5778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5779$as_echo "$ac_ct_STRIP" >&6; }
5780else
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782$as_echo "no" >&6; }
5783fi
5784
5785  if test "x$ac_ct_STRIP" = x; then
5786    STRIP=":"
5787  else
5788    case $cross_compiling:$ac_tool_warned in
5789yes:)
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5792ac_tool_warned=yes ;;
5793esac
5794    STRIP=$ac_ct_STRIP
5795  fi
5796else
5797  STRIP="$ac_cv_prog_STRIP"
5798fi
5799
5800test -z "$STRIP" && STRIP=:
5801
5802
5803
5804
5805
5806
5807if test -n "$ac_tool_prefix"; then
5808  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811$as_echo_n "checking for $ac_word... " >&6; }
5812if test "${ac_cv_prog_RANLIB+set}" = set; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  if test -n "$RANLIB"; then
5816  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821  IFS=$as_save_IFS
5822  test -z "$as_dir" && as_dir=.
5823    for ac_exec_ext in '' $ac_executable_extensions; do
5824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827    break 2
5828  fi
5829done
5830  done
5831IFS=$as_save_IFS
5832
5833fi
5834fi
5835RANLIB=$ac_cv_prog_RANLIB
5836if test -n "$RANLIB"; then
5837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5838$as_echo "$RANLIB" >&6; }
5839else
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841$as_echo "no" >&6; }
5842fi
5843
5844
5845fi
5846if test -z "$ac_cv_prog_RANLIB"; then
5847  ac_ct_RANLIB=$RANLIB
5848  # Extract the first word of "ranlib", so it can be a program name with args.
5849set dummy ranlib; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  if test -n "$ac_ct_RANLIB"; then
5856  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863    for ac_exec_ext in '' $ac_executable_extensions; do
5864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865    ac_cv_prog_ac_ct_RANLIB="ranlib"
5866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867    break 2
5868  fi
5869done
5870  done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5876if test -n "$ac_ct_RANLIB"; then
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5878$as_echo "$ac_ct_RANLIB" >&6; }
5879else
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
5882fi
5883
5884  if test "x$ac_ct_RANLIB" = x; then
5885    RANLIB=":"
5886  else
5887    case $cross_compiling:$ac_tool_warned in
5888yes:)
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891ac_tool_warned=yes ;;
5892esac
5893    RANLIB=$ac_ct_RANLIB
5894  fi
5895else
5896  RANLIB="$ac_cv_prog_RANLIB"
5897fi
5898
5899test -z "$RANLIB" && RANLIB=:
5900
5901
5902
5903
5904
5905
5906# Determine commands to create old-style static archives.
5907old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5908old_postinstall_cmds='chmod 644 $oldlib'
5909old_postuninstall_cmds=
5910
5911if test -n "$RANLIB"; then
5912  case $host_os in
5913  openbsd*)
5914    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5915    ;;
5916  *)
5917    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5918    ;;
5919  esac
5920  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5921fi
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956# If no C compiler was specified, use CC.
5957LTCC=${LTCC-"$CC"}
5958
5959# If no C compiler flags were specified, use CFLAGS.
5960LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5961
5962# Allow CC to be a program name with arguments.
5963compiler=$CC
5964
5965
5966# Check for command to grab the raw symbol name followed by C symbol from nm.
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5968$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5969if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5970  $as_echo_n "(cached) " >&6
5971else
5972
5973# These are sane defaults that work on at least a few old systems.
5974# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5975
5976# Character class describing NM global symbol codes.
5977symcode='[BCDEGRST]'
5978
5979# Regexp to match symbols that can be accessed directly from C.
5980sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5981
5982# Define system-specific variables.
5983case $host_os in
5984aix*)
5985  symcode='[BCDT]'
5986  ;;
5987cygwin* | mingw* | pw32* | cegcc*)
5988  symcode='[ABCDGISTW]'
5989  ;;
5990hpux*)
5991  if test "$host_cpu" = ia64; then
5992    symcode='[ABCDEGRST]'
5993  fi
5994  ;;
5995irix* | nonstopux*)
5996  symcode='[BCDEGRST]'
5997  ;;
5998osf*)
5999  symcode='[BCDEGQRST]'
6000  ;;
6001solaris*)
6002  symcode='[BDRT]'
6003  ;;
6004sco3.2v5*)
6005  symcode='[DT]'
6006  ;;
6007sysv4.2uw2*)
6008  symcode='[DT]'
6009  ;;
6010sysv5* | sco5v6* | unixware* | OpenUNIX*)
6011  symcode='[ABDT]'
6012  ;;
6013sysv4)
6014  symcode='[DFNSTU]'
6015  ;;
6016esac
6017
6018# If we're using GNU nm, then use its standard symbol codes.
6019case `$NM -V 2>&1` in
6020*GNU* | *'with BFD'*)
6021  symcode='[ABCDGIRSTW]' ;;
6022esac
6023
6024# Transform an extracted symbol line into a proper C declaration.
6025# Some systems (esp. on ia64) link data and code symbols differently,
6026# so use this general approach.
6027lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6028
6029# Transform an extracted symbol line into symbol name and symbol address
6030lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6031lt_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'"
6032
6033# Handle CRLF in mingw tool chain
6034opt_cr=
6035case $build_os in
6036mingw*)
6037  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6038  ;;
6039esac
6040
6041# Try without a prefix underscore, then with it.
6042for ac_symprfx in "" "_"; do
6043
6044  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6045  symxfrm="\\1 $ac_symprfx\\2 \\2"
6046
6047  # Write the raw and C identifiers.
6048  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6049    # Fake it for dumpbin and say T for any non-static function
6050    # and D for any global variable.
6051    # Also find C++ and __fastcall symbols from MSVC++,
6052    # which start with @ or ?.
6053    lt_cv_sys_global_symbol_pipe="$AWK '"\
6054"     {last_section=section; section=\$ 3};"\
6055"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6056"     \$ 0!~/External *\|/{next};"\
6057"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6058"     {if(hide[section]) next};"\
6059"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6060"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6061"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6062"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6063"     ' prfx=^$ac_symprfx"
6064  else
6065    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6066  fi
6067
6068  # Check to see that the pipe works correctly.
6069  pipe_works=no
6070
6071  rm -f conftest*
6072  cat > conftest.$ac_ext <<_LT_EOF
6073#ifdef __cplusplus
6074extern "C" {
6075#endif
6076char nm_test_var;
6077void nm_test_func(void);
6078void nm_test_func(void){}
6079#ifdef __cplusplus
6080}
6081#endif
6082int main(){nm_test_var='a';nm_test_func();return(0);}
6083_LT_EOF
6084
6085  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6086  (eval $ac_compile) 2>&5
6087  ac_status=$?
6088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089  test $ac_status = 0; }; then
6090    # Now try to grab the symbols.
6091    nlist=conftest.nm
6092    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6093  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6094  ac_status=$?
6095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096  test $ac_status = 0; } && test -s "$nlist"; then
6097      # Try sorting and uniquifying the output.
6098      if sort "$nlist" | uniq > "$nlist"T; then
6099	mv -f "$nlist"T "$nlist"
6100      else
6101	rm -f "$nlist"T
6102      fi
6103
6104      # Make sure that we snagged all the symbols we need.
6105      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6106	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6107	  cat <<_LT_EOF > conftest.$ac_ext
6108#ifdef __cplusplus
6109extern "C" {
6110#endif
6111
6112_LT_EOF
6113	  # Now generate the symbol file.
6114	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6115
6116	  cat <<_LT_EOF >> conftest.$ac_ext
6117
6118/* The mapping between symbol names and symbols.  */
6119const struct {
6120  const char *name;
6121  void       *address;
6122}
6123lt__PROGRAM__LTX_preloaded_symbols[] =
6124{
6125  { "@PROGRAM@", (void *) 0 },
6126_LT_EOF
6127	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6128	  cat <<\_LT_EOF >> conftest.$ac_ext
6129  {0, (void *) 0}
6130};
6131
6132/* This works around a problem in FreeBSD linker */
6133#ifdef FREEBSD_WORKAROUND
6134static const void *lt_preloaded_setup() {
6135  return lt__PROGRAM__LTX_preloaded_symbols;
6136}
6137#endif
6138
6139#ifdef __cplusplus
6140}
6141#endif
6142_LT_EOF
6143	  # Now try linking the two files.
6144	  mv conftest.$ac_objext conftstm.$ac_objext
6145	  lt_save_LIBS="$LIBS"
6146	  lt_save_CFLAGS="$CFLAGS"
6147	  LIBS="conftstm.$ac_objext"
6148	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6149	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6150  (eval $ac_link) 2>&5
6151  ac_status=$?
6152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6154	    pipe_works=yes
6155	  fi
6156	  LIBS="$lt_save_LIBS"
6157	  CFLAGS="$lt_save_CFLAGS"
6158	else
6159	  echo "cannot find nm_test_func in $nlist" >&5
6160	fi
6161      else
6162	echo "cannot find nm_test_var in $nlist" >&5
6163      fi
6164    else
6165      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6166    fi
6167  else
6168    echo "$progname: failed program was:" >&5
6169    cat conftest.$ac_ext >&5
6170  fi
6171  rm -rf conftest* conftst*
6172
6173  # Do not use the global_symbol_pipe unless it works.
6174  if test "$pipe_works" = yes; then
6175    break
6176  else
6177    lt_cv_sys_global_symbol_pipe=
6178  fi
6179done
6180
6181fi
6182
6183if test -z "$lt_cv_sys_global_symbol_pipe"; then
6184  lt_cv_sys_global_symbol_to_cdecl=
6185fi
6186if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6188$as_echo "failed" >&6; }
6189else
6190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6191$as_echo "ok" >&6; }
6192fi
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216# Check whether --enable-libtool-lock was given.
6217if test "${enable_libtool_lock+set}" = set; then :
6218  enableval=$enable_libtool_lock;
6219fi
6220
6221test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6222
6223# Some flags need to be propagated to the compiler or linker for good
6224# libtool support.
6225case $host in
6226ia64-*-hpux*)
6227  # Find out which ABI we are using.
6228  echo 'int i;' > conftest.$ac_ext
6229  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6230  (eval $ac_compile) 2>&5
6231  ac_status=$?
6232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233  test $ac_status = 0; }; then
6234    case `/usr/bin/file conftest.$ac_objext` in
6235      *ELF-32*)
6236	HPUX_IA64_MODE="32"
6237	;;
6238      *ELF-64*)
6239	HPUX_IA64_MODE="64"
6240	;;
6241    esac
6242  fi
6243  rm -rf conftest*
6244  ;;
6245*-*-irix6*)
6246  # Find out which ABI we are using.
6247  echo '#line 6247 "configure"' > conftest.$ac_ext
6248  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249  (eval $ac_compile) 2>&5
6250  ac_status=$?
6251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252  test $ac_status = 0; }; then
6253    if test "$lt_cv_prog_gnu_ld" = yes; then
6254      case `/usr/bin/file conftest.$ac_objext` in
6255	*32-bit*)
6256	  LD="${LD-ld} -melf32bsmip"
6257	  ;;
6258	*N32*)
6259	  LD="${LD-ld} -melf32bmipn32"
6260	  ;;
6261	*64-bit*)
6262	  LD="${LD-ld} -melf64bmip"
6263	;;
6264      esac
6265    else
6266      case `/usr/bin/file conftest.$ac_objext` in
6267	*32-bit*)
6268	  LD="${LD-ld} -32"
6269	  ;;
6270	*N32*)
6271	  LD="${LD-ld} -n32"
6272	  ;;
6273	*64-bit*)
6274	  LD="${LD-ld} -64"
6275	  ;;
6276      esac
6277    fi
6278  fi
6279  rm -rf conftest*
6280  ;;
6281
6282x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6283s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6284  # Find out which ABI we are using.
6285  echo 'int i;' > conftest.$ac_ext
6286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6287  (eval $ac_compile) 2>&5
6288  ac_status=$?
6289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6290  test $ac_status = 0; }; then
6291    case `/usr/bin/file conftest.o` in
6292      *32-bit*)
6293	case $host in
6294	  x86_64-*kfreebsd*-gnu)
6295	    LD="${LD-ld} -m elf_i386_fbsd"
6296	    ;;
6297	  x86_64-*linux*)
6298	    LD="${LD-ld} -m elf_i386"
6299	    ;;
6300	  ppc64-*linux*|powerpc64-*linux*)
6301	    LD="${LD-ld} -m elf32ppclinux"
6302	    ;;
6303	  s390x-*linux*)
6304	    LD="${LD-ld} -m elf_s390"
6305	    ;;
6306	  sparc64-*linux*)
6307	    LD="${LD-ld} -m elf32_sparc"
6308	    ;;
6309	esac
6310	;;
6311      *64-bit*)
6312	case $host in
6313	  x86_64-*kfreebsd*-gnu)
6314	    LD="${LD-ld} -m elf_x86_64_fbsd"
6315	    ;;
6316	  x86_64-*linux*)
6317	    LD="${LD-ld} -m elf_x86_64"
6318	    ;;
6319	  ppc*-*linux*|powerpc*-*linux*)
6320	    LD="${LD-ld} -m elf64ppc"
6321	    ;;
6322	  s390*-*linux*|s390*-*tpf*)
6323	    LD="${LD-ld} -m elf64_s390"
6324	    ;;
6325	  sparc*-*linux*)
6326	    LD="${LD-ld} -m elf64_sparc"
6327	    ;;
6328	esac
6329	;;
6330    esac
6331  fi
6332  rm -rf conftest*
6333  ;;
6334
6335*-*-sco3.2v5*)
6336  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6337  SAVE_CFLAGS="$CFLAGS"
6338  CFLAGS="$CFLAGS -belf"
6339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6340$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6341if test "${lt_cv_cc_needs_belf+set}" = set; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  ac_ext=c
6345ac_cpp='$CPP $CPPFLAGS'
6346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348ac_compiler_gnu=$ac_cv_c_compiler_gnu
6349
6350     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h.  */
6352
6353int
6354main ()
6355{
6356
6357  ;
6358  return 0;
6359}
6360_ACEOF
6361if ac_fn_c_try_link "$LINENO"; then :
6362  lt_cv_cc_needs_belf=yes
6363else
6364  lt_cv_cc_needs_belf=no
6365fi
6366rm -f core conftest.err conftest.$ac_objext \
6367    conftest$ac_exeext conftest.$ac_ext
6368     ac_ext=c
6369ac_cpp='$CPP $CPPFLAGS'
6370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6372ac_compiler_gnu=$ac_cv_c_compiler_gnu
6373
6374fi
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6376$as_echo "$lt_cv_cc_needs_belf" >&6; }
6377  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6378    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6379    CFLAGS="$SAVE_CFLAGS"
6380  fi
6381  ;;
6382sparc*-*solaris*)
6383  # Find out which ABI we are using.
6384  echo 'int i;' > conftest.$ac_ext
6385  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6386  (eval $ac_compile) 2>&5
6387  ac_status=$?
6388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389  test $ac_status = 0; }; then
6390    case `/usr/bin/file conftest.o` in
6391    *64-bit*)
6392      case $lt_cv_prog_gnu_ld in
6393      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6394      *)
6395	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6396	  LD="${LD-ld} -64"
6397	fi
6398	;;
6399      esac
6400      ;;
6401    esac
6402  fi
6403  rm -rf conftest*
6404  ;;
6405esac
6406
6407need_locks="$enable_libtool_lock"
6408
6409
6410  case $host_os in
6411    rhapsody* | darwin*)
6412    if test -n "$ac_tool_prefix"; then
6413  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6414set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416$as_echo_n "checking for $ac_word... " >&6; }
6417if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6418  $as_echo_n "(cached) " >&6
6419else
6420  if test -n "$DSYMUTIL"; then
6421  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426  IFS=$as_save_IFS
6427  test -z "$as_dir" && as_dir=.
6428    for ac_exec_ext in '' $ac_executable_extensions; do
6429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432    break 2
6433  fi
6434done
6435  done
6436IFS=$as_save_IFS
6437
6438fi
6439fi
6440DSYMUTIL=$ac_cv_prog_DSYMUTIL
6441if test -n "$DSYMUTIL"; then
6442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6443$as_echo "$DSYMUTIL" >&6; }
6444else
6445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; }
6447fi
6448
6449
6450fi
6451if test -z "$ac_cv_prog_DSYMUTIL"; then
6452  ac_ct_DSYMUTIL=$DSYMUTIL
6453  # Extract the first word of "dsymutil", so it can be a program name with args.
6454set dummy dsymutil; ac_word=$2
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456$as_echo_n "checking for $ac_word... " >&6; }
6457if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6458  $as_echo_n "(cached) " >&6
6459else
6460  if test -n "$ac_ct_DSYMUTIL"; then
6461  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6462else
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466  IFS=$as_save_IFS
6467  test -z "$as_dir" && as_dir=.
6468    for ac_exec_ext in '' $ac_executable_extensions; do
6469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472    break 2
6473  fi
6474done
6475  done
6476IFS=$as_save_IFS
6477
6478fi
6479fi
6480ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6481if test -n "$ac_ct_DSYMUTIL"; then
6482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6483$as_echo "$ac_ct_DSYMUTIL" >&6; }
6484else
6485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486$as_echo "no" >&6; }
6487fi
6488
6489  if test "x$ac_ct_DSYMUTIL" = x; then
6490    DSYMUTIL=":"
6491  else
6492    case $cross_compiling:$ac_tool_warned in
6493yes:)
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496ac_tool_warned=yes ;;
6497esac
6498    DSYMUTIL=$ac_ct_DSYMUTIL
6499  fi
6500else
6501  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6502fi
6503
6504    if test -n "$ac_tool_prefix"; then
6505  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6506set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508$as_echo_n "checking for $ac_word... " >&6; }
6509if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6510  $as_echo_n "(cached) " >&6
6511else
6512  if test -n "$NMEDIT"; then
6513  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6514else
6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518  IFS=$as_save_IFS
6519  test -z "$as_dir" && as_dir=.
6520    for ac_exec_ext in '' $ac_executable_extensions; do
6521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524    break 2
6525  fi
6526done
6527  done
6528IFS=$as_save_IFS
6529
6530fi
6531fi
6532NMEDIT=$ac_cv_prog_NMEDIT
6533if test -n "$NMEDIT"; then
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6535$as_echo "$NMEDIT" >&6; }
6536else
6537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538$as_echo "no" >&6; }
6539fi
6540
6541
6542fi
6543if test -z "$ac_cv_prog_NMEDIT"; then
6544  ac_ct_NMEDIT=$NMEDIT
6545  # Extract the first word of "nmedit", so it can be a program name with args.
6546set dummy nmedit; ac_word=$2
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548$as_echo_n "checking for $ac_word... " >&6; }
6549if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552  if test -n "$ac_ct_NMEDIT"; then
6553  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6554else
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558  IFS=$as_save_IFS
6559  test -z "$as_dir" && as_dir=.
6560    for ac_exec_ext in '' $ac_executable_extensions; do
6561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564    break 2
6565  fi
6566done
6567  done
6568IFS=$as_save_IFS
6569
6570fi
6571fi
6572ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6573if test -n "$ac_ct_NMEDIT"; then
6574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6575$as_echo "$ac_ct_NMEDIT" >&6; }
6576else
6577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578$as_echo "no" >&6; }
6579fi
6580
6581  if test "x$ac_ct_NMEDIT" = x; then
6582    NMEDIT=":"
6583  else
6584    case $cross_compiling:$ac_tool_warned in
6585yes:)
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588ac_tool_warned=yes ;;
6589esac
6590    NMEDIT=$ac_ct_NMEDIT
6591  fi
6592else
6593  NMEDIT="$ac_cv_prog_NMEDIT"
6594fi
6595
6596    if test -n "$ac_tool_prefix"; then
6597  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6598set dummy ${ac_tool_prefix}lipo; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
6601if test "${ac_cv_prog_LIPO+set}" = set; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  if test -n "$LIPO"; then
6605  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610  IFS=$as_save_IFS
6611  test -z "$as_dir" && as_dir=.
6612    for ac_exec_ext in '' $ac_executable_extensions; do
6613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616    break 2
6617  fi
6618done
6619  done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624LIPO=$ac_cv_prog_LIPO
6625if test -n "$LIPO"; then
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6627$as_echo "$LIPO" >&6; }
6628else
6629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633
6634fi
6635if test -z "$ac_cv_prog_LIPO"; then
6636  ac_ct_LIPO=$LIPO
6637  # Extract the first word of "lipo", so it can be a program name with args.
6638set dummy lipo; ac_word=$2
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640$as_echo_n "checking for $ac_word... " >&6; }
6641if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6642  $as_echo_n "(cached) " >&6
6643else
6644  if test -n "$ac_ct_LIPO"; then
6645  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6646else
6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648for as_dir in $PATH
6649do
6650  IFS=$as_save_IFS
6651  test -z "$as_dir" && as_dir=.
6652    for ac_exec_ext in '' $ac_executable_extensions; do
6653  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654    ac_cv_prog_ac_ct_LIPO="lipo"
6655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656    break 2
6657  fi
6658done
6659  done
6660IFS=$as_save_IFS
6661
6662fi
6663fi
6664ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6665if test -n "$ac_ct_LIPO"; then
6666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6667$as_echo "$ac_ct_LIPO" >&6; }
6668else
6669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670$as_echo "no" >&6; }
6671fi
6672
6673  if test "x$ac_ct_LIPO" = x; then
6674    LIPO=":"
6675  else
6676    case $cross_compiling:$ac_tool_warned in
6677yes:)
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680ac_tool_warned=yes ;;
6681esac
6682    LIPO=$ac_ct_LIPO
6683  fi
6684else
6685  LIPO="$ac_cv_prog_LIPO"
6686fi
6687
6688    if test -n "$ac_tool_prefix"; then
6689  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6690set dummy ${ac_tool_prefix}otool; ac_word=$2
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692$as_echo_n "checking for $ac_word... " >&6; }
6693if test "${ac_cv_prog_OTOOL+set}" = set; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  if test -n "$OTOOL"; then
6697  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6698else
6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702  IFS=$as_save_IFS
6703  test -z "$as_dir" && as_dir=.
6704    for ac_exec_ext in '' $ac_executable_extensions; do
6705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708    break 2
6709  fi
6710done
6711  done
6712IFS=$as_save_IFS
6713
6714fi
6715fi
6716OTOOL=$ac_cv_prog_OTOOL
6717if test -n "$OTOOL"; then
6718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6719$as_echo "$OTOOL" >&6; }
6720else
6721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722$as_echo "no" >&6; }
6723fi
6724
6725
6726fi
6727if test -z "$ac_cv_prog_OTOOL"; then
6728  ac_ct_OTOOL=$OTOOL
6729  # Extract the first word of "otool", so it can be a program name with args.
6730set dummy otool; ac_word=$2
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732$as_echo_n "checking for $ac_word... " >&6; }
6733if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6734  $as_echo_n "(cached) " >&6
6735else
6736  if test -n "$ac_ct_OTOOL"; then
6737  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6738else
6739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742  IFS=$as_save_IFS
6743  test -z "$as_dir" && as_dir=.
6744    for ac_exec_ext in '' $ac_executable_extensions; do
6745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746    ac_cv_prog_ac_ct_OTOOL="otool"
6747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748    break 2
6749  fi
6750done
6751  done
6752IFS=$as_save_IFS
6753
6754fi
6755fi
6756ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6757if test -n "$ac_ct_OTOOL"; then
6758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6759$as_echo "$ac_ct_OTOOL" >&6; }
6760else
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762$as_echo "no" >&6; }
6763fi
6764
6765  if test "x$ac_ct_OTOOL" = x; then
6766    OTOOL=":"
6767  else
6768    case $cross_compiling:$ac_tool_warned in
6769yes:)
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772ac_tool_warned=yes ;;
6773esac
6774    OTOOL=$ac_ct_OTOOL
6775  fi
6776else
6777  OTOOL="$ac_cv_prog_OTOOL"
6778fi
6779
6780    if test -n "$ac_tool_prefix"; then
6781  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6782set dummy ${ac_tool_prefix}otool64; ac_word=$2
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784$as_echo_n "checking for $ac_word... " >&6; }
6785if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6786  $as_echo_n "(cached) " >&6
6787else
6788  if test -n "$OTOOL64"; then
6789  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794  IFS=$as_save_IFS
6795  test -z "$as_dir" && as_dir=.
6796    for ac_exec_ext in '' $ac_executable_extensions; do
6797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800    break 2
6801  fi
6802done
6803  done
6804IFS=$as_save_IFS
6805
6806fi
6807fi
6808OTOOL64=$ac_cv_prog_OTOOL64
6809if test -n "$OTOOL64"; then
6810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6811$as_echo "$OTOOL64" >&6; }
6812else
6813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814$as_echo "no" >&6; }
6815fi
6816
6817
6818fi
6819if test -z "$ac_cv_prog_OTOOL64"; then
6820  ac_ct_OTOOL64=$OTOOL64
6821  # Extract the first word of "otool64", so it can be a program name with args.
6822set dummy otool64; ac_word=$2
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824$as_echo_n "checking for $ac_word... " >&6; }
6825if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6826  $as_echo_n "(cached) " >&6
6827else
6828  if test -n "$ac_ct_OTOOL64"; then
6829  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6830else
6831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834  IFS=$as_save_IFS
6835  test -z "$as_dir" && as_dir=.
6836    for ac_exec_ext in '' $ac_executable_extensions; do
6837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838    ac_cv_prog_ac_ct_OTOOL64="otool64"
6839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840    break 2
6841  fi
6842done
6843  done
6844IFS=$as_save_IFS
6845
6846fi
6847fi
6848ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6849if test -n "$ac_ct_OTOOL64"; then
6850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6851$as_echo "$ac_ct_OTOOL64" >&6; }
6852else
6853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854$as_echo "no" >&6; }
6855fi
6856
6857  if test "x$ac_ct_OTOOL64" = x; then
6858    OTOOL64=":"
6859  else
6860    case $cross_compiling:$ac_tool_warned in
6861yes:)
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864ac_tool_warned=yes ;;
6865esac
6866    OTOOL64=$ac_ct_OTOOL64
6867  fi
6868else
6869  OTOOL64="$ac_cv_prog_OTOOL64"
6870fi
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6899$as_echo_n "checking for -single_module linker flag... " >&6; }
6900if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6901  $as_echo_n "(cached) " >&6
6902else
6903  lt_cv_apple_cc_single_mod=no
6904      if test -z "${LT_MULTI_MODULE}"; then
6905	# By default we will add the -single_module flag. You can override
6906	# by either setting the environment variable LT_MULTI_MODULE
6907	# non-empty at configure time, or by adding -multi_module to the
6908	# link flags.
6909	rm -rf libconftest.dylib*
6910	echo "int foo(void){return 1;}" > conftest.c
6911	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6912-dynamiclib -Wl,-single_module conftest.c" >&5
6913	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6914	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6915        _lt_result=$?
6916	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6917	  lt_cv_apple_cc_single_mod=yes
6918	else
6919	  cat conftest.err >&5
6920	fi
6921	rm -rf libconftest.dylib*
6922	rm -f conftest.*
6923      fi
6924fi
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6926$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6927    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6928$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6929if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  lt_cv_ld_exported_symbols_list=no
6933      save_LDFLAGS=$LDFLAGS
6934      echo "_main" > conftest.sym
6935      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6936      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938
6939int
6940main ()
6941{
6942
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947if ac_fn_c_try_link "$LINENO"; then :
6948  lt_cv_ld_exported_symbols_list=yes
6949else
6950  lt_cv_ld_exported_symbols_list=no
6951fi
6952rm -f core conftest.err conftest.$ac_objext \
6953    conftest$ac_exeext conftest.$ac_ext
6954	LDFLAGS="$save_LDFLAGS"
6955
6956fi
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6958$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6959    case $host_os in
6960    rhapsody* | darwin1.[012])
6961      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6962    darwin1.*)
6963      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6964    darwin*) # darwin 5.x on
6965      # if running on 10.5 or later, the deployment target defaults
6966      # to the OS version, if on x86, and 10.4, the deployment
6967      # target defaults to 10.4. Don't you love it?
6968      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6969	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6970	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6971	10.[012]*)
6972	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6973	10.*)
6974	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6975      esac
6976    ;;
6977  esac
6978    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6979      _lt_dar_single_mod='$single_module'
6980    fi
6981    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6982      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6983    else
6984      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6985    fi
6986    if test "$DSYMUTIL" != ":"; then
6987      _lt_dsymutil='~$DSYMUTIL $lib || :'
6988    else
6989      _lt_dsymutil=
6990    fi
6991    ;;
6992  esac
6993
6994ac_ext=c
6995ac_cpp='$CPP $CPPFLAGS'
6996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998ac_compiler_gnu=$ac_cv_c_compiler_gnu
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7000$as_echo_n "checking how to run the C preprocessor... " >&6; }
7001# On Suns, sometimes $CPP names a directory.
7002if test -n "$CPP" && test -d "$CPP"; then
7003  CPP=
7004fi
7005if test -z "$CPP"; then
7006  if test "${ac_cv_prog_CPP+set}" = set; then :
7007  $as_echo_n "(cached) " >&6
7008else
7009      # Double quotes because CPP needs to be expanded
7010    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7011    do
7012      ac_preproc_ok=false
7013for ac_c_preproc_warn_flag in '' yes
7014do
7015  # Use a header file that comes with gcc, so configuring glibc
7016  # with a fresh cross-compiler works.
7017  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7018  # <limits.h> exists even on freestanding compilers.
7019  # On the NeXT, cc -E runs the code through the compiler's parser,
7020  # not just through cpp. "Syntax error" is here to catch this case.
7021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h.  */
7023#ifdef __STDC__
7024# include <limits.h>
7025#else
7026# include <assert.h>
7027#endif
7028		     Syntax error
7029_ACEOF
7030if ac_fn_c_try_cpp "$LINENO"; then :
7031
7032else
7033  # Broken: fails on valid input.
7034continue
7035fi
7036rm -f conftest.err conftest.$ac_ext
7037
7038  # OK, works on sane cases.  Now check whether nonexistent headers
7039  # can be detected and how.
7040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041/* end confdefs.h.  */
7042#include <ac_nonexistent.h>
7043_ACEOF
7044if ac_fn_c_try_cpp "$LINENO"; then :
7045  # Broken: success on invalid input.
7046continue
7047else
7048  # Passes both tests.
7049ac_preproc_ok=:
7050break
7051fi
7052rm -f conftest.err conftest.$ac_ext
7053
7054done
7055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7056rm -f conftest.err conftest.$ac_ext
7057if $ac_preproc_ok; then :
7058  break
7059fi
7060
7061    done
7062    ac_cv_prog_CPP=$CPP
7063
7064fi
7065  CPP=$ac_cv_prog_CPP
7066else
7067  ac_cv_prog_CPP=$CPP
7068fi
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7070$as_echo "$CPP" >&6; }
7071ac_preproc_ok=false
7072for ac_c_preproc_warn_flag in '' yes
7073do
7074  # Use a header file that comes with gcc, so configuring glibc
7075  # with a fresh cross-compiler works.
7076  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7077  # <limits.h> exists even on freestanding compilers.
7078  # On the NeXT, cc -E runs the code through the compiler's parser,
7079  # not just through cpp. "Syntax error" is here to catch this case.
7080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h.  */
7082#ifdef __STDC__
7083# include <limits.h>
7084#else
7085# include <assert.h>
7086#endif
7087		     Syntax error
7088_ACEOF
7089if ac_fn_c_try_cpp "$LINENO"; then :
7090
7091else
7092  # Broken: fails on valid input.
7093continue
7094fi
7095rm -f conftest.err conftest.$ac_ext
7096
7097  # OK, works on sane cases.  Now check whether nonexistent headers
7098  # can be detected and how.
7099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100/* end confdefs.h.  */
7101#include <ac_nonexistent.h>
7102_ACEOF
7103if ac_fn_c_try_cpp "$LINENO"; then :
7104  # Broken: success on invalid input.
7105continue
7106else
7107  # Passes both tests.
7108ac_preproc_ok=:
7109break
7110fi
7111rm -f conftest.err conftest.$ac_ext
7112
7113done
7114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7115rm -f conftest.err conftest.$ac_ext
7116if $ac_preproc_ok; then :
7117
7118else
7119  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7121as_fn_error "C preprocessor \"$CPP\" fails sanity check
7122See \`config.log' for more details." "$LINENO" 5; }
7123fi
7124
7125ac_ext=c
7126ac_cpp='$CPP $CPPFLAGS'
7127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7133$as_echo_n "checking for ANSI C header files... " >&6; }
7134if test "${ac_cv_header_stdc+set}" = set; then :
7135  $as_echo_n "(cached) " >&6
7136else
7137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138/* end confdefs.h.  */
7139#include <stdlib.h>
7140#include <stdarg.h>
7141#include <string.h>
7142#include <float.h>
7143
7144int
7145main ()
7146{
7147
7148  ;
7149  return 0;
7150}
7151_ACEOF
7152if ac_fn_c_try_compile "$LINENO"; then :
7153  ac_cv_header_stdc=yes
7154else
7155  ac_cv_header_stdc=no
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158
7159if test $ac_cv_header_stdc = yes; then
7160  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162/* end confdefs.h.  */
7163#include <string.h>
7164
7165_ACEOF
7166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7167  $EGREP "memchr" >/dev/null 2>&1; then :
7168
7169else
7170  ac_cv_header_stdc=no
7171fi
7172rm -f conftest*
7173
7174fi
7175
7176if test $ac_cv_header_stdc = yes; then
7177  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180#include <stdlib.h>
7181
7182_ACEOF
7183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7184  $EGREP "free" >/dev/null 2>&1; then :
7185
7186else
7187  ac_cv_header_stdc=no
7188fi
7189rm -f conftest*
7190
7191fi
7192
7193if test $ac_cv_header_stdc = yes; then
7194  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7195  if test "$cross_compiling" = yes; then :
7196  :
7197else
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200#include <ctype.h>
7201#include <stdlib.h>
7202#if ((' ' & 0x0FF) == 0x020)
7203# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7204# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7205#else
7206# define ISLOWER(c) \
7207		   (('a' <= (c) && (c) <= 'i') \
7208		     || ('j' <= (c) && (c) <= 'r') \
7209		     || ('s' <= (c) && (c) <= 'z'))
7210# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7211#endif
7212
7213#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7214int
7215main ()
7216{
7217  int i;
7218  for (i = 0; i < 256; i++)
7219    if (XOR (islower (i), ISLOWER (i))
7220	|| toupper (i) != TOUPPER (i))
7221      return 2;
7222  return 0;
7223}
7224_ACEOF
7225if ac_fn_c_try_run "$LINENO"; then :
7226
7227else
7228  ac_cv_header_stdc=no
7229fi
7230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7231  conftest.$ac_objext conftest.beam conftest.$ac_ext
7232fi
7233
7234fi
7235fi
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7237$as_echo "$ac_cv_header_stdc" >&6; }
7238if test $ac_cv_header_stdc = yes; then
7239
7240$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7241
7242fi
7243
7244# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7245for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7246		  inttypes.h stdint.h unistd.h
7247do :
7248  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7249ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7250"
7251eval as_val=\$$as_ac_Header
7252   if test "x$as_val" = x""yes; then :
7253  cat >>confdefs.h <<_ACEOF
7254#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7255_ACEOF
7256
7257fi
7258
7259done
7260
7261
7262for ac_header in dlfcn.h
7263do :
7264  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7265"
7266if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7267  cat >>confdefs.h <<_ACEOF
7268#define HAVE_DLFCN_H 1
7269_ACEOF
7270
7271fi
7272
7273done
7274
7275
7276
7277ac_ext=cpp
7278ac_cpp='$CXXCPP $CPPFLAGS'
7279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7282if test -z "$CXX"; then
7283  if test -n "$CCC"; then
7284    CXX=$CCC
7285  else
7286    if test -n "$ac_tool_prefix"; then
7287  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7288  do
7289    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292$as_echo_n "checking for $ac_word... " >&6; }
7293if test "${ac_cv_prog_CXX+set}" = set; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  if test -n "$CXX"; then
7297  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7298else
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302  IFS=$as_save_IFS
7303  test -z "$as_dir" && as_dir=.
7304    for ac_exec_ext in '' $ac_executable_extensions; do
7305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308    break 2
7309  fi
7310done
7311  done
7312IFS=$as_save_IFS
7313
7314fi
7315fi
7316CXX=$ac_cv_prog_CXX
7317if test -n "$CXX"; then
7318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7319$as_echo "$CXX" >&6; }
7320else
7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322$as_echo "no" >&6; }
7323fi
7324
7325
7326    test -n "$CXX" && break
7327  done
7328fi
7329if test -z "$CXX"; then
7330  ac_ct_CXX=$CXX
7331  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7332do
7333  # Extract the first word of "$ac_prog", so it can be a program name with args.
7334set dummy $ac_prog; ac_word=$2
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
7337if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  if test -n "$ac_ct_CXX"; then
7341  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346  IFS=$as_save_IFS
7347  test -z "$as_dir" && as_dir=.
7348    for ac_exec_ext in '' $ac_executable_extensions; do
7349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350    ac_cv_prog_ac_ct_CXX="$ac_prog"
7351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352    break 2
7353  fi
7354done
7355  done
7356IFS=$as_save_IFS
7357
7358fi
7359fi
7360ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7361if test -n "$ac_ct_CXX"; then
7362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7363$as_echo "$ac_ct_CXX" >&6; }
7364else
7365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366$as_echo "no" >&6; }
7367fi
7368
7369
7370  test -n "$ac_ct_CXX" && break
7371done
7372
7373  if test "x$ac_ct_CXX" = x; then
7374    CXX="g++"
7375  else
7376    case $cross_compiling:$ac_tool_warned in
7377yes:)
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380ac_tool_warned=yes ;;
7381esac
7382    CXX=$ac_ct_CXX
7383  fi
7384fi
7385
7386  fi
7387fi
7388# Provide some information about the compiler.
7389$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7390set X $ac_compile
7391ac_compiler=$2
7392for ac_option in --version -v -V -qversion; do
7393  { { ac_try="$ac_compiler $ac_option >&5"
7394case "(($ac_try" in
7395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396  *) ac_try_echo=$ac_try;;
7397esac
7398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7399$as_echo "$ac_try_echo"; } >&5
7400  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7401  ac_status=$?
7402  if test -s conftest.err; then
7403    sed '10a\
7404... rest of stderr output deleted ...
7405         10q' conftest.err >conftest.er1
7406    cat conftest.er1 >&5
7407  fi
7408  rm -f conftest.er1 conftest.err
7409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410  test $ac_status = 0; }
7411done
7412
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7414$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7415if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7416  $as_echo_n "(cached) " >&6
7417else
7418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419/* end confdefs.h.  */
7420
7421int
7422main ()
7423{
7424#ifndef __GNUC__
7425       choke me
7426#endif
7427
7428  ;
7429  return 0;
7430}
7431_ACEOF
7432if ac_fn_cxx_try_compile "$LINENO"; then :
7433  ac_compiler_gnu=yes
7434else
7435  ac_compiler_gnu=no
7436fi
7437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7439
7440fi
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7442$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7443if test $ac_compiler_gnu = yes; then
7444  GXX=yes
7445else
7446  GXX=
7447fi
7448ac_test_CXXFLAGS=${CXXFLAGS+set}
7449ac_save_CXXFLAGS=$CXXFLAGS
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7451$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7452if test "${ac_cv_prog_cxx_g+set}" = set; then :
7453  $as_echo_n "(cached) " >&6
7454else
7455  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7456   ac_cxx_werror_flag=yes
7457   ac_cv_prog_cxx_g=no
7458   CXXFLAGS="-g"
7459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461
7462int
7463main ()
7464{
7465
7466  ;
7467  return 0;
7468}
7469_ACEOF
7470if ac_fn_cxx_try_compile "$LINENO"; then :
7471  ac_cv_prog_cxx_g=yes
7472else
7473  CXXFLAGS=""
7474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476
7477int
7478main ()
7479{
7480
7481  ;
7482  return 0;
7483}
7484_ACEOF
7485if ac_fn_cxx_try_compile "$LINENO"; then :
7486
7487else
7488  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7489	 CXXFLAGS="-g"
7490	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491/* end confdefs.h.  */
7492
7493int
7494main ()
7495{
7496
7497  ;
7498  return 0;
7499}
7500_ACEOF
7501if ac_fn_cxx_try_compile "$LINENO"; then :
7502  ac_cv_prog_cxx_g=yes
7503fi
7504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505fi
7506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507fi
7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7510fi
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7512$as_echo "$ac_cv_prog_cxx_g" >&6; }
7513if test "$ac_test_CXXFLAGS" = set; then
7514  CXXFLAGS=$ac_save_CXXFLAGS
7515elif test $ac_cv_prog_cxx_g = yes; then
7516  if test "$GXX" = yes; then
7517    CXXFLAGS="-g -O2"
7518  else
7519    CXXFLAGS="-g"
7520  fi
7521else
7522  if test "$GXX" = yes; then
7523    CXXFLAGS="-O2"
7524  else
7525    CXXFLAGS=
7526  fi
7527fi
7528ac_ext=c
7529ac_cpp='$CPP $CPPFLAGS'
7530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533
7534depcc="$CXX"  am_compiler_list=
7535
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7537$as_echo_n "checking dependency style of $depcc... " >&6; }
7538if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7539  $as_echo_n "(cached) " >&6
7540else
7541  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7542  # We make a subdir and do the tests there.  Otherwise we can end up
7543  # making bogus files that we don't know about and never remove.  For
7544  # instance it was reported that on HP-UX the gcc test will end up
7545  # making a dummy file named `D' -- because `-MD' means `put the output
7546  # in D'.
7547  mkdir conftest.dir
7548  # Copy depcomp to subdir because otherwise we won't find it if we're
7549  # using a relative directory.
7550  cp "$am_depcomp" conftest.dir
7551  cd conftest.dir
7552  # We will build objects and dependencies in a subdirectory because
7553  # it helps to detect inapplicable dependency modes.  For instance
7554  # both Tru64's cc and ICC support -MD to output dependencies as a
7555  # side effect of compilation, but ICC will put the dependencies in
7556  # the current directory while Tru64 will put them in the object
7557  # directory.
7558  mkdir sub
7559
7560  am_cv_CXX_dependencies_compiler_type=none
7561  if test "$am_compiler_list" = ""; then
7562     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7563  fi
7564  am__universal=false
7565  case " $depcc " in #(
7566     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7567     esac
7568
7569  for depmode in $am_compiler_list; do
7570    # Setup a source with many dependencies, because some compilers
7571    # like to wrap large dependency lists on column 80 (with \), and
7572    # we should not choose a depcomp mode which is confused by this.
7573    #
7574    # We need to recreate these files for each test, as the compiler may
7575    # overwrite some of them when testing with obscure command lines.
7576    # This happens at least with the AIX C compiler.
7577    : > sub/conftest.c
7578    for i in 1 2 3 4 5 6; do
7579      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7580      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7581      # Solaris 8's {/usr,}/bin/sh.
7582      touch sub/conftst$i.h
7583    done
7584    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7585
7586    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7587    # mode.  It turns out that the SunPro C++ compiler does not properly
7588    # handle `-M -o', and we need to detect this.  Also, some Intel
7589    # versions had trouble with output in subdirs
7590    am__obj=sub/conftest.${OBJEXT-o}
7591    am__minus_obj="-o $am__obj"
7592    case $depmode in
7593    gcc)
7594      # This depmode causes a compiler race in universal mode.
7595      test "$am__universal" = false || continue
7596      ;;
7597    nosideeffect)
7598      # after this tag, mechanisms are not by side-effect, so they'll
7599      # only be used when explicitly requested
7600      if test "x$enable_dependency_tracking" = xyes; then
7601	continue
7602      else
7603	break
7604      fi
7605      ;;
7606    msvisualcpp | msvcmsys)
7607      # This compiler won't grok `-c -o', but also, the minuso test has
7608      # not run yet.  These depmodes are late enough in the game, and
7609      # so weak that their functioning should not be impacted.
7610      am__obj=conftest.${OBJEXT-o}
7611      am__minus_obj=
7612      ;;
7613    none) break ;;
7614    esac
7615    if depmode=$depmode \
7616       source=sub/conftest.c object=$am__obj \
7617       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7618       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7619         >/dev/null 2>conftest.err &&
7620       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7621       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7622       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7623       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7624      # icc doesn't choke on unknown options, it will just issue warnings
7625      # or remarks (even with -Werror).  So we grep stderr for any message
7626      # that says an option was ignored or not supported.
7627      # When given -MP, icc 7.0 and 7.1 complain thusly:
7628      #   icc: Command line warning: ignoring option '-M'; no argument required
7629      # The diagnosis changed in icc 8.0:
7630      #   icc: Command line remark: option '-MP' not supported
7631      if (grep 'ignoring option' conftest.err ||
7632          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7633        am_cv_CXX_dependencies_compiler_type=$depmode
7634        break
7635      fi
7636    fi
7637  done
7638
7639  cd ..
7640  rm -rf conftest.dir
7641else
7642  am_cv_CXX_dependencies_compiler_type=none
7643fi
7644
7645fi
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7647$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7648CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7649
7650 if
7651  test "x$enable_dependency_tracking" != xno \
7652  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7653  am__fastdepCXX_TRUE=
7654  am__fastdepCXX_FALSE='#'
7655else
7656  am__fastdepCXX_TRUE='#'
7657  am__fastdepCXX_FALSE=
7658fi
7659
7660
7661if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7662    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7663    (test "X$CXX" != "Xg++"))) ; then
7664  ac_ext=cpp
7665ac_cpp='$CXXCPP $CPPFLAGS'
7666ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7670$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7671if test -z "$CXXCPP"; then
7672  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675      # Double quotes because CXXCPP needs to be expanded
7676    for CXXCPP in "$CXX -E" "/lib/cpp"
7677    do
7678      ac_preproc_ok=false
7679for ac_cxx_preproc_warn_flag in '' yes
7680do
7681  # Use a header file that comes with gcc, so configuring glibc
7682  # with a fresh cross-compiler works.
7683  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7684  # <limits.h> exists even on freestanding compilers.
7685  # On the NeXT, cc -E runs the code through the compiler's parser,
7686  # not just through cpp. "Syntax error" is here to catch this case.
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689#ifdef __STDC__
7690# include <limits.h>
7691#else
7692# include <assert.h>
7693#endif
7694		     Syntax error
7695_ACEOF
7696if ac_fn_cxx_try_cpp "$LINENO"; then :
7697
7698else
7699  # Broken: fails on valid input.
7700continue
7701fi
7702rm -f conftest.err conftest.$ac_ext
7703
7704  # OK, works on sane cases.  Now check whether nonexistent headers
7705  # can be detected and how.
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708#include <ac_nonexistent.h>
7709_ACEOF
7710if ac_fn_cxx_try_cpp "$LINENO"; then :
7711  # Broken: success on invalid input.
7712continue
7713else
7714  # Passes both tests.
7715ac_preproc_ok=:
7716break
7717fi
7718rm -f conftest.err conftest.$ac_ext
7719
7720done
7721# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7722rm -f conftest.err conftest.$ac_ext
7723if $ac_preproc_ok; then :
7724  break
7725fi
7726
7727    done
7728    ac_cv_prog_CXXCPP=$CXXCPP
7729
7730fi
7731  CXXCPP=$ac_cv_prog_CXXCPP
7732else
7733  ac_cv_prog_CXXCPP=$CXXCPP
7734fi
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7736$as_echo "$CXXCPP" >&6; }
7737ac_preproc_ok=false
7738for ac_cxx_preproc_warn_flag in '' yes
7739do
7740  # Use a header file that comes with gcc, so configuring glibc
7741  # with a fresh cross-compiler works.
7742  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7743  # <limits.h> exists even on freestanding compilers.
7744  # On the NeXT, cc -E runs the code through the compiler's parser,
7745  # not just through cpp. "Syntax error" is here to catch this case.
7746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h.  */
7748#ifdef __STDC__
7749# include <limits.h>
7750#else
7751# include <assert.h>
7752#endif
7753		     Syntax error
7754_ACEOF
7755if ac_fn_cxx_try_cpp "$LINENO"; then :
7756
7757else
7758  # Broken: fails on valid input.
7759continue
7760fi
7761rm -f conftest.err conftest.$ac_ext
7762
7763  # OK, works on sane cases.  Now check whether nonexistent headers
7764  # can be detected and how.
7765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h.  */
7767#include <ac_nonexistent.h>
7768_ACEOF
7769if ac_fn_cxx_try_cpp "$LINENO"; then :
7770  # Broken: success on invalid input.
7771continue
7772else
7773  # Passes both tests.
7774ac_preproc_ok=:
7775break
7776fi
7777rm -f conftest.err conftest.$ac_ext
7778
7779done
7780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7781rm -f conftest.err conftest.$ac_ext
7782if $ac_preproc_ok; then :
7783
7784else
7785  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7787_lt_caught_CXX_error=yes; }
7788fi
7789
7790ac_ext=c
7791ac_cpp='$CPP $CPPFLAGS'
7792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7794ac_compiler_gnu=$ac_cv_c_compiler_gnu
7795
7796else
7797  _lt_caught_CXX_error=yes
7798fi
7799
7800
7801
7802
7803
7804# Set options
7805
7806
7807
7808        enable_dlopen=no
7809
7810
7811  enable_win32_dll=no
7812
7813
7814            # Check whether --enable-shared was given.
7815if test "${enable_shared+set}" = set; then :
7816  enableval=$enable_shared; p=${PACKAGE-default}
7817    case $enableval in
7818    yes) enable_shared=yes ;;
7819    no) enable_shared=no ;;
7820    *)
7821      enable_shared=no
7822      # Look at the argument we got.  We use all the common list separators.
7823      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7824      for pkg in $enableval; do
7825	IFS="$lt_save_ifs"
7826	if test "X$pkg" = "X$p"; then
7827	  enable_shared=yes
7828	fi
7829      done
7830      IFS="$lt_save_ifs"
7831      ;;
7832    esac
7833else
7834  enable_shared=yes
7835fi
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845  # Check whether --enable-static was given.
7846if test "${enable_static+set}" = set; then :
7847  enableval=$enable_static; p=${PACKAGE-default}
7848    case $enableval in
7849    yes) enable_static=yes ;;
7850    no) enable_static=no ;;
7851    *)
7852     enable_static=no
7853      # Look at the argument we got.  We use all the common list separators.
7854      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7855      for pkg in $enableval; do
7856	IFS="$lt_save_ifs"
7857	if test "X$pkg" = "X$p"; then
7858	  enable_static=yes
7859	fi
7860      done
7861      IFS="$lt_save_ifs"
7862      ;;
7863    esac
7864else
7865  enable_static=yes
7866fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877# Check whether --with-pic was given.
7878if test "${with_pic+set}" = set; then :
7879  withval=$with_pic; pic_mode="$withval"
7880else
7881  pic_mode=default
7882fi
7883
7884
7885test -z "$pic_mode" && pic_mode=default
7886
7887
7888
7889
7890
7891
7892
7893  # Check whether --enable-fast-install was given.
7894if test "${enable_fast_install+set}" = set; then :
7895  enableval=$enable_fast_install; p=${PACKAGE-default}
7896    case $enableval in
7897    yes) enable_fast_install=yes ;;
7898    no) enable_fast_install=no ;;
7899    *)
7900      enable_fast_install=no
7901      # Look at the argument we got.  We use all the common list separators.
7902      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7903      for pkg in $enableval; do
7904	IFS="$lt_save_ifs"
7905	if test "X$pkg" = "X$p"; then
7906	  enable_fast_install=yes
7907	fi
7908      done
7909      IFS="$lt_save_ifs"
7910      ;;
7911    esac
7912else
7913  enable_fast_install=yes
7914fi
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926# This can be used to rebuild libtool when needed
7927LIBTOOL_DEPS="$ltmain"
7928
7929# Always use our own libtool.
7930LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956test -z "$LN_S" && LN_S="ln -s"
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971if test -n "${ZSH_VERSION+set}" ; then
7972   setopt NO_GLOB_SUBST
7973fi
7974
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7976$as_echo_n "checking for objdir... " >&6; }
7977if test "${lt_cv_objdir+set}" = set; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  rm -f .libs 2>/dev/null
7981mkdir .libs 2>/dev/null
7982if test -d .libs; then
7983  lt_cv_objdir=.libs
7984else
7985  # MS-DOS does not allow filenames that begin with a dot.
7986  lt_cv_objdir=_libs
7987fi
7988rmdir .libs 2>/dev/null
7989fi
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7991$as_echo "$lt_cv_objdir" >&6; }
7992objdir=$lt_cv_objdir
7993
7994
7995
7996
7997
7998cat >>confdefs.h <<_ACEOF
7999#define LT_OBJDIR "$lt_cv_objdir/"
8000_ACEOF
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018case $host_os in
8019aix3*)
8020  # AIX sometimes has problems with the GCC collect2 program.  For some
8021  # reason, if we set the COLLECT_NAMES environment variable, the problems
8022  # vanish in a puff of smoke.
8023  if test "X${COLLECT_NAMES+set}" != Xset; then
8024    COLLECT_NAMES=
8025    export COLLECT_NAMES
8026  fi
8027  ;;
8028esac
8029
8030# Sed substitution that helps us do robust quoting.  It backslashifies
8031# metacharacters that are still active within double-quoted strings.
8032sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8033
8034# Same as above, but do not quote variable references.
8035double_quote_subst='s/\(["`\\]\)/\\\1/g'
8036
8037# Sed substitution to delay expansion of an escaped shell variable in a
8038# double_quote_subst'ed string.
8039delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8040
8041# Sed substitution to delay expansion of an escaped single quote.
8042delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8043
8044# Sed substitution to avoid accidental globbing in evaled expressions
8045no_glob_subst='s/\*/\\\*/g'
8046
8047# Global variables:
8048ofile=libtool
8049can_build_shared=yes
8050
8051# All known linkers require a `.a' archive for static linking (except MSVC,
8052# which needs '.lib').
8053libext=a
8054
8055with_gnu_ld="$lt_cv_prog_gnu_ld"
8056
8057old_CC="$CC"
8058old_CFLAGS="$CFLAGS"
8059
8060# Set sane defaults for various variables
8061test -z "$CC" && CC=cc
8062test -z "$LTCC" && LTCC=$CC
8063test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8064test -z "$LD" && LD=ld
8065test -z "$ac_objext" && ac_objext=o
8066
8067for cc_temp in $compiler""; do
8068  case $cc_temp in
8069    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8070    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8071    \-*) ;;
8072    *) break;;
8073  esac
8074done
8075cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8076
8077
8078# Only perform the check for file, if the check method requires it
8079test -z "$MAGIC_CMD" && MAGIC_CMD=file
8080case $deplibs_check_method in
8081file_magic*)
8082  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8084$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8085if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8086  $as_echo_n "(cached) " >&6
8087else
8088  case $MAGIC_CMD in
8089[\\/*] |  ?:[\\/]*)
8090  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8091  ;;
8092*)
8093  lt_save_MAGIC_CMD="$MAGIC_CMD"
8094  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8095  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8096  for ac_dir in $ac_dummy; do
8097    IFS="$lt_save_ifs"
8098    test -z "$ac_dir" && ac_dir=.
8099    if test -f $ac_dir/${ac_tool_prefix}file; then
8100      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8101      if test -n "$file_magic_test_file"; then
8102	case $deplibs_check_method in
8103	"file_magic "*)
8104	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8105	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8106	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8107	    $EGREP "$file_magic_regex" > /dev/null; then
8108	    :
8109	  else
8110	    cat <<_LT_EOF 1>&2
8111
8112*** Warning: the command libtool uses to detect shared libraries,
8113*** $file_magic_cmd, produces output that libtool cannot recognize.
8114*** The result is that libtool may fail to recognize shared libraries
8115*** as such.  This will affect the creation of libtool libraries that
8116*** depend on shared libraries, but programs linked with such libtool
8117*** libraries will work regardless of this problem.  Nevertheless, you
8118*** may want to report the problem to your system manager and/or to
8119*** bug-libtool@gnu.org
8120
8121_LT_EOF
8122	  fi ;;
8123	esac
8124      fi
8125      break
8126    fi
8127  done
8128  IFS="$lt_save_ifs"
8129  MAGIC_CMD="$lt_save_MAGIC_CMD"
8130  ;;
8131esac
8132fi
8133
8134MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8135if test -n "$MAGIC_CMD"; then
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8137$as_echo "$MAGIC_CMD" >&6; }
8138else
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
8141fi
8142
8143
8144
8145
8146
8147if test -z "$lt_cv_path_MAGIC_CMD"; then
8148  if test -n "$ac_tool_prefix"; then
8149    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8150$as_echo_n "checking for file... " >&6; }
8151if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8152  $as_echo_n "(cached) " >&6
8153else
8154  case $MAGIC_CMD in
8155[\\/*] |  ?:[\\/]*)
8156  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8157  ;;
8158*)
8159  lt_save_MAGIC_CMD="$MAGIC_CMD"
8160  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8161  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8162  for ac_dir in $ac_dummy; do
8163    IFS="$lt_save_ifs"
8164    test -z "$ac_dir" && ac_dir=.
8165    if test -f $ac_dir/file; then
8166      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8167      if test -n "$file_magic_test_file"; then
8168	case $deplibs_check_method in
8169	"file_magic "*)
8170	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8171	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8172	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8173	    $EGREP "$file_magic_regex" > /dev/null; then
8174	    :
8175	  else
8176	    cat <<_LT_EOF 1>&2
8177
8178*** Warning: the command libtool uses to detect shared libraries,
8179*** $file_magic_cmd, produces output that libtool cannot recognize.
8180*** The result is that libtool may fail to recognize shared libraries
8181*** as such.  This will affect the creation of libtool libraries that
8182*** depend on shared libraries, but programs linked with such libtool
8183*** libraries will work regardless of this problem.  Nevertheless, you
8184*** may want to report the problem to your system manager and/or to
8185*** bug-libtool@gnu.org
8186
8187_LT_EOF
8188	  fi ;;
8189	esac
8190      fi
8191      break
8192    fi
8193  done
8194  IFS="$lt_save_ifs"
8195  MAGIC_CMD="$lt_save_MAGIC_CMD"
8196  ;;
8197esac
8198fi
8199
8200MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8201if test -n "$MAGIC_CMD"; then
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8203$as_echo "$MAGIC_CMD" >&6; }
8204else
8205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
8207fi
8208
8209
8210  else
8211    MAGIC_CMD=:
8212  fi
8213fi
8214
8215  fi
8216  ;;
8217esac
8218
8219# Use C for the default configuration in the libtool script
8220
8221lt_save_CC="$CC"
8222ac_ext=c
8223ac_cpp='$CPP $CPPFLAGS'
8224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228
8229# Source file extension for C test sources.
8230ac_ext=c
8231
8232# Object file extension for compiled C test sources.
8233objext=o
8234objext=$objext
8235
8236# Code to be used in simple compile tests
8237lt_simple_compile_test_code="int some_variable = 0;"
8238
8239# Code to be used in simple link tests
8240lt_simple_link_test_code='int main(){return(0);}'
8241
8242
8243
8244
8245
8246
8247
8248# If no C compiler was specified, use CC.
8249LTCC=${LTCC-"$CC"}
8250
8251# If no C compiler flags were specified, use CFLAGS.
8252LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8253
8254# Allow CC to be a program name with arguments.
8255compiler=$CC
8256
8257# Save the default compiler, since it gets overwritten when the other
8258# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8259compiler_DEFAULT=$CC
8260
8261# save warnings/boilerplate of simple test code
8262ac_outfile=conftest.$ac_objext
8263echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8264eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8265_lt_compiler_boilerplate=`cat conftest.err`
8266$RM conftest*
8267
8268ac_outfile=conftest.$ac_objext
8269echo "$lt_simple_link_test_code" >conftest.$ac_ext
8270eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8271_lt_linker_boilerplate=`cat conftest.err`
8272$RM -r conftest*
8273
8274
8275if test -n "$compiler"; then
8276
8277lt_prog_compiler_no_builtin_flag=
8278
8279if test "$GCC" = yes; then
8280  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8281
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8283$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8284if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  lt_cv_prog_compiler_rtti_exceptions=no
8288   ac_outfile=conftest.$ac_objext
8289   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8290   lt_compiler_flag="-fno-rtti -fno-exceptions"
8291   # Insert the option either (1) after the last *FLAGS variable, or
8292   # (2) before a word containing "conftest.", or (3) at the end.
8293   # Note that $ac_compile itself does not contain backslashes and begins
8294   # with a dollar sign (not a hyphen), so the echo should work correctly.
8295   # The option is referenced via a variable to avoid confusing sed.
8296   lt_compile=`echo "$ac_compile" | $SED \
8297   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8298   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8299   -e 's:$: $lt_compiler_flag:'`
8300   (eval echo "\"\$as_me:8300: $lt_compile\"" >&5)
8301   (eval "$lt_compile" 2>conftest.err)
8302   ac_status=$?
8303   cat conftest.err >&5
8304   echo "$as_me:8304: \$? = $ac_status" >&5
8305   if (exit $ac_status) && test -s "$ac_outfile"; then
8306     # The compiler can only warn and ignore the option if not recognized
8307     # So say no if there are warnings other than the usual output.
8308     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8309     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8310     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8311       lt_cv_prog_compiler_rtti_exceptions=yes
8312     fi
8313   fi
8314   $RM conftest*
8315
8316fi
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8318$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8319
8320if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8321    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8322else
8323    :
8324fi
8325
8326fi
8327
8328
8329
8330
8331
8332
8333  lt_prog_compiler_wl=
8334lt_prog_compiler_pic=
8335lt_prog_compiler_static=
8336
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8338$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8339
8340  if test "$GCC" = yes; then
8341    lt_prog_compiler_wl='-Wl,'
8342    lt_prog_compiler_static='-static'
8343
8344    case $host_os in
8345      aix*)
8346      # All AIX code is PIC.
8347      if test "$host_cpu" = ia64; then
8348	# AIX 5 now supports IA64 processor
8349	lt_prog_compiler_static='-Bstatic'
8350      fi
8351      ;;
8352
8353    amigaos*)
8354      case $host_cpu in
8355      powerpc)
8356            # see comment about AmigaOS4 .so support
8357            lt_prog_compiler_pic='-fPIC'
8358        ;;
8359      m68k)
8360            # FIXME: we need at least 68020 code to build shared libraries, but
8361            # adding the `-m68020' flag to GCC prevents building anything better,
8362            # like `-m68040'.
8363            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8364        ;;
8365      esac
8366      ;;
8367
8368    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8369      # PIC is the default for these OSes.
8370      ;;
8371
8372    mingw* | cygwin* | pw32* | os2* | cegcc*)
8373      # This hack is so that the source file can tell whether it is being
8374      # built for inclusion in a dll (and should export symbols for example).
8375      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8376      # (--disable-auto-import) libraries
8377      lt_prog_compiler_pic='-DDLL_EXPORT'
8378      ;;
8379
8380    darwin* | rhapsody*)
8381      # PIC is the default on this platform
8382      # Common symbols not allowed in MH_DYLIB files
8383      lt_prog_compiler_pic='-fno-common'
8384      ;;
8385
8386    hpux*)
8387      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8388      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8389      # sets the default TLS model and affects inlining.
8390      case $host_cpu in
8391      hppa*64*)
8392	# +Z the default
8393	;;
8394      *)
8395	lt_prog_compiler_pic='-fPIC'
8396	;;
8397      esac
8398      ;;
8399
8400    interix[3-9]*)
8401      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8402      # Instead, we relocate shared libraries at runtime.
8403      ;;
8404
8405    msdosdjgpp*)
8406      # Just because we use GCC doesn't mean we suddenly get shared libraries
8407      # on systems that don't support them.
8408      lt_prog_compiler_can_build_shared=no
8409      enable_shared=no
8410      ;;
8411
8412    *nto* | *qnx*)
8413      # QNX uses GNU C++, but need to define -shared option too, otherwise
8414      # it will coredump.
8415      lt_prog_compiler_pic='-fPIC -shared'
8416      ;;
8417
8418    sysv4*MP*)
8419      if test -d /usr/nec; then
8420	lt_prog_compiler_pic=-Kconform_pic
8421      fi
8422      ;;
8423
8424    *)
8425      lt_prog_compiler_pic='-fPIC'
8426      ;;
8427    esac
8428  else
8429    # PORTME Check for flag to pass linker flags through the system compiler.
8430    case $host_os in
8431    aix*)
8432      lt_prog_compiler_wl='-Wl,'
8433      if test "$host_cpu" = ia64; then
8434	# AIX 5 now supports IA64 processor
8435	lt_prog_compiler_static='-Bstatic'
8436      else
8437	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8438      fi
8439      ;;
8440
8441    mingw* | cygwin* | pw32* | os2* | cegcc*)
8442      # This hack is so that the source file can tell whether it is being
8443      # built for inclusion in a dll (and should export symbols for example).
8444      lt_prog_compiler_pic='-DDLL_EXPORT'
8445      ;;
8446
8447    hpux9* | hpux10* | hpux11*)
8448      lt_prog_compiler_wl='-Wl,'
8449      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8450      # not for PA HP-UX.
8451      case $host_cpu in
8452      hppa*64*|ia64*)
8453	# +Z the default
8454	;;
8455      *)
8456	lt_prog_compiler_pic='+Z'
8457	;;
8458      esac
8459      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8460      lt_prog_compiler_static='${wl}-a ${wl}archive'
8461      ;;
8462
8463    irix5* | irix6* | nonstopux*)
8464      lt_prog_compiler_wl='-Wl,'
8465      # PIC (with -KPIC) is the default.
8466      lt_prog_compiler_static='-non_shared'
8467      ;;
8468
8469    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8470      case $cc_basename in
8471      # old Intel for x86_64 which still supported -KPIC.
8472      ecc*)
8473	lt_prog_compiler_wl='-Wl,'
8474	lt_prog_compiler_pic='-KPIC'
8475	lt_prog_compiler_static='-static'
8476        ;;
8477      # icc used to be incompatible with GCC.
8478      # ICC 10 doesn't accept -KPIC any more.
8479      icc* | ifort*)
8480	lt_prog_compiler_wl='-Wl,'
8481	lt_prog_compiler_pic='-fPIC'
8482	lt_prog_compiler_static='-static'
8483        ;;
8484      # Lahey Fortran 8.1.
8485      lf95*)
8486	lt_prog_compiler_wl='-Wl,'
8487	lt_prog_compiler_pic='--shared'
8488	lt_prog_compiler_static='--static'
8489	;;
8490      pgcc* | pgf77* | pgf90* | pgf95*)
8491        # Portland Group compilers (*not* the Pentium gcc compiler,
8492	# which looks to be a dead project)
8493	lt_prog_compiler_wl='-Wl,'
8494	lt_prog_compiler_pic='-fpic'
8495	lt_prog_compiler_static='-Bstatic'
8496        ;;
8497      ccc*)
8498        lt_prog_compiler_wl='-Wl,'
8499        # All Alpha code is PIC.
8500        lt_prog_compiler_static='-non_shared'
8501        ;;
8502      xl*)
8503	# IBM XL C 8.0/Fortran 10.1 on PPC
8504	lt_prog_compiler_wl='-Wl,'
8505	lt_prog_compiler_pic='-qpic'
8506	lt_prog_compiler_static='-qstaticlink'
8507	;;
8508      *)
8509	case `$CC -V 2>&1 | sed 5q` in
8510	*Sun\ C*)
8511	  # Sun C 5.9
8512	  lt_prog_compiler_pic='-KPIC'
8513	  lt_prog_compiler_static='-Bstatic'
8514	  lt_prog_compiler_wl='-Wl,'
8515	  ;;
8516	*Sun\ F*)
8517	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8518	  lt_prog_compiler_pic='-KPIC'
8519	  lt_prog_compiler_static='-Bstatic'
8520	  lt_prog_compiler_wl=''
8521	  ;;
8522	esac
8523	;;
8524      esac
8525      ;;
8526
8527    newsos6)
8528      lt_prog_compiler_pic='-KPIC'
8529      lt_prog_compiler_static='-Bstatic'
8530      ;;
8531
8532    *nto* | *qnx*)
8533      # QNX uses GNU C++, but need to define -shared option too, otherwise
8534      # it will coredump.
8535      lt_prog_compiler_pic='-fPIC -shared'
8536      ;;
8537
8538    osf3* | osf4* | osf5*)
8539      lt_prog_compiler_wl='-Wl,'
8540      # All OSF/1 code is PIC.
8541      lt_prog_compiler_static='-non_shared'
8542      ;;
8543
8544    rdos*)
8545      lt_prog_compiler_static='-non_shared'
8546      ;;
8547
8548    solaris*)
8549      lt_prog_compiler_pic='-KPIC'
8550      lt_prog_compiler_static='-Bstatic'
8551      case $cc_basename in
8552      f77* | f90* | f95*)
8553	lt_prog_compiler_wl='-Qoption ld ';;
8554      *)
8555	lt_prog_compiler_wl='-Wl,';;
8556      esac
8557      ;;
8558
8559    sunos4*)
8560      lt_prog_compiler_wl='-Qoption ld '
8561      lt_prog_compiler_pic='-PIC'
8562      lt_prog_compiler_static='-Bstatic'
8563      ;;
8564
8565    sysv4 | sysv4.2uw2* | sysv4.3*)
8566      lt_prog_compiler_wl='-Wl,'
8567      lt_prog_compiler_pic='-KPIC'
8568      lt_prog_compiler_static='-Bstatic'
8569      ;;
8570
8571    sysv4*MP*)
8572      if test -d /usr/nec ;then
8573	lt_prog_compiler_pic='-Kconform_pic'
8574	lt_prog_compiler_static='-Bstatic'
8575      fi
8576      ;;
8577
8578    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8579      lt_prog_compiler_wl='-Wl,'
8580      lt_prog_compiler_pic='-KPIC'
8581      lt_prog_compiler_static='-Bstatic'
8582      ;;
8583
8584    unicos*)
8585      lt_prog_compiler_wl='-Wl,'
8586      lt_prog_compiler_can_build_shared=no
8587      ;;
8588
8589    uts4*)
8590      lt_prog_compiler_pic='-pic'
8591      lt_prog_compiler_static='-Bstatic'
8592      ;;
8593
8594    *)
8595      lt_prog_compiler_can_build_shared=no
8596      ;;
8597    esac
8598  fi
8599
8600case $host_os in
8601  # For platforms which do not support PIC, -DPIC is meaningless:
8602  *djgpp*)
8603    lt_prog_compiler_pic=
8604    ;;
8605  *)
8606    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8607    ;;
8608esac
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8610$as_echo "$lt_prog_compiler_pic" >&6; }
8611
8612
8613
8614
8615
8616
8617#
8618# Check to make sure the PIC flag actually works.
8619#
8620if test -n "$lt_prog_compiler_pic"; then
8621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8622$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8623if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8624  $as_echo_n "(cached) " >&6
8625else
8626  lt_cv_prog_compiler_pic_works=no
8627   ac_outfile=conftest.$ac_objext
8628   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8629   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8630   # Insert the option either (1) after the last *FLAGS variable, or
8631   # (2) before a word containing "conftest.", or (3) at the end.
8632   # Note that $ac_compile itself does not contain backslashes and begins
8633   # with a dollar sign (not a hyphen), so the echo should work correctly.
8634   # The option is referenced via a variable to avoid confusing sed.
8635   lt_compile=`echo "$ac_compile" | $SED \
8636   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8637   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8638   -e 's:$: $lt_compiler_flag:'`
8639   (eval echo "\"\$as_me:8639: $lt_compile\"" >&5)
8640   (eval "$lt_compile" 2>conftest.err)
8641   ac_status=$?
8642   cat conftest.err >&5
8643   echo "$as_me:8643: \$? = $ac_status" >&5
8644   if (exit $ac_status) && test -s "$ac_outfile"; then
8645     # The compiler can only warn and ignore the option if not recognized
8646     # So say no if there are warnings other than the usual output.
8647     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8648     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8649     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8650       lt_cv_prog_compiler_pic_works=yes
8651     fi
8652   fi
8653   $RM conftest*
8654
8655fi
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8657$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8658
8659if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8660    case $lt_prog_compiler_pic in
8661     "" | " "*) ;;
8662     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8663     esac
8664else
8665    lt_prog_compiler_pic=
8666     lt_prog_compiler_can_build_shared=no
8667fi
8668
8669fi
8670
8671
8672
8673
8674
8675
8676#
8677# Check to make sure the static flag actually works.
8678#
8679wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8681$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8682if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  lt_cv_prog_compiler_static_works=no
8686   save_LDFLAGS="$LDFLAGS"
8687   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8688   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8689   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8690     # The linker can only warn and ignore the option if not recognized
8691     # So say no if there are warnings
8692     if test -s conftest.err; then
8693       # Append any errors to the config.log.
8694       cat conftest.err 1>&5
8695       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8696       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8697       if diff conftest.exp conftest.er2 >/dev/null; then
8698         lt_cv_prog_compiler_static_works=yes
8699       fi
8700     else
8701       lt_cv_prog_compiler_static_works=yes
8702     fi
8703   fi
8704   $RM -r conftest*
8705   LDFLAGS="$save_LDFLAGS"
8706
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8709$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8710
8711if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8712    :
8713else
8714    lt_prog_compiler_static=
8715fi
8716
8717
8718
8719
8720
8721
8722
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8724$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8725if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8726  $as_echo_n "(cached) " >&6
8727else
8728  lt_cv_prog_compiler_c_o=no
8729   $RM -r conftest 2>/dev/null
8730   mkdir conftest
8731   cd conftest
8732   mkdir out
8733   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8734
8735   lt_compiler_flag="-o out/conftest2.$ac_objext"
8736   # Insert the option either (1) after the last *FLAGS variable, or
8737   # (2) before a word containing "conftest.", or (3) at the end.
8738   # Note that $ac_compile itself does not contain backslashes and begins
8739   # with a dollar sign (not a hyphen), so the echo should work correctly.
8740   lt_compile=`echo "$ac_compile" | $SED \
8741   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8742   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743   -e 's:$: $lt_compiler_flag:'`
8744   (eval echo "\"\$as_me:8744: $lt_compile\"" >&5)
8745   (eval "$lt_compile" 2>out/conftest.err)
8746   ac_status=$?
8747   cat out/conftest.err >&5
8748   echo "$as_me:8748: \$? = $ac_status" >&5
8749   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8750   then
8751     # The compiler can only warn and ignore the option if not recognized
8752     # So say no if there are warnings
8753     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8754     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8755     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8756       lt_cv_prog_compiler_c_o=yes
8757     fi
8758   fi
8759   chmod u+w . 2>&5
8760   $RM conftest*
8761   # SGI C++ compiler will create directory out/ii_files/ for
8762   # template instantiation
8763   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8764   $RM out/* && rmdir out
8765   cd ..
8766   $RM -r conftest
8767   $RM conftest*
8768
8769fi
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8771$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8772
8773
8774
8775
8776
8777
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8779$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8780if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8781  $as_echo_n "(cached) " >&6
8782else
8783  lt_cv_prog_compiler_c_o=no
8784   $RM -r conftest 2>/dev/null
8785   mkdir conftest
8786   cd conftest
8787   mkdir out
8788   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8789
8790   lt_compiler_flag="-o out/conftest2.$ac_objext"
8791   # Insert the option either (1) after the last *FLAGS variable, or
8792   # (2) before a word containing "conftest.", or (3) at the end.
8793   # Note that $ac_compile itself does not contain backslashes and begins
8794   # with a dollar sign (not a hyphen), so the echo should work correctly.
8795   lt_compile=`echo "$ac_compile" | $SED \
8796   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8797   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8798   -e 's:$: $lt_compiler_flag:'`
8799   (eval echo "\"\$as_me:8799: $lt_compile\"" >&5)
8800   (eval "$lt_compile" 2>out/conftest.err)
8801   ac_status=$?
8802   cat out/conftest.err >&5
8803   echo "$as_me:8803: \$? = $ac_status" >&5
8804   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8805   then
8806     # The compiler can only warn and ignore the option if not recognized
8807     # So say no if there are warnings
8808     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8809     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8810     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8811       lt_cv_prog_compiler_c_o=yes
8812     fi
8813   fi
8814   chmod u+w . 2>&5
8815   $RM conftest*
8816   # SGI C++ compiler will create directory out/ii_files/ for
8817   # template instantiation
8818   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8819   $RM out/* && rmdir out
8820   cd ..
8821   $RM -r conftest
8822   $RM conftest*
8823
8824fi
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8826$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8827
8828
8829
8830
8831hard_links="nottested"
8832if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8833  # do not overwrite the value of need_locks provided by the user
8834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8835$as_echo_n "checking if we can lock with hard links... " >&6; }
8836  hard_links=yes
8837  $RM conftest*
8838  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8839  touch conftest.a
8840  ln conftest.a conftest.b 2>&5 || hard_links=no
8841  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8843$as_echo "$hard_links" >&6; }
8844  if test "$hard_links" = no; then
8845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8846$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8847    need_locks=warn
8848  fi
8849else
8850  need_locks=no
8851fi
8852
8853
8854
8855
8856
8857
8858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8859$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8860
8861  runpath_var=
8862  allow_undefined_flag=
8863  always_export_symbols=no
8864  archive_cmds=
8865  archive_expsym_cmds=
8866  compiler_needs_object=no
8867  enable_shared_with_static_runtimes=no
8868  export_dynamic_flag_spec=
8869  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8870  hardcode_automatic=no
8871  hardcode_direct=no
8872  hardcode_direct_absolute=no
8873  hardcode_libdir_flag_spec=
8874  hardcode_libdir_flag_spec_ld=
8875  hardcode_libdir_separator=
8876  hardcode_minus_L=no
8877  hardcode_shlibpath_var=unsupported
8878  inherit_rpath=no
8879  link_all_deplibs=unknown
8880  module_cmds=
8881  module_expsym_cmds=
8882  old_archive_from_new_cmds=
8883  old_archive_from_expsyms_cmds=
8884  thread_safe_flag_spec=
8885  whole_archive_flag_spec=
8886  # include_expsyms should be a list of space-separated symbols to be *always*
8887  # included in the symbol list
8888  include_expsyms=
8889  # exclude_expsyms can be an extended regexp of symbols to exclude
8890  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8891  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8892  # as well as any symbol that contains `d'.
8893  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8894  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8895  # platforms (ab)use it in PIC code, but their linkers get confused if
8896  # the symbol is explicitly referenced.  Since portable code cannot
8897  # rely on this symbol name, it's probably fine to never include it in
8898  # preloaded symbol tables.
8899  # Exclude shared library initialization/finalization symbols.
8900  extract_expsyms_cmds=
8901
8902  case $host_os in
8903  cygwin* | mingw* | pw32* | cegcc*)
8904    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8905    # When not using gcc, we currently assume that we are using
8906    # Microsoft Visual C++.
8907    if test "$GCC" != yes; then
8908      with_gnu_ld=no
8909    fi
8910    ;;
8911  interix*)
8912    # we just hope/assume this is gcc and not c89 (= MSVC++)
8913    with_gnu_ld=yes
8914    ;;
8915  openbsd*)
8916    with_gnu_ld=no
8917    ;;
8918  linux* | k*bsd*-gnu)
8919    link_all_deplibs=no
8920    ;;
8921  esac
8922
8923  ld_shlibs=yes
8924  if test "$with_gnu_ld" = yes; then
8925    # If archive_cmds runs LD, not CC, wlarc should be empty
8926    wlarc='${wl}'
8927
8928    # Set some defaults for GNU ld with shared library support. These
8929    # are reset later if shared libraries are not supported. Putting them
8930    # here allows them to be overridden if necessary.
8931    runpath_var=LD_RUN_PATH
8932    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8933    export_dynamic_flag_spec='${wl}--export-dynamic'
8934    # ancient GNU ld didn't support --whole-archive et. al.
8935    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8936      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8937    else
8938      whole_archive_flag_spec=
8939    fi
8940    supports_anon_versioning=no
8941    case `$LD -v 2>&1` in
8942      *GNU\ gold*) supports_anon_versioning=yes ;;
8943      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8944      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8945      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8946      *\ 2.11.*) ;; # other 2.11 versions
8947      *) supports_anon_versioning=yes ;;
8948    esac
8949
8950    # See if GNU ld supports shared libraries.
8951    case $host_os in
8952    aix[3-9]*)
8953      # On AIX/PPC, the GNU linker is very broken
8954      if test "$host_cpu" != ia64; then
8955	ld_shlibs=no
8956	cat <<_LT_EOF 1>&2
8957
8958*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8959*** to be unable to reliably create shared libraries on AIX.
8960*** Therefore, libtool is disabling shared libraries support.  If you
8961*** really care for shared libraries, you may want to modify your PATH
8962*** so that a non-GNU linker is found, and then restart.
8963
8964_LT_EOF
8965      fi
8966      ;;
8967
8968    amigaos*)
8969      case $host_cpu in
8970      powerpc)
8971            # see comment about AmigaOS4 .so support
8972            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8973            archive_expsym_cmds=''
8974        ;;
8975      m68k)
8976            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)'
8977            hardcode_libdir_flag_spec='-L$libdir'
8978            hardcode_minus_L=yes
8979        ;;
8980      esac
8981      ;;
8982
8983    beos*)
8984      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8985	allow_undefined_flag=unsupported
8986	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8987	# support --undefined.  This deserves some investigation.  FIXME
8988	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989      else
8990	ld_shlibs=no
8991      fi
8992      ;;
8993
8994    cygwin* | mingw* | pw32* | cegcc*)
8995      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8996      # as there is no search path for DLLs.
8997      hardcode_libdir_flag_spec='-L$libdir'
8998      allow_undefined_flag=unsupported
8999      always_export_symbols=no
9000      enable_shared_with_static_runtimes=yes
9001      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9002
9003      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9004        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9005	# If the export-symbols file already is a .def file (1st line
9006	# is EXPORTS), use it as is; otherwise, prepend...
9007	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9008	  cp $export_symbols $output_objdir/$soname.def;
9009	else
9010	  echo EXPORTS > $output_objdir/$soname.def;
9011	  cat $export_symbols >> $output_objdir/$soname.def;
9012	fi~
9013	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9014      else
9015	ld_shlibs=no
9016      fi
9017      ;;
9018
9019    interix[3-9]*)
9020      hardcode_direct=no
9021      hardcode_shlibpath_var=no
9022      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9023      export_dynamic_flag_spec='${wl}-E'
9024      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9025      # Instead, shared libraries are loaded at an image base (0x10000000 by
9026      # default) and relocated if they conflict, which is a slow very memory
9027      # consuming and fragmenting process.  To avoid this, we pick a random,
9028      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9029      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9030      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9031      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'
9032      ;;
9033
9034    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9035      tmp_diet=no
9036      if test "$host_os" = linux-dietlibc; then
9037	case $cc_basename in
9038	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9039	esac
9040      fi
9041      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9042	 && test "$tmp_diet" = no
9043      then
9044	tmp_addflag=
9045	tmp_sharedflag='-shared'
9046	case $cc_basename,$host_cpu in
9047        pgcc*)				# Portland Group C compiler
9048	  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'
9049	  tmp_addflag=' $pic_flag'
9050	  ;;
9051	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9052	  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'
9053	  tmp_addflag=' $pic_flag -Mnomain' ;;
9054	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9055	  tmp_addflag=' -i_dynamic' ;;
9056	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9057	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9058	ifc* | ifort*)			# Intel Fortran compiler
9059	  tmp_addflag=' -nofor_main' ;;
9060	lf95*)				# Lahey Fortran 8.1
9061	  whole_archive_flag_spec=
9062	  tmp_sharedflag='--shared' ;;
9063	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9064	  tmp_sharedflag='-qmkshrobj'
9065	  tmp_addflag= ;;
9066	esac
9067	case `$CC -V 2>&1 | sed 5q` in
9068	*Sun\ C*)			# Sun C 5.9
9069	  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'
9070	  compiler_needs_object=yes
9071	  tmp_sharedflag='-G' ;;
9072	*Sun\ F*)			# Sun Fortran 8.3
9073	  tmp_sharedflag='-G' ;;
9074	esac
9075	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076
9077        if test "x$supports_anon_versioning" = xyes; then
9078          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9079	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9080	    echo "local: *; };" >> $output_objdir/$libname.ver~
9081	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9082        fi
9083
9084	case $cc_basename in
9085	xlf*)
9086	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9087	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9088	  hardcode_libdir_flag_spec=
9089	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9090	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9091	  if test "x$supports_anon_versioning" = xyes; then
9092	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9093	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9094	      echo "local: *; };" >> $output_objdir/$libname.ver~
9095	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9096	  fi
9097	  ;;
9098	esac
9099      else
9100        ld_shlibs=no
9101      fi
9102      ;;
9103
9104    netbsd* | netbsdelf*-gnu)
9105      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9106	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9107	wlarc=
9108      else
9109	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9111      fi
9112      ;;
9113
9114    solaris*)
9115      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9116	ld_shlibs=no
9117	cat <<_LT_EOF 1>&2
9118
9119*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9120*** create shared libraries on Solaris systems.  Therefore, libtool
9121*** is disabling shared libraries support.  We urge you to upgrade GNU
9122*** binutils to release 2.9.1 or newer.  Another option is to modify
9123*** your PATH or compiler configuration so that the native linker is
9124*** used, and then restart.
9125
9126_LT_EOF
9127      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9128	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9130      else
9131	ld_shlibs=no
9132      fi
9133      ;;
9134
9135    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9136      case `$LD -v 2>&1` in
9137        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9138	ld_shlibs=no
9139	cat <<_LT_EOF 1>&2
9140
9141*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9142*** reliably create shared libraries on SCO systems.  Therefore, libtool
9143*** is disabling shared libraries support.  We urge you to upgrade GNU
9144*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9145*** your PATH or compiler configuration so that the native linker is
9146*** used, and then restart.
9147
9148_LT_EOF
9149	;;
9150	*)
9151	  # For security reasons, it is highly recommended that you always
9152	  # use absolute paths for naming shared libraries, and exclude the
9153	  # DT_RUNPATH tag from executables and libraries.  But doing so
9154	  # requires that you compile everything twice, which is a pain.
9155	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9156	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9157	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9159	  else
9160	    ld_shlibs=no
9161	  fi
9162	;;
9163      esac
9164      ;;
9165
9166    sunos4*)
9167      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9168      wlarc=
9169      hardcode_direct=yes
9170      hardcode_shlibpath_var=no
9171      ;;
9172
9173    *)
9174      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9175	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9177      else
9178	ld_shlibs=no
9179      fi
9180      ;;
9181    esac
9182
9183    if test "$ld_shlibs" = no; then
9184      runpath_var=
9185      hardcode_libdir_flag_spec=
9186      export_dynamic_flag_spec=
9187      whole_archive_flag_spec=
9188    fi
9189  else
9190    # PORTME fill in a description of your system's linker (not GNU ld)
9191    case $host_os in
9192    aix3*)
9193      allow_undefined_flag=unsupported
9194      always_export_symbols=yes
9195      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'
9196      # Note: this linker hardcodes the directories in LIBPATH if there
9197      # are no directories specified by -L.
9198      hardcode_minus_L=yes
9199      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9200	# Neither direct hardcoding nor static linking is supported with a
9201	# broken collect2.
9202	hardcode_direct=unsupported
9203      fi
9204      ;;
9205
9206    aix[4-9]*)
9207      if test "$host_cpu" = ia64; then
9208	# On IA64, the linker does run time linking by default, so we don't
9209	# have to do anything special.
9210	aix_use_runtimelinking=no
9211	exp_sym_flag='-Bexport'
9212	no_entry_flag=""
9213      else
9214	# If we're using GNU nm, then we don't want the "-C" option.
9215	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9216	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9217	  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'
9218	else
9219	  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'
9220	fi
9221	aix_use_runtimelinking=no
9222
9223	# Test if we are trying to use run time linking or normal
9224	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9225	# need to do runtime linking.
9226	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9227	  for ld_flag in $LDFLAGS; do
9228	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9229	    aix_use_runtimelinking=yes
9230	    break
9231	  fi
9232	  done
9233	  ;;
9234	esac
9235
9236	exp_sym_flag='-bexport'
9237	no_entry_flag='-bnoentry'
9238      fi
9239
9240      # When large executables or shared objects are built, AIX ld can
9241      # have problems creating the table of contents.  If linking a library
9242      # or program results in "error TOC overflow" add -mminimal-toc to
9243      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9244      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9245
9246      archive_cmds=''
9247      hardcode_direct=yes
9248      hardcode_direct_absolute=yes
9249      hardcode_libdir_separator=':'
9250      link_all_deplibs=yes
9251      file_list_spec='${wl}-f,'
9252
9253      if test "$GCC" = yes; then
9254	case $host_os in aix4.[012]|aix4.[012].*)
9255	# We only want to do this on AIX 4.2 and lower, the check
9256	# below for broken collect2 doesn't work under 4.3+
9257	  collect2name=`${CC} -print-prog-name=collect2`
9258	  if test -f "$collect2name" &&
9259	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9260	  then
9261	  # We have reworked collect2
9262	  :
9263	  else
9264	  # We have old collect2
9265	  hardcode_direct=unsupported
9266	  # It fails to find uninstalled libraries when the uninstalled
9267	  # path is not listed in the libpath.  Setting hardcode_minus_L
9268	  # to unsupported forces relinking
9269	  hardcode_minus_L=yes
9270	  hardcode_libdir_flag_spec='-L$libdir'
9271	  hardcode_libdir_separator=
9272	  fi
9273	  ;;
9274	esac
9275	shared_flag='-shared'
9276	if test "$aix_use_runtimelinking" = yes; then
9277	  shared_flag="$shared_flag "'${wl}-G'
9278	fi
9279	link_all_deplibs=no
9280      else
9281	# not using gcc
9282	if test "$host_cpu" = ia64; then
9283	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9284	# chokes on -Wl,-G. The following line is correct:
9285	  shared_flag='-G'
9286	else
9287	  if test "$aix_use_runtimelinking" = yes; then
9288	    shared_flag='${wl}-G'
9289	  else
9290	    shared_flag='${wl}-bM:SRE'
9291	  fi
9292	fi
9293      fi
9294
9295      export_dynamic_flag_spec='${wl}-bexpall'
9296      # It seems that -bexpall does not export symbols beginning with
9297      # underscore (_), so it is better to generate a list of symbols to export.
9298      always_export_symbols=yes
9299      if test "$aix_use_runtimelinking" = yes; then
9300	# Warning - without using the other runtime loading flags (-brtl),
9301	# -berok will link without error, but may produce a broken library.
9302	allow_undefined_flag='-berok'
9303        # Determine the default libpath from the value encoded in an
9304        # empty executable.
9305        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307
9308int
9309main ()
9310{
9311
9312  ;
9313  return 0;
9314}
9315_ACEOF
9316if ac_fn_c_try_link "$LINENO"; then :
9317
9318lt_aix_libpath_sed='
9319    /Import File Strings/,/^$/ {
9320	/^0/ {
9321	    s/^0  *\(.*\)$/\1/
9322	    p
9323	}
9324    }'
9325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9326# Check for a 64-bit object if we didn't find anything.
9327if test -z "$aix_libpath"; then
9328  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9329fi
9330fi
9331rm -f core conftest.err conftest.$ac_objext \
9332    conftest$ac_exeext conftest.$ac_ext
9333if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9334
9335        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9336        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"
9337      else
9338	if test "$host_cpu" = ia64; then
9339	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9340	  allow_undefined_flag="-z nodefs"
9341	  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"
9342	else
9343	 # Determine the default libpath from the value encoded in an
9344	 # empty executable.
9345	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346/* end confdefs.h.  */
9347
9348int
9349main ()
9350{
9351
9352  ;
9353  return 0;
9354}
9355_ACEOF
9356if ac_fn_c_try_link "$LINENO"; then :
9357
9358lt_aix_libpath_sed='
9359    /Import File Strings/,/^$/ {
9360	/^0/ {
9361	    s/^0  *\(.*\)$/\1/
9362	    p
9363	}
9364    }'
9365aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9366# Check for a 64-bit object if we didn't find anything.
9367if test -z "$aix_libpath"; then
9368  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9369fi
9370fi
9371rm -f core conftest.err conftest.$ac_objext \
9372    conftest$ac_exeext conftest.$ac_ext
9373if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9374
9375	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376	  # Warning - without using the other run time loading flags,
9377	  # -berok will link without error, but may produce a broken library.
9378	  no_undefined_flag=' ${wl}-bernotok'
9379	  allow_undefined_flag=' ${wl}-berok'
9380	  # Exported symbols can be pulled into shared objects from archives
9381	  whole_archive_flag_spec='$convenience'
9382	  archive_cmds_need_lc=yes
9383	  # This is similar to how AIX traditionally builds its shared libraries.
9384	  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'
9385	fi
9386      fi
9387      ;;
9388
9389    amigaos*)
9390      case $host_cpu in
9391      powerpc)
9392            # see comment about AmigaOS4 .so support
9393            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9394            archive_expsym_cmds=''
9395        ;;
9396      m68k)
9397            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)'
9398            hardcode_libdir_flag_spec='-L$libdir'
9399            hardcode_minus_L=yes
9400        ;;
9401      esac
9402      ;;
9403
9404    bsdi[45]*)
9405      export_dynamic_flag_spec=-rdynamic
9406      ;;
9407
9408    cygwin* | mingw* | pw32* | cegcc*)
9409      # When not using gcc, we currently assume that we are using
9410      # Microsoft Visual C++.
9411      # hardcode_libdir_flag_spec is actually meaningless, as there is
9412      # no search path for DLLs.
9413      hardcode_libdir_flag_spec=' '
9414      allow_undefined_flag=unsupported
9415      # Tell ltmain to make .lib files, not .a files.
9416      libext=lib
9417      # Tell ltmain to make .dll files, not .so files.
9418      shrext_cmds=".dll"
9419      # FIXME: Setting linknames here is a bad hack.
9420      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9421      # The linker will automatically build a .lib file if we build a DLL.
9422      old_archive_from_new_cmds='true'
9423      # FIXME: Should let the user specify the lib program.
9424      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9425      fix_srcfile_path='`cygpath -w "$srcfile"`'
9426      enable_shared_with_static_runtimes=yes
9427      ;;
9428
9429    darwin* | rhapsody*)
9430
9431
9432  archive_cmds_need_lc=no
9433  hardcode_direct=no
9434  hardcode_automatic=yes
9435  hardcode_shlibpath_var=unsupported
9436  whole_archive_flag_spec=''
9437  link_all_deplibs=yes
9438  allow_undefined_flag="$_lt_dar_allow_undefined"
9439  case $cc_basename in
9440     ifort*) _lt_dar_can_shared=yes ;;
9441     *) _lt_dar_can_shared=$GCC ;;
9442  esac
9443  if test "$_lt_dar_can_shared" = "yes"; then
9444    output_verbose_link_cmd=echo
9445    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9446    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9447    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}"
9448    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}"
9449
9450  else
9451  ld_shlibs=no
9452  fi
9453
9454      ;;
9455
9456    dgux*)
9457      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458      hardcode_libdir_flag_spec='-L$libdir'
9459      hardcode_shlibpath_var=no
9460      ;;
9461
9462    freebsd1*)
9463      ld_shlibs=no
9464      ;;
9465
9466    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9467    # support.  Future versions do this automatically, but an explicit c++rt0.o
9468    # does not break anything, and helps significantly (at the cost of a little
9469    # extra space).
9470    freebsd2.2*)
9471      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9472      hardcode_libdir_flag_spec='-R$libdir'
9473      hardcode_direct=yes
9474      hardcode_shlibpath_var=no
9475      ;;
9476
9477    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9478    freebsd2*)
9479      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9480      hardcode_direct=yes
9481      hardcode_minus_L=yes
9482      hardcode_shlibpath_var=no
9483      ;;
9484
9485    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9486    freebsd* | dragonfly*)
9487      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9488      hardcode_libdir_flag_spec='-R$libdir'
9489      hardcode_direct=yes
9490      hardcode_shlibpath_var=no
9491      ;;
9492
9493    hpux9*)
9494      if test "$GCC" = yes; then
9495	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'
9496      else
9497	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'
9498      fi
9499      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9500      hardcode_libdir_separator=:
9501      hardcode_direct=yes
9502
9503      # hardcode_minus_L: Not really in the search PATH,
9504      # but as the default location of the library.
9505      hardcode_minus_L=yes
9506      export_dynamic_flag_spec='${wl}-E'
9507      ;;
9508
9509    hpux10*)
9510      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9511	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9512      else
9513	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9514      fi
9515      if test "$with_gnu_ld" = no; then
9516	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9517	hardcode_libdir_flag_spec_ld='+b $libdir'
9518	hardcode_libdir_separator=:
9519	hardcode_direct=yes
9520	hardcode_direct_absolute=yes
9521	export_dynamic_flag_spec='${wl}-E'
9522	# hardcode_minus_L: Not really in the search PATH,
9523	# but as the default location of the library.
9524	hardcode_minus_L=yes
9525      fi
9526      ;;
9527
9528    hpux11*)
9529      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9530	case $host_cpu in
9531	hppa*64*)
9532	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9533	  ;;
9534	ia64*)
9535	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9536	  ;;
9537	*)
9538	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9539	  ;;
9540	esac
9541      else
9542	case $host_cpu in
9543	hppa*64*)
9544	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9545	  ;;
9546	ia64*)
9547	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9548	  ;;
9549	*)
9550	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9551	  ;;
9552	esac
9553      fi
9554      if test "$with_gnu_ld" = no; then
9555	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9556	hardcode_libdir_separator=:
9557
9558	case $host_cpu in
9559	hppa*64*|ia64*)
9560	  hardcode_direct=no
9561	  hardcode_shlibpath_var=no
9562	  ;;
9563	*)
9564	  hardcode_direct=yes
9565	  hardcode_direct_absolute=yes
9566	  export_dynamic_flag_spec='${wl}-E'
9567
9568	  # hardcode_minus_L: Not really in the search PATH,
9569	  # but as the default location of the library.
9570	  hardcode_minus_L=yes
9571	  ;;
9572	esac
9573      fi
9574      ;;
9575
9576    irix5* | irix6* | nonstopux*)
9577      if test "$GCC" = yes; then
9578	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'
9579	# Try to use the -exported_symbol ld option, if it does not
9580	# work, assume that -exports_file does not work either and
9581	# implicitly export all symbols.
9582        save_LDFLAGS="$LDFLAGS"
9583        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9584        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586int foo(void) {}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589  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'
9590
9591fi
9592rm -f core conftest.err conftest.$ac_objext \
9593    conftest$ac_exeext conftest.$ac_ext
9594        LDFLAGS="$save_LDFLAGS"
9595      else
9596	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'
9597	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'
9598      fi
9599      archive_cmds_need_lc='no'
9600      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601      hardcode_libdir_separator=:
9602      inherit_rpath=yes
9603      link_all_deplibs=yes
9604      ;;
9605
9606    netbsd* | netbsdelf*-gnu)
9607      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9608	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9609      else
9610	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9611      fi
9612      hardcode_libdir_flag_spec='-R$libdir'
9613      hardcode_direct=yes
9614      hardcode_shlibpath_var=no
9615      ;;
9616
9617    newsos6)
9618      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619      hardcode_direct=yes
9620      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621      hardcode_libdir_separator=:
9622      hardcode_shlibpath_var=no
9623      ;;
9624
9625    *nto* | *qnx*)
9626      ;;
9627
9628    openbsd*)
9629      if test -f /usr/libexec/ld.so; then
9630	hardcode_direct=yes
9631	hardcode_shlibpath_var=no
9632	hardcode_direct_absolute=yes
9633	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9635	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9636	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9637	  export_dynamic_flag_spec='${wl}-E'
9638	else
9639	  case $host_os in
9640	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9641	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642	     hardcode_libdir_flag_spec='-R$libdir'
9643	     ;;
9644	   *)
9645	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9646	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9647	     ;;
9648	  esac
9649	fi
9650      else
9651	ld_shlibs=no
9652      fi
9653      ;;
9654
9655    os2*)
9656      hardcode_libdir_flag_spec='-L$libdir'
9657      hardcode_minus_L=yes
9658      allow_undefined_flag=unsupported
9659      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'
9660      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9661      ;;
9662
9663    osf3*)
9664      if test "$GCC" = yes; then
9665	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9666	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'
9667      else
9668	allow_undefined_flag=' -expect_unresolved \*'
9669	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'
9670      fi
9671      archive_cmds_need_lc='no'
9672      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673      hardcode_libdir_separator=:
9674      ;;
9675
9676    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9677      if test "$GCC" = yes; then
9678	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9679	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'
9680	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9681      else
9682	allow_undefined_flag=' -expect_unresolved \*'
9683	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'
9684	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~
9685	$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'
9686
9687	# Both c and cxx compiler support -rpath directly
9688	hardcode_libdir_flag_spec='-rpath $libdir'
9689      fi
9690      archive_cmds_need_lc='no'
9691      hardcode_libdir_separator=:
9692      ;;
9693
9694    solaris*)
9695      no_undefined_flag=' -z defs'
9696      if test "$GCC" = yes; then
9697	wlarc='${wl}'
9698	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9700	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9701      else
9702	case `$CC -V 2>&1` in
9703	*"Compilers 5.0"*)
9704	  wlarc=''
9705	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9707	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9708	  ;;
9709	*)
9710	  wlarc='${wl}'
9711	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9712	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9713	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9714	  ;;
9715	esac
9716      fi
9717      hardcode_libdir_flag_spec='-R$libdir'
9718      hardcode_shlibpath_var=no
9719      case $host_os in
9720      solaris2.[0-5] | solaris2.[0-5].*) ;;
9721      *)
9722	# The compiler driver will combine and reorder linker options,
9723	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9724	# but is careful enough not to reorder.
9725	# Supported since Solaris 2.6 (maybe 2.5.1?)
9726	if test "$GCC" = yes; then
9727	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9728	else
9729	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9730	fi
9731	;;
9732      esac
9733      link_all_deplibs=yes
9734      ;;
9735
9736    sunos4*)
9737      if test "x$host_vendor" = xsequent; then
9738	# Use $CC to link under sequent, because it throws in some extra .o
9739	# files that make .init and .fini sections work.
9740	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9741      else
9742	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9743      fi
9744      hardcode_libdir_flag_spec='-L$libdir'
9745      hardcode_direct=yes
9746      hardcode_minus_L=yes
9747      hardcode_shlibpath_var=no
9748      ;;
9749
9750    sysv4)
9751      case $host_vendor in
9752	sni)
9753	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754	  hardcode_direct=yes # is this really true???
9755	;;
9756	siemens)
9757	  ## LD is ld it makes a PLAMLIB
9758	  ## CC just makes a GrossModule.
9759	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9760	  reload_cmds='$CC -r -o $output$reload_objs'
9761	  hardcode_direct=no
9762        ;;
9763	motorola)
9764	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9766	;;
9767      esac
9768      runpath_var='LD_RUN_PATH'
9769      hardcode_shlibpath_var=no
9770      ;;
9771
9772    sysv4.3*)
9773      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774      hardcode_shlibpath_var=no
9775      export_dynamic_flag_spec='-Bexport'
9776      ;;
9777
9778    sysv4*MP*)
9779      if test -d /usr/nec; then
9780	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781	hardcode_shlibpath_var=no
9782	runpath_var=LD_RUN_PATH
9783	hardcode_runpath_var=yes
9784	ld_shlibs=yes
9785      fi
9786      ;;
9787
9788    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9789      no_undefined_flag='${wl}-z,text'
9790      archive_cmds_need_lc=no
9791      hardcode_shlibpath_var=no
9792      runpath_var='LD_RUN_PATH'
9793
9794      if test "$GCC" = yes; then
9795	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797      else
9798	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800      fi
9801      ;;
9802
9803    sysv5* | sco3.2v5* | sco5v6*)
9804      # Note: We can NOT use -z defs as we might desire, because we do not
9805      # link with -lc, and that would cause any symbols used from libc to
9806      # always be unresolved, which means just about no library would
9807      # ever link correctly.  If we're not using GNU ld we use -z text
9808      # though, which does catch some bad symbols but isn't as heavy-handed
9809      # as -z defs.
9810      no_undefined_flag='${wl}-z,text'
9811      allow_undefined_flag='${wl}-z,nodefs'
9812      archive_cmds_need_lc=no
9813      hardcode_shlibpath_var=no
9814      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9815      hardcode_libdir_separator=':'
9816      link_all_deplibs=yes
9817      export_dynamic_flag_spec='${wl}-Bexport'
9818      runpath_var='LD_RUN_PATH'
9819
9820      if test "$GCC" = yes; then
9821	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823      else
9824	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9826      fi
9827      ;;
9828
9829    uts4*)
9830      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831      hardcode_libdir_flag_spec='-L$libdir'
9832      hardcode_shlibpath_var=no
9833      ;;
9834
9835    *)
9836      ld_shlibs=no
9837      ;;
9838    esac
9839
9840    if test x$host_vendor = xsni; then
9841      case $host in
9842      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9843	export_dynamic_flag_spec='${wl}-Blargedynsym'
9844	;;
9845      esac
9846    fi
9847  fi
9848
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9850$as_echo "$ld_shlibs" >&6; }
9851test "$ld_shlibs" = no && can_build_shared=no
9852
9853with_gnu_ld=$with_gnu_ld
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869#
9870# Do we need to explicitly link libc?
9871#
9872case "x$archive_cmds_need_lc" in
9873x|xyes)
9874  # Assume -lc should be added
9875  archive_cmds_need_lc=yes
9876
9877  if test "$enable_shared" = yes && test "$GCC" = yes; then
9878    case $archive_cmds in
9879    *'~'*)
9880      # FIXME: we may have to deal with multi-command sequences.
9881      ;;
9882    '$CC '*)
9883      # Test whether the compiler implicitly links with -lc since on some
9884      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9885      # to ld, don't add -lc before -lgcc.
9886      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9887$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9888      $RM conftest*
9889      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9890
9891      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9892  (eval $ac_compile) 2>&5
9893  ac_status=$?
9894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9895  test $ac_status = 0; } 2>conftest.err; then
9896        soname=conftest
9897        lib=conftest
9898        libobjs=conftest.$ac_objext
9899        deplibs=
9900        wl=$lt_prog_compiler_wl
9901	pic_flag=$lt_prog_compiler_pic
9902        compiler_flags=-v
9903        linker_flags=-v
9904        verstring=
9905        output_objdir=.
9906        libname=conftest
9907        lt_save_allow_undefined_flag=$allow_undefined_flag
9908        allow_undefined_flag=
9909        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9910  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9911  ac_status=$?
9912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9913  test $ac_status = 0; }
9914        then
9915	  archive_cmds_need_lc=no
9916        else
9917	  archive_cmds_need_lc=yes
9918        fi
9919        allow_undefined_flag=$lt_save_allow_undefined_flag
9920      else
9921        cat conftest.err 1>&5
9922      fi
9923      $RM conftest*
9924      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9925$as_echo "$archive_cmds_need_lc" >&6; }
9926      ;;
9927    esac
9928  fi
9929  ;;
9930esac
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
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
10081
10082
10083
10084
10085
10086
10087
10088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10089$as_echo_n "checking dynamic linker characteristics... " >&6; }
10090
10091if test "$GCC" = yes; then
10092  case $host_os in
10093    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10094    *) lt_awk_arg="/^libraries:/" ;;
10095  esac
10096  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10097  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10098    # if the path contains ";" then we assume it to be the separator
10099    # otherwise default to the standard path separator (i.e. ":") - it is
10100    # assumed that no part of a normal pathname contains ";" but that should
10101    # okay in the real world where ";" in dirpaths is itself problematic.
10102    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10103  else
10104    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10105  fi
10106  # Ok, now we have the path, separated by spaces, we can step through it
10107  # and add multilib dir if necessary.
10108  lt_tmp_lt_search_path_spec=
10109  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10110  for lt_sys_path in $lt_search_path_spec; do
10111    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10112      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10113    else
10114      test -d "$lt_sys_path" && \
10115	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10116    fi
10117  done
10118  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10119BEGIN {RS=" "; FS="/|\n";} {
10120  lt_foo="";
10121  lt_count=0;
10122  for (lt_i = NF; lt_i > 0; lt_i--) {
10123    if ($lt_i != "" && $lt_i != ".") {
10124      if ($lt_i == "..") {
10125        lt_count++;
10126      } else {
10127        if (lt_count == 0) {
10128          lt_foo="/" $lt_i lt_foo;
10129        } else {
10130          lt_count--;
10131        }
10132      }
10133    }
10134  }
10135  if (lt_foo != "") { lt_freq[lt_foo]++; }
10136  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10137}'`
10138  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10139else
10140  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10141fi
10142library_names_spec=
10143libname_spec='lib$name'
10144soname_spec=
10145shrext_cmds=".so"
10146postinstall_cmds=
10147postuninstall_cmds=
10148finish_cmds=
10149finish_eval=
10150shlibpath_var=
10151shlibpath_overrides_runpath=unknown
10152version_type=none
10153dynamic_linker="$host_os ld.so"
10154sys_lib_dlsearch_path_spec="/lib /usr/lib"
10155need_lib_prefix=unknown
10156hardcode_into_libs=no
10157
10158# when you set need_version to no, make sure it does not cause -set_version
10159# flags to be left without arguments
10160need_version=unknown
10161
10162case $host_os in
10163aix3*)
10164  version_type=linux
10165  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10166  shlibpath_var=LIBPATH
10167
10168  # AIX 3 has no versioning support, so we append a major version to the name.
10169  soname_spec='${libname}${release}${shared_ext}$major'
10170  ;;
10171
10172aix[4-9]*)
10173  version_type=linux
10174  need_lib_prefix=no
10175  need_version=no
10176  hardcode_into_libs=yes
10177  if test "$host_cpu" = ia64; then
10178    # AIX 5 supports IA64
10179    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10180    shlibpath_var=LD_LIBRARY_PATH
10181  else
10182    # With GCC up to 2.95.x, collect2 would create an import file
10183    # for dependence libraries.  The import file would start with
10184    # the line `#! .'.  This would cause the generated library to
10185    # depend on `.', always an invalid library.  This was fixed in
10186    # development snapshots of GCC prior to 3.0.
10187    case $host_os in
10188      aix4 | aix4.[01] | aix4.[01].*)
10189      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10190	   echo ' yes '
10191	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10192	:
10193      else
10194	can_build_shared=no
10195      fi
10196      ;;
10197    esac
10198    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10199    # soname into executable. Probably we can add versioning support to
10200    # collect2, so additional links can be useful in future.
10201    if test "$aix_use_runtimelinking" = yes; then
10202      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10203      # instead of lib<name>.a to let people know that these are not
10204      # typical AIX shared libraries.
10205      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206    else
10207      # We preserve .a as extension for shared libraries through AIX4.2
10208      # and later when we are not doing run time linking.
10209      library_names_spec='${libname}${release}.a $libname.a'
10210      soname_spec='${libname}${release}${shared_ext}$major'
10211    fi
10212    shlibpath_var=LIBPATH
10213  fi
10214  ;;
10215
10216amigaos*)
10217  case $host_cpu in
10218  powerpc)
10219    # Since July 2007 AmigaOS4 officially supports .so libraries.
10220    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10221    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222    ;;
10223  m68k)
10224    library_names_spec='$libname.ixlibrary $libname.a'
10225    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10226    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'
10227    ;;
10228  esac
10229  ;;
10230
10231beos*)
10232  library_names_spec='${libname}${shared_ext}'
10233  dynamic_linker="$host_os ld.so"
10234  shlibpath_var=LIBRARY_PATH
10235  ;;
10236
10237bsdi[45]*)
10238  version_type=linux
10239  need_version=no
10240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241  soname_spec='${libname}${release}${shared_ext}$major'
10242  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10243  shlibpath_var=LD_LIBRARY_PATH
10244  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10245  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10246  # the default ld.so.conf also contains /usr/contrib/lib and
10247  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10248  # libtool to hard-code these into programs
10249  ;;
10250
10251cygwin* | mingw* | pw32* | cegcc*)
10252  version_type=windows
10253  shrext_cmds=".dll"
10254  need_version=no
10255  need_lib_prefix=no
10256
10257  case $GCC,$host_os in
10258  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10259    library_names_spec='$libname.dll.a'
10260    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10261    postinstall_cmds='base_file=`basename \${file}`~
10262      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10263      dldir=$destdir/`dirname \$dlpath`~
10264      test -d \$dldir || mkdir -p \$dldir~
10265      $install_prog $dir/$dlname \$dldir/$dlname~
10266      chmod a+x \$dldir/$dlname~
10267      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10268        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10269      fi'
10270    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10271      dlpath=$dir/\$dldll~
10272       $RM \$dlpath'
10273    shlibpath_overrides_runpath=yes
10274
10275    case $host_os in
10276    cygwin*)
10277      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10278      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10279      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10280      ;;
10281    mingw* | cegcc*)
10282      # MinGW DLLs use traditional 'lib' prefix
10283      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10284      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10285      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10286        # It is most probably a Windows format PATH printed by
10287        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10288        # path with ; separators, and with drive letters. We can handle the
10289        # drive letters (cygwin fileutils understands them), so leave them,
10290        # especially as we might pass files found there to a mingw objdump,
10291        # which wouldn't understand a cygwinified path. Ahh.
10292        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10293      else
10294        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10295      fi
10296      ;;
10297    pw32*)
10298      # pw32 DLLs use 'pw' prefix rather than 'lib'
10299      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300      ;;
10301    esac
10302    ;;
10303
10304  *)
10305    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10306    ;;
10307  esac
10308  dynamic_linker='Win32 ld.exe'
10309  # FIXME: first we should search . and the directory the executable is in
10310  shlibpath_var=PATH
10311  ;;
10312
10313darwin* | rhapsody*)
10314  dynamic_linker="$host_os dyld"
10315  version_type=darwin
10316  need_lib_prefix=no
10317  need_version=no
10318  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10319  soname_spec='${libname}${release}${major}$shared_ext'
10320  shlibpath_overrides_runpath=yes
10321  shlibpath_var=DYLD_LIBRARY_PATH
10322  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10323
10324  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10325  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10326  ;;
10327
10328dgux*)
10329  version_type=linux
10330  need_lib_prefix=no
10331  need_version=no
10332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10333  soname_spec='${libname}${release}${shared_ext}$major'
10334  shlibpath_var=LD_LIBRARY_PATH
10335  ;;
10336
10337freebsd1*)
10338  dynamic_linker=no
10339  ;;
10340
10341freebsd* | dragonfly*)
10342  # DragonFly does not have aout.  When/if they implement a new
10343  # versioning mechanism, adjust this.
10344  if test -x /usr/bin/objformat; then
10345    objformat=`/usr/bin/objformat`
10346  else
10347    case $host_os in
10348    freebsd[123]*) objformat=aout ;;
10349    *) objformat=elf ;;
10350    esac
10351  fi
10352  version_type=freebsd-$objformat
10353  case $version_type in
10354    freebsd-elf*)
10355      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10356      need_version=no
10357      need_lib_prefix=no
10358      ;;
10359    freebsd-*)
10360      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10361      need_version=yes
10362      ;;
10363  esac
10364  shlibpath_var=LD_LIBRARY_PATH
10365  case $host_os in
10366  freebsd2*)
10367    shlibpath_overrides_runpath=yes
10368    ;;
10369  freebsd3.[01]* | freebsdelf3.[01]*)
10370    shlibpath_overrides_runpath=yes
10371    hardcode_into_libs=yes
10372    ;;
10373  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10374  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10375    shlibpath_overrides_runpath=no
10376    hardcode_into_libs=yes
10377    ;;
10378  *) # from 4.6 on, and DragonFly
10379    shlibpath_overrides_runpath=yes
10380    hardcode_into_libs=yes
10381    ;;
10382  esac
10383  ;;
10384
10385gnu*)
10386  version_type=linux
10387  need_lib_prefix=no
10388  need_version=no
10389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10390  soname_spec='${libname}${release}${shared_ext}$major'
10391  shlibpath_var=LD_LIBRARY_PATH
10392  hardcode_into_libs=yes
10393  ;;
10394
10395hpux9* | hpux10* | hpux11*)
10396  # Give a soname corresponding to the major version so that dld.sl refuses to
10397  # link against other versions.
10398  version_type=sunos
10399  need_lib_prefix=no
10400  need_version=no
10401  case $host_cpu in
10402  ia64*)
10403    shrext_cmds='.so'
10404    hardcode_into_libs=yes
10405    dynamic_linker="$host_os dld.so"
10406    shlibpath_var=LD_LIBRARY_PATH
10407    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10408    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409    soname_spec='${libname}${release}${shared_ext}$major'
10410    if test "X$HPUX_IA64_MODE" = X32; then
10411      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10412    else
10413      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10414    fi
10415    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10416    ;;
10417  hppa*64*)
10418    shrext_cmds='.sl'
10419    hardcode_into_libs=yes
10420    dynamic_linker="$host_os dld.sl"
10421    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10422    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10423    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424    soname_spec='${libname}${release}${shared_ext}$major'
10425    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10426    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10427    ;;
10428  *)
10429    shrext_cmds='.sl'
10430    dynamic_linker="$host_os dld.sl"
10431    shlibpath_var=SHLIB_PATH
10432    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434    soname_spec='${libname}${release}${shared_ext}$major'
10435    ;;
10436  esac
10437  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10438  postinstall_cmds='chmod 555 $lib'
10439  ;;
10440
10441interix[3-9]*)
10442  version_type=linux
10443  need_lib_prefix=no
10444  need_version=no
10445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10446  soname_spec='${libname}${release}${shared_ext}$major'
10447  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10448  shlibpath_var=LD_LIBRARY_PATH
10449  shlibpath_overrides_runpath=no
10450  hardcode_into_libs=yes
10451  ;;
10452
10453irix5* | irix6* | nonstopux*)
10454  case $host_os in
10455    nonstopux*) version_type=nonstopux ;;
10456    *)
10457	if test "$lt_cv_prog_gnu_ld" = yes; then
10458		version_type=linux
10459	else
10460		version_type=irix
10461	fi ;;
10462  esac
10463  need_lib_prefix=no
10464  need_version=no
10465  soname_spec='${libname}${release}${shared_ext}$major'
10466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10467  case $host_os in
10468  irix5* | nonstopux*)
10469    libsuff= shlibsuff=
10470    ;;
10471  *)
10472    case $LD in # libtool.m4 will add one of these switches to LD
10473    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10474      libsuff= shlibsuff= libmagic=32-bit;;
10475    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10476      libsuff=32 shlibsuff=N32 libmagic=N32;;
10477    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10478      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10479    *) libsuff= shlibsuff= libmagic=never-match;;
10480    esac
10481    ;;
10482  esac
10483  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10484  shlibpath_overrides_runpath=no
10485  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10486  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10487  hardcode_into_libs=yes
10488  ;;
10489
10490# No shared lib support for Linux oldld, aout, or coff.
10491linux*oldld* | linux*aout* | linux*coff*)
10492  dynamic_linker=no
10493  ;;
10494
10495# This must be Linux ELF.
10496linux* | k*bsd*-gnu | kopensolaris*-gnu)
10497  version_type=linux
10498  need_lib_prefix=no
10499  need_version=no
10500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501  soname_spec='${libname}${release}${shared_ext}$major'
10502  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10503  shlibpath_var=LD_LIBRARY_PATH
10504  shlibpath_overrides_runpath=no
10505  # Some binutils ld are patched to set DT_RUNPATH
10506  save_LDFLAGS=$LDFLAGS
10507  save_libdir=$libdir
10508  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10509       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511/* end confdefs.h.  */
10512
10513int
10514main ()
10515{
10516
10517  ;
10518  return 0;
10519}
10520_ACEOF
10521if ac_fn_c_try_link "$LINENO"; then :
10522  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10523  shlibpath_overrides_runpath=yes
10524fi
10525fi
10526rm -f core conftest.err conftest.$ac_objext \
10527    conftest$ac_exeext conftest.$ac_ext
10528  LDFLAGS=$save_LDFLAGS
10529  libdir=$save_libdir
10530
10531  # This implies no fast_install, which is unacceptable.
10532  # Some rework will be needed to allow for fast_install
10533  # before this can be enabled.
10534  hardcode_into_libs=yes
10535
10536  # Append ld.so.conf contents to the search path
10537  if test -f /etc/ld.so.conf; then
10538    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' ' '`
10539    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10540  fi
10541
10542  # We used to test for /lib/ld.so.1 and disable shared libraries on
10543  # powerpc, because MkLinux only supported shared libraries with the
10544  # GNU dynamic linker.  Since this was broken with cross compilers,
10545  # most powerpc-linux boxes support dynamic linking these days and
10546  # people can always --disable-shared, the test was removed, and we
10547  # assume the GNU/Linux dynamic linker is in use.
10548  dynamic_linker='GNU/Linux ld.so'
10549  ;;
10550
10551netbsdelf*-gnu)
10552  version_type=linux
10553  need_lib_prefix=no
10554  need_version=no
10555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10556  soname_spec='${libname}${release}${shared_ext}$major'
10557  shlibpath_var=LD_LIBRARY_PATH
10558  shlibpath_overrides_runpath=no
10559  hardcode_into_libs=yes
10560  dynamic_linker='NetBSD ld.elf_so'
10561  ;;
10562
10563netbsd*)
10564  version_type=sunos
10565  need_lib_prefix=no
10566  need_version=no
10567  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10568    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10569    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10570    dynamic_linker='NetBSD (a.out) ld.so'
10571  else
10572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10573    soname_spec='${libname}${release}${shared_ext}$major'
10574    dynamic_linker='NetBSD ld.elf_so'
10575  fi
10576  shlibpath_var=LD_LIBRARY_PATH
10577  shlibpath_overrides_runpath=yes
10578  hardcode_into_libs=yes
10579  ;;
10580
10581newsos6)
10582  version_type=linux
10583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584  shlibpath_var=LD_LIBRARY_PATH
10585  shlibpath_overrides_runpath=yes
10586  ;;
10587
10588*nto* | *qnx*)
10589  version_type=qnx
10590  need_lib_prefix=no
10591  need_version=no
10592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593  soname_spec='${libname}${release}${shared_ext}$major'
10594  shlibpath_var=LD_LIBRARY_PATH
10595  shlibpath_overrides_runpath=no
10596  hardcode_into_libs=yes
10597  dynamic_linker='ldqnx.so'
10598  ;;
10599
10600openbsd*)
10601  version_type=sunos
10602  sys_lib_dlsearch_path_spec="/usr/lib"
10603  need_lib_prefix=no
10604  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10605  case $host_os in
10606    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10607    *)				need_version=no  ;;
10608  esac
10609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10610  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10611  shlibpath_var=LD_LIBRARY_PATH
10612  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10613    case $host_os in
10614      openbsd2.[89] | openbsd2.[89].*)
10615	shlibpath_overrides_runpath=no
10616	;;
10617      *)
10618	shlibpath_overrides_runpath=yes
10619	;;
10620      esac
10621  else
10622    shlibpath_overrides_runpath=yes
10623  fi
10624  ;;
10625
10626os2*)
10627  libname_spec='$name'
10628  shrext_cmds=".dll"
10629  need_lib_prefix=no
10630  library_names_spec='$libname${shared_ext} $libname.a'
10631  dynamic_linker='OS/2 ld.exe'
10632  shlibpath_var=LIBPATH
10633  ;;
10634
10635osf3* | osf4* | osf5*)
10636  version_type=osf
10637  need_lib_prefix=no
10638  need_version=no
10639  soname_spec='${libname}${release}${shared_ext}$major'
10640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641  shlibpath_var=LD_LIBRARY_PATH
10642  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10643  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10644  ;;
10645
10646rdos*)
10647  dynamic_linker=no
10648  ;;
10649
10650solaris*)
10651  version_type=linux
10652  need_lib_prefix=no
10653  need_version=no
10654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655  soname_spec='${libname}${release}${shared_ext}$major'
10656  shlibpath_var=LD_LIBRARY_PATH
10657  shlibpath_overrides_runpath=yes
10658  hardcode_into_libs=yes
10659  # ldd complains unless libraries are executable
10660  postinstall_cmds='chmod +x $lib'
10661  ;;
10662
10663sunos4*)
10664  version_type=sunos
10665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10666  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10667  shlibpath_var=LD_LIBRARY_PATH
10668  shlibpath_overrides_runpath=yes
10669  if test "$with_gnu_ld" = yes; then
10670    need_lib_prefix=no
10671  fi
10672  need_version=yes
10673  ;;
10674
10675sysv4 | sysv4.3*)
10676  version_type=linux
10677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678  soname_spec='${libname}${release}${shared_ext}$major'
10679  shlibpath_var=LD_LIBRARY_PATH
10680  case $host_vendor in
10681    sni)
10682      shlibpath_overrides_runpath=no
10683      need_lib_prefix=no
10684      runpath_var=LD_RUN_PATH
10685      ;;
10686    siemens)
10687      need_lib_prefix=no
10688      ;;
10689    motorola)
10690      need_lib_prefix=no
10691      need_version=no
10692      shlibpath_overrides_runpath=no
10693      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10694      ;;
10695  esac
10696  ;;
10697
10698sysv4*MP*)
10699  if test -d /usr/nec ;then
10700    version_type=linux
10701    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10702    soname_spec='$libname${shared_ext}.$major'
10703    shlibpath_var=LD_LIBRARY_PATH
10704  fi
10705  ;;
10706
10707sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10708  version_type=freebsd-elf
10709  need_lib_prefix=no
10710  need_version=no
10711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10712  soname_spec='${libname}${release}${shared_ext}$major'
10713  shlibpath_var=LD_LIBRARY_PATH
10714  shlibpath_overrides_runpath=yes
10715  hardcode_into_libs=yes
10716  if test "$with_gnu_ld" = yes; then
10717    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10718  else
10719    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10720    case $host_os in
10721      sco3.2v5*)
10722        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10723	;;
10724    esac
10725  fi
10726  sys_lib_dlsearch_path_spec='/usr/lib'
10727  ;;
10728
10729tpf*)
10730  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10731  version_type=linux
10732  need_lib_prefix=no
10733  need_version=no
10734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735  shlibpath_var=LD_LIBRARY_PATH
10736  shlibpath_overrides_runpath=no
10737  hardcode_into_libs=yes
10738  ;;
10739
10740uts4*)
10741  version_type=linux
10742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743  soname_spec='${libname}${release}${shared_ext}$major'
10744  shlibpath_var=LD_LIBRARY_PATH
10745  ;;
10746
10747*)
10748  dynamic_linker=no
10749  ;;
10750esac
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10752$as_echo "$dynamic_linker" >&6; }
10753test "$dynamic_linker" = no && can_build_shared=no
10754
10755variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10756if test "$GCC" = yes; then
10757  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10758fi
10759
10760if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10761  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10762fi
10763if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10764  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10765fi
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10854$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10855hardcode_action=
10856if test -n "$hardcode_libdir_flag_spec" ||
10857   test -n "$runpath_var" ||
10858   test "X$hardcode_automatic" = "Xyes" ; then
10859
10860  # We can hardcode non-existent directories.
10861  if test "$hardcode_direct" != no &&
10862     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10863     # have to relink, otherwise we might link with an installed library
10864     # when we should be linking with a yet-to-be-installed one
10865     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10866     test "$hardcode_minus_L" != no; then
10867    # Linking always hardcodes the temporary library directory.
10868    hardcode_action=relink
10869  else
10870    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10871    hardcode_action=immediate
10872  fi
10873else
10874  # We cannot hardcode anything, or else we can only hardcode existing
10875  # directories.
10876  hardcode_action=unsupported
10877fi
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10879$as_echo "$hardcode_action" >&6; }
10880
10881if test "$hardcode_action" = relink ||
10882   test "$inherit_rpath" = yes; then
10883  # Fast installation is not supported
10884  enable_fast_install=no
10885elif test "$shlibpath_overrides_runpath" = yes ||
10886     test "$enable_shared" = no; then
10887  # Fast installation is not necessary
10888  enable_fast_install=needless
10889fi
10890
10891
10892
10893
10894
10895
10896  if test "x$enable_dlopen" != xyes; then
10897  enable_dlopen=unknown
10898  enable_dlopen_self=unknown
10899  enable_dlopen_self_static=unknown
10900else
10901  lt_cv_dlopen=no
10902  lt_cv_dlopen_libs=
10903
10904  case $host_os in
10905  beos*)
10906    lt_cv_dlopen="load_add_on"
10907    lt_cv_dlopen_libs=
10908    lt_cv_dlopen_self=yes
10909    ;;
10910
10911  mingw* | pw32* | cegcc*)
10912    lt_cv_dlopen="LoadLibrary"
10913    lt_cv_dlopen_libs=
10914    ;;
10915
10916  cygwin*)
10917    lt_cv_dlopen="dlopen"
10918    lt_cv_dlopen_libs=
10919    ;;
10920
10921  darwin*)
10922  # if libdl is installed we need to link against it
10923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10924$as_echo_n "checking for dlopen in -ldl... " >&6; }
10925if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10926  $as_echo_n "(cached) " >&6
10927else
10928  ac_check_lib_save_LIBS=$LIBS
10929LIBS="-ldl  $LIBS"
10930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931/* end confdefs.h.  */
10932
10933/* Override any GCC internal prototype to avoid an error.
10934   Use char because int might match the return type of a GCC
10935   builtin and then its argument prototype would still apply.  */
10936#ifdef __cplusplus
10937extern "C"
10938#endif
10939char dlopen ();
10940int
10941main ()
10942{
10943return dlopen ();
10944  ;
10945  return 0;
10946}
10947_ACEOF
10948if ac_fn_c_try_link "$LINENO"; then :
10949  ac_cv_lib_dl_dlopen=yes
10950else
10951  ac_cv_lib_dl_dlopen=no
10952fi
10953rm -f core conftest.err conftest.$ac_objext \
10954    conftest$ac_exeext conftest.$ac_ext
10955LIBS=$ac_check_lib_save_LIBS
10956fi
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10958$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10959if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10960  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10961else
10962
10963    lt_cv_dlopen="dyld"
10964    lt_cv_dlopen_libs=
10965    lt_cv_dlopen_self=yes
10966
10967fi
10968
10969    ;;
10970
10971  *)
10972    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10973if test "x$ac_cv_func_shl_load" = x""yes; then :
10974  lt_cv_dlopen="shl_load"
10975else
10976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10977$as_echo_n "checking for shl_load in -ldld... " >&6; }
10978if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10979  $as_echo_n "(cached) " >&6
10980else
10981  ac_check_lib_save_LIBS=$LIBS
10982LIBS="-ldld  $LIBS"
10983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984/* end confdefs.h.  */
10985
10986/* Override any GCC internal prototype to avoid an error.
10987   Use char because int might match the return type of a GCC
10988   builtin and then its argument prototype would still apply.  */
10989#ifdef __cplusplus
10990extern "C"
10991#endif
10992char shl_load ();
10993int
10994main ()
10995{
10996return shl_load ();
10997  ;
10998  return 0;
10999}
11000_ACEOF
11001if ac_fn_c_try_link "$LINENO"; then :
11002  ac_cv_lib_dld_shl_load=yes
11003else
11004  ac_cv_lib_dld_shl_load=no
11005fi
11006rm -f core conftest.err conftest.$ac_objext \
11007    conftest$ac_exeext conftest.$ac_ext
11008LIBS=$ac_check_lib_save_LIBS
11009fi
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11011$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11012if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11013  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11014else
11015  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11016if test "x$ac_cv_func_dlopen" = x""yes; then :
11017  lt_cv_dlopen="dlopen"
11018else
11019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11020$as_echo_n "checking for dlopen in -ldl... " >&6; }
11021if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11022  $as_echo_n "(cached) " >&6
11023else
11024  ac_check_lib_save_LIBS=$LIBS
11025LIBS="-ldl  $LIBS"
11026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027/* end confdefs.h.  */
11028
11029/* Override any GCC internal prototype to avoid an error.
11030   Use char because int might match the return type of a GCC
11031   builtin and then its argument prototype would still apply.  */
11032#ifdef __cplusplus
11033extern "C"
11034#endif
11035char dlopen ();
11036int
11037main ()
11038{
11039return dlopen ();
11040  ;
11041  return 0;
11042}
11043_ACEOF
11044if ac_fn_c_try_link "$LINENO"; then :
11045  ac_cv_lib_dl_dlopen=yes
11046else
11047  ac_cv_lib_dl_dlopen=no
11048fi
11049rm -f core conftest.err conftest.$ac_objext \
11050    conftest$ac_exeext conftest.$ac_ext
11051LIBS=$ac_check_lib_save_LIBS
11052fi
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11054$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11055if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11056  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11057else
11058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11059$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11060if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11061  $as_echo_n "(cached) " >&6
11062else
11063  ac_check_lib_save_LIBS=$LIBS
11064LIBS="-lsvld  $LIBS"
11065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h.  */
11067
11068/* Override any GCC internal prototype to avoid an error.
11069   Use char because int might match the return type of a GCC
11070   builtin and then its argument prototype would still apply.  */
11071#ifdef __cplusplus
11072extern "C"
11073#endif
11074char dlopen ();
11075int
11076main ()
11077{
11078return dlopen ();
11079  ;
11080  return 0;
11081}
11082_ACEOF
11083if ac_fn_c_try_link "$LINENO"; then :
11084  ac_cv_lib_svld_dlopen=yes
11085else
11086  ac_cv_lib_svld_dlopen=no
11087fi
11088rm -f core conftest.err conftest.$ac_objext \
11089    conftest$ac_exeext conftest.$ac_ext
11090LIBS=$ac_check_lib_save_LIBS
11091fi
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11093$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11094if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11095  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11096else
11097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11098$as_echo_n "checking for dld_link in -ldld... " >&6; }
11099if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11100  $as_echo_n "(cached) " >&6
11101else
11102  ac_check_lib_save_LIBS=$LIBS
11103LIBS="-ldld  $LIBS"
11104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105/* end confdefs.h.  */
11106
11107/* Override any GCC internal prototype to avoid an error.
11108   Use char because int might match the return type of a GCC
11109   builtin and then its argument prototype would still apply.  */
11110#ifdef __cplusplus
11111extern "C"
11112#endif
11113char dld_link ();
11114int
11115main ()
11116{
11117return dld_link ();
11118  ;
11119  return 0;
11120}
11121_ACEOF
11122if ac_fn_c_try_link "$LINENO"; then :
11123  ac_cv_lib_dld_dld_link=yes
11124else
11125  ac_cv_lib_dld_dld_link=no
11126fi
11127rm -f core conftest.err conftest.$ac_objext \
11128    conftest$ac_exeext conftest.$ac_ext
11129LIBS=$ac_check_lib_save_LIBS
11130fi
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11132$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11133if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11134  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11135fi
11136
11137
11138fi
11139
11140
11141fi
11142
11143
11144fi
11145
11146
11147fi
11148
11149
11150fi
11151
11152    ;;
11153  esac
11154
11155  if test "x$lt_cv_dlopen" != xno; then
11156    enable_dlopen=yes
11157  else
11158    enable_dlopen=no
11159  fi
11160
11161  case $lt_cv_dlopen in
11162  dlopen)
11163    save_CPPFLAGS="$CPPFLAGS"
11164    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11165
11166    save_LDFLAGS="$LDFLAGS"
11167    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11168
11169    save_LIBS="$LIBS"
11170    LIBS="$lt_cv_dlopen_libs $LIBS"
11171
11172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11173$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11174if test "${lt_cv_dlopen_self+set}" = set; then :
11175  $as_echo_n "(cached) " >&6
11176else
11177  	  if test "$cross_compiling" = yes; then :
11178  lt_cv_dlopen_self=cross
11179else
11180  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11181  lt_status=$lt_dlunknown
11182  cat > conftest.$ac_ext <<_LT_EOF
11183#line 11183 "configure"
11184#include "confdefs.h"
11185
11186#if HAVE_DLFCN_H
11187#include <dlfcn.h>
11188#endif
11189
11190#include <stdio.h>
11191
11192#ifdef RTLD_GLOBAL
11193#  define LT_DLGLOBAL		RTLD_GLOBAL
11194#else
11195#  ifdef DL_GLOBAL
11196#    define LT_DLGLOBAL		DL_GLOBAL
11197#  else
11198#    define LT_DLGLOBAL		0
11199#  endif
11200#endif
11201
11202/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11203   find out it does not work in some platform. */
11204#ifndef LT_DLLAZY_OR_NOW
11205#  ifdef RTLD_LAZY
11206#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11207#  else
11208#    ifdef DL_LAZY
11209#      define LT_DLLAZY_OR_NOW		DL_LAZY
11210#    else
11211#      ifdef RTLD_NOW
11212#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11213#      else
11214#        ifdef DL_NOW
11215#          define LT_DLLAZY_OR_NOW	DL_NOW
11216#        else
11217#          define LT_DLLAZY_OR_NOW	0
11218#        endif
11219#      endif
11220#    endif
11221#  endif
11222#endif
11223
11224void fnord() { int i=42;}
11225int main ()
11226{
11227  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11228  int status = $lt_dlunknown;
11229
11230  if (self)
11231    {
11232      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11233      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11234      /* dlclose (self); */
11235    }
11236  else
11237    puts (dlerror ());
11238
11239  return status;
11240}
11241_LT_EOF
11242  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11243  (eval $ac_link) 2>&5
11244  ac_status=$?
11245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11246  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11247    (./conftest; exit; ) >&5 2>/dev/null
11248    lt_status=$?
11249    case x$lt_status in
11250      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11251      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11252      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11253    esac
11254  else :
11255    # compilation failed
11256    lt_cv_dlopen_self=no
11257  fi
11258fi
11259rm -fr conftest*
11260
11261
11262fi
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11264$as_echo "$lt_cv_dlopen_self" >&6; }
11265
11266    if test "x$lt_cv_dlopen_self" = xyes; then
11267      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11268      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11269$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11270if test "${lt_cv_dlopen_self_static+set}" = set; then :
11271  $as_echo_n "(cached) " >&6
11272else
11273  	  if test "$cross_compiling" = yes; then :
11274  lt_cv_dlopen_self_static=cross
11275else
11276  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11277  lt_status=$lt_dlunknown
11278  cat > conftest.$ac_ext <<_LT_EOF
11279#line 11279 "configure"
11280#include "confdefs.h"
11281
11282#if HAVE_DLFCN_H
11283#include <dlfcn.h>
11284#endif
11285
11286#include <stdio.h>
11287
11288#ifdef RTLD_GLOBAL
11289#  define LT_DLGLOBAL		RTLD_GLOBAL
11290#else
11291#  ifdef DL_GLOBAL
11292#    define LT_DLGLOBAL		DL_GLOBAL
11293#  else
11294#    define LT_DLGLOBAL		0
11295#  endif
11296#endif
11297
11298/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11299   find out it does not work in some platform. */
11300#ifndef LT_DLLAZY_OR_NOW
11301#  ifdef RTLD_LAZY
11302#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11303#  else
11304#    ifdef DL_LAZY
11305#      define LT_DLLAZY_OR_NOW		DL_LAZY
11306#    else
11307#      ifdef RTLD_NOW
11308#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11309#      else
11310#        ifdef DL_NOW
11311#          define LT_DLLAZY_OR_NOW	DL_NOW
11312#        else
11313#          define LT_DLLAZY_OR_NOW	0
11314#        endif
11315#      endif
11316#    endif
11317#  endif
11318#endif
11319
11320void fnord() { int i=42;}
11321int main ()
11322{
11323  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11324  int status = $lt_dlunknown;
11325
11326  if (self)
11327    {
11328      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11329      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11330      /* dlclose (self); */
11331    }
11332  else
11333    puts (dlerror ());
11334
11335  return status;
11336}
11337_LT_EOF
11338  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11339  (eval $ac_link) 2>&5
11340  ac_status=$?
11341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11342  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11343    (./conftest; exit; ) >&5 2>/dev/null
11344    lt_status=$?
11345    case x$lt_status in
11346      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11347      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11348      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11349    esac
11350  else :
11351    # compilation failed
11352    lt_cv_dlopen_self_static=no
11353  fi
11354fi
11355rm -fr conftest*
11356
11357
11358fi
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11360$as_echo "$lt_cv_dlopen_self_static" >&6; }
11361    fi
11362
11363    CPPFLAGS="$save_CPPFLAGS"
11364    LDFLAGS="$save_LDFLAGS"
11365    LIBS="$save_LIBS"
11366    ;;
11367  esac
11368
11369  case $lt_cv_dlopen_self in
11370  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11371  *) enable_dlopen_self=unknown ;;
11372  esac
11373
11374  case $lt_cv_dlopen_self_static in
11375  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11376  *) enable_dlopen_self_static=unknown ;;
11377  esac
11378fi
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396striplib=
11397old_striplib=
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11399$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11400if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11401  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11402  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404$as_echo "yes" >&6; }
11405else
11406# FIXME - insert some real tests, host_os isn't really good enough
11407  case $host_os in
11408  darwin*)
11409    if test -n "$STRIP" ; then
11410      striplib="$STRIP -x"
11411      old_striplib="$STRIP -S"
11412      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11413$as_echo "yes" >&6; }
11414    else
11415      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
11417    fi
11418    ;;
11419  *)
11420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
11422    ;;
11423  esac
11424fi
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437  # Report which library types will actually be built
11438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11439$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11441$as_echo "$can_build_shared" >&6; }
11442
11443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11444$as_echo_n "checking whether to build shared libraries... " >&6; }
11445  test "$can_build_shared" = "no" && enable_shared=no
11446
11447  # On AIX, shared libraries and static libraries use the same namespace, and
11448  # are all built from PIC.
11449  case $host_os in
11450  aix3*)
11451    test "$enable_shared" = yes && enable_static=no
11452    if test -n "$RANLIB"; then
11453      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11454      postinstall_cmds='$RANLIB $lib'
11455    fi
11456    ;;
11457
11458  aix[4-9]*)
11459    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11460      test "$enable_shared" = yes && enable_static=no
11461    fi
11462    ;;
11463  esac
11464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11465$as_echo "$enable_shared" >&6; }
11466
11467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11468$as_echo_n "checking whether to build static libraries... " >&6; }
11469  # Make sure either enable_shared or enable_static is yes.
11470  test "$enable_shared" = yes || enable_static=yes
11471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11472$as_echo "$enable_static" >&6; }
11473
11474
11475
11476
11477fi
11478ac_ext=c
11479ac_cpp='$CPP $CPPFLAGS'
11480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11482ac_compiler_gnu=$ac_cv_c_compiler_gnu
11483
11484CC="$lt_save_CC"
11485
11486
11487ac_ext=cpp
11488ac_cpp='$CXXCPP $CPPFLAGS'
11489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11492
11493archive_cmds_need_lc_CXX=no
11494allow_undefined_flag_CXX=
11495always_export_symbols_CXX=no
11496archive_expsym_cmds_CXX=
11497compiler_needs_object_CXX=no
11498export_dynamic_flag_spec_CXX=
11499hardcode_direct_CXX=no
11500hardcode_direct_absolute_CXX=no
11501hardcode_libdir_flag_spec_CXX=
11502hardcode_libdir_flag_spec_ld_CXX=
11503hardcode_libdir_separator_CXX=
11504hardcode_minus_L_CXX=no
11505hardcode_shlibpath_var_CXX=unsupported
11506hardcode_automatic_CXX=no
11507inherit_rpath_CXX=no
11508module_cmds_CXX=
11509module_expsym_cmds_CXX=
11510link_all_deplibs_CXX=unknown
11511old_archive_cmds_CXX=$old_archive_cmds
11512no_undefined_flag_CXX=
11513whole_archive_flag_spec_CXX=
11514enable_shared_with_static_runtimes_CXX=no
11515
11516# Source file extension for C++ test sources.
11517ac_ext=cpp
11518
11519# Object file extension for compiled C++ test sources.
11520objext=o
11521objext_CXX=$objext
11522
11523# No sense in running all these tests if we already determined that
11524# the CXX compiler isn't working.  Some variables (like enable_shared)
11525# are currently assumed to apply to all compilers on this platform,
11526# and will be corrupted by setting them based on a non-working compiler.
11527if test "$_lt_caught_CXX_error" != yes; then
11528  # Code to be used in simple compile tests
11529  lt_simple_compile_test_code="int some_variable = 0;"
11530
11531  # Code to be used in simple link tests
11532  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11533
11534  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11535
11536
11537
11538
11539
11540
11541# If no C compiler was specified, use CC.
11542LTCC=${LTCC-"$CC"}
11543
11544# If no C compiler flags were specified, use CFLAGS.
11545LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11546
11547# Allow CC to be a program name with arguments.
11548compiler=$CC
11549
11550
11551  # save warnings/boilerplate of simple test code
11552  ac_outfile=conftest.$ac_objext
11553echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11554eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11555_lt_compiler_boilerplate=`cat conftest.err`
11556$RM conftest*
11557
11558  ac_outfile=conftest.$ac_objext
11559echo "$lt_simple_link_test_code" >conftest.$ac_ext
11560eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11561_lt_linker_boilerplate=`cat conftest.err`
11562$RM -r conftest*
11563
11564
11565  # Allow CC to be a program name with arguments.
11566  lt_save_CC=$CC
11567  lt_save_LD=$LD
11568  lt_save_GCC=$GCC
11569  GCC=$GXX
11570  lt_save_with_gnu_ld=$with_gnu_ld
11571  lt_save_path_LD=$lt_cv_path_LD
11572  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11573    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11574  else
11575    $as_unset lt_cv_prog_gnu_ld
11576  fi
11577  if test -n "${lt_cv_path_LDCXX+set}"; then
11578    lt_cv_path_LD=$lt_cv_path_LDCXX
11579  else
11580    $as_unset lt_cv_path_LD
11581  fi
11582  test -z "${LDCXX+set}" || LD=$LDCXX
11583  CC=${CXX-"c++"}
11584  compiler=$CC
11585  compiler_CXX=$CC
11586  for cc_temp in $compiler""; do
11587  case $cc_temp in
11588    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11589    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11590    \-*) ;;
11591    *) break;;
11592  esac
11593done
11594cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11595
11596
11597  if test -n "$compiler"; then
11598    # We don't want -fno-exception when compiling C++ code, so set the
11599    # no_builtin_flag separately
11600    if test "$GXX" = yes; then
11601      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11602    else
11603      lt_prog_compiler_no_builtin_flag_CXX=
11604    fi
11605
11606    if test "$GXX" = yes; then
11607      # Set up default GNU C++ configuration
11608
11609
11610
11611# Check whether --with-gnu-ld was given.
11612if test "${with_gnu_ld+set}" = set; then :
11613  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11614else
11615  with_gnu_ld=no
11616fi
11617
11618ac_prog=ld
11619if test "$GCC" = yes; then
11620  # Check if gcc -print-prog-name=ld gives a path.
11621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11622$as_echo_n "checking for ld used by $CC... " >&6; }
11623  case $host in
11624  *-*-mingw*)
11625    # gcc leaves a trailing carriage return which upsets mingw
11626    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11627  *)
11628    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11629  esac
11630  case $ac_prog in
11631    # Accept absolute paths.
11632    [\\/]* | ?:[\\/]*)
11633      re_direlt='/[^/][^/]*/\.\./'
11634      # Canonicalize the pathname of ld
11635      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11636      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11637	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11638      done
11639      test -z "$LD" && LD="$ac_prog"
11640      ;;
11641  "")
11642    # If it fails, then pretend we aren't using GCC.
11643    ac_prog=ld
11644    ;;
11645  *)
11646    # If it is relative, then search for the first ld in PATH.
11647    with_gnu_ld=unknown
11648    ;;
11649  esac
11650elif test "$with_gnu_ld" = yes; then
11651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11652$as_echo_n "checking for GNU ld... " >&6; }
11653else
11654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11655$as_echo_n "checking for non-GNU ld... " >&6; }
11656fi
11657if test "${lt_cv_path_LD+set}" = set; then :
11658  $as_echo_n "(cached) " >&6
11659else
11660  if test -z "$LD"; then
11661  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11662  for ac_dir in $PATH; do
11663    IFS="$lt_save_ifs"
11664    test -z "$ac_dir" && ac_dir=.
11665    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11666      lt_cv_path_LD="$ac_dir/$ac_prog"
11667      # Check to see if the program is GNU ld.  I'd rather use --version,
11668      # but apparently some variants of GNU ld only accept -v.
11669      # Break only if it was the GNU/non-GNU ld that we prefer.
11670      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11671      *GNU* | *'with BFD'*)
11672	test "$with_gnu_ld" != no && break
11673	;;
11674      *)
11675	test "$with_gnu_ld" != yes && break
11676	;;
11677      esac
11678    fi
11679  done
11680  IFS="$lt_save_ifs"
11681else
11682  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11683fi
11684fi
11685
11686LD="$lt_cv_path_LD"
11687if test -n "$LD"; then
11688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11689$as_echo "$LD" >&6; }
11690else
11691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692$as_echo "no" >&6; }
11693fi
11694test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11696$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11697if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11698  $as_echo_n "(cached) " >&6
11699else
11700  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11701case `$LD -v 2>&1 </dev/null` in
11702*GNU* | *'with BFD'*)
11703  lt_cv_prog_gnu_ld=yes
11704  ;;
11705*)
11706  lt_cv_prog_gnu_ld=no
11707  ;;
11708esac
11709fi
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11711$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11712with_gnu_ld=$lt_cv_prog_gnu_ld
11713
11714
11715
11716
11717
11718
11719
11720      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11721      # archiving commands below assume that GNU ld is being used.
11722      if test "$with_gnu_ld" = yes; then
11723        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11724        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11725
11726        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11727        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11728
11729        # If archive_cmds runs LD, not CC, wlarc should be empty
11730        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11731        #     investigate it a little bit more. (MM)
11732        wlarc='${wl}'
11733
11734        # ancient GNU ld didn't support --whole-archive et. al.
11735        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11736	  $GREP 'no-whole-archive' > /dev/null; then
11737          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11738        else
11739          whole_archive_flag_spec_CXX=
11740        fi
11741      else
11742        with_gnu_ld=no
11743        wlarc=
11744
11745        # A generic and very simple default shared library creation
11746        # command for GNU C++ for the case where it uses the native
11747        # linker, instead of GNU ld.  If possible, this setting should
11748        # overridden to take advantage of the native linker features on
11749        # the platform it is being used on.
11750        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11751      fi
11752
11753      # Commands to make compiler produce verbose output that lists
11754      # what "hidden" libraries, object files and flags are used when
11755      # linking a shared library.
11756      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11757
11758    else
11759      GXX=no
11760      with_gnu_ld=no
11761      wlarc=
11762    fi
11763
11764    # PORTME: fill in a description of your system's C++ link characteristics
11765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11766$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11767    ld_shlibs_CXX=yes
11768    case $host_os in
11769      aix3*)
11770        # FIXME: insert proper C++ library support
11771        ld_shlibs_CXX=no
11772        ;;
11773      aix[4-9]*)
11774        if test "$host_cpu" = ia64; then
11775          # On IA64, the linker does run time linking by default, so we don't
11776          # have to do anything special.
11777          aix_use_runtimelinking=no
11778          exp_sym_flag='-Bexport'
11779          no_entry_flag=""
11780        else
11781          aix_use_runtimelinking=no
11782
11783          # Test if we are trying to use run time linking or normal
11784          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11785          # need to do runtime linking.
11786          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11787	    for ld_flag in $LDFLAGS; do
11788	      case $ld_flag in
11789	      *-brtl*)
11790	        aix_use_runtimelinking=yes
11791	        break
11792	        ;;
11793	      esac
11794	    done
11795	    ;;
11796          esac
11797
11798          exp_sym_flag='-bexport'
11799          no_entry_flag='-bnoentry'
11800        fi
11801
11802        # When large executables or shared objects are built, AIX ld can
11803        # have problems creating the table of contents.  If linking a library
11804        # or program results in "error TOC overflow" add -mminimal-toc to
11805        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11806        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11807
11808        archive_cmds_CXX=''
11809        hardcode_direct_CXX=yes
11810        hardcode_direct_absolute_CXX=yes
11811        hardcode_libdir_separator_CXX=':'
11812        link_all_deplibs_CXX=yes
11813        file_list_spec_CXX='${wl}-f,'
11814
11815        if test "$GXX" = yes; then
11816          case $host_os in aix4.[012]|aix4.[012].*)
11817          # We only want to do this on AIX 4.2 and lower, the check
11818          # below for broken collect2 doesn't work under 4.3+
11819	  collect2name=`${CC} -print-prog-name=collect2`
11820	  if test -f "$collect2name" &&
11821	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11822	  then
11823	    # We have reworked collect2
11824	    :
11825	  else
11826	    # We have old collect2
11827	    hardcode_direct_CXX=unsupported
11828	    # It fails to find uninstalled libraries when the uninstalled
11829	    # path is not listed in the libpath.  Setting hardcode_minus_L
11830	    # to unsupported forces relinking
11831	    hardcode_minus_L_CXX=yes
11832	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11833	    hardcode_libdir_separator_CXX=
11834	  fi
11835          esac
11836          shared_flag='-shared'
11837	  if test "$aix_use_runtimelinking" = yes; then
11838	    shared_flag="$shared_flag "'${wl}-G'
11839	  fi
11840        else
11841          # not using gcc
11842          if test "$host_cpu" = ia64; then
11843	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11844	  # chokes on -Wl,-G. The following line is correct:
11845	  shared_flag='-G'
11846          else
11847	    if test "$aix_use_runtimelinking" = yes; then
11848	      shared_flag='${wl}-G'
11849	    else
11850	      shared_flag='${wl}-bM:SRE'
11851	    fi
11852          fi
11853        fi
11854
11855        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11856        # It seems that -bexpall does not export symbols beginning with
11857        # underscore (_), so it is better to generate a list of symbols to
11858	# export.
11859        always_export_symbols_CXX=yes
11860        if test "$aix_use_runtimelinking" = yes; then
11861          # Warning - without using the other runtime loading flags (-brtl),
11862          # -berok will link without error, but may produce a broken library.
11863          allow_undefined_flag_CXX='-berok'
11864          # Determine the default libpath from the value encoded in an empty
11865          # executable.
11866          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867/* end confdefs.h.  */
11868
11869int
11870main ()
11871{
11872
11873  ;
11874  return 0;
11875}
11876_ACEOF
11877if ac_fn_cxx_try_link "$LINENO"; then :
11878
11879lt_aix_libpath_sed='
11880    /Import File Strings/,/^$/ {
11881	/^0/ {
11882	    s/^0  *\(.*\)$/\1/
11883	    p
11884	}
11885    }'
11886aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11887# Check for a 64-bit object if we didn't find anything.
11888if test -z "$aix_libpath"; then
11889  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11890fi
11891fi
11892rm -f core conftest.err conftest.$ac_objext \
11893    conftest$ac_exeext conftest.$ac_ext
11894if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11895
11896          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11897
11898          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11899        else
11900          if test "$host_cpu" = ia64; then
11901	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11902	    allow_undefined_flag_CXX="-z nodefs"
11903	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11904          else
11905	    # Determine the default libpath from the value encoded in an
11906	    # empty executable.
11907	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908/* end confdefs.h.  */
11909
11910int
11911main ()
11912{
11913
11914  ;
11915  return 0;
11916}
11917_ACEOF
11918if ac_fn_cxx_try_link "$LINENO"; then :
11919
11920lt_aix_libpath_sed='
11921    /Import File Strings/,/^$/ {
11922	/^0/ {
11923	    s/^0  *\(.*\)$/\1/
11924	    p
11925	}
11926    }'
11927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11928# Check for a 64-bit object if we didn't find anything.
11929if test -z "$aix_libpath"; then
11930  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11931fi
11932fi
11933rm -f core conftest.err conftest.$ac_objext \
11934    conftest$ac_exeext conftest.$ac_ext
11935if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11936
11937	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11938	    # Warning - without using the other run time loading flags,
11939	    # -berok will link without error, but may produce a broken library.
11940	    no_undefined_flag_CXX=' ${wl}-bernotok'
11941	    allow_undefined_flag_CXX=' ${wl}-berok'
11942	    # Exported symbols can be pulled into shared objects from archives
11943	    whole_archive_flag_spec_CXX='$convenience'
11944	    archive_cmds_need_lc_CXX=yes
11945	    # This is similar to how AIX traditionally builds its shared
11946	    # libraries.
11947	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11948          fi
11949        fi
11950        ;;
11951
11952      beos*)
11953	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11954	  allow_undefined_flag_CXX=unsupported
11955	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11956	  # support --undefined.  This deserves some investigation.  FIXME
11957	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11958	else
11959	  ld_shlibs_CXX=no
11960	fi
11961	;;
11962
11963      chorus*)
11964        case $cc_basename in
11965          *)
11966	  # FIXME: insert proper C++ library support
11967	  ld_shlibs_CXX=no
11968	  ;;
11969        esac
11970        ;;
11971
11972      cygwin* | mingw* | pw32* | cegcc*)
11973        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11974        # as there is no search path for DLLs.
11975        hardcode_libdir_flag_spec_CXX='-L$libdir'
11976        allow_undefined_flag_CXX=unsupported
11977        always_export_symbols_CXX=no
11978        enable_shared_with_static_runtimes_CXX=yes
11979
11980        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11981          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11982          # If the export-symbols file already is a .def file (1st line
11983          # is EXPORTS), use it as is; otherwise, prepend...
11984          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11985	    cp $export_symbols $output_objdir/$soname.def;
11986          else
11987	    echo EXPORTS > $output_objdir/$soname.def;
11988	    cat $export_symbols >> $output_objdir/$soname.def;
11989          fi~
11990          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11991        else
11992          ld_shlibs_CXX=no
11993        fi
11994        ;;
11995      darwin* | rhapsody*)
11996
11997
11998  archive_cmds_need_lc_CXX=no
11999  hardcode_direct_CXX=no
12000  hardcode_automatic_CXX=yes
12001  hardcode_shlibpath_var_CXX=unsupported
12002  whole_archive_flag_spec_CXX=''
12003  link_all_deplibs_CXX=yes
12004  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12005  case $cc_basename in
12006     ifort*) _lt_dar_can_shared=yes ;;
12007     *) _lt_dar_can_shared=$GCC ;;
12008  esac
12009  if test "$_lt_dar_can_shared" = "yes"; then
12010    output_verbose_link_cmd=echo
12011    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12012    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12013    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12014    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12015       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12016      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12017      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12018    fi
12019
12020  else
12021  ld_shlibs_CXX=no
12022  fi
12023
12024	;;
12025
12026      dgux*)
12027        case $cc_basename in
12028          ec++*)
12029	    # FIXME: insert proper C++ library support
12030	    ld_shlibs_CXX=no
12031	    ;;
12032          ghcx*)
12033	    # Green Hills C++ Compiler
12034	    # FIXME: insert proper C++ library support
12035	    ld_shlibs_CXX=no
12036	    ;;
12037          *)
12038	    # FIXME: insert proper C++ library support
12039	    ld_shlibs_CXX=no
12040	    ;;
12041        esac
12042        ;;
12043
12044      freebsd[12]*)
12045        # C++ shared libraries reported to be fairly broken before
12046	# switch to ELF
12047        ld_shlibs_CXX=no
12048        ;;
12049
12050      freebsd-elf*)
12051        archive_cmds_need_lc_CXX=no
12052        ;;
12053
12054      freebsd* | dragonfly*)
12055        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12056        # conventions
12057        ld_shlibs_CXX=yes
12058        ;;
12059
12060      gnu*)
12061        ;;
12062
12063      hpux9*)
12064        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12065        hardcode_libdir_separator_CXX=:
12066        export_dynamic_flag_spec_CXX='${wl}-E'
12067        hardcode_direct_CXX=yes
12068        hardcode_minus_L_CXX=yes # Not in the search PATH,
12069				             # but as the default
12070				             # location of the library.
12071
12072        case $cc_basename in
12073          CC*)
12074            # FIXME: insert proper C++ library support
12075            ld_shlibs_CXX=no
12076            ;;
12077          aCC*)
12078            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12079            # Commands to make compiler produce verbose output that lists
12080            # what "hidden" libraries, object files and flags are used when
12081            # linking a shared library.
12082            #
12083            # There doesn't appear to be a way to prevent this compiler from
12084            # explicitly linking system object files so we need to strip them
12085            # from the output so that they don't get included in the library
12086            # dependencies.
12087            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12088            ;;
12089          *)
12090            if test "$GXX" = yes; then
12091              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12092            else
12093              # FIXME: insert proper C++ library support
12094              ld_shlibs_CXX=no
12095            fi
12096            ;;
12097        esac
12098        ;;
12099
12100      hpux10*|hpux11*)
12101        if test $with_gnu_ld = no; then
12102	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12103	  hardcode_libdir_separator_CXX=:
12104
12105          case $host_cpu in
12106            hppa*64*|ia64*)
12107              ;;
12108            *)
12109	      export_dynamic_flag_spec_CXX='${wl}-E'
12110              ;;
12111          esac
12112        fi
12113        case $host_cpu in
12114          hppa*64*|ia64*)
12115            hardcode_direct_CXX=no
12116            hardcode_shlibpath_var_CXX=no
12117            ;;
12118          *)
12119            hardcode_direct_CXX=yes
12120            hardcode_direct_absolute_CXX=yes
12121            hardcode_minus_L_CXX=yes # Not in the search PATH,
12122					         # but as the default
12123					         # location of the library.
12124            ;;
12125        esac
12126
12127        case $cc_basename in
12128          CC*)
12129	    # FIXME: insert proper C++ library support
12130	    ld_shlibs_CXX=no
12131	    ;;
12132          aCC*)
12133	    case $host_cpu in
12134	      hppa*64*)
12135	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12136	        ;;
12137	      ia64*)
12138	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12139	        ;;
12140	      *)
12141	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12142	        ;;
12143	    esac
12144	    # Commands to make compiler produce verbose output that lists
12145	    # what "hidden" libraries, object files and flags are used when
12146	    # linking a shared library.
12147	    #
12148	    # There doesn't appear to be a way to prevent this compiler from
12149	    # explicitly linking system object files so we need to strip them
12150	    # from the output so that they don't get included in the library
12151	    # dependencies.
12152	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12153	    ;;
12154          *)
12155	    if test "$GXX" = yes; then
12156	      if test $with_gnu_ld = no; then
12157	        case $host_cpu in
12158	          hppa*64*)
12159	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12160	            ;;
12161	          ia64*)
12162	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12163	            ;;
12164	          *)
12165	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12166	            ;;
12167	        esac
12168	      fi
12169	    else
12170	      # FIXME: insert proper C++ library support
12171	      ld_shlibs_CXX=no
12172	    fi
12173	    ;;
12174        esac
12175        ;;
12176
12177      interix[3-9]*)
12178	hardcode_direct_CXX=no
12179	hardcode_shlibpath_var_CXX=no
12180	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12181	export_dynamic_flag_spec_CXX='${wl}-E'
12182	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12183	# Instead, shared libraries are loaded at an image base (0x10000000 by
12184	# default) and relocated if they conflict, which is a slow very memory
12185	# consuming and fragmenting process.  To avoid this, we pick a random,
12186	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12187	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12188	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12189	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12190	;;
12191      irix5* | irix6*)
12192        case $cc_basename in
12193          CC*)
12194	    # SGI C++
12195	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12196
12197	    # Archives containing C++ object files must be created using
12198	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12199	    # necessary to make sure instantiated templates are included
12200	    # in the archive.
12201	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12202	    ;;
12203          *)
12204	    if test "$GXX" = yes; then
12205	      if test "$with_gnu_ld" = no; then
12206	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12207	      else
12208	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12209	      fi
12210	    fi
12211	    link_all_deplibs_CXX=yes
12212	    ;;
12213        esac
12214        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12215        hardcode_libdir_separator_CXX=:
12216        inherit_rpath_CXX=yes
12217        ;;
12218
12219      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12220        case $cc_basename in
12221          KCC*)
12222	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12223
12224	    # KCC will only create a shared library if the output file
12225	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12226	    # to its proper name (with version) after linking.
12227	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12228	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12229	    # Commands to make compiler produce verbose output that lists
12230	    # what "hidden" libraries, object files and flags are used when
12231	    # linking a shared library.
12232	    #
12233	    # There doesn't appear to be a way to prevent this compiler from
12234	    # explicitly linking system object files so we need to strip them
12235	    # from the output so that they don't get included in the library
12236	    # dependencies.
12237	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12238
12239	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12240	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12241
12242	    # Archives containing C++ object files must be created using
12243	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12244	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12245	    ;;
12246	  icpc* | ecpc* )
12247	    # Intel C++
12248	    with_gnu_ld=yes
12249	    # version 8.0 and above of icpc choke on multiply defined symbols
12250	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12251	    # earlier do not add the objects themselves.
12252	    case `$CC -V 2>&1` in
12253	      *"Version 7."*)
12254	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12255		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12256		;;
12257	      *)  # Version 8.0 or newer
12258	        tmp_idyn=
12259	        case $host_cpu in
12260		  ia64*) tmp_idyn=' -i_dynamic';;
12261		esac
12262	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12263		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12264		;;
12265	    esac
12266	    archive_cmds_need_lc_CXX=no
12267	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12268	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12269	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12270	    ;;
12271          pgCC* | pgcpp*)
12272            # Portland Group C++ compiler
12273	    case `$CC -V` in
12274	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12275	      prelink_cmds_CXX='tpldir=Template.dir~
12276		rm -rf $tpldir~
12277		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12278		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12279	      old_archive_cmds_CXX='tpldir=Template.dir~
12280		rm -rf $tpldir~
12281		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12282		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12283		$RANLIB $oldlib'
12284	      archive_cmds_CXX='tpldir=Template.dir~
12285		rm -rf $tpldir~
12286		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12287		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12288	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12289		rm -rf $tpldir~
12290		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12291		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12292	      ;;
12293	    *) # Version 6 will use weak symbols
12294	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12295	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12296	      ;;
12297	    esac
12298
12299	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12300	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12301	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12302            ;;
12303	  cxx*)
12304	    # Compaq C++
12305	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12306	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12307
12308	    runpath_var=LD_RUN_PATH
12309	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12310	    hardcode_libdir_separator_CXX=:
12311
12312	    # Commands to make compiler produce verbose output that lists
12313	    # what "hidden" libraries, object files and flags are used when
12314	    # linking a shared library.
12315	    #
12316	    # There doesn't appear to be a way to prevent this compiler from
12317	    # explicitly linking system object files so we need to strip them
12318	    # from the output so that they don't get included in the library
12319	    # dependencies.
12320	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12321	    ;;
12322	  xl*)
12323	    # IBM XL 8.0 on PPC, with GNU ld
12324	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12325	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12326	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12327	    if test "x$supports_anon_versioning" = xyes; then
12328	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12329		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12330		echo "local: *; };" >> $output_objdir/$libname.ver~
12331		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12332	    fi
12333	    ;;
12334	  *)
12335	    case `$CC -V 2>&1 | sed 5q` in
12336	    *Sun\ C*)
12337	      # Sun C++ 5.9
12338	      no_undefined_flag_CXX=' -zdefs'
12339	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12340	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12341	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12342	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12343	      compiler_needs_object_CXX=yes
12344
12345	      # Not sure whether something based on
12346	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12347	      # would be better.
12348	      output_verbose_link_cmd='echo'
12349
12350	      # Archives containing C++ object files must be created using
12351	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12352	      # necessary to make sure instantiated templates are included
12353	      # in the archive.
12354	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12355	      ;;
12356	    esac
12357	    ;;
12358	esac
12359	;;
12360
12361      lynxos*)
12362        # FIXME: insert proper C++ library support
12363	ld_shlibs_CXX=no
12364	;;
12365
12366      m88k*)
12367        # FIXME: insert proper C++ library support
12368        ld_shlibs_CXX=no
12369	;;
12370
12371      mvs*)
12372        case $cc_basename in
12373          cxx*)
12374	    # FIXME: insert proper C++ library support
12375	    ld_shlibs_CXX=no
12376	    ;;
12377	  *)
12378	    # FIXME: insert proper C++ library support
12379	    ld_shlibs_CXX=no
12380	    ;;
12381	esac
12382	;;
12383
12384      netbsd*)
12385        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12386	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12387	  wlarc=
12388	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12389	  hardcode_direct_CXX=yes
12390	  hardcode_shlibpath_var_CXX=no
12391	fi
12392	# Workaround some broken pre-1.5 toolchains
12393	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12394	;;
12395
12396      *nto* | *qnx*)
12397        ld_shlibs_CXX=yes
12398	;;
12399
12400      openbsd2*)
12401        # C++ shared libraries are fairly broken
12402	ld_shlibs_CXX=no
12403	;;
12404
12405      openbsd*)
12406	if test -f /usr/libexec/ld.so; then
12407	  hardcode_direct_CXX=yes
12408	  hardcode_shlibpath_var_CXX=no
12409	  hardcode_direct_absolute_CXX=yes
12410	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12411	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12412	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12413	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12414	    export_dynamic_flag_spec_CXX='${wl}-E'
12415	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12416	  fi
12417	  output_verbose_link_cmd=echo
12418	else
12419	  ld_shlibs_CXX=no
12420	fi
12421	;;
12422
12423      osf3* | osf4* | osf5*)
12424        case $cc_basename in
12425          KCC*)
12426	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12427
12428	    # KCC will only create a shared library if the output file
12429	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12430	    # to its proper name (with version) after linking.
12431	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12432
12433	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12434	    hardcode_libdir_separator_CXX=:
12435
12436	    # Archives containing C++ object files must be created using
12437	    # the KAI C++ compiler.
12438	    case $host in
12439	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12440	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12441	    esac
12442	    ;;
12443          RCC*)
12444	    # Rational C++ 2.4.1
12445	    # FIXME: insert proper C++ library support
12446	    ld_shlibs_CXX=no
12447	    ;;
12448          cxx*)
12449	    case $host in
12450	      osf3*)
12451	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12452	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12453	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12454		;;
12455	      *)
12456	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12457	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12458	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12459	          echo "-hidden">> $lib.exp~
12460	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12461	          $RM $lib.exp'
12462	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12463		;;
12464	    esac
12465
12466	    hardcode_libdir_separator_CXX=:
12467
12468	    # Commands to make compiler produce verbose output that lists
12469	    # what "hidden" libraries, object files and flags are used when
12470	    # linking a shared library.
12471	    #
12472	    # There doesn't appear to be a way to prevent this compiler from
12473	    # explicitly linking system object files so we need to strip them
12474	    # from the output so that they don't get included in the library
12475	    # dependencies.
12476	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12477	    ;;
12478	  *)
12479	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12480	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12481	      case $host in
12482	        osf3*)
12483	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12484		  ;;
12485	        *)
12486	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12487		  ;;
12488	      esac
12489
12490	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12491	      hardcode_libdir_separator_CXX=:
12492
12493	      # Commands to make compiler produce verbose output that lists
12494	      # what "hidden" libraries, object files and flags are used when
12495	      # linking a shared library.
12496	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12497
12498	    else
12499	      # FIXME: insert proper C++ library support
12500	      ld_shlibs_CXX=no
12501	    fi
12502	    ;;
12503        esac
12504        ;;
12505
12506      psos*)
12507        # FIXME: insert proper C++ library support
12508        ld_shlibs_CXX=no
12509        ;;
12510
12511      sunos4*)
12512        case $cc_basename in
12513          CC*)
12514	    # Sun C++ 4.x
12515	    # FIXME: insert proper C++ library support
12516	    ld_shlibs_CXX=no
12517	    ;;
12518          lcc*)
12519	    # Lucid
12520	    # FIXME: insert proper C++ library support
12521	    ld_shlibs_CXX=no
12522	    ;;
12523          *)
12524	    # FIXME: insert proper C++ library support
12525	    ld_shlibs_CXX=no
12526	    ;;
12527        esac
12528        ;;
12529
12530      solaris*)
12531        case $cc_basename in
12532          CC*)
12533	    # Sun C++ 4.2, 5.x and Centerline C++
12534            archive_cmds_need_lc_CXX=yes
12535	    no_undefined_flag_CXX=' -zdefs'
12536	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12537	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12538	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12539
12540	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12541	    hardcode_shlibpath_var_CXX=no
12542	    case $host_os in
12543	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12544	      *)
12545		# The compiler driver will combine and reorder linker options,
12546		# but understands `-z linker_flag'.
12547	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12548		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12549	        ;;
12550	    esac
12551	    link_all_deplibs_CXX=yes
12552
12553	    output_verbose_link_cmd='echo'
12554
12555	    # Archives containing C++ object files must be created using
12556	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12557	    # necessary to make sure instantiated templates are included
12558	    # in the archive.
12559	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12560	    ;;
12561          gcx*)
12562	    # Green Hills C++ Compiler
12563	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12564
12565	    # The C++ compiler must be used to create the archive.
12566	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12567	    ;;
12568          *)
12569	    # GNU C++ compiler with Solaris linker
12570	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12571	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12572	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12573	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12574	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12575		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12576
12577	        # Commands to make compiler produce verbose output that lists
12578	        # what "hidden" libraries, object files and flags are used when
12579	        # linking a shared library.
12580	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12581	      else
12582	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12583	        # platform.
12584	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12585	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12586		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12587
12588	        # Commands to make compiler produce verbose output that lists
12589	        # what "hidden" libraries, object files and flags are used when
12590	        # linking a shared library.
12591	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12592	      fi
12593
12594	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12595	      case $host_os in
12596		solaris2.[0-5] | solaris2.[0-5].*) ;;
12597		*)
12598		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12599		  ;;
12600	      esac
12601	    fi
12602	    ;;
12603        esac
12604        ;;
12605
12606    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12607      no_undefined_flag_CXX='${wl}-z,text'
12608      archive_cmds_need_lc_CXX=no
12609      hardcode_shlibpath_var_CXX=no
12610      runpath_var='LD_RUN_PATH'
12611
12612      case $cc_basename in
12613        CC*)
12614	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12616	  ;;
12617	*)
12618	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12619	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12620	  ;;
12621      esac
12622      ;;
12623
12624      sysv5* | sco3.2v5* | sco5v6*)
12625	# Note: We can NOT use -z defs as we might desire, because we do not
12626	# link with -lc, and that would cause any symbols used from libc to
12627	# always be unresolved, which means just about no library would
12628	# ever link correctly.  If we're not using GNU ld we use -z text
12629	# though, which does catch some bad symbols but isn't as heavy-handed
12630	# as -z defs.
12631	no_undefined_flag_CXX='${wl}-z,text'
12632	allow_undefined_flag_CXX='${wl}-z,nodefs'
12633	archive_cmds_need_lc_CXX=no
12634	hardcode_shlibpath_var_CXX=no
12635	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12636	hardcode_libdir_separator_CXX=':'
12637	link_all_deplibs_CXX=yes
12638	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12639	runpath_var='LD_RUN_PATH'
12640
12641	case $cc_basename in
12642          CC*)
12643	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12644	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12645	    ;;
12646	  *)
12647	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12648	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12649	    ;;
12650	esac
12651      ;;
12652
12653      tandem*)
12654        case $cc_basename in
12655          NCC*)
12656	    # NonStop-UX NCC 3.20
12657	    # FIXME: insert proper C++ library support
12658	    ld_shlibs_CXX=no
12659	    ;;
12660          *)
12661	    # FIXME: insert proper C++ library support
12662	    ld_shlibs_CXX=no
12663	    ;;
12664        esac
12665        ;;
12666
12667      vxworks*)
12668        # FIXME: insert proper C++ library support
12669        ld_shlibs_CXX=no
12670        ;;
12671
12672      *)
12673        # FIXME: insert proper C++ library support
12674        ld_shlibs_CXX=no
12675        ;;
12676    esac
12677
12678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12679$as_echo "$ld_shlibs_CXX" >&6; }
12680    test "$ld_shlibs_CXX" = no && can_build_shared=no
12681
12682    GCC_CXX="$GXX"
12683    LD_CXX="$LD"
12684
12685    ## CAVEAT EMPTOR:
12686    ## There is no encapsulation within the following macros, do not change
12687    ## the running order or otherwise move them around unless you know exactly
12688    ## what you are doing...
12689    # Dependencies to place before and after the object being linked:
12690predep_objects_CXX=
12691postdep_objects_CXX=
12692predeps_CXX=
12693postdeps_CXX=
12694compiler_lib_search_path_CXX=
12695
12696cat > conftest.$ac_ext <<_LT_EOF
12697class Foo
12698{
12699public:
12700  Foo (void) { a = 0; }
12701private:
12702  int a;
12703};
12704_LT_EOF
12705
12706if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12707  (eval $ac_compile) 2>&5
12708  ac_status=$?
12709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12710  test $ac_status = 0; }; then
12711  # Parse the compiler output and extract the necessary
12712  # objects, libraries and library flags.
12713
12714  # Sentinel used to keep track of whether or not we are before
12715  # the conftest object file.
12716  pre_test_object_deps_done=no
12717
12718  for p in `eval "$output_verbose_link_cmd"`; do
12719    case $p in
12720
12721    -L* | -R* | -l*)
12722       # Some compilers place space between "-{L,R}" and the path.
12723       # Remove the space.
12724       if test $p = "-L" ||
12725          test $p = "-R"; then
12726	 prev=$p
12727	 continue
12728       else
12729	 prev=
12730       fi
12731
12732       if test "$pre_test_object_deps_done" = no; then
12733	 case $p in
12734	 -L* | -R*)
12735	   # Internal compiler library paths should come after those
12736	   # provided the user.  The postdeps already come after the
12737	   # user supplied libs so there is no need to process them.
12738	   if test -z "$compiler_lib_search_path_CXX"; then
12739	     compiler_lib_search_path_CXX="${prev}${p}"
12740	   else
12741	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12742	   fi
12743	   ;;
12744	 # The "-l" case would never come before the object being
12745	 # linked, so don't bother handling this case.
12746	 esac
12747       else
12748	 if test -z "$postdeps_CXX"; then
12749	   postdeps_CXX="${prev}${p}"
12750	 else
12751	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12752	 fi
12753       fi
12754       ;;
12755
12756    *.$objext)
12757       # This assumes that the test object file only shows up
12758       # once in the compiler output.
12759       if test "$p" = "conftest.$objext"; then
12760	 pre_test_object_deps_done=yes
12761	 continue
12762       fi
12763
12764       if test "$pre_test_object_deps_done" = no; then
12765	 if test -z "$predep_objects_CXX"; then
12766	   predep_objects_CXX="$p"
12767	 else
12768	   predep_objects_CXX="$predep_objects_CXX $p"
12769	 fi
12770       else
12771	 if test -z "$postdep_objects_CXX"; then
12772	   postdep_objects_CXX="$p"
12773	 else
12774	   postdep_objects_CXX="$postdep_objects_CXX $p"
12775	 fi
12776       fi
12777       ;;
12778
12779    *) ;; # Ignore the rest.
12780
12781    esac
12782  done
12783
12784  # Clean up.
12785  rm -f a.out a.exe
12786else
12787  echo "libtool.m4: error: problem compiling CXX test program"
12788fi
12789
12790$RM -f confest.$objext
12791
12792# PORTME: override above test on systems where it is broken
12793case $host_os in
12794interix[3-9]*)
12795  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12796  # hack all around it, let's just trust "g++" to DTRT.
12797  predep_objects_CXX=
12798  postdep_objects_CXX=
12799  postdeps_CXX=
12800  ;;
12801
12802linux*)
12803  case `$CC -V 2>&1 | sed 5q` in
12804  *Sun\ C*)
12805    # Sun C++ 5.9
12806
12807    # The more standards-conforming stlport4 library is
12808    # incompatible with the Cstd library. Avoid specifying
12809    # it if it's in CXXFLAGS. Ignore libCrun as
12810    # -library=stlport4 depends on it.
12811    case " $CXX $CXXFLAGS " in
12812    *" -library=stlport4 "*)
12813      solaris_use_stlport4=yes
12814      ;;
12815    esac
12816
12817    if test "$solaris_use_stlport4" != yes; then
12818      postdeps_CXX='-library=Cstd -library=Crun'
12819    fi
12820    ;;
12821  esac
12822  ;;
12823
12824solaris*)
12825  case $cc_basename in
12826  CC*)
12827    # The more standards-conforming stlport4 library is
12828    # incompatible with the Cstd library. Avoid specifying
12829    # it if it's in CXXFLAGS. Ignore libCrun as
12830    # -library=stlport4 depends on it.
12831    case " $CXX $CXXFLAGS " in
12832    *" -library=stlport4 "*)
12833      solaris_use_stlport4=yes
12834      ;;
12835    esac
12836
12837    # Adding this requires a known-good setup of shared libraries for
12838    # Sun compiler versions before 5.6, else PIC objects from an old
12839    # archive will be linked into the output, leading to subtle bugs.
12840    if test "$solaris_use_stlport4" != yes; then
12841      postdeps_CXX='-library=Cstd -library=Crun'
12842    fi
12843    ;;
12844  esac
12845  ;;
12846esac
12847
12848
12849case " $postdeps_CXX " in
12850*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12851esac
12852 compiler_lib_search_dirs_CXX=
12853if test -n "${compiler_lib_search_path_CXX}"; then
12854 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12855fi
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887    lt_prog_compiler_wl_CXX=
12888lt_prog_compiler_pic_CXX=
12889lt_prog_compiler_static_CXX=
12890
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12892$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12893
12894  # C++ specific cases for pic, static, wl, etc.
12895  if test "$GXX" = yes; then
12896    lt_prog_compiler_wl_CXX='-Wl,'
12897    lt_prog_compiler_static_CXX='-static'
12898
12899    case $host_os in
12900    aix*)
12901      # All AIX code is PIC.
12902      if test "$host_cpu" = ia64; then
12903	# AIX 5 now supports IA64 processor
12904	lt_prog_compiler_static_CXX='-Bstatic'
12905      fi
12906      ;;
12907
12908    amigaos*)
12909      case $host_cpu in
12910      powerpc)
12911            # see comment about AmigaOS4 .so support
12912            lt_prog_compiler_pic_CXX='-fPIC'
12913        ;;
12914      m68k)
12915            # FIXME: we need at least 68020 code to build shared libraries, but
12916            # adding the `-m68020' flag to GCC prevents building anything better,
12917            # like `-m68040'.
12918            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12919        ;;
12920      esac
12921      ;;
12922
12923    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12924      # PIC is the default for these OSes.
12925      ;;
12926    mingw* | cygwin* | os2* | pw32* | cegcc*)
12927      # This hack is so that the source file can tell whether it is being
12928      # built for inclusion in a dll (and should export symbols for example).
12929      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12930      # (--disable-auto-import) libraries
12931      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12932      ;;
12933    darwin* | rhapsody*)
12934      # PIC is the default on this platform
12935      # Common symbols not allowed in MH_DYLIB files
12936      lt_prog_compiler_pic_CXX='-fno-common'
12937      ;;
12938    *djgpp*)
12939      # DJGPP does not support shared libraries at all
12940      lt_prog_compiler_pic_CXX=
12941      ;;
12942    interix[3-9]*)
12943      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12944      # Instead, we relocate shared libraries at runtime.
12945      ;;
12946    sysv4*MP*)
12947      if test -d /usr/nec; then
12948	lt_prog_compiler_pic_CXX=-Kconform_pic
12949      fi
12950      ;;
12951    hpux*)
12952      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12953      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12954      # sets the default TLS model and affects inlining.
12955      case $host_cpu in
12956      hppa*64*)
12957	;;
12958      *)
12959	lt_prog_compiler_pic_CXX='-fPIC'
12960	;;
12961      esac
12962      ;;
12963    *qnx* | *nto*)
12964      # QNX uses GNU C++, but need to define -shared option too, otherwise
12965      # it will coredump.
12966      lt_prog_compiler_pic_CXX='-fPIC -shared'
12967      ;;
12968    *)
12969      lt_prog_compiler_pic_CXX='-fPIC'
12970      ;;
12971    esac
12972  else
12973    case $host_os in
12974      aix[4-9]*)
12975	# All AIX code is PIC.
12976	if test "$host_cpu" = ia64; then
12977	  # AIX 5 now supports IA64 processor
12978	  lt_prog_compiler_static_CXX='-Bstatic'
12979	else
12980	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12981	fi
12982	;;
12983      chorus*)
12984	case $cc_basename in
12985	cxch68*)
12986	  # Green Hills C++ Compiler
12987	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12988	  ;;
12989	esac
12990	;;
12991      dgux*)
12992	case $cc_basename in
12993	  ec++*)
12994	    lt_prog_compiler_pic_CXX='-KPIC'
12995	    ;;
12996	  ghcx*)
12997	    # Green Hills C++ Compiler
12998	    lt_prog_compiler_pic_CXX='-pic'
12999	    ;;
13000	  *)
13001	    ;;
13002	esac
13003	;;
13004      freebsd* | dragonfly*)
13005	# FreeBSD uses GNU C++
13006	;;
13007      hpux9* | hpux10* | hpux11*)
13008	case $cc_basename in
13009	  CC*)
13010	    lt_prog_compiler_wl_CXX='-Wl,'
13011	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13012	    if test "$host_cpu" != ia64; then
13013	      lt_prog_compiler_pic_CXX='+Z'
13014	    fi
13015	    ;;
13016	  aCC*)
13017	    lt_prog_compiler_wl_CXX='-Wl,'
13018	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13019	    case $host_cpu in
13020	    hppa*64*|ia64*)
13021	      # +Z the default
13022	      ;;
13023	    *)
13024	      lt_prog_compiler_pic_CXX='+Z'
13025	      ;;
13026	    esac
13027	    ;;
13028	  *)
13029	    ;;
13030	esac
13031	;;
13032      interix*)
13033	# This is c89, which is MS Visual C++ (no shared libs)
13034	# Anyone wants to do a port?
13035	;;
13036      irix5* | irix6* | nonstopux*)
13037	case $cc_basename in
13038	  CC*)
13039	    lt_prog_compiler_wl_CXX='-Wl,'
13040	    lt_prog_compiler_static_CXX='-non_shared'
13041	    # CC pic flag -KPIC is the default.
13042	    ;;
13043	  *)
13044	    ;;
13045	esac
13046	;;
13047      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13048	case $cc_basename in
13049	  KCC*)
13050	    # KAI C++ Compiler
13051	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13052	    lt_prog_compiler_pic_CXX='-fPIC'
13053	    ;;
13054	  ecpc* )
13055	    # old Intel C++ for x86_64 which still supported -KPIC.
13056	    lt_prog_compiler_wl_CXX='-Wl,'
13057	    lt_prog_compiler_pic_CXX='-KPIC'
13058	    lt_prog_compiler_static_CXX='-static'
13059	    ;;
13060	  icpc* )
13061	    # Intel C++, used to be incompatible with GCC.
13062	    # ICC 10 doesn't accept -KPIC any more.
13063	    lt_prog_compiler_wl_CXX='-Wl,'
13064	    lt_prog_compiler_pic_CXX='-fPIC'
13065	    lt_prog_compiler_static_CXX='-static'
13066	    ;;
13067	  pgCC* | pgcpp*)
13068	    # Portland Group C++ compiler
13069	    lt_prog_compiler_wl_CXX='-Wl,'
13070	    lt_prog_compiler_pic_CXX='-fpic'
13071	    lt_prog_compiler_static_CXX='-Bstatic'
13072	    ;;
13073	  cxx*)
13074	    # Compaq C++
13075	    # Make sure the PIC flag is empty.  It appears that all Alpha
13076	    # Linux and Compaq Tru64 Unix objects are PIC.
13077	    lt_prog_compiler_pic_CXX=
13078	    lt_prog_compiler_static_CXX='-non_shared'
13079	    ;;
13080	  xlc* | xlC*)
13081	    # IBM XL 8.0 on PPC
13082	    lt_prog_compiler_wl_CXX='-Wl,'
13083	    lt_prog_compiler_pic_CXX='-qpic'
13084	    lt_prog_compiler_static_CXX='-qstaticlink'
13085	    ;;
13086	  *)
13087	    case `$CC -V 2>&1 | sed 5q` in
13088	    *Sun\ C*)
13089	      # Sun C++ 5.9
13090	      lt_prog_compiler_pic_CXX='-KPIC'
13091	      lt_prog_compiler_static_CXX='-Bstatic'
13092	      lt_prog_compiler_wl_CXX='-Qoption ld '
13093	      ;;
13094	    esac
13095	    ;;
13096	esac
13097	;;
13098      lynxos*)
13099	;;
13100      m88k*)
13101	;;
13102      mvs*)
13103	case $cc_basename in
13104	  cxx*)
13105	    lt_prog_compiler_pic_CXX='-W c,exportall'
13106	    ;;
13107	  *)
13108	    ;;
13109	esac
13110	;;
13111      netbsd* | netbsdelf*-gnu)
13112	;;
13113      *qnx* | *nto*)
13114        # QNX uses GNU C++, but need to define -shared option too, otherwise
13115        # it will coredump.
13116        lt_prog_compiler_pic_CXX='-fPIC -shared'
13117        ;;
13118      osf3* | osf4* | osf5*)
13119	case $cc_basename in
13120	  KCC*)
13121	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13122	    ;;
13123	  RCC*)
13124	    # Rational C++ 2.4.1
13125	    lt_prog_compiler_pic_CXX='-pic'
13126	    ;;
13127	  cxx*)
13128	    # Digital/Compaq C++
13129	    lt_prog_compiler_wl_CXX='-Wl,'
13130	    # Make sure the PIC flag is empty.  It appears that all Alpha
13131	    # Linux and Compaq Tru64 Unix objects are PIC.
13132	    lt_prog_compiler_pic_CXX=
13133	    lt_prog_compiler_static_CXX='-non_shared'
13134	    ;;
13135	  *)
13136	    ;;
13137	esac
13138	;;
13139      psos*)
13140	;;
13141      solaris*)
13142	case $cc_basename in
13143	  CC*)
13144	    # Sun C++ 4.2, 5.x and Centerline C++
13145	    lt_prog_compiler_pic_CXX='-KPIC'
13146	    lt_prog_compiler_static_CXX='-Bstatic'
13147	    lt_prog_compiler_wl_CXX='-Qoption ld '
13148	    ;;
13149	  gcx*)
13150	    # Green Hills C++ Compiler
13151	    lt_prog_compiler_pic_CXX='-PIC'
13152	    ;;
13153	  *)
13154	    ;;
13155	esac
13156	;;
13157      sunos4*)
13158	case $cc_basename in
13159	  CC*)
13160	    # Sun C++ 4.x
13161	    lt_prog_compiler_pic_CXX='-pic'
13162	    lt_prog_compiler_static_CXX='-Bstatic'
13163	    ;;
13164	  lcc*)
13165	    # Lucid
13166	    lt_prog_compiler_pic_CXX='-pic'
13167	    ;;
13168	  *)
13169	    ;;
13170	esac
13171	;;
13172      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13173	case $cc_basename in
13174	  CC*)
13175	    lt_prog_compiler_wl_CXX='-Wl,'
13176	    lt_prog_compiler_pic_CXX='-KPIC'
13177	    lt_prog_compiler_static_CXX='-Bstatic'
13178	    ;;
13179	esac
13180	;;
13181      tandem*)
13182	case $cc_basename in
13183	  NCC*)
13184	    # NonStop-UX NCC 3.20
13185	    lt_prog_compiler_pic_CXX='-KPIC'
13186	    ;;
13187	  *)
13188	    ;;
13189	esac
13190	;;
13191      vxworks*)
13192	;;
13193      *)
13194	lt_prog_compiler_can_build_shared_CXX=no
13195	;;
13196    esac
13197  fi
13198
13199case $host_os in
13200  # For platforms which do not support PIC, -DPIC is meaningless:
13201  *djgpp*)
13202    lt_prog_compiler_pic_CXX=
13203    ;;
13204  *)
13205    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13206    ;;
13207esac
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13209$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13210
13211
13212
13213#
13214# Check to make sure the PIC flag actually works.
13215#
13216if test -n "$lt_prog_compiler_pic_CXX"; then
13217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13218$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13219if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13220  $as_echo_n "(cached) " >&6
13221else
13222  lt_cv_prog_compiler_pic_works_CXX=no
13223   ac_outfile=conftest.$ac_objext
13224   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13225   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13226   # Insert the option either (1) after the last *FLAGS variable, or
13227   # (2) before a word containing "conftest.", or (3) at the end.
13228   # Note that $ac_compile itself does not contain backslashes and begins
13229   # with a dollar sign (not a hyphen), so the echo should work correctly.
13230   # The option is referenced via a variable to avoid confusing sed.
13231   lt_compile=`echo "$ac_compile" | $SED \
13232   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13233   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13234   -e 's:$: $lt_compiler_flag:'`
13235   (eval echo "\"\$as_me:13235: $lt_compile\"" >&5)
13236   (eval "$lt_compile" 2>conftest.err)
13237   ac_status=$?
13238   cat conftest.err >&5
13239   echo "$as_me:13239: \$? = $ac_status" >&5
13240   if (exit $ac_status) && test -s "$ac_outfile"; then
13241     # The compiler can only warn and ignore the option if not recognized
13242     # So say no if there are warnings other than the usual output.
13243     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13244     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13245     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13246       lt_cv_prog_compiler_pic_works_CXX=yes
13247     fi
13248   fi
13249   $RM conftest*
13250
13251fi
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13253$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13254
13255if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13256    case $lt_prog_compiler_pic_CXX in
13257     "" | " "*) ;;
13258     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13259     esac
13260else
13261    lt_prog_compiler_pic_CXX=
13262     lt_prog_compiler_can_build_shared_CXX=no
13263fi
13264
13265fi
13266
13267
13268
13269#
13270# Check to make sure the static flag actually works.
13271#
13272wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13274$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13275if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13276  $as_echo_n "(cached) " >&6
13277else
13278  lt_cv_prog_compiler_static_works_CXX=no
13279   save_LDFLAGS="$LDFLAGS"
13280   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13281   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13282   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13283     # The linker can only warn and ignore the option if not recognized
13284     # So say no if there are warnings
13285     if test -s conftest.err; then
13286       # Append any errors to the config.log.
13287       cat conftest.err 1>&5
13288       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13289       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13290       if diff conftest.exp conftest.er2 >/dev/null; then
13291         lt_cv_prog_compiler_static_works_CXX=yes
13292       fi
13293     else
13294       lt_cv_prog_compiler_static_works_CXX=yes
13295     fi
13296   fi
13297   $RM -r conftest*
13298   LDFLAGS="$save_LDFLAGS"
13299
13300fi
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13302$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13303
13304if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13305    :
13306else
13307    lt_prog_compiler_static_CXX=
13308fi
13309
13310
13311
13312
13313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13314$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13315if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13316  $as_echo_n "(cached) " >&6
13317else
13318  lt_cv_prog_compiler_c_o_CXX=no
13319   $RM -r conftest 2>/dev/null
13320   mkdir conftest
13321   cd conftest
13322   mkdir out
13323   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13324
13325   lt_compiler_flag="-o out/conftest2.$ac_objext"
13326   # Insert the option either (1) after the last *FLAGS variable, or
13327   # (2) before a word containing "conftest.", or (3) at the end.
13328   # Note that $ac_compile itself does not contain backslashes and begins
13329   # with a dollar sign (not a hyphen), so the echo should work correctly.
13330   lt_compile=`echo "$ac_compile" | $SED \
13331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13333   -e 's:$: $lt_compiler_flag:'`
13334   (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
13335   (eval "$lt_compile" 2>out/conftest.err)
13336   ac_status=$?
13337   cat out/conftest.err >&5
13338   echo "$as_me:13338: \$? = $ac_status" >&5
13339   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13340   then
13341     # The compiler can only warn and ignore the option if not recognized
13342     # So say no if there are warnings
13343     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13344     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13345     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13346       lt_cv_prog_compiler_c_o_CXX=yes
13347     fi
13348   fi
13349   chmod u+w . 2>&5
13350   $RM conftest*
13351   # SGI C++ compiler will create directory out/ii_files/ for
13352   # template instantiation
13353   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13354   $RM out/* && rmdir out
13355   cd ..
13356   $RM -r conftest
13357   $RM conftest*
13358
13359fi
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13361$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13362
13363
13364
13365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13366$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13367if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13368  $as_echo_n "(cached) " >&6
13369else
13370  lt_cv_prog_compiler_c_o_CXX=no
13371   $RM -r conftest 2>/dev/null
13372   mkdir conftest
13373   cd conftest
13374   mkdir out
13375   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13376
13377   lt_compiler_flag="-o out/conftest2.$ac_objext"
13378   # Insert the option either (1) after the last *FLAGS variable, or
13379   # (2) before a word containing "conftest.", or (3) at the end.
13380   # Note that $ac_compile itself does not contain backslashes and begins
13381   # with a dollar sign (not a hyphen), so the echo should work correctly.
13382   lt_compile=`echo "$ac_compile" | $SED \
13383   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13384   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13385   -e 's:$: $lt_compiler_flag:'`
13386   (eval echo "\"\$as_me:13386: $lt_compile\"" >&5)
13387   (eval "$lt_compile" 2>out/conftest.err)
13388   ac_status=$?
13389   cat out/conftest.err >&5
13390   echo "$as_me:13390: \$? = $ac_status" >&5
13391   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13392   then
13393     # The compiler can only warn and ignore the option if not recognized
13394     # So say no if there are warnings
13395     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13396     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13397     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13398       lt_cv_prog_compiler_c_o_CXX=yes
13399     fi
13400   fi
13401   chmod u+w . 2>&5
13402   $RM conftest*
13403   # SGI C++ compiler will create directory out/ii_files/ for
13404   # template instantiation
13405   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13406   $RM out/* && rmdir out
13407   cd ..
13408   $RM -r conftest
13409   $RM conftest*
13410
13411fi
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13413$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13414
13415
13416
13417
13418hard_links="nottested"
13419if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13420  # do not overwrite the value of need_locks provided by the user
13421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13422$as_echo_n "checking if we can lock with hard links... " >&6; }
13423  hard_links=yes
13424  $RM conftest*
13425  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13426  touch conftest.a
13427  ln conftest.a conftest.b 2>&5 || hard_links=no
13428  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13430$as_echo "$hard_links" >&6; }
13431  if test "$hard_links" = no; then
13432    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13433$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13434    need_locks=warn
13435  fi
13436else
13437  need_locks=no
13438fi
13439
13440
13441
13442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13443$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13444
13445  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13446  case $host_os in
13447  aix[4-9]*)
13448    # If we're using GNU nm, then we don't want the "-C" option.
13449    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13450    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13451      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13452    else
13453      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13454    fi
13455    ;;
13456  pw32*)
13457    export_symbols_cmds_CXX="$ltdll_cmds"
13458  ;;
13459  cygwin* | mingw* | cegcc*)
13460    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13461  ;;
13462  linux* | k*bsd*-gnu)
13463    link_all_deplibs_CXX=no
13464  ;;
13465  *)
13466    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13467  ;;
13468  esac
13469  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13470
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13472$as_echo "$ld_shlibs_CXX" >&6; }
13473test "$ld_shlibs_CXX" = no && can_build_shared=no
13474
13475with_gnu_ld_CXX=$with_gnu_ld
13476
13477
13478
13479
13480
13481
13482#
13483# Do we need to explicitly link libc?
13484#
13485case "x$archive_cmds_need_lc_CXX" in
13486x|xyes)
13487  # Assume -lc should be added
13488  archive_cmds_need_lc_CXX=yes
13489
13490  if test "$enable_shared" = yes && test "$GCC" = yes; then
13491    case $archive_cmds_CXX in
13492    *'~'*)
13493      # FIXME: we may have to deal with multi-command sequences.
13494      ;;
13495    '$CC '*)
13496      # Test whether the compiler implicitly links with -lc since on some
13497      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13498      # to ld, don't add -lc before -lgcc.
13499      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13500$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13501      $RM conftest*
13502      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13503
13504      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13505  (eval $ac_compile) 2>&5
13506  ac_status=$?
13507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13508  test $ac_status = 0; } 2>conftest.err; then
13509        soname=conftest
13510        lib=conftest
13511        libobjs=conftest.$ac_objext
13512        deplibs=
13513        wl=$lt_prog_compiler_wl_CXX
13514	pic_flag=$lt_prog_compiler_pic_CXX
13515        compiler_flags=-v
13516        linker_flags=-v
13517        verstring=
13518        output_objdir=.
13519        libname=conftest
13520        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13521        allow_undefined_flag_CXX=
13522        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13523  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13524  ac_status=$?
13525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13526  test $ac_status = 0; }
13527        then
13528	  archive_cmds_need_lc_CXX=no
13529        else
13530	  archive_cmds_need_lc_CXX=yes
13531        fi
13532        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13533      else
13534        cat conftest.err 1>&5
13535      fi
13536      $RM conftest*
13537      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13538$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13539      ;;
13540    esac
13541  fi
13542  ;;
13543esac
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13609$as_echo_n "checking dynamic linker characteristics... " >&6; }
13610
13611library_names_spec=
13612libname_spec='lib$name'
13613soname_spec=
13614shrext_cmds=".so"
13615postinstall_cmds=
13616postuninstall_cmds=
13617finish_cmds=
13618finish_eval=
13619shlibpath_var=
13620shlibpath_overrides_runpath=unknown
13621version_type=none
13622dynamic_linker="$host_os ld.so"
13623sys_lib_dlsearch_path_spec="/lib /usr/lib"
13624need_lib_prefix=unknown
13625hardcode_into_libs=no
13626
13627# when you set need_version to no, make sure it does not cause -set_version
13628# flags to be left without arguments
13629need_version=unknown
13630
13631case $host_os in
13632aix3*)
13633  version_type=linux
13634  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13635  shlibpath_var=LIBPATH
13636
13637  # AIX 3 has no versioning support, so we append a major version to the name.
13638  soname_spec='${libname}${release}${shared_ext}$major'
13639  ;;
13640
13641aix[4-9]*)
13642  version_type=linux
13643  need_lib_prefix=no
13644  need_version=no
13645  hardcode_into_libs=yes
13646  if test "$host_cpu" = ia64; then
13647    # AIX 5 supports IA64
13648    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13649    shlibpath_var=LD_LIBRARY_PATH
13650  else
13651    # With GCC up to 2.95.x, collect2 would create an import file
13652    # for dependence libraries.  The import file would start with
13653    # the line `#! .'.  This would cause the generated library to
13654    # depend on `.', always an invalid library.  This was fixed in
13655    # development snapshots of GCC prior to 3.0.
13656    case $host_os in
13657      aix4 | aix4.[01] | aix4.[01].*)
13658      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13659	   echo ' yes '
13660	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13661	:
13662      else
13663	can_build_shared=no
13664      fi
13665      ;;
13666    esac
13667    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13668    # soname into executable. Probably we can add versioning support to
13669    # collect2, so additional links can be useful in future.
13670    if test "$aix_use_runtimelinking" = yes; then
13671      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13672      # instead of lib<name>.a to let people know that these are not
13673      # typical AIX shared libraries.
13674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675    else
13676      # We preserve .a as extension for shared libraries through AIX4.2
13677      # and later when we are not doing run time linking.
13678      library_names_spec='${libname}${release}.a $libname.a'
13679      soname_spec='${libname}${release}${shared_ext}$major'
13680    fi
13681    shlibpath_var=LIBPATH
13682  fi
13683  ;;
13684
13685amigaos*)
13686  case $host_cpu in
13687  powerpc)
13688    # Since July 2007 AmigaOS4 officially supports .so libraries.
13689    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13690    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13691    ;;
13692  m68k)
13693    library_names_spec='$libname.ixlibrary $libname.a'
13694    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13695    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'
13696    ;;
13697  esac
13698  ;;
13699
13700beos*)
13701  library_names_spec='${libname}${shared_ext}'
13702  dynamic_linker="$host_os ld.so"
13703  shlibpath_var=LIBRARY_PATH
13704  ;;
13705
13706bsdi[45]*)
13707  version_type=linux
13708  need_version=no
13709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710  soname_spec='${libname}${release}${shared_ext}$major'
13711  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13712  shlibpath_var=LD_LIBRARY_PATH
13713  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13714  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13715  # the default ld.so.conf also contains /usr/contrib/lib and
13716  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13717  # libtool to hard-code these into programs
13718  ;;
13719
13720cygwin* | mingw* | pw32* | cegcc*)
13721  version_type=windows
13722  shrext_cmds=".dll"
13723  need_version=no
13724  need_lib_prefix=no
13725
13726  case $GCC,$host_os in
13727  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13728    library_names_spec='$libname.dll.a'
13729    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13730    postinstall_cmds='base_file=`basename \${file}`~
13731      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13732      dldir=$destdir/`dirname \$dlpath`~
13733      test -d \$dldir || mkdir -p \$dldir~
13734      $install_prog $dir/$dlname \$dldir/$dlname~
13735      chmod a+x \$dldir/$dlname~
13736      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13737        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13738      fi'
13739    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13740      dlpath=$dir/\$dldll~
13741       $RM \$dlpath'
13742    shlibpath_overrides_runpath=yes
13743
13744    case $host_os in
13745    cygwin*)
13746      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13747      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13748      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13749      ;;
13750    mingw* | cegcc*)
13751      # MinGW DLLs use traditional 'lib' prefix
13752      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13753      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13754      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13755        # It is most probably a Windows format PATH printed by
13756        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13757        # path with ; separators, and with drive letters. We can handle the
13758        # drive letters (cygwin fileutils understands them), so leave them,
13759        # especially as we might pass files found there to a mingw objdump,
13760        # which wouldn't understand a cygwinified path. Ahh.
13761        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13762      else
13763        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13764      fi
13765      ;;
13766    pw32*)
13767      # pw32 DLLs use 'pw' prefix rather than 'lib'
13768      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13769      ;;
13770    esac
13771    ;;
13772
13773  *)
13774    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13775    ;;
13776  esac
13777  dynamic_linker='Win32 ld.exe'
13778  # FIXME: first we should search . and the directory the executable is in
13779  shlibpath_var=PATH
13780  ;;
13781
13782darwin* | rhapsody*)
13783  dynamic_linker="$host_os dyld"
13784  version_type=darwin
13785  need_lib_prefix=no
13786  need_version=no
13787  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13788  soname_spec='${libname}${release}${major}$shared_ext'
13789  shlibpath_overrides_runpath=yes
13790  shlibpath_var=DYLD_LIBRARY_PATH
13791  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13792
13793  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13794  ;;
13795
13796dgux*)
13797  version_type=linux
13798  need_lib_prefix=no
13799  need_version=no
13800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13801  soname_spec='${libname}${release}${shared_ext}$major'
13802  shlibpath_var=LD_LIBRARY_PATH
13803  ;;
13804
13805freebsd1*)
13806  dynamic_linker=no
13807  ;;
13808
13809freebsd* | dragonfly*)
13810  # DragonFly does not have aout.  When/if they implement a new
13811  # versioning mechanism, adjust this.
13812  if test -x /usr/bin/objformat; then
13813    objformat=`/usr/bin/objformat`
13814  else
13815    case $host_os in
13816    freebsd[123]*) objformat=aout ;;
13817    *) objformat=elf ;;
13818    esac
13819  fi
13820  version_type=freebsd-$objformat
13821  case $version_type in
13822    freebsd-elf*)
13823      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13824      need_version=no
13825      need_lib_prefix=no
13826      ;;
13827    freebsd-*)
13828      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13829      need_version=yes
13830      ;;
13831  esac
13832  shlibpath_var=LD_LIBRARY_PATH
13833  case $host_os in
13834  freebsd2*)
13835    shlibpath_overrides_runpath=yes
13836    ;;
13837  freebsd3.[01]* | freebsdelf3.[01]*)
13838    shlibpath_overrides_runpath=yes
13839    hardcode_into_libs=yes
13840    ;;
13841  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13842  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13843    shlibpath_overrides_runpath=no
13844    hardcode_into_libs=yes
13845    ;;
13846  *) # from 4.6 on, and DragonFly
13847    shlibpath_overrides_runpath=yes
13848    hardcode_into_libs=yes
13849    ;;
13850  esac
13851  ;;
13852
13853gnu*)
13854  version_type=linux
13855  need_lib_prefix=no
13856  need_version=no
13857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13858  soname_spec='${libname}${release}${shared_ext}$major'
13859  shlibpath_var=LD_LIBRARY_PATH
13860  hardcode_into_libs=yes
13861  ;;
13862
13863hpux9* | hpux10* | hpux11*)
13864  # Give a soname corresponding to the major version so that dld.sl refuses to
13865  # link against other versions.
13866  version_type=sunos
13867  need_lib_prefix=no
13868  need_version=no
13869  case $host_cpu in
13870  ia64*)
13871    shrext_cmds='.so'
13872    hardcode_into_libs=yes
13873    dynamic_linker="$host_os dld.so"
13874    shlibpath_var=LD_LIBRARY_PATH
13875    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13876    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13877    soname_spec='${libname}${release}${shared_ext}$major'
13878    if test "X$HPUX_IA64_MODE" = X32; then
13879      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13880    else
13881      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13882    fi
13883    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13884    ;;
13885  hppa*64*)
13886    shrext_cmds='.sl'
13887    hardcode_into_libs=yes
13888    dynamic_linker="$host_os dld.sl"
13889    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13890    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13891    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13892    soname_spec='${libname}${release}${shared_ext}$major'
13893    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13894    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13895    ;;
13896  *)
13897    shrext_cmds='.sl'
13898    dynamic_linker="$host_os dld.sl"
13899    shlibpath_var=SHLIB_PATH
13900    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13901    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13902    soname_spec='${libname}${release}${shared_ext}$major'
13903    ;;
13904  esac
13905  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13906  postinstall_cmds='chmod 555 $lib'
13907  ;;
13908
13909interix[3-9]*)
13910  version_type=linux
13911  need_lib_prefix=no
13912  need_version=no
13913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13914  soname_spec='${libname}${release}${shared_ext}$major'
13915  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13916  shlibpath_var=LD_LIBRARY_PATH
13917  shlibpath_overrides_runpath=no
13918  hardcode_into_libs=yes
13919  ;;
13920
13921irix5* | irix6* | nonstopux*)
13922  case $host_os in
13923    nonstopux*) version_type=nonstopux ;;
13924    *)
13925	if test "$lt_cv_prog_gnu_ld" = yes; then
13926		version_type=linux
13927	else
13928		version_type=irix
13929	fi ;;
13930  esac
13931  need_lib_prefix=no
13932  need_version=no
13933  soname_spec='${libname}${release}${shared_ext}$major'
13934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13935  case $host_os in
13936  irix5* | nonstopux*)
13937    libsuff= shlibsuff=
13938    ;;
13939  *)
13940    case $LD in # libtool.m4 will add one of these switches to LD
13941    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13942      libsuff= shlibsuff= libmagic=32-bit;;
13943    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13944      libsuff=32 shlibsuff=N32 libmagic=N32;;
13945    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13946      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13947    *) libsuff= shlibsuff= libmagic=never-match;;
13948    esac
13949    ;;
13950  esac
13951  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13952  shlibpath_overrides_runpath=no
13953  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13954  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13955  hardcode_into_libs=yes
13956  ;;
13957
13958# No shared lib support for Linux oldld, aout, or coff.
13959linux*oldld* | linux*aout* | linux*coff*)
13960  dynamic_linker=no
13961  ;;
13962
13963# This must be Linux ELF.
13964linux* | k*bsd*-gnu | kopensolaris*-gnu)
13965  version_type=linux
13966  need_lib_prefix=no
13967  need_version=no
13968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969  soname_spec='${libname}${release}${shared_ext}$major'
13970  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13971  shlibpath_var=LD_LIBRARY_PATH
13972  shlibpath_overrides_runpath=no
13973  # Some binutils ld are patched to set DT_RUNPATH
13974  save_LDFLAGS=$LDFLAGS
13975  save_libdir=$libdir
13976  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13977       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979/* end confdefs.h.  */
13980
13981int
13982main ()
13983{
13984
13985  ;
13986  return 0;
13987}
13988_ACEOF
13989if ac_fn_cxx_try_link "$LINENO"; then :
13990  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13991  shlibpath_overrides_runpath=yes
13992fi
13993fi
13994rm -f core conftest.err conftest.$ac_objext \
13995    conftest$ac_exeext conftest.$ac_ext
13996  LDFLAGS=$save_LDFLAGS
13997  libdir=$save_libdir
13998
13999  # This implies no fast_install, which is unacceptable.
14000  # Some rework will be needed to allow for fast_install
14001  # before this can be enabled.
14002  hardcode_into_libs=yes
14003
14004  # Append ld.so.conf contents to the search path
14005  if test -f /etc/ld.so.conf; then
14006    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' ' '`
14007    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14008  fi
14009
14010  # We used to test for /lib/ld.so.1 and disable shared libraries on
14011  # powerpc, because MkLinux only supported shared libraries with the
14012  # GNU dynamic linker.  Since this was broken with cross compilers,
14013  # most powerpc-linux boxes support dynamic linking these days and
14014  # people can always --disable-shared, the test was removed, and we
14015  # assume the GNU/Linux dynamic linker is in use.
14016  dynamic_linker='GNU/Linux ld.so'
14017  ;;
14018
14019netbsdelf*-gnu)
14020  version_type=linux
14021  need_lib_prefix=no
14022  need_version=no
14023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14024  soname_spec='${libname}${release}${shared_ext}$major'
14025  shlibpath_var=LD_LIBRARY_PATH
14026  shlibpath_overrides_runpath=no
14027  hardcode_into_libs=yes
14028  dynamic_linker='NetBSD ld.elf_so'
14029  ;;
14030
14031netbsd*)
14032  version_type=sunos
14033  need_lib_prefix=no
14034  need_version=no
14035  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14037    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14038    dynamic_linker='NetBSD (a.out) ld.so'
14039  else
14040    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14041    soname_spec='${libname}${release}${shared_ext}$major'
14042    dynamic_linker='NetBSD ld.elf_so'
14043  fi
14044  shlibpath_var=LD_LIBRARY_PATH
14045  shlibpath_overrides_runpath=yes
14046  hardcode_into_libs=yes
14047  ;;
14048
14049newsos6)
14050  version_type=linux
14051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14052  shlibpath_var=LD_LIBRARY_PATH
14053  shlibpath_overrides_runpath=yes
14054  ;;
14055
14056*nto* | *qnx*)
14057  version_type=qnx
14058  need_lib_prefix=no
14059  need_version=no
14060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061  soname_spec='${libname}${release}${shared_ext}$major'
14062  shlibpath_var=LD_LIBRARY_PATH
14063  shlibpath_overrides_runpath=no
14064  hardcode_into_libs=yes
14065  dynamic_linker='ldqnx.so'
14066  ;;
14067
14068openbsd*)
14069  version_type=sunos
14070  sys_lib_dlsearch_path_spec="/usr/lib"
14071  need_lib_prefix=no
14072  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14073  case $host_os in
14074    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14075    *)				need_version=no  ;;
14076  esac
14077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14078  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14079  shlibpath_var=LD_LIBRARY_PATH
14080  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14081    case $host_os in
14082      openbsd2.[89] | openbsd2.[89].*)
14083	shlibpath_overrides_runpath=no
14084	;;
14085      *)
14086	shlibpath_overrides_runpath=yes
14087	;;
14088      esac
14089  else
14090    shlibpath_overrides_runpath=yes
14091  fi
14092  ;;
14093
14094os2*)
14095  libname_spec='$name'
14096  shrext_cmds=".dll"
14097  need_lib_prefix=no
14098  library_names_spec='$libname${shared_ext} $libname.a'
14099  dynamic_linker='OS/2 ld.exe'
14100  shlibpath_var=LIBPATH
14101  ;;
14102
14103osf3* | osf4* | osf5*)
14104  version_type=osf
14105  need_lib_prefix=no
14106  need_version=no
14107  soname_spec='${libname}${release}${shared_ext}$major'
14108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14109  shlibpath_var=LD_LIBRARY_PATH
14110  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14111  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14112  ;;
14113
14114rdos*)
14115  dynamic_linker=no
14116  ;;
14117
14118solaris*)
14119  version_type=linux
14120  need_lib_prefix=no
14121  need_version=no
14122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123  soname_spec='${libname}${release}${shared_ext}$major'
14124  shlibpath_var=LD_LIBRARY_PATH
14125  shlibpath_overrides_runpath=yes
14126  hardcode_into_libs=yes
14127  # ldd complains unless libraries are executable
14128  postinstall_cmds='chmod +x $lib'
14129  ;;
14130
14131sunos4*)
14132  version_type=sunos
14133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14134  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14135  shlibpath_var=LD_LIBRARY_PATH
14136  shlibpath_overrides_runpath=yes
14137  if test "$with_gnu_ld" = yes; then
14138    need_lib_prefix=no
14139  fi
14140  need_version=yes
14141  ;;
14142
14143sysv4 | sysv4.3*)
14144  version_type=linux
14145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146  soname_spec='${libname}${release}${shared_ext}$major'
14147  shlibpath_var=LD_LIBRARY_PATH
14148  case $host_vendor in
14149    sni)
14150      shlibpath_overrides_runpath=no
14151      need_lib_prefix=no
14152      runpath_var=LD_RUN_PATH
14153      ;;
14154    siemens)
14155      need_lib_prefix=no
14156      ;;
14157    motorola)
14158      need_lib_prefix=no
14159      need_version=no
14160      shlibpath_overrides_runpath=no
14161      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14162      ;;
14163  esac
14164  ;;
14165
14166sysv4*MP*)
14167  if test -d /usr/nec ;then
14168    version_type=linux
14169    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14170    soname_spec='$libname${shared_ext}.$major'
14171    shlibpath_var=LD_LIBRARY_PATH
14172  fi
14173  ;;
14174
14175sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14176  version_type=freebsd-elf
14177  need_lib_prefix=no
14178  need_version=no
14179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14180  soname_spec='${libname}${release}${shared_ext}$major'
14181  shlibpath_var=LD_LIBRARY_PATH
14182  shlibpath_overrides_runpath=yes
14183  hardcode_into_libs=yes
14184  if test "$with_gnu_ld" = yes; then
14185    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14186  else
14187    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14188    case $host_os in
14189      sco3.2v5*)
14190        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14191	;;
14192    esac
14193  fi
14194  sys_lib_dlsearch_path_spec='/usr/lib'
14195  ;;
14196
14197tpf*)
14198  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14199  version_type=linux
14200  need_lib_prefix=no
14201  need_version=no
14202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203  shlibpath_var=LD_LIBRARY_PATH
14204  shlibpath_overrides_runpath=no
14205  hardcode_into_libs=yes
14206  ;;
14207
14208uts4*)
14209  version_type=linux
14210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211  soname_spec='${libname}${release}${shared_ext}$major'
14212  shlibpath_var=LD_LIBRARY_PATH
14213  ;;
14214
14215*)
14216  dynamic_linker=no
14217  ;;
14218esac
14219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14220$as_echo "$dynamic_linker" >&6; }
14221test "$dynamic_linker" = no && can_build_shared=no
14222
14223variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14224if test "$GCC" = yes; then
14225  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14226fi
14227
14228if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14229  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14230fi
14231if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14232  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14233fi
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14271$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14272hardcode_action_CXX=
14273if test -n "$hardcode_libdir_flag_spec_CXX" ||
14274   test -n "$runpath_var_CXX" ||
14275   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14276
14277  # We can hardcode non-existent directories.
14278  if test "$hardcode_direct_CXX" != no &&
14279     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14280     # have to relink, otherwise we might link with an installed library
14281     # when we should be linking with a yet-to-be-installed one
14282     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14283     test "$hardcode_minus_L_CXX" != no; then
14284    # Linking always hardcodes the temporary library directory.
14285    hardcode_action_CXX=relink
14286  else
14287    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14288    hardcode_action_CXX=immediate
14289  fi
14290else
14291  # We cannot hardcode anything, or else we can only hardcode existing
14292  # directories.
14293  hardcode_action_CXX=unsupported
14294fi
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14296$as_echo "$hardcode_action_CXX" >&6; }
14297
14298if test "$hardcode_action_CXX" = relink ||
14299   test "$inherit_rpath_CXX" = yes; then
14300  # Fast installation is not supported
14301  enable_fast_install=no
14302elif test "$shlibpath_overrides_runpath" = yes ||
14303     test "$enable_shared" = no; then
14304  # Fast installation is not necessary
14305  enable_fast_install=needless
14306fi
14307
14308
14309
14310
14311
14312
14313
14314  fi # test -n "$compiler"
14315
14316  CC=$lt_save_CC
14317  LDCXX=$LD
14318  LD=$lt_save_LD
14319  GCC=$lt_save_GCC
14320  with_gnu_ld=$lt_save_with_gnu_ld
14321  lt_cv_path_LDCXX=$lt_cv_path_LD
14322  lt_cv_path_LD=$lt_save_path_LD
14323  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14324  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14325fi # test "$_lt_caught_CXX_error" != yes
14326
14327ac_ext=c
14328ac_cpp='$CPP $CPPFLAGS'
14329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14331ac_compiler_gnu=$ac_cv_c_compiler_gnu
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345        ac_config_commands="$ac_config_commands libtool"
14346
14347
14348
14349
14350# Only expand once:
14351
14352
14353
14354# Extract the first word of "help2man", so it can be a program name with args.
14355set dummy help2man; ac_word=$2
14356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14357$as_echo_n "checking for $ac_word... " >&6; }
14358if test "${ac_cv_prog_FOUND_HELP2MAN+set}" = set; then :
14359  $as_echo_n "(cached) " >&6
14360else
14361  if test -n "$FOUND_HELP2MAN"; then
14362  ac_cv_prog_FOUND_HELP2MAN="$FOUND_HELP2MAN" # Let the user override the test.
14363else
14364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365for as_dir in $PATH
14366do
14367  IFS=$as_save_IFS
14368  test -z "$as_dir" && as_dir=.
14369    for ac_exec_ext in '' $ac_executable_extensions; do
14370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14371    ac_cv_prog_FOUND_HELP2MAN="yes"
14372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14373    break 2
14374  fi
14375done
14376  done
14377IFS=$as_save_IFS
14378
14379  test -z "$ac_cv_prog_FOUND_HELP2MAN" && ac_cv_prog_FOUND_HELP2MAN="no"
14380fi
14381fi
14382FOUND_HELP2MAN=$ac_cv_prog_FOUND_HELP2MAN
14383if test -n "$FOUND_HELP2MAN"; then
14384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_HELP2MAN" >&5
14385$as_echo "$FOUND_HELP2MAN" >&6; }
14386else
14387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388$as_echo "no" >&6; }
14389fi
14390
14391
14392
14393###############################################################################
14394# top-level platform check
14395###############################################################################
14396
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PACKAGE_NAME platform portability" >&5
14398$as_echo_n "checking $PACKAGE_NAME platform portability... " >&6; }
14399X_PLATFORM=posix
14400case ${host} in
14401*-*-cygwin)
14402    X_CXX_W="$X_CXX_W -Wno-format"
14403    if test "$enable_cygwin_win32" = "yes"; then
14404        X_PLATFORM=win32
14405        X_CXX_ARCH="$X_CXX_ARCH -mwin32"
14406    fi
14407    ;;
14408*-*-mingw*)
14409    # do not support shared
14410    enable_shared=no
14411    X_PLATFORM=win32
14412    X_MINGW_LIBS="$X_MINGW_LIBS"
14413    X_CXX_W="$X_CXX_W -Wno-format"
14414    if test "$enable_mingw_threads" = "yes"; then
14415        X_CXX_ARCH="$X_CXX_ARCH -mthreads"
14416    fi
14417    ;;
14418esac
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $X_PLATFORM" >&5
14420$as_echo "$X_PLATFORM" >&6; }
14421
14422###############################################################################
14423# prepare project metadata
14424###############################################################################
14425
14426PROJECT_name="MP4v2"
14427PROJECT_name_lower="mp4v2"
14428PROJECT_name_upper="MP4V2"
14429PROJECT_name_formal="MP4v2 2.0.0"
14430PROJECT_url_website="http://code.google.com/p/mp4v2"
14431PROJECT_url_downloads="http://code.google.com/p/mp4v2/downloads/list"
14432PROJECT_url_discussion="http://groups.google.com/group/mp4v2"
14433PROJECT_irc="irc://irc.freenode.net/handbrake"
14434PROJECT_bugreport="<kidjan@gmail.com>"
14435
14436PROJECT_version="2.0.0"
14437PROJECT_version_hex="0x00020000"
14438PROJECT_version_major="2"
14439PROJECT_version_minor="0"
14440PROJECT_version_point="0"
14441PROJECT_repo_url="https://mp4v2.googlecode.com/svn/releases/2.0.0"
14442PROJECT_repo_branch="2.0.0"
14443PROJECT_repo_root="https://mp4v2.googlecode.com/svn"
14444PROJECT_repo_uuid="6e6572fa-98a6-11dd-ad9f-f77439c74b79"
14445PROJECT_repo_rev="493"
14446PROJECT_repo_date="2012-05-20 15:16:54 -0700 (Sun, 20 May 2012)"
14447PROJECT_repo_type="stable"
14448PROJECT_build="`date`"
14449
14450test -z "$PROJECT_version_hex"   && PROJECT_version_hex="0x0000000000000000LL"
14451test -z "$PROJECT_version_major" && PROJECT_version_major="0"
14452test -z "$PROJECT_version_minor" && PROJECT_version_minor="0"
14453test -z "$PROJECT_version_point" && PROJECT_version_point="0"
14454test -z "$PROJECT_repo_url"      && PROJECT_repo_url="svn://nowhere.com/project/unknown"
14455test -z "$PROJECT_repo_branch"   && PROJECT_repo_branch="unknown"
14456test -z "$PROJECT_repo_root"     && PROJECT_repo_root="svn://nowhere.com/project"
14457test -z "$PROJECT_repo_uuid"     && PROJECT_repo_uuid="00000000-0000-0000-0000-000000000000"
14458test -z "$PROJECT_repo_rev"      && PROJECT_repo_rev="0"
14459test -z "$PROJECT_repo_date"     && PROJECT_repo_date="unknown"
14460test -z "$PROJECT_repo_type"     && PROJECT_repo_type="unknown"
14461test -z "$PROJECT_build"         && PROJECT_build="unknown"
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486###############################################################################
14487# checks for libraries
14488###############################################################################
14489
14490###############################################################################
14491# checks for header files
14492###############################################################################
14493
14494###############################################################################
14495# checks for typedefs, structures, and compiler characteristics
14496###############################################################################
14497
14498###############################################################################
14499# replace -ggdb3 with -ggdb2 to avoid GNU 'as' from failing
14500# See http://code.google.com/p/mp4v2/issues/detail?id=27
14501###############################################################################
14502if test "$GXX" = "yes"; then
14503	CXXFLAGS_GGDB3=`echo "$CXXFLAGS" | sed -e 's/-ggdb3/-ggdb2/'`
14504	CXXFLAGS="$CXXFLAGS_GGDB3"
14505fi
14506
14507###############################################################################
14508# additional ldflags
14509###############################################################################
14510
14511case ${host} in
14512    *-*-darwin*)
14513        X_libmp4v2_la_LDFLAGS='-Wl,-current_version,$(PROJECT_version_major).$(PROJECT_version_minor).$(PROJECT_version_point) -Wl,-compatibility_version,$(PROJECT_version_major).0.0'
14514        ;;
14515    *-*-cygwin*)
14516        X_libmp4v2_la_LDFLAGS='-no-undefined'
14517        ;;
14518    *)
14519        X_libmp4v2_la_LDFLAGS=
14520        ;;
14521esac
14522
14523
14524
14525###############################################################################
14526# check for --disable-fvisibility
14527###############################################################################
14528
14529if test "$enable_fvisibility" != "no" -a "$GXX" = "yes"; then
14530    case ${host} in
14531        *-*-cygwin)
14532            ;;
14533        *-*-mingw*)
14534            ;;
14535        *)
14536            ac_ext=cpp
14537ac_cpp='$CXXCPP $CPPFLAGS'
14538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14541
14542            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports -fvisibility" >&5
14543$as_echo_n "checking if $CXX supports -fvisibility... " >&6; }
14544if test "${x_cv_fvisibility+set}" = set; then :
14545  $as_echo_n "(cached) " >&6
14546else
14547
14548                x_save="$CXXFLAGS"
14549                CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
14550                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551/* end confdefs.h.  */
14552
14553int
14554main ()
14555{
14556
14557  ;
14558  return 0;
14559}
14560_ACEOF
14561if ac_fn_cxx_try_compile "$LINENO"; then :
14562  x_cv_fvisibility=yes
14563else
14564  x_cv_fvisibility=no
14565fi
14566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14567                if test "$x_cv_fvisibility" != "yes"; then
14568                    CXXFLAGS="$x_save"
14569                fi
14570                x_save=
14571
14572fi
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_cv_fvisibility" >&5
14574$as_echo "$x_cv_fvisibility" >&6; }
14575            ;;
14576    esac
14577fi
14578
14579###############################################################################
14580# check for --disable-gch
14581###############################################################################
14582
14583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC precompiled-headers should be created" >&5
14584$as_echo_n "checking if GCC precompiled-headers should be created... " >&6; }
14585
14586X_GCH=0
14587X_GCH_FLAGS=
14588X_GCH_STATIC=0
14589X_GCH_STATIC_FLAGS="$lt_prog_compiler_static_CXX"
14590X_GCH_SHARED=0
14591X_GCH_SHARED_FLAGS="$lt_prog_compiler_pic_CXX"
14592
14593if test "$enable_gch" = "yes"; then
14594    X_GCH=1
14595elif test "$enable_gch" != "no"; then
14596    if test "$GXX" = "yes"; then
14597        case ${host_os} in
14598            cygwin*|darwin*|freebsd*|linux*|mingw*|solaris*)
14599                X_GCH=1
14600                ;;
14601        esac
14602    fi
14603fi
14604
14605if test "$X_GCH" -eq 1; then
14606    x_gch_result="yes"
14607    if test "$enable_static" = "yes"; then
14608        X_GCH_STATIC=1
14609    fi
14610    if test "$enable_shared" = "yes"; then
14611        X_GCH_SHARED=1
14612    fi
14613else
14614    x_gch_result="no"
14615fi
14616
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_gch_result" >&5
14618$as_echo "$x_gch_result" >&6; }
14619
14620
14621
14622
14623
14624
14625
14626
14627###############################################################################
14628# check for --disable-largefile
14629###############################################################################
14630
14631if test "$enable_largefile" != "no" -a "$ac_cv_header_unistd_h" = "yes"; then
14632    case ${host_cpu} in
14633        i?86|ppc)
14634            ac_ext=cpp
14635ac_cpp='$CXXCPP $CPPFLAGS'
14636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14639
14640            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LFS (large file support) is required" >&5
14641$as_echo_n "checking if LFS (large file support) is required... " >&6; }
14642if test "${x_cv_largefile+set}" = set; then :
14643  $as_echo_n "(cached) " >&6
14644else
14645
14646                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647/* end confdefs.h.  */
14648
14649#include <unistd.h>
14650#ifndef _LFS_LARGEFILE
14651    error: not LFS conformant
14652#endif
14653
14654int
14655main ()
14656{
14657
14658  ;
14659  return 0;
14660}
14661_ACEOF
14662if ac_fn_cxx_try_compile "$LINENO"; then :
14663  x_cv_largefile=yes
14664else
14665  x_cv_largefile=no
14666fi
14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668
14669fi
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_cv_largefile" >&5
14671$as_echo "$x_cv_largefile" >&6; }
14672            if test "$x_cv_largefile" = "yes"; then
14673
14674$as_echo "#define NEED_LFS_ACTIVATION 1" >>confdefs.h
14675
14676            fi
14677            ;;
14678    esac
14679fi
14680
14681###############################################################################
14682# set arch flags
14683###############################################################################
14684
14685if test "$GXX" = "yes"; then
14686    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arch flags" >&5
14687$as_echo_n "checking arch flags... " >&6; }
14688    x_flags=
14689    x_save_IFS=$IFS; IFS=,
14690    for arch in ${enable_ub}; do
14691        case "$arch" in
14692            ""|no)
14693                ;;
14694            yes)
14695                case ${host} in
14696                    *-*-darwin*)
14697                        x_flags="$xflags -arch i386 -arch x86_64 -arch ppc -arch ppc64"
14698                        ;;
14699                esac
14700                ;;
14701            *)
14702                x_flags="$x_flags -arch $arch"
14703                ;;
14704        esac
14705    done
14706    IFS=$x_save_IFS
14707
14708    case "$enable_bi" in
14709        ""|no|yes)
14710            ;;
14711        *)
14712            x_flags="$x_flags -m${enable_bi}"
14713            ;;
14714    esac
14715
14716    if test -n "$x_flags"; then
14717        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $x_flags" >&5
14718$as_echo "$x_flags" >&6; }
14719        X_CXX_ARCH="$X_CXX_ARCH $x_flags"
14720    else
14721        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14722$as_echo "none" >&6; }
14723    fi
14724
14725    x_flags=
14726fi
14727
14728###############################################################################
14729# disable debugging
14730###############################################################################
14731
14732if test "$enable_debug" = "no"; then
14733        if test "$GCC" = "yes"; then
14734        CFLAGS=`echo "$CFLAGS" | sed -e 's/-g[^ ]*[ ]*//' -e 's/^ //' -e 's/ $//'`
14735    fi
14736    if test "$GXX" = "yes"; then
14737        CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/-g[^ ]*[ ]*//' -e 's/^ //' -e 's/ $//'`
14738    fi
14739    fi
14740
14741###############################################################################
14742# disable optimizing
14743###############################################################################
14744
14745if test "$enable_optimize" = "no"; then
14746        if test "$GCC" = "yes"; then
14747        CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[^ ]*[ ]*//' -e 's/^ //' -e 's/ $//'`
14748    fi
14749    if test "$GXX" = "yes"; then
14750        CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/-O[^ ]*[ ]*//' -e 's/^ //' -e 's/ $//'`
14751    fi
14752    fi
14753
14754###############################################################################
14755# checks for library functions
14756###############################################################################
14757
14758###############################################################################
14759# conditional compilation
14760###############################################################################
14761
14762 if test "$X_PLATFORM" = "posix"; then
14763  ADD_PLATFORM_POSIX_TRUE=
14764  ADD_PLATFORM_POSIX_FALSE='#'
14765else
14766  ADD_PLATFORM_POSIX_TRUE='#'
14767  ADD_PLATFORM_POSIX_FALSE=
14768fi
14769
14770 if test "$X_PLATFORM" = "win32"; then
14771  ADD_PLATFORM_WIN32_TRUE=
14772  ADD_PLATFORM_WIN32_FALSE='#'
14773else
14774  ADD_PLATFORM_WIN32_TRUE='#'
14775  ADD_PLATFORM_WIN32_FALSE=
14776fi
14777
14778
14779 if test "$enable_util" != "no"; then
14780  ADD_UTIL_TRUE=
14781  ADD_UTIL_FALSE='#'
14782else
14783  ADD_UTIL_TRUE='#'
14784  ADD_UTIL_FALSE=
14785fi
14786
14787 if test "$X_PLATFORM" != "win32"; then
14788  ADD_MANS_TRUE=
14789  ADD_MANS_FALSE='#'
14790else
14791  ADD_MANS_TRUE='#'
14792  ADD_MANS_FALSE=
14793fi
14794
14795
14796###############################################################################
14797# declare common substitutions
14798###############################################################################
14799
14800
14801
14802
14803
14804
14805
14806###############################################################################
14807# output files
14808###############################################################################
14809
14810ac_config_headers="$ac_config_headers libplatform/config.h"
14811
14812
14813ac_config_files="$ac_config_files GNUmakefile"
14814
14815ac_config_files="$ac_config_files include/mp4v2/project.h"
14816
14817ac_config_files="$ac_config_files project/project.m4"
14818
14819
14820cat >confcache <<\_ACEOF
14821# This file is a shell script that caches the results of configure
14822# tests run on this system so they can be shared between configure
14823# scripts and configure runs, see configure's option --config-cache.
14824# It is not useful on other systems.  If it contains results you don't
14825# want to keep, you may remove or edit it.
14826#
14827# config.status only pays attention to the cache file if you give it
14828# the --recheck option to rerun configure.
14829#
14830# `ac_cv_env_foo' variables (set or unset) will be overridden when
14831# loading this file, other *unset* `ac_cv_foo' will be assigned the
14832# following values.
14833
14834_ACEOF
14835
14836# The following way of writing the cache mishandles newlines in values,
14837# but we know of no workaround that is simple, portable, and efficient.
14838# So, we kill variables containing newlines.
14839# Ultrix sh set writes to stderr and can't be redirected directly,
14840# and sets the high bit in the cache file unless we assign to the vars.
14841(
14842  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14843    eval ac_val=\$$ac_var
14844    case $ac_val in #(
14845    *${as_nl}*)
14846      case $ac_var in #(
14847      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14848$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14849      esac
14850      case $ac_var in #(
14851      _ | IFS | as_nl) ;; #(
14852      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14853      *) { eval $ac_var=; unset $ac_var;} ;;
14854      esac ;;
14855    esac
14856  done
14857
14858  (set) 2>&1 |
14859    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14860    *${as_nl}ac_space=\ *)
14861      # `set' does not quote correctly, so add quotes: double-quote
14862      # substitution turns \\\\ into \\, and sed turns \\ into \.
14863      sed -n \
14864	"s/'/'\\\\''/g;
14865	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14866      ;; #(
14867    *)
14868      # `set' quotes correctly as required by POSIX, so do not add quotes.
14869      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14870      ;;
14871    esac |
14872    sort
14873) |
14874  sed '
14875     /^ac_cv_env_/b end
14876     t clear
14877     :clear
14878     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14879     t end
14880     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14881     :end' >>confcache
14882if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14883  if test -w "$cache_file"; then
14884    test "x$cache_file" != "x/dev/null" &&
14885      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14886$as_echo "$as_me: updating cache $cache_file" >&6;}
14887    cat confcache >$cache_file
14888  else
14889    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14890$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14891  fi
14892fi
14893rm -f confcache
14894
14895test "x$prefix" = xNONE && prefix=$ac_default_prefix
14896# Let make expand exec_prefix.
14897test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14898
14899DEFS=-DHAVE_CONFIG_H
14900
14901ac_libobjs=
14902ac_ltlibobjs=
14903for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14904  # 1. Remove the extension, and $U if already installed.
14905  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14906  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14907  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14908  #    will be set to the directory where LIBOBJS objects are built.
14909  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14910  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14911done
14912LIBOBJS=$ac_libobjs
14913
14914LTLIBOBJS=$ac_ltlibobjs
14915
14916
14917 if test -n "$EXEEXT"; then
14918  am__EXEEXT_TRUE=
14919  am__EXEEXT_FALSE='#'
14920else
14921  am__EXEEXT_TRUE='#'
14922  am__EXEEXT_FALSE=
14923fi
14924
14925if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14926  as_fn_error "conditional \"AMDEP\" was never defined.
14927Usually this means the macro was only invoked conditionally." "$LINENO" 5
14928fi
14929if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14930  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14931Usually this means the macro was only invoked conditionally." "$LINENO" 5
14932fi
14933if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14934  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14935Usually this means the macro was only invoked conditionally." "$LINENO" 5
14936fi
14937if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14938  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14939Usually this means the macro was only invoked conditionally." "$LINENO" 5
14940fi
14941if test -z "${ADD_PLATFORM_POSIX_TRUE}" && test -z "${ADD_PLATFORM_POSIX_FALSE}"; then
14942  as_fn_error "conditional \"ADD_PLATFORM_POSIX\" was never defined.
14943Usually this means the macro was only invoked conditionally." "$LINENO" 5
14944fi
14945if test -z "${ADD_PLATFORM_WIN32_TRUE}" && test -z "${ADD_PLATFORM_WIN32_FALSE}"; then
14946  as_fn_error "conditional \"ADD_PLATFORM_WIN32\" was never defined.
14947Usually this means the macro was only invoked conditionally." "$LINENO" 5
14948fi
14949if test -z "${ADD_UTIL_TRUE}" && test -z "${ADD_UTIL_FALSE}"; then
14950  as_fn_error "conditional \"ADD_UTIL\" was never defined.
14951Usually this means the macro was only invoked conditionally." "$LINENO" 5
14952fi
14953if test -z "${ADD_MANS_TRUE}" && test -z "${ADD_MANS_FALSE}"; then
14954  as_fn_error "conditional \"ADD_MANS\" was never defined.
14955Usually this means the macro was only invoked conditionally." "$LINENO" 5
14956fi
14957
14958: ${CONFIG_STATUS=./config.status}
14959ac_write_fail=0
14960ac_clean_files_save=$ac_clean_files
14961ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14962{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14963$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14964as_write_fail=0
14965cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14966#! $SHELL
14967# Generated by $as_me.
14968# Run this file to recreate the current configuration.
14969# Compiler output produced by configure, useful for debugging
14970# configure, is in config.log if it exists.
14971
14972debug=false
14973ac_cs_recheck=false
14974ac_cs_silent=false
14975
14976SHELL=\${CONFIG_SHELL-$SHELL}
14977export SHELL
14978_ASEOF
14979cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14980## -------------------- ##
14981## M4sh Initialization. ##
14982## -------------------- ##
14983
14984# Be more Bourne compatible
14985DUALCASE=1; export DUALCASE # for MKS sh
14986if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14987  emulate sh
14988  NULLCMD=:
14989  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14990  # is contrary to our usage.  Disable this feature.
14991  alias -g '${1+"$@"}'='"$@"'
14992  setopt NO_GLOB_SUBST
14993else
14994  case `(set -o) 2>/dev/null` in #(
14995  *posix*) :
14996    set -o posix ;; #(
14997  *) :
14998     ;;
14999esac
15000fi
15001
15002
15003as_nl='
15004'
15005export as_nl
15006# Printing a long string crashes Solaris 7 /usr/bin/printf.
15007as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15008as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15009as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15010# Prefer a ksh shell builtin over an external printf program on Solaris,
15011# but without wasting forks for bash or zsh.
15012if test -z "$BASH_VERSION$ZSH_VERSION" \
15013    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15014  as_echo='print -r --'
15015  as_echo_n='print -rn --'
15016elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15017  as_echo='printf %s\n'
15018  as_echo_n='printf %s'
15019else
15020  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15021    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15022    as_echo_n='/usr/ucb/echo -n'
15023  else
15024    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15025    as_echo_n_body='eval
15026      arg=$1;
15027      case $arg in #(
15028      *"$as_nl"*)
15029	expr "X$arg" : "X\\(.*\\)$as_nl";
15030	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15031      esac;
15032      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15033    '
15034    export as_echo_n_body
15035    as_echo_n='sh -c $as_echo_n_body as_echo'
15036  fi
15037  export as_echo_body
15038  as_echo='sh -c $as_echo_body as_echo'
15039fi
15040
15041# The user is always right.
15042if test "${PATH_SEPARATOR+set}" != set; then
15043  PATH_SEPARATOR=:
15044  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15045    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15046      PATH_SEPARATOR=';'
15047  }
15048fi
15049
15050
15051# IFS
15052# We need space, tab and new line, in precisely that order.  Quoting is
15053# there to prevent editors from complaining about space-tab.
15054# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15055# splitting by setting IFS to empty value.)
15056IFS=" ""	$as_nl"
15057
15058# Find who we are.  Look in the path if we contain no directory separator.
15059case $0 in #((
15060  *[\\/]* ) as_myself=$0 ;;
15061  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062for as_dir in $PATH
15063do
15064  IFS=$as_save_IFS
15065  test -z "$as_dir" && as_dir=.
15066    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15067  done
15068IFS=$as_save_IFS
15069
15070     ;;
15071esac
15072# We did not find ourselves, most probably we were run as `sh COMMAND'
15073# in which case we are not to be found in the path.
15074if test "x$as_myself" = x; then
15075  as_myself=$0
15076fi
15077if test ! -f "$as_myself"; then
15078  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15079  exit 1
15080fi
15081
15082# Unset variables that we do not need and which cause bugs (e.g. in
15083# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15084# suppresses any "Segmentation fault" message there.  '((' could
15085# trigger a bug in pdksh 5.2.14.
15086for as_var in BASH_ENV ENV MAIL MAILPATH
15087do eval test x\${$as_var+set} = xset \
15088  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15089done
15090PS1='$ '
15091PS2='> '
15092PS4='+ '
15093
15094# NLS nuisances.
15095LC_ALL=C
15096export LC_ALL
15097LANGUAGE=C
15098export LANGUAGE
15099
15100# CDPATH.
15101(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15102
15103
15104# as_fn_error ERROR [LINENO LOG_FD]
15105# ---------------------------------
15106# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15107# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15108# script with status $?, using 1 if that was 0.
15109as_fn_error ()
15110{
15111  as_status=$?; test $as_status -eq 0 && as_status=1
15112  if test "$3"; then
15113    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15114    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15115  fi
15116  $as_echo "$as_me: error: $1" >&2
15117  as_fn_exit $as_status
15118} # as_fn_error
15119
15120
15121# as_fn_set_status STATUS
15122# -----------------------
15123# Set $? to STATUS, without forking.
15124as_fn_set_status ()
15125{
15126  return $1
15127} # as_fn_set_status
15128
15129# as_fn_exit STATUS
15130# -----------------
15131# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15132as_fn_exit ()
15133{
15134  set +e
15135  as_fn_set_status $1
15136  exit $1
15137} # as_fn_exit
15138
15139# as_fn_unset VAR
15140# ---------------
15141# Portably unset VAR.
15142as_fn_unset ()
15143{
15144  { eval $1=; unset $1;}
15145}
15146as_unset=as_fn_unset
15147# as_fn_append VAR VALUE
15148# ----------------------
15149# Append the text in VALUE to the end of the definition contained in VAR. Take
15150# advantage of any shell optimizations that allow amortized linear growth over
15151# repeated appends, instead of the typical quadratic growth present in naive
15152# implementations.
15153if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15154  eval 'as_fn_append ()
15155  {
15156    eval $1+=\$2
15157  }'
15158else
15159  as_fn_append ()
15160  {
15161    eval $1=\$$1\$2
15162  }
15163fi # as_fn_append
15164
15165# as_fn_arith ARG...
15166# ------------------
15167# Perform arithmetic evaluation on the ARGs, and store the result in the
15168# global $as_val. Take advantage of shells that can avoid forks. The arguments
15169# must be portable across $(()) and expr.
15170if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15171  eval 'as_fn_arith ()
15172  {
15173    as_val=$(( $* ))
15174  }'
15175else
15176  as_fn_arith ()
15177  {
15178    as_val=`expr "$@" || test $? -eq 1`
15179  }
15180fi # as_fn_arith
15181
15182
15183if expr a : '\(a\)' >/dev/null 2>&1 &&
15184   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15185  as_expr=expr
15186else
15187  as_expr=false
15188fi
15189
15190if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15191  as_basename=basename
15192else
15193  as_basename=false
15194fi
15195
15196if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15197  as_dirname=dirname
15198else
15199  as_dirname=false
15200fi
15201
15202as_me=`$as_basename -- "$0" ||
15203$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15204	 X"$0" : 'X\(//\)$' \| \
15205	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15206$as_echo X/"$0" |
15207    sed '/^.*\/\([^/][^/]*\)\/*$/{
15208	    s//\1/
15209	    q
15210	  }
15211	  /^X\/\(\/\/\)$/{
15212	    s//\1/
15213	    q
15214	  }
15215	  /^X\/\(\/\).*/{
15216	    s//\1/
15217	    q
15218	  }
15219	  s/.*/./; q'`
15220
15221# Avoid depending upon Character Ranges.
15222as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15223as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15224as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15225as_cr_digits='0123456789'
15226as_cr_alnum=$as_cr_Letters$as_cr_digits
15227
15228ECHO_C= ECHO_N= ECHO_T=
15229case `echo -n x` in #(((((
15230-n*)
15231  case `echo 'xy\c'` in
15232  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15233  xy)  ECHO_C='\c';;
15234  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15235       ECHO_T='	';;
15236  esac;;
15237*)
15238  ECHO_N='-n';;
15239esac
15240
15241rm -f conf$$ conf$$.exe conf$$.file
15242if test -d conf$$.dir; then
15243  rm -f conf$$.dir/conf$$.file
15244else
15245  rm -f conf$$.dir
15246  mkdir conf$$.dir 2>/dev/null
15247fi
15248if (echo >conf$$.file) 2>/dev/null; then
15249  if ln -s conf$$.file conf$$ 2>/dev/null; then
15250    as_ln_s='ln -s'
15251    # ... but there are two gotchas:
15252    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15253    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15254    # In both cases, we have to default to `cp -p'.
15255    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15256      as_ln_s='cp -p'
15257  elif ln conf$$.file conf$$ 2>/dev/null; then
15258    as_ln_s=ln
15259  else
15260    as_ln_s='cp -p'
15261  fi
15262else
15263  as_ln_s='cp -p'
15264fi
15265rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15266rmdir conf$$.dir 2>/dev/null
15267
15268
15269# as_fn_mkdir_p
15270# -------------
15271# Create "$as_dir" as a directory, including parents if necessary.
15272as_fn_mkdir_p ()
15273{
15274
15275  case $as_dir in #(
15276  -*) as_dir=./$as_dir;;
15277  esac
15278  test -d "$as_dir" || eval $as_mkdir_p || {
15279    as_dirs=
15280    while :; do
15281      case $as_dir in #(
15282      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15283      *) as_qdir=$as_dir;;
15284      esac
15285      as_dirs="'$as_qdir' $as_dirs"
15286      as_dir=`$as_dirname -- "$as_dir" ||
15287$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15288	 X"$as_dir" : 'X\(//\)[^/]' \| \
15289	 X"$as_dir" : 'X\(//\)$' \| \
15290	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15291$as_echo X"$as_dir" |
15292    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15293	    s//\1/
15294	    q
15295	  }
15296	  /^X\(\/\/\)[^/].*/{
15297	    s//\1/
15298	    q
15299	  }
15300	  /^X\(\/\/\)$/{
15301	    s//\1/
15302	    q
15303	  }
15304	  /^X\(\/\).*/{
15305	    s//\1/
15306	    q
15307	  }
15308	  s/.*/./; q'`
15309      test -d "$as_dir" && break
15310    done
15311    test -z "$as_dirs" || eval "mkdir $as_dirs"
15312  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15313
15314
15315} # as_fn_mkdir_p
15316if mkdir -p . 2>/dev/null; then
15317  as_mkdir_p='mkdir -p "$as_dir"'
15318else
15319  test -d ./-p && rmdir ./-p
15320  as_mkdir_p=false
15321fi
15322
15323if test -x / >/dev/null 2>&1; then
15324  as_test_x='test -x'
15325else
15326  if ls -dL / >/dev/null 2>&1; then
15327    as_ls_L_option=L
15328  else
15329    as_ls_L_option=
15330  fi
15331  as_test_x='
15332    eval sh -c '\''
15333      if test -d "$1"; then
15334	test -d "$1/.";
15335      else
15336	case $1 in #(
15337	-*)set "./$1";;
15338	esac;
15339	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15340	???[sx]*):;;*)false;;esac;fi
15341    '\'' sh
15342  '
15343fi
15344as_executable_p=$as_test_x
15345
15346# Sed expression to map a string onto a valid CPP name.
15347as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15348
15349# Sed expression to map a string onto a valid variable name.
15350as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15351
15352
15353exec 6>&1
15354## ----------------------------------- ##
15355## Main body of $CONFIG_STATUS script. ##
15356## ----------------------------------- ##
15357_ASEOF
15358test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15359
15360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15361# Save the log message, to keep $0 and so on meaningful, and to
15362# report actual input values of CONFIG_FILES etc. instead of their
15363# values after options handling.
15364ac_log="
15365This file was extended by MP4v2 $as_me 2.0.0, which was
15366generated by GNU Autoconf 2.65.  Invocation command line was
15367
15368  CONFIG_FILES    = $CONFIG_FILES
15369  CONFIG_HEADERS  = $CONFIG_HEADERS
15370  CONFIG_LINKS    = $CONFIG_LINKS
15371  CONFIG_COMMANDS = $CONFIG_COMMANDS
15372  $ $0 $@
15373
15374on `(hostname || uname -n) 2>/dev/null | sed 1q`
15375"
15376
15377_ACEOF
15378
15379case $ac_config_files in *"
15380"*) set x $ac_config_files; shift; ac_config_files=$*;;
15381esac
15382
15383case $ac_config_headers in *"
15384"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15385esac
15386
15387
15388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15389# Files that config.status was made for.
15390config_files="$ac_config_files"
15391config_headers="$ac_config_headers"
15392config_commands="$ac_config_commands"
15393
15394_ACEOF
15395
15396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15397ac_cs_usage="\
15398\`$as_me' instantiates files and other configuration actions
15399from templates according to the current configuration.  Unless the files
15400and actions are specified as TAGs, all are instantiated by default.
15401
15402Usage: $0 [OPTION]... [TAG]...
15403
15404  -h, --help       print this help, then exit
15405  -V, --version    print version number and configuration settings, then exit
15406      --config     print configuration, then exit
15407  -q, --quiet, --silent
15408                   do not print progress messages
15409  -d, --debug      don't remove temporary files
15410      --recheck    update $as_me by reconfiguring in the same conditions
15411      --file=FILE[:TEMPLATE]
15412                   instantiate the configuration file FILE
15413      --header=FILE[:TEMPLATE]
15414                   instantiate the configuration header FILE
15415
15416Configuration files:
15417$config_files
15418
15419Configuration headers:
15420$config_headers
15421
15422Configuration commands:
15423$config_commands
15424
15425Report bugs to <kidjan@gmail.com>."
15426
15427_ACEOF
15428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15429ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15430ac_cs_version="\\
15431MP4v2 config.status 2.0.0
15432configured by $0, generated by GNU Autoconf 2.65,
15433  with options \\"\$ac_cs_config\\"
15434
15435Copyright (C) 2009 Free Software Foundation, Inc.
15436This config.status script is free software; the Free Software Foundation
15437gives unlimited permission to copy, distribute and modify it."
15438
15439ac_pwd='$ac_pwd'
15440srcdir='$srcdir'
15441INSTALL='$INSTALL'
15442MKDIR_P='$MKDIR_P'
15443AWK='$AWK'
15444test -n "\$AWK" || AWK=awk
15445_ACEOF
15446
15447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15448# The default lists apply if the user does not specify any file.
15449ac_need_defaults=:
15450while test $# != 0
15451do
15452  case $1 in
15453  --*=*)
15454    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15455    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15456    ac_shift=:
15457    ;;
15458  *)
15459    ac_option=$1
15460    ac_optarg=$2
15461    ac_shift=shift
15462    ;;
15463  esac
15464
15465  case $ac_option in
15466  # Handling of the options.
15467  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15468    ac_cs_recheck=: ;;
15469  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15470    $as_echo "$ac_cs_version"; exit ;;
15471  --config | --confi | --conf | --con | --co | --c )
15472    $as_echo "$ac_cs_config"; exit ;;
15473  --debug | --debu | --deb | --de | --d | -d )
15474    debug=: ;;
15475  --file | --fil | --fi | --f )
15476    $ac_shift
15477    case $ac_optarg in
15478    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15479    esac
15480    as_fn_append CONFIG_FILES " '$ac_optarg'"
15481    ac_need_defaults=false;;
15482  --header | --heade | --head | --hea )
15483    $ac_shift
15484    case $ac_optarg in
15485    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15486    esac
15487    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15488    ac_need_defaults=false;;
15489  --he | --h)
15490    # Conflict between --help and --header
15491    as_fn_error "ambiguous option: \`$1'
15492Try \`$0 --help' for more information.";;
15493  --help | --hel | -h )
15494    $as_echo "$ac_cs_usage"; exit ;;
15495  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15496  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15497    ac_cs_silent=: ;;
15498
15499  # This is an error.
15500  -*) as_fn_error "unrecognized option: \`$1'
15501Try \`$0 --help' for more information." ;;
15502
15503  *) as_fn_append ac_config_targets " $1"
15504     ac_need_defaults=false ;;
15505
15506  esac
15507  shift
15508done
15509
15510ac_configure_extra_args=
15511
15512if $ac_cs_silent; then
15513  exec 6>/dev/null
15514  ac_configure_extra_args="$ac_configure_extra_args --silent"
15515fi
15516
15517_ACEOF
15518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15519if \$ac_cs_recheck; then
15520  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15521  shift
15522  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15523  CONFIG_SHELL='$SHELL'
15524  export CONFIG_SHELL
15525  exec "\$@"
15526fi
15527
15528_ACEOF
15529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530exec 5>>config.log
15531{
15532  echo
15533  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15534## Running $as_me. ##
15535_ASBOX
15536  $as_echo "$ac_log"
15537} >&5
15538
15539_ACEOF
15540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541#
15542# INIT-COMMANDS
15543#
15544AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15545
15546
15547# The HP-UX ksh and POSIX shell print the target directory to stdout
15548# if CDPATH is set.
15549(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15550
15551sed_quote_subst='$sed_quote_subst'
15552double_quote_subst='$double_quote_subst'
15553delay_variable_subst='$delay_variable_subst'
15554macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15555macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15556enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15557enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15558pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15559enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15560host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15561host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15562host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15563build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15564build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15565build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15566SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15567Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15568GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15569EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15570FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15571LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15572NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15573LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15574max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15575ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15576exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15577lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15578lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15579lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15580reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15581reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15582OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15583deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15584file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15585AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15586AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15587STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15588RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15589old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15590old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15591old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15592CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15593CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15594compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15595GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15596lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15597lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15598lt_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"`'
15599lt_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"`'
15600objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15601SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15602ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15603MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15604lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15605lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15606lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15607lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15608lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15609need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15610DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15611NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15612LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15613OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15614OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15615libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15616shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15617extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15618archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15619enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15620export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15621whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15622compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15623old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15624old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15625archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15626archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15627module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15628module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15629with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15630allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15631no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15632hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15633hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15634hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15635hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15636hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15637hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15638hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15639hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15640inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15641link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15642fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15643always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15644export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15645exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15646include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15647prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15648file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15649variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15650need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15651need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15652version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15653runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15654shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15655shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15656libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15657library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15658soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15659postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15660postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15661finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15662finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15663hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15664sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15665sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15666hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15667enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15668enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15669enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15670old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15671striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15672compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15673predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15674postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15675predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15676postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15677compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15678LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15679old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15680compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15681GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15682lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15683lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15684lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15685lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15686lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15687archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15688enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15689export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15690whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15691compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15692old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15693old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15694archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15695archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15696module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15697module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15698with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15699allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15700no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15701hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15702hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15703hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15704hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15705hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15706hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15707hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15708hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15709inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15710link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15711fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15712always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15713export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15714exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15715include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15716prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15717file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15718hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15719compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15720predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15721postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15722predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15723postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15724compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15725
15726LTCC='$LTCC'
15727LTCFLAGS='$LTCFLAGS'
15728compiler='$compiler_DEFAULT'
15729
15730# Quote evaled strings.
15731for var in SED \
15732GREP \
15733EGREP \
15734FGREP \
15735LD \
15736NM \
15737LN_S \
15738lt_SP2NL \
15739lt_NL2SP \
15740reload_flag \
15741OBJDUMP \
15742deplibs_check_method \
15743file_magic_cmd \
15744AR \
15745AR_FLAGS \
15746STRIP \
15747RANLIB \
15748CC \
15749CFLAGS \
15750compiler \
15751lt_cv_sys_global_symbol_pipe \
15752lt_cv_sys_global_symbol_to_cdecl \
15753lt_cv_sys_global_symbol_to_c_name_address \
15754lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15755SHELL \
15756ECHO \
15757lt_prog_compiler_no_builtin_flag \
15758lt_prog_compiler_wl \
15759lt_prog_compiler_pic \
15760lt_prog_compiler_static \
15761lt_cv_prog_compiler_c_o \
15762need_locks \
15763DSYMUTIL \
15764NMEDIT \
15765LIPO \
15766OTOOL \
15767OTOOL64 \
15768shrext_cmds \
15769export_dynamic_flag_spec \
15770whole_archive_flag_spec \
15771compiler_needs_object \
15772with_gnu_ld \
15773allow_undefined_flag \
15774no_undefined_flag \
15775hardcode_libdir_flag_spec \
15776hardcode_libdir_flag_spec_ld \
15777hardcode_libdir_separator \
15778fix_srcfile_path \
15779exclude_expsyms \
15780include_expsyms \
15781file_list_spec \
15782variables_saved_for_relink \
15783libname_spec \
15784library_names_spec \
15785soname_spec \
15786finish_eval \
15787old_striplib \
15788striplib \
15789compiler_lib_search_dirs \
15790predep_objects \
15791postdep_objects \
15792predeps \
15793postdeps \
15794compiler_lib_search_path \
15795LD_CXX \
15796compiler_CXX \
15797lt_prog_compiler_no_builtin_flag_CXX \
15798lt_prog_compiler_wl_CXX \
15799lt_prog_compiler_pic_CXX \
15800lt_prog_compiler_static_CXX \
15801lt_cv_prog_compiler_c_o_CXX \
15802export_dynamic_flag_spec_CXX \
15803whole_archive_flag_spec_CXX \
15804compiler_needs_object_CXX \
15805with_gnu_ld_CXX \
15806allow_undefined_flag_CXX \
15807no_undefined_flag_CXX \
15808hardcode_libdir_flag_spec_CXX \
15809hardcode_libdir_flag_spec_ld_CXX \
15810hardcode_libdir_separator_CXX \
15811fix_srcfile_path_CXX \
15812exclude_expsyms_CXX \
15813include_expsyms_CXX \
15814file_list_spec_CXX \
15815compiler_lib_search_dirs_CXX \
15816predep_objects_CXX \
15817postdep_objects_CXX \
15818predeps_CXX \
15819postdeps_CXX \
15820compiler_lib_search_path_CXX; do
15821    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15822    *[\\\\\\\`\\"\\\$]*)
15823      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15824      ;;
15825    *)
15826      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15827      ;;
15828    esac
15829done
15830
15831# Double-quote double-evaled strings.
15832for var in reload_cmds \
15833old_postinstall_cmds \
15834old_postuninstall_cmds \
15835old_archive_cmds \
15836extract_expsyms_cmds \
15837old_archive_from_new_cmds \
15838old_archive_from_expsyms_cmds \
15839archive_cmds \
15840archive_expsym_cmds \
15841module_cmds \
15842module_expsym_cmds \
15843export_symbols_cmds \
15844prelink_cmds \
15845postinstall_cmds \
15846postuninstall_cmds \
15847finish_cmds \
15848sys_lib_search_path_spec \
15849sys_lib_dlsearch_path_spec \
15850old_archive_cmds_CXX \
15851old_archive_from_new_cmds_CXX \
15852old_archive_from_expsyms_cmds_CXX \
15853archive_cmds_CXX \
15854archive_expsym_cmds_CXX \
15855module_cmds_CXX \
15856module_expsym_cmds_CXX \
15857export_symbols_cmds_CXX \
15858prelink_cmds_CXX; do
15859    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15860    *[\\\\\\\`\\"\\\$]*)
15861      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15862      ;;
15863    *)
15864      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15865      ;;
15866    esac
15867done
15868
15869# Fix-up fallback echo if it was mangled by the above quoting rules.
15870case \$lt_ECHO in
15871*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15872  ;;
15873esac
15874
15875ac_aux_dir='$ac_aux_dir'
15876xsi_shell='$xsi_shell'
15877lt_shell_append='$lt_shell_append'
15878
15879# See if we are running on zsh, and set the options which allow our
15880# commands through without removal of \ escapes INIT.
15881if test -n "\${ZSH_VERSION+set}" ; then
15882   setopt NO_GLOB_SUBST
15883fi
15884
15885
15886    PACKAGE='$PACKAGE'
15887    VERSION='$VERSION'
15888    TIMESTAMP='$TIMESTAMP'
15889    RM='$RM'
15890    ofile='$ofile'
15891
15892
15893
15894
15895
15896
15897_ACEOF
15898
15899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15900
15901# Handling of arguments.
15902for ac_config_target in $ac_config_targets
15903do
15904  case $ac_config_target in
15905    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15906    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15907    "libplatform/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libplatform/config.h" ;;
15908    "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
15909    "include/mp4v2/project.h") CONFIG_FILES="$CONFIG_FILES include/mp4v2/project.h" ;;
15910    "project/project.m4") CONFIG_FILES="$CONFIG_FILES project/project.m4" ;;
15911
15912  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15913  esac
15914done
15915
15916
15917# If the user did not use the arguments to specify the items to instantiate,
15918# then the envvar interface is used.  Set only those that are not.
15919# We use the long form for the default assignment because of an extremely
15920# bizarre bug on SunOS 4.1.3.
15921if $ac_need_defaults; then
15922  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15923  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15924  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15925fi
15926
15927# Have a temporary directory for convenience.  Make it in the build tree
15928# simply because there is no reason against having it here, and in addition,
15929# creating and moving files from /tmp can sometimes cause problems.
15930# Hook for its removal unless debugging.
15931# Note that there is a small window in which the directory will not be cleaned:
15932# after its creation but before its name has been assigned to `$tmp'.
15933$debug ||
15934{
15935  tmp=
15936  trap 'exit_status=$?
15937  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15938' 0
15939  trap 'as_fn_exit 1' 1 2 13 15
15940}
15941# Create a (secure) tmp directory for tmp files.
15942
15943{
15944  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15945  test -n "$tmp" && test -d "$tmp"
15946}  ||
15947{
15948  tmp=./conf$$-$RANDOM
15949  (umask 077 && mkdir "$tmp")
15950} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15951
15952# Set up the scripts for CONFIG_FILES section.
15953# No need to generate them if there are no CONFIG_FILES.
15954# This happens for instance with `./config.status config.h'.
15955if test -n "$CONFIG_FILES"; then
15956
15957
15958ac_cr=`echo X | tr X '\015'`
15959# On cygwin, bash can eat \r inside `` if the user requested igncr.
15960# But we know of no other shell where ac_cr would be empty at this
15961# point, so we can use a bashism as a fallback.
15962if test "x$ac_cr" = x; then
15963  eval ac_cr=\$\'\\r\'
15964fi
15965ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15966if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15967  ac_cs_awk_cr='\r'
15968else
15969  ac_cs_awk_cr=$ac_cr
15970fi
15971
15972echo 'BEGIN {' >"$tmp/subs1.awk" &&
15973_ACEOF
15974
15975
15976{
15977  echo "cat >conf$$subs.awk <<_ACEOF" &&
15978  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15979  echo "_ACEOF"
15980} >conf$$subs.sh ||
15981  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15982ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15983ac_delim='%!_!# '
15984for ac_last_try in false false false false false :; do
15985  . ./conf$$subs.sh ||
15986    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15987
15988  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15989  if test $ac_delim_n = $ac_delim_num; then
15990    break
15991  elif $ac_last_try; then
15992    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15993  else
15994    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15995  fi
15996done
15997rm -f conf$$subs.sh
15998
15999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16000cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16001_ACEOF
16002sed -n '
16003h
16004s/^/S["/; s/!.*/"]=/
16005p
16006g
16007s/^[^!]*!//
16008:repl
16009t repl
16010s/'"$ac_delim"'$//
16011t delim
16012:nl
16013h
16014s/\(.\{148\}\)..*/\1/
16015t more1
16016s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16017p
16018n
16019b repl
16020:more1
16021s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16022p
16023g
16024s/.\{148\}//
16025t nl
16026:delim
16027h
16028s/\(.\{148\}\)..*/\1/
16029t more2
16030s/["\\]/\\&/g; s/^/"/; s/$/"/
16031p
16032b
16033:more2
16034s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16035p
16036g
16037s/.\{148\}//
16038t delim
16039' <conf$$subs.awk | sed '
16040/^[^""]/{
16041  N
16042  s/\n//
16043}
16044' >>$CONFIG_STATUS || ac_write_fail=1
16045rm -f conf$$subs.awk
16046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047_ACAWK
16048cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16049  for (key in S) S_is_set[key] = 1
16050  FS = ""
16051
16052}
16053{
16054  line = $ 0
16055  nfields = split(line, field, "@")
16056  substed = 0
16057  len = length(field[1])
16058  for (i = 2; i < nfields; i++) {
16059    key = field[i]
16060    keylen = length(key)
16061    if (S_is_set[key]) {
16062      value = S[key]
16063      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16064      len += length(value) + length(field[++i])
16065      substed = 1
16066    } else
16067      len += 1 + keylen
16068  }
16069
16070  print line
16071}
16072
16073_ACAWK
16074_ACEOF
16075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16076if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16077  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16078else
16079  cat
16080fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16081  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16082_ACEOF
16083
16084# VPATH may cause trouble with some makes, so we remove $(srcdir),
16085# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16086# trailing colons and then remove the whole line if VPATH becomes empty
16087# (actually we leave an empty line to preserve line numbers).
16088if test "x$srcdir" = x.; then
16089  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16090s/:*\$(srcdir):*/:/
16091s/:*\${srcdir}:*/:/
16092s/:*@srcdir@:*/:/
16093s/^\([^=]*=[	 ]*\):*/\1/
16094s/:*$//
16095s/^[^=]*=[	 ]*$//
16096}'
16097fi
16098
16099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16100fi # test -n "$CONFIG_FILES"
16101
16102# Set up the scripts for CONFIG_HEADERS section.
16103# No need to generate them if there are no CONFIG_HEADERS.
16104# This happens for instance with `./config.status Makefile'.
16105if test -n "$CONFIG_HEADERS"; then
16106cat >"$tmp/defines.awk" <<\_ACAWK ||
16107BEGIN {
16108_ACEOF
16109
16110# Transform confdefs.h into an awk script `defines.awk', embedded as
16111# here-document in config.status, that substitutes the proper values into
16112# config.h.in to produce config.h.
16113
16114# Create a delimiter string that does not exist in confdefs.h, to ease
16115# handling of long lines.
16116ac_delim='%!_!# '
16117for ac_last_try in false false :; do
16118  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16119  if test -z "$ac_t"; then
16120    break
16121  elif $ac_last_try; then
16122    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16123  else
16124    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16125  fi
16126done
16127
16128# For the awk script, D is an array of macro values keyed by name,
16129# likewise P contains macro parameters if any.  Preserve backslash
16130# newline sequences.
16131
16132ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16133sed -n '
16134s/.\{148\}/&'"$ac_delim"'/g
16135t rset
16136:rset
16137s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16138t def
16139d
16140:def
16141s/\\$//
16142t bsnl
16143s/["\\]/\\&/g
16144s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16145D["\1"]=" \3"/p
16146s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16147d
16148:bsnl
16149s/["\\]/\\&/g
16150s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16151D["\1"]=" \3\\\\\\n"\\/p
16152t cont
16153s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16154t cont
16155d
16156:cont
16157n
16158s/.\{148\}/&'"$ac_delim"'/g
16159t clear
16160:clear
16161s/\\$//
16162t bsnlc
16163s/["\\]/\\&/g; s/^/"/; s/$/"/p
16164d
16165:bsnlc
16166s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16167b cont
16168' <confdefs.h | sed '
16169s/'"$ac_delim"'/"\\\
16170"/g' >>$CONFIG_STATUS || ac_write_fail=1
16171
16172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16173  for (key in D) D_is_set[key] = 1
16174  FS = ""
16175}
16176/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16177  line = \$ 0
16178  split(line, arg, " ")
16179  if (arg[1] == "#") {
16180    defundef = arg[2]
16181    mac1 = arg[3]
16182  } else {
16183    defundef = substr(arg[1], 2)
16184    mac1 = arg[2]
16185  }
16186  split(mac1, mac2, "(") #)
16187  macro = mac2[1]
16188  prefix = substr(line, 1, index(line, defundef) - 1)
16189  if (D_is_set[macro]) {
16190    # Preserve the white space surrounding the "#".
16191    print prefix "define", macro P[macro] D[macro]
16192    next
16193  } else {
16194    # Replace #undef with comments.  This is necessary, for example,
16195    # in the case of _POSIX_SOURCE, which is predefined and required
16196    # on some systems where configure will not decide to define it.
16197    if (defundef == "undef") {
16198      print "/*", prefix defundef, macro, "*/"
16199      next
16200    }
16201  }
16202}
16203{ print }
16204_ACAWK
16205_ACEOF
16206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16207  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16208fi # test -n "$CONFIG_HEADERS"
16209
16210
16211eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16212shift
16213for ac_tag
16214do
16215  case $ac_tag in
16216  :[FHLC]) ac_mode=$ac_tag; continue;;
16217  esac
16218  case $ac_mode$ac_tag in
16219  :[FHL]*:*);;
16220  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16221  :[FH]-) ac_tag=-:-;;
16222  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16223  esac
16224  ac_save_IFS=$IFS
16225  IFS=:
16226  set x $ac_tag
16227  IFS=$ac_save_IFS
16228  shift
16229  ac_file=$1
16230  shift
16231
16232  case $ac_mode in
16233  :L) ac_source=$1;;
16234  :[FH])
16235    ac_file_inputs=
16236    for ac_f
16237    do
16238      case $ac_f in
16239      -) ac_f="$tmp/stdin";;
16240      *) # Look for the file first in the build tree, then in the source tree
16241	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16242	 # because $ac_f cannot contain `:'.
16243	 test -f "$ac_f" ||
16244	   case $ac_f in
16245	   [\\/$]*) false;;
16246	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16247	   esac ||
16248	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16249      esac
16250      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16251      as_fn_append ac_file_inputs " '$ac_f'"
16252    done
16253
16254    # Let's still pretend it is `configure' which instantiates (i.e., don't
16255    # use $as_me), people would be surprised to read:
16256    #    /* config.h.  Generated by config.status.  */
16257    configure_input='Generated from '`
16258	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16259	`' by configure.'
16260    if test x"$ac_file" != x-; then
16261      configure_input="$ac_file.  $configure_input"
16262      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16263$as_echo "$as_me: creating $ac_file" >&6;}
16264    fi
16265    # Neutralize special characters interpreted by sed in replacement strings.
16266    case $configure_input in #(
16267    *\&* | *\|* | *\\* )
16268       ac_sed_conf_input=`$as_echo "$configure_input" |
16269       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16270    *) ac_sed_conf_input=$configure_input;;
16271    esac
16272
16273    case $ac_tag in
16274    *:-:* | *:-) cat >"$tmp/stdin" \
16275      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16276    esac
16277    ;;
16278  esac
16279
16280  ac_dir=`$as_dirname -- "$ac_file" ||
16281$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16282	 X"$ac_file" : 'X\(//\)[^/]' \| \
16283	 X"$ac_file" : 'X\(//\)$' \| \
16284	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16285$as_echo X"$ac_file" |
16286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16287	    s//\1/
16288	    q
16289	  }
16290	  /^X\(\/\/\)[^/].*/{
16291	    s//\1/
16292	    q
16293	  }
16294	  /^X\(\/\/\)$/{
16295	    s//\1/
16296	    q
16297	  }
16298	  /^X\(\/\).*/{
16299	    s//\1/
16300	    q
16301	  }
16302	  s/.*/./; q'`
16303  as_dir="$ac_dir"; as_fn_mkdir_p
16304  ac_builddir=.
16305
16306case "$ac_dir" in
16307.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16308*)
16309  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16310  # A ".." for each directory in $ac_dir_suffix.
16311  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16312  case $ac_top_builddir_sub in
16313  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16314  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16315  esac ;;
16316esac
16317ac_abs_top_builddir=$ac_pwd
16318ac_abs_builddir=$ac_pwd$ac_dir_suffix
16319# for backward compatibility:
16320ac_top_builddir=$ac_top_build_prefix
16321
16322case $srcdir in
16323  .)  # We are building in place.
16324    ac_srcdir=.
16325    ac_top_srcdir=$ac_top_builddir_sub
16326    ac_abs_top_srcdir=$ac_pwd ;;
16327  [\\/]* | ?:[\\/]* )  # Absolute name.
16328    ac_srcdir=$srcdir$ac_dir_suffix;
16329    ac_top_srcdir=$srcdir
16330    ac_abs_top_srcdir=$srcdir ;;
16331  *) # Relative name.
16332    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16333    ac_top_srcdir=$ac_top_build_prefix$srcdir
16334    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16335esac
16336ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16337
16338
16339  case $ac_mode in
16340  :F)
16341  #
16342  # CONFIG_FILE
16343  #
16344
16345  case $INSTALL in
16346  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16347  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16348  esac
16349  ac_MKDIR_P=$MKDIR_P
16350  case $MKDIR_P in
16351  [\\/$]* | ?:[\\/]* ) ;;
16352  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16353  esac
16354_ACEOF
16355
16356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16357# If the template does not know about datarootdir, expand it.
16358# FIXME: This hack should be removed a few years after 2.60.
16359ac_datarootdir_hack=; ac_datarootdir_seen=
16360ac_sed_dataroot='
16361/datarootdir/ {
16362  p
16363  q
16364}
16365/@datadir@/p
16366/@docdir@/p
16367/@infodir@/p
16368/@localedir@/p
16369/@mandir@/p'
16370case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16371*datarootdir*) ac_datarootdir_seen=yes;;
16372*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16373  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16374$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16375_ACEOF
16376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16377  ac_datarootdir_hack='
16378  s&@datadir@&$datadir&g
16379  s&@docdir@&$docdir&g
16380  s&@infodir@&$infodir&g
16381  s&@localedir@&$localedir&g
16382  s&@mandir@&$mandir&g
16383  s&\\\${datarootdir}&$datarootdir&g' ;;
16384esac
16385_ACEOF
16386
16387# Neutralize VPATH when `$srcdir' = `.'.
16388# Shell code in configure.ac might set extrasub.
16389# FIXME: do we really want to maintain this feature?
16390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16391ac_sed_extra="$ac_vpsub
16392$extrasub
16393_ACEOF
16394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16395:t
16396/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16397s|@configure_input@|$ac_sed_conf_input|;t t
16398s&@top_builddir@&$ac_top_builddir_sub&;t t
16399s&@top_build_prefix@&$ac_top_build_prefix&;t t
16400s&@srcdir@&$ac_srcdir&;t t
16401s&@abs_srcdir@&$ac_abs_srcdir&;t t
16402s&@top_srcdir@&$ac_top_srcdir&;t t
16403s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16404s&@builddir@&$ac_builddir&;t t
16405s&@abs_builddir@&$ac_abs_builddir&;t t
16406s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16407s&@INSTALL@&$ac_INSTALL&;t t
16408s&@MKDIR_P@&$ac_MKDIR_P&;t t
16409$ac_datarootdir_hack
16410"
16411eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16412  || as_fn_error "could not create $ac_file" "$LINENO" 5
16413
16414test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16415  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16416  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16417  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16418which seems to be undefined.  Please make sure it is defined." >&5
16419$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16420which seems to be undefined.  Please make sure it is defined." >&2;}
16421
16422  rm -f "$tmp/stdin"
16423  case $ac_file in
16424  -) cat "$tmp/out" && rm -f "$tmp/out";;
16425  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16426  esac \
16427  || as_fn_error "could not create $ac_file" "$LINENO" 5
16428 ;;
16429  :H)
16430  #
16431  # CONFIG_HEADER
16432  #
16433  if test x"$ac_file" != x-; then
16434    {
16435      $as_echo "/* $configure_input  */" \
16436      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16437    } >"$tmp/config.h" \
16438      || as_fn_error "could not create $ac_file" "$LINENO" 5
16439    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16440      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16441$as_echo "$as_me: $ac_file is unchanged" >&6;}
16442    else
16443      rm -f "$ac_file"
16444      mv "$tmp/config.h" "$ac_file" \
16445	|| as_fn_error "could not create $ac_file" "$LINENO" 5
16446    fi
16447  else
16448    $as_echo "/* $configure_input  */" \
16449      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16450      || as_fn_error "could not create -" "$LINENO" 5
16451  fi
16452# Compute "$ac_file"'s index in $config_headers.
16453_am_arg="$ac_file"
16454_am_stamp_count=1
16455for _am_header in $config_headers :; do
16456  case $_am_header in
16457    $_am_arg | $_am_arg:* )
16458      break ;;
16459    * )
16460      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16461  esac
16462done
16463echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16464$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16465	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16466	 X"$_am_arg" : 'X\(//\)$' \| \
16467	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16468$as_echo X"$_am_arg" |
16469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16470	    s//\1/
16471	    q
16472	  }
16473	  /^X\(\/\/\)[^/].*/{
16474	    s//\1/
16475	    q
16476	  }
16477	  /^X\(\/\/\)$/{
16478	    s//\1/
16479	    q
16480	  }
16481	  /^X\(\/\).*/{
16482	    s//\1/
16483	    q
16484	  }
16485	  s/.*/./; q'`/stamp-h$_am_stamp_count
16486 ;;
16487
16488  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16489$as_echo "$as_me: executing $ac_file commands" >&6;}
16490 ;;
16491  esac
16492
16493
16494  case $ac_file$ac_mode in
16495    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16496  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16497  # are listed without --file.  Let's play safe and only enable the eval
16498  # if we detect the quoting.
16499  case $CONFIG_FILES in
16500  *\'*) eval set x "$CONFIG_FILES" ;;
16501  *)   set x $CONFIG_FILES ;;
16502  esac
16503  shift
16504  for mf
16505  do
16506    # Strip MF so we end up with the name of the file.
16507    mf=`echo "$mf" | sed -e 's/:.*$//'`
16508    # Check whether this is an Automake generated Makefile or not.
16509    # We used to match only the files named `Makefile.in', but
16510    # some people rename them; so instead we look at the file content.
16511    # Grep'ing the first line is not enough: some people post-process
16512    # each Makefile.in and add a new line on top of each file to say so.
16513    # Grep'ing the whole file is not good either: AIX grep has a line
16514    # limit of 2048, but all sed's we know have understand at least 4000.
16515    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16516      dirpart=`$as_dirname -- "$mf" ||
16517$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16518	 X"$mf" : 'X\(//\)[^/]' \| \
16519	 X"$mf" : 'X\(//\)$' \| \
16520	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16521$as_echo X"$mf" |
16522    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16523	    s//\1/
16524	    q
16525	  }
16526	  /^X\(\/\/\)[^/].*/{
16527	    s//\1/
16528	    q
16529	  }
16530	  /^X\(\/\/\)$/{
16531	    s//\1/
16532	    q
16533	  }
16534	  /^X\(\/\).*/{
16535	    s//\1/
16536	    q
16537	  }
16538	  s/.*/./; q'`
16539    else
16540      continue
16541    fi
16542    # Extract the definition of DEPDIR, am__include, and am__quote
16543    # from the Makefile without running `make'.
16544    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16545    test -z "$DEPDIR" && continue
16546    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16547    test -z "am__include" && continue
16548    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16549    # When using ansi2knr, U may be empty or an underscore; expand it
16550    U=`sed -n 's/^U = //p' < "$mf"`
16551    # Find all dependency output files, they are included files with
16552    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16553    # simplest approach to changing $(DEPDIR) to its actual value in the
16554    # expansion.
16555    for file in `sed -n "
16556      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16557	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16558      # Make sure the directory exists.
16559      test -f "$dirpart/$file" && continue
16560      fdir=`$as_dirname -- "$file" ||
16561$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16562	 X"$file" : 'X\(//\)[^/]' \| \
16563	 X"$file" : 'X\(//\)$' \| \
16564	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16565$as_echo X"$file" |
16566    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16567	    s//\1/
16568	    q
16569	  }
16570	  /^X\(\/\/\)[^/].*/{
16571	    s//\1/
16572	    q
16573	  }
16574	  /^X\(\/\/\)$/{
16575	    s//\1/
16576	    q
16577	  }
16578	  /^X\(\/\).*/{
16579	    s//\1/
16580	    q
16581	  }
16582	  s/.*/./; q'`
16583      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16584      # echo "creating $dirpart/$file"
16585      echo '# dummy' > "$dirpart/$file"
16586    done
16587  done
16588}
16589 ;;
16590    "libtool":C)
16591
16592    # See if we are running on zsh, and set the options which allow our
16593    # commands through without removal of \ escapes.
16594    if test -n "${ZSH_VERSION+set}" ; then
16595      setopt NO_GLOB_SUBST
16596    fi
16597
16598    cfgfile="${ofile}T"
16599    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16600    $RM "$cfgfile"
16601
16602    cat <<_LT_EOF >> "$cfgfile"
16603#! $SHELL
16604
16605# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16606# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16607# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16608# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16609#
16610#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16611#                 2006, 2007, 2008 Free Software Foundation, Inc.
16612#   Written by Gordon Matzigkeit, 1996
16613#
16614#   This file is part of GNU Libtool.
16615#
16616# GNU Libtool is free software; you can redistribute it and/or
16617# modify it under the terms of the GNU General Public License as
16618# published by the Free Software Foundation; either version 2 of
16619# the License, or (at your option) any later version.
16620#
16621# As a special exception to the GNU General Public License,
16622# if you distribute this file as part of a program or library that
16623# is built using GNU Libtool, you may include this file under the
16624# same distribution terms that you use for the rest of that program.
16625#
16626# GNU Libtool is distributed in the hope that it will be useful,
16627# but WITHOUT ANY WARRANTY; without even the implied warranty of
16628# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16629# GNU General Public License for more details.
16630#
16631# You should have received a copy of the GNU General Public License
16632# along with GNU Libtool; see the file COPYING.  If not, a copy
16633# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16634# obtained by writing to the Free Software Foundation, Inc.,
16635# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16636
16637
16638# The names of the tagged configurations supported by this script.
16639available_tags="CXX "
16640
16641# ### BEGIN LIBTOOL CONFIG
16642
16643# Which release of libtool.m4 was used?
16644macro_version=$macro_version
16645macro_revision=$macro_revision
16646
16647# Whether or not to build shared libraries.
16648build_libtool_libs=$enable_shared
16649
16650# Whether or not to build static libraries.
16651build_old_libs=$enable_static
16652
16653# What type of objects to build.
16654pic_mode=$pic_mode
16655
16656# Whether or not to optimize for fast installation.
16657fast_install=$enable_fast_install
16658
16659# The host system.
16660host_alias=$host_alias
16661host=$host
16662host_os=$host_os
16663
16664# The build system.
16665build_alias=$build_alias
16666build=$build
16667build_os=$build_os
16668
16669# A sed program that does not truncate output.
16670SED=$lt_SED
16671
16672# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16673Xsed="\$SED -e 1s/^X//"
16674
16675# A grep program that handles long lines.
16676GREP=$lt_GREP
16677
16678# An ERE matcher.
16679EGREP=$lt_EGREP
16680
16681# A literal string matcher.
16682FGREP=$lt_FGREP
16683
16684# A BSD- or MS-compatible name lister.
16685NM=$lt_NM
16686
16687# Whether we need soft or hard links.
16688LN_S=$lt_LN_S
16689
16690# What is the maximum length of a command?
16691max_cmd_len=$max_cmd_len
16692
16693# Object file suffix (normally "o").
16694objext=$ac_objext
16695
16696# Executable file suffix (normally "").
16697exeext=$exeext
16698
16699# whether the shell understands "unset".
16700lt_unset=$lt_unset
16701
16702# turn spaces into newlines.
16703SP2NL=$lt_lt_SP2NL
16704
16705# turn newlines into spaces.
16706NL2SP=$lt_lt_NL2SP
16707
16708# How to create reloadable object files.
16709reload_flag=$lt_reload_flag
16710reload_cmds=$lt_reload_cmds
16711
16712# An object symbol dumper.
16713OBJDUMP=$lt_OBJDUMP
16714
16715# Method to check whether dependent libraries are shared objects.
16716deplibs_check_method=$lt_deplibs_check_method
16717
16718# Command to use when deplibs_check_method == "file_magic".
16719file_magic_cmd=$lt_file_magic_cmd
16720
16721# The archiver.
16722AR=$lt_AR
16723AR_FLAGS=$lt_AR_FLAGS
16724
16725# A symbol stripping program.
16726STRIP=$lt_STRIP
16727
16728# Commands used to install an old-style archive.
16729RANLIB=$lt_RANLIB
16730old_postinstall_cmds=$lt_old_postinstall_cmds
16731old_postuninstall_cmds=$lt_old_postuninstall_cmds
16732
16733# A C compiler.
16734LTCC=$lt_CC
16735
16736# LTCC compiler flags.
16737LTCFLAGS=$lt_CFLAGS
16738
16739# Take the output of nm and produce a listing of raw symbols and C names.
16740global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16741
16742# Transform the output of nm in a proper C declaration.
16743global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16744
16745# Transform the output of nm in a C name address pair.
16746global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16747
16748# Transform the output of nm in a C name address pair when lib prefix is needed.
16749global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16750
16751# The name of the directory that contains temporary libtool files.
16752objdir=$objdir
16753
16754# Shell to use when invoking shell scripts.
16755SHELL=$lt_SHELL
16756
16757# An echo program that does not interpret backslashes.
16758ECHO=$lt_ECHO
16759
16760# Used to examine libraries when file_magic_cmd begins with "file".
16761MAGIC_CMD=$MAGIC_CMD
16762
16763# Must we lock files when doing compilation?
16764need_locks=$lt_need_locks
16765
16766# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16767DSYMUTIL=$lt_DSYMUTIL
16768
16769# Tool to change global to local symbols on Mac OS X.
16770NMEDIT=$lt_NMEDIT
16771
16772# Tool to manipulate fat objects and archives on Mac OS X.
16773LIPO=$lt_LIPO
16774
16775# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16776OTOOL=$lt_OTOOL
16777
16778# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16779OTOOL64=$lt_OTOOL64
16780
16781# Old archive suffix (normally "a").
16782libext=$libext
16783
16784# Shared library suffix (normally ".so").
16785shrext_cmds=$lt_shrext_cmds
16786
16787# The commands to extract the exported symbol list from a shared archive.
16788extract_expsyms_cmds=$lt_extract_expsyms_cmds
16789
16790# Variables whose values should be saved in libtool wrapper scripts and
16791# restored at link time.
16792variables_saved_for_relink=$lt_variables_saved_for_relink
16793
16794# Do we need the "lib" prefix for modules?
16795need_lib_prefix=$need_lib_prefix
16796
16797# Do we need a version for libraries?
16798need_version=$need_version
16799
16800# Library versioning type.
16801version_type=$version_type
16802
16803# Shared library runtime path variable.
16804runpath_var=$runpath_var
16805
16806# Shared library path variable.
16807shlibpath_var=$shlibpath_var
16808
16809# Is shlibpath searched before the hard-coded library search path?
16810shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16811
16812# Format of library name prefix.
16813libname_spec=$lt_libname_spec
16814
16815# List of archive names.  First name is the real one, the rest are links.
16816# The last name is the one that the linker finds with -lNAME
16817library_names_spec=$lt_library_names_spec
16818
16819# The coded name of the library, if different from the real name.
16820soname_spec=$lt_soname_spec
16821
16822# Command to use after installation of a shared archive.
16823postinstall_cmds=$lt_postinstall_cmds
16824
16825# Command to use after uninstallation of a shared archive.
16826postuninstall_cmds=$lt_postuninstall_cmds
16827
16828# Commands used to finish a libtool library installation in a directory.
16829finish_cmds=$lt_finish_cmds
16830
16831# As "finish_cmds", except a single script fragment to be evaled but
16832# not shown.
16833finish_eval=$lt_finish_eval
16834
16835# Whether we should hardcode library paths into libraries.
16836hardcode_into_libs=$hardcode_into_libs
16837
16838# Compile-time system search path for libraries.
16839sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16840
16841# Run-time system search path for libraries.
16842sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16843
16844# Whether dlopen is supported.
16845dlopen_support=$enable_dlopen
16846
16847# Whether dlopen of programs is supported.
16848dlopen_self=$enable_dlopen_self
16849
16850# Whether dlopen of statically linked programs is supported.
16851dlopen_self_static=$enable_dlopen_self_static
16852
16853# Commands to strip libraries.
16854old_striplib=$lt_old_striplib
16855striplib=$lt_striplib
16856
16857
16858# The linker used to build libraries.
16859LD=$lt_LD
16860
16861# Commands used to build an old-style archive.
16862old_archive_cmds=$lt_old_archive_cmds
16863
16864# A language specific compiler.
16865CC=$lt_compiler
16866
16867# Is the compiler the GNU compiler?
16868with_gcc=$GCC
16869
16870# Compiler flag to turn off builtin functions.
16871no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16872
16873# How to pass a linker flag through the compiler.
16874wl=$lt_lt_prog_compiler_wl
16875
16876# Additional compiler flags for building library objects.
16877pic_flag=$lt_lt_prog_compiler_pic
16878
16879# Compiler flag to prevent dynamic linking.
16880link_static_flag=$lt_lt_prog_compiler_static
16881
16882# Does compiler simultaneously support -c and -o options?
16883compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16884
16885# Whether or not to add -lc for building shared libraries.
16886build_libtool_need_lc=$archive_cmds_need_lc
16887
16888# Whether or not to disallow shared libs when runtime libs are static.
16889allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16890
16891# Compiler flag to allow reflexive dlopens.
16892export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16893
16894# Compiler flag to generate shared objects directly from archives.
16895whole_archive_flag_spec=$lt_whole_archive_flag_spec
16896
16897# Whether the compiler copes with passing no objects directly.
16898compiler_needs_object=$lt_compiler_needs_object
16899
16900# Create an old-style archive from a shared archive.
16901old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16902
16903# Create a temporary old-style archive to link instead of a shared archive.
16904old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16905
16906# Commands used to build a shared archive.
16907archive_cmds=$lt_archive_cmds
16908archive_expsym_cmds=$lt_archive_expsym_cmds
16909
16910# Commands used to build a loadable module if different from building
16911# a shared archive.
16912module_cmds=$lt_module_cmds
16913module_expsym_cmds=$lt_module_expsym_cmds
16914
16915# Whether we are building with GNU ld or not.
16916with_gnu_ld=$lt_with_gnu_ld
16917
16918# Flag that allows shared libraries with undefined symbols to be built.
16919allow_undefined_flag=$lt_allow_undefined_flag
16920
16921# Flag that enforces no undefined symbols.
16922no_undefined_flag=$lt_no_undefined_flag
16923
16924# Flag to hardcode \$libdir into a binary during linking.
16925# This must work even if \$libdir does not exist
16926hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16927
16928# If ld is used when linking, flag to hardcode \$libdir into a binary
16929# during linking.  This must work even if \$libdir does not exist.
16930hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16931
16932# Whether we need a single "-rpath" flag with a separated argument.
16933hardcode_libdir_separator=$lt_hardcode_libdir_separator
16934
16935# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16936# DIR into the resulting binary.
16937hardcode_direct=$hardcode_direct
16938
16939# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16940# DIR into the resulting binary and the resulting library dependency is
16941# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16942# library is relocated.
16943hardcode_direct_absolute=$hardcode_direct_absolute
16944
16945# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16946# into the resulting binary.
16947hardcode_minus_L=$hardcode_minus_L
16948
16949# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16950# into the resulting binary.
16951hardcode_shlibpath_var=$hardcode_shlibpath_var
16952
16953# Set to "yes" if building a shared library automatically hardcodes DIR
16954# into the library and all subsequent libraries and executables linked
16955# against it.
16956hardcode_automatic=$hardcode_automatic
16957
16958# Set to yes if linker adds runtime paths of dependent libraries
16959# to runtime path list.
16960inherit_rpath=$inherit_rpath
16961
16962# Whether libtool must link a program against all its dependency libraries.
16963link_all_deplibs=$link_all_deplibs
16964
16965# Fix the shell variable \$srcfile for the compiler.
16966fix_srcfile_path=$lt_fix_srcfile_path
16967
16968# Set to "yes" if exported symbols are required.
16969always_export_symbols=$always_export_symbols
16970
16971# The commands to list exported symbols.
16972export_symbols_cmds=$lt_export_symbols_cmds
16973
16974# Symbols that should not be listed in the preloaded symbols.
16975exclude_expsyms=$lt_exclude_expsyms
16976
16977# Symbols that must always be exported.
16978include_expsyms=$lt_include_expsyms
16979
16980# Commands necessary for linking programs (against libraries) with templates.
16981prelink_cmds=$lt_prelink_cmds
16982
16983# Specify filename containing input files.
16984file_list_spec=$lt_file_list_spec
16985
16986# How to hardcode a shared library path into an executable.
16987hardcode_action=$hardcode_action
16988
16989# The directories searched by this compiler when creating a shared library.
16990compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16991
16992# Dependencies to place before and after the objects being linked to
16993# create a shared library.
16994predep_objects=$lt_predep_objects
16995postdep_objects=$lt_postdep_objects
16996predeps=$lt_predeps
16997postdeps=$lt_postdeps
16998
16999# The library search path used internally by the compiler when linking
17000# a shared library.
17001compiler_lib_search_path=$lt_compiler_lib_search_path
17002
17003# ### END LIBTOOL CONFIG
17004
17005_LT_EOF
17006
17007  case $host_os in
17008  aix3*)
17009    cat <<\_LT_EOF >> "$cfgfile"
17010# AIX sometimes has problems with the GCC collect2 program.  For some
17011# reason, if we set the COLLECT_NAMES environment variable, the problems
17012# vanish in a puff of smoke.
17013if test "X${COLLECT_NAMES+set}" != Xset; then
17014  COLLECT_NAMES=
17015  export COLLECT_NAMES
17016fi
17017_LT_EOF
17018    ;;
17019  esac
17020
17021
17022ltmain="$ac_aux_dir/ltmain.sh"
17023
17024
17025  # We use sed instead of cat because bash on DJGPP gets confused if
17026  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17027  # text mode, it properly converts lines to CR/LF.  This bash problem
17028  # is reportedly fixed, but why not run on old versions too?
17029  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17030    || (rm -f "$cfgfile"; exit 1)
17031
17032  case $xsi_shell in
17033  yes)
17034    cat << \_LT_EOF >> "$cfgfile"
17035
17036# func_dirname file append nondir_replacement
17037# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17038# otherwise set result to NONDIR_REPLACEMENT.
17039func_dirname ()
17040{
17041  case ${1} in
17042    */*) func_dirname_result="${1%/*}${2}" ;;
17043    *  ) func_dirname_result="${3}" ;;
17044  esac
17045}
17046
17047# func_basename file
17048func_basename ()
17049{
17050  func_basename_result="${1##*/}"
17051}
17052
17053# func_dirname_and_basename file append nondir_replacement
17054# perform func_basename and func_dirname in a single function
17055# call:
17056#   dirname:  Compute the dirname of FILE.  If nonempty,
17057#             add APPEND to the result, otherwise set result
17058#             to NONDIR_REPLACEMENT.
17059#             value returned in "$func_dirname_result"
17060#   basename: Compute filename of FILE.
17061#             value retuned in "$func_basename_result"
17062# Implementation must be kept synchronized with func_dirname
17063# and func_basename. For efficiency, we do not delegate to
17064# those functions but instead duplicate the functionality here.
17065func_dirname_and_basename ()
17066{
17067  case ${1} in
17068    */*) func_dirname_result="${1%/*}${2}" ;;
17069    *  ) func_dirname_result="${3}" ;;
17070  esac
17071  func_basename_result="${1##*/}"
17072}
17073
17074# func_stripname prefix suffix name
17075# strip PREFIX and SUFFIX off of NAME.
17076# PREFIX and SUFFIX must not contain globbing or regex special
17077# characters, hashes, percent signs, but SUFFIX may contain a leading
17078# dot (in which case that matches only a dot).
17079func_stripname ()
17080{
17081  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17082  # positional parameters, so assign one to ordinary parameter first.
17083  func_stripname_result=${3}
17084  func_stripname_result=${func_stripname_result#"${1}"}
17085  func_stripname_result=${func_stripname_result%"${2}"}
17086}
17087
17088# func_opt_split
17089func_opt_split ()
17090{
17091  func_opt_split_opt=${1%%=*}
17092  func_opt_split_arg=${1#*=}
17093}
17094
17095# func_lo2o object
17096func_lo2o ()
17097{
17098  case ${1} in
17099    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17100    *)    func_lo2o_result=${1} ;;
17101  esac
17102}
17103
17104# func_xform libobj-or-source
17105func_xform ()
17106{
17107  func_xform_result=${1%.*}.lo
17108}
17109
17110# func_arith arithmetic-term...
17111func_arith ()
17112{
17113  func_arith_result=$(( $* ))
17114}
17115
17116# func_len string
17117# STRING may not start with a hyphen.
17118func_len ()
17119{
17120  func_len_result=${#1}
17121}
17122
17123_LT_EOF
17124    ;;
17125  *) # Bourne compatible functions.
17126    cat << \_LT_EOF >> "$cfgfile"
17127
17128# func_dirname file append nondir_replacement
17129# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17130# otherwise set result to NONDIR_REPLACEMENT.
17131func_dirname ()
17132{
17133  # Extract subdirectory from the argument.
17134  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17135  if test "X$func_dirname_result" = "X${1}"; then
17136    func_dirname_result="${3}"
17137  else
17138    func_dirname_result="$func_dirname_result${2}"
17139  fi
17140}
17141
17142# func_basename file
17143func_basename ()
17144{
17145  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17146}
17147
17148
17149# func_stripname prefix suffix name
17150# strip PREFIX and SUFFIX off of NAME.
17151# PREFIX and SUFFIX must not contain globbing or regex special
17152# characters, hashes, percent signs, but SUFFIX may contain a leading
17153# dot (in which case that matches only a dot).
17154# func_strip_suffix prefix name
17155func_stripname ()
17156{
17157  case ${2} in
17158    .*) func_stripname_result=`$ECHO "X${3}" \
17159           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17160    *)  func_stripname_result=`$ECHO "X${3}" \
17161           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17162  esac
17163}
17164
17165# sed scripts:
17166my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17167my_sed_long_arg='1s/^-[^=]*=//'
17168
17169# func_opt_split
17170func_opt_split ()
17171{
17172  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17173  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17174}
17175
17176# func_lo2o object
17177func_lo2o ()
17178{
17179  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17180}
17181
17182# func_xform libobj-or-source
17183func_xform ()
17184{
17185  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17186}
17187
17188# func_arith arithmetic-term...
17189func_arith ()
17190{
17191  func_arith_result=`expr "$@"`
17192}
17193
17194# func_len string
17195# STRING may not start with a hyphen.
17196func_len ()
17197{
17198  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17199}
17200
17201_LT_EOF
17202esac
17203
17204case $lt_shell_append in
17205  yes)
17206    cat << \_LT_EOF >> "$cfgfile"
17207
17208# func_append var value
17209# Append VALUE to the end of shell variable VAR.
17210func_append ()
17211{
17212  eval "$1+=\$2"
17213}
17214_LT_EOF
17215    ;;
17216  *)
17217    cat << \_LT_EOF >> "$cfgfile"
17218
17219# func_append var value
17220# Append VALUE to the end of shell variable VAR.
17221func_append ()
17222{
17223  eval "$1=\$$1\$2"
17224}
17225
17226_LT_EOF
17227    ;;
17228  esac
17229
17230
17231  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17232    || (rm -f "$cfgfile"; exit 1)
17233
17234  mv -f "$cfgfile" "$ofile" ||
17235    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17236  chmod +x "$ofile"
17237
17238
17239    cat <<_LT_EOF >> "$ofile"
17240
17241# ### BEGIN LIBTOOL TAG CONFIG: CXX
17242
17243# The linker used to build libraries.
17244LD=$lt_LD_CXX
17245
17246# Commands used to build an old-style archive.
17247old_archive_cmds=$lt_old_archive_cmds_CXX
17248
17249# A language specific compiler.
17250CC=$lt_compiler_CXX
17251
17252# Is the compiler the GNU compiler?
17253with_gcc=$GCC_CXX
17254
17255# Compiler flag to turn off builtin functions.
17256no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17257
17258# How to pass a linker flag through the compiler.
17259wl=$lt_lt_prog_compiler_wl_CXX
17260
17261# Additional compiler flags for building library objects.
17262pic_flag=$lt_lt_prog_compiler_pic_CXX
17263
17264# Compiler flag to prevent dynamic linking.
17265link_static_flag=$lt_lt_prog_compiler_static_CXX
17266
17267# Does compiler simultaneously support -c and -o options?
17268compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17269
17270# Whether or not to add -lc for building shared libraries.
17271build_libtool_need_lc=$archive_cmds_need_lc_CXX
17272
17273# Whether or not to disallow shared libs when runtime libs are static.
17274allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17275
17276# Compiler flag to allow reflexive dlopens.
17277export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17278
17279# Compiler flag to generate shared objects directly from archives.
17280whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17281
17282# Whether the compiler copes with passing no objects directly.
17283compiler_needs_object=$lt_compiler_needs_object_CXX
17284
17285# Create an old-style archive from a shared archive.
17286old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17287
17288# Create a temporary old-style archive to link instead of a shared archive.
17289old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17290
17291# Commands used to build a shared archive.
17292archive_cmds=$lt_archive_cmds_CXX
17293archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17294
17295# Commands used to build a loadable module if different from building
17296# a shared archive.
17297module_cmds=$lt_module_cmds_CXX
17298module_expsym_cmds=$lt_module_expsym_cmds_CXX
17299
17300# Whether we are building with GNU ld or not.
17301with_gnu_ld=$lt_with_gnu_ld_CXX
17302
17303# Flag that allows shared libraries with undefined symbols to be built.
17304allow_undefined_flag=$lt_allow_undefined_flag_CXX
17305
17306# Flag that enforces no undefined symbols.
17307no_undefined_flag=$lt_no_undefined_flag_CXX
17308
17309# Flag to hardcode \$libdir into a binary during linking.
17310# This must work even if \$libdir does not exist
17311hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17312
17313# If ld is used when linking, flag to hardcode \$libdir into a binary
17314# during linking.  This must work even if \$libdir does not exist.
17315hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17316
17317# Whether we need a single "-rpath" flag with a separated argument.
17318hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17319
17320# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17321# DIR into the resulting binary.
17322hardcode_direct=$hardcode_direct_CXX
17323
17324# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17325# DIR into the resulting binary and the resulting library dependency is
17326# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17327# library is relocated.
17328hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17329
17330# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17331# into the resulting binary.
17332hardcode_minus_L=$hardcode_minus_L_CXX
17333
17334# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17335# into the resulting binary.
17336hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17337
17338# Set to "yes" if building a shared library automatically hardcodes DIR
17339# into the library and all subsequent libraries and executables linked
17340# against it.
17341hardcode_automatic=$hardcode_automatic_CXX
17342
17343# Set to yes if linker adds runtime paths of dependent libraries
17344# to runtime path list.
17345inherit_rpath=$inherit_rpath_CXX
17346
17347# Whether libtool must link a program against all its dependency libraries.
17348link_all_deplibs=$link_all_deplibs_CXX
17349
17350# Fix the shell variable \$srcfile for the compiler.
17351fix_srcfile_path=$lt_fix_srcfile_path_CXX
17352
17353# Set to "yes" if exported symbols are required.
17354always_export_symbols=$always_export_symbols_CXX
17355
17356# The commands to list exported symbols.
17357export_symbols_cmds=$lt_export_symbols_cmds_CXX
17358
17359# Symbols that should not be listed in the preloaded symbols.
17360exclude_expsyms=$lt_exclude_expsyms_CXX
17361
17362# Symbols that must always be exported.
17363include_expsyms=$lt_include_expsyms_CXX
17364
17365# Commands necessary for linking programs (against libraries) with templates.
17366prelink_cmds=$lt_prelink_cmds_CXX
17367
17368# Specify filename containing input files.
17369file_list_spec=$lt_file_list_spec_CXX
17370
17371# How to hardcode a shared library path into an executable.
17372hardcode_action=$hardcode_action_CXX
17373
17374# The directories searched by this compiler when creating a shared library.
17375compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17376
17377# Dependencies to place before and after the objects being linked to
17378# create a shared library.
17379predep_objects=$lt_predep_objects_CXX
17380postdep_objects=$lt_postdep_objects_CXX
17381predeps=$lt_predeps_CXX
17382postdeps=$lt_postdeps_CXX
17383
17384# The library search path used internally by the compiler when linking
17385# a shared library.
17386compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17387
17388# ### END LIBTOOL TAG CONFIG: CXX
17389_LT_EOF
17390
17391 ;;
17392
17393  esac
17394done # for ac_tag
17395
17396
17397as_fn_exit 0
17398_ACEOF
17399ac_clean_files=$ac_clean_files_save
17400
17401test $ac_write_fail = 0 ||
17402  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17403
17404
17405# configure is writing to config.log, and then calls config.status.
17406# config.status does its own redirection, appending to config.log.
17407# Unfortunately, on DOS this fails, as config.log is still kept open
17408# by configure, so config.status won't be able to write to it; its
17409# output is simply discarded.  So we exec the FD to /dev/null,
17410# effectively closing config.log, so it can be properly (re)opened and
17411# appended to by config.status.  When coming back to configure, we
17412# need to make the FD available again.
17413if test "$no_create" != yes; then
17414  ac_cs_success=:
17415  ac_config_status_args=
17416  test "$silent" = yes &&
17417    ac_config_status_args="$ac_config_status_args --quiet"
17418  exec 5>/dev/null
17419  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17420  exec 5>>config.log
17421  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17422  # would make configure fail if this is the last instruction.
17423  $ac_cs_success || as_fn_exit $?
17424fi
17425if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17426  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17427$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17428fi
17429
17430