cleanup specfile for packaging
[profile/ivi/gpsd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 #  include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 #  include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 LIBOBJS
746 XMLPROCFLAGS
747 HTMLTARGET
748 MANTARGET
749 XMLPROC
750 XMLTOSTDOUT_FALSE
751 XMLTOSTDOUT_TRUE
752 HAVE_XSLT_PROCESSOR_FALSE
753 HAVE_XSLT_PROCESSOR_TRUE
754 WITH_XMLTO
755 WITH_XSLTPROC
756 IPV6_ENABLE_FALSE
757 IPV6_ENABLE_TRUE
758 QMAKE
759 LIB_Q_GPSMM_ENABLE_FALSE
760 LIB_Q_GPSMM_ENABLE_TRUE
761 QtNetwork_LIBS
762 QtNetwork_CFLAGS
763 LIBGPSMM_ENABLE_FALSE
764 LIBGPSMM_ENABLE_TRUE
765 HAVE_BLUEZ_FALSE
766 HAVE_BLUEZ_TRUE
767 HAVE_DBUS_FALSE
768 HAVE_DBUS_TRUE
769 DBUS_GLIB_LIBS
770 DBUS_GLIB_CFLAGS
771 DBUS_LIBS
772 DBUS_CFLAGS
773 BLUEZ_LIBS
774 BLUEZ_CFLAGS
775 CLIENTDEBUG_ENABLE_FALSE
776 CLIENTDEBUG_ENABLE_TRUE
777 HAVE_AIVDM_FALSE
778 HAVE_AIVDM_TRUE
779 HAVE_NTRIP_FALSE
780 HAVE_NTRIP_TRUE
781 HAVE_RTCM104V3_FALSE
782 HAVE_RTCM104V3_TRUE
783 HAVE_RTCM104V2_FALSE
784 HAVE_RTCM104V2_TRUE
785 HAVE_NCURSES_FALSE
786 HAVE_NCURSES_TRUE
787 NCURSES_LIBS
788 LIBUSB_LIBS
789 LIBUSB_CFLAGS
790 PKG_CONFIG_LIBDIR
791 PKG_CONFIG_PATH
792 PKG_CONFIG
793 LIBPTHREAD
794 LIBC
795 LIBM
796 LIBSOCKET
797 LIBNSL
798 ALLOCA
799 CXXCPP
800 am__fastdepCXX_FALSE
801 am__fastdepCXX_TRUE
802 CXXDEPMODE
803 ac_ct_CXX
804 CXXFLAGS
805 CXX
806 OTOOL64
807 OTOOL
808 LIPO
809 NMEDIT
810 DSYMUTIL
811 lt_ECHO
812 RANLIB
813 AR
814 OBJDUMP
815 NM
816 ac_ct_DUMPBIN
817 DUMPBIN
818 LD
819 FGREP
820 SED
821 host_os
822 host_vendor
823 host_cpu
824 host
825 build_os
826 build_vendor
827 build_cpu
828 build
829 LIBTOOL
830 LN_S
831 HAVE_PYTHON_FALSE
832 HAVE_PYTHON_TRUE
833 PYTHON_LIBS
834 PYTHON_DISTUTILS_SCRIPTDIR
835 PYTHON_DISTUTILS_LIBDIR
836 PYTHON_CFLAGS
837 pkgpyexecdir
838 pyexecdir
839 pkgpythondir
840 pythondir
841 PYTHON_PLATFORM
842 PYTHON_EXEC_PREFIX
843 PYTHON_PREFIX
844 PYTHON_VERSION
845 PYTHON
846 EGREP
847 GREP
848 CPP
849 am__fastdepCC_FALSE
850 am__fastdepCC_TRUE
851 CCDEPMODE
852 AMDEPBACKSLASH
853 AMDEP_FALSE
854 AMDEP_TRUE
855 am__quote
856 am__include
857 DEPDIR
858 OBJEXT
859 EXEEXT
860 ac_ct_CC
861 CPPFLAGS
862 LDFLAGS
863 CFLAGS
864 CC
865 am__untar
866 am__tar
867 AMTAR
868 am__leading_dot
869 SET_MAKE
870 AWK
871 mkdir_p
872 MKDIR_P
873 INSTALL_STRIP_PROGRAM
874 STRIP
875 install_sh
876 MAKEINFO
877 AUTOHEADER
878 AUTOMAKE
879 AUTOCONF
880 ACLOCAL
881 VERSION
882 PACKAGE
883 CYGPATH_W
884 am__isrc
885 INSTALL_DATA
886 INSTALL_SCRIPT
887 INSTALL_PROGRAM
888 target_alias
889 host_alias
890 build_alias
891 LIBS
892 ECHO_T
893 ECHO_N
894 ECHO_C
895 DEFS
896 mandir
897 localedir
898 libdir
899 psdir
900 pdfdir
901 dvidir
902 htmldir
903 infodir
904 docdir
905 oldincludedir
906 includedir
907 localstatedir
908 sharedstatedir
909 sysconfdir
910 datadir
911 datarootdir
912 libexecdir
913 sbindir
914 bindir
915 program_transform_name
916 prefix
917 exec_prefix
918 PACKAGE_URL
919 PACKAGE_BUGREPORT
920 PACKAGE_STRING
921 PACKAGE_VERSION
922 PACKAGE_TARNAME
923 PACKAGE_NAME
924 PATH_SEPARATOR
925 SHELL'
926 ac_subst_files=''
927 ac_user_opts='
928 enable_option_checking
929 enable_dependency_tracking
930 enable_shared
931 enable_static
932 with_pic
933 enable_fast_install
934 with_gnu_ld
935 enable_libtool_lock
936 enable_nmea
937 enable_oncore
938 enable_sirf
939 enable_superstar2
940 enable_tsip
941 enable_fv18
942 enable_tripmate
943 enable_earthmate
944 enable_itrax
945 enable_ashtech
946 enable_navcom
947 enable_garmin
948 enable_garmintxt
949 enable_tnt
950 enable_oceanserver
951 enable_ubx
952 enable_evermore
953 enable_mtk3301
954 enable_gpsclock
955 enable_rtcm104v2
956 enable_rtcm104v3
957 enable_ntrip
958 enable_aivdm
959 enable_timing
960 enable_clientdebug
961 enable_oldstyle
962 enable_profiling
963 enable_ntpshm
964 enable_pps
965 enable_pps_on_cts
966 enable_gpsd_user
967 enable_gpsd_group
968 enable_fixed_port_speed
969 enable_bluetooth
970 enable_dbus
971 enable_max_clients
972 enable_max_devices
973 enable_reconfigure
974 enable_controlsend
975 enable_raw
976 enable_squelch
977 enable_libgpsmm
978 enable_libQgpsmm
979 enable_ipv6
980 '
981       ac_precious_vars='build_alias
982 host_alias
983 target_alias
984 CC
985 CFLAGS
986 LDFLAGS
987 LIBS
988 CPPFLAGS
989 CPP
990 CXX
991 CXXFLAGS
992 CCC
993 CXXCPP
994 PKG_CONFIG
995 PKG_CONFIG_PATH
996 PKG_CONFIG_LIBDIR
997 LIBUSB_CFLAGS
998 LIBUSB_LIBS
999 QtNetwork_CFLAGS
1000 QtNetwork_LIBS'
1001
1002
1003 # Initialize some variables set by options.
1004 ac_init_help=
1005 ac_init_version=false
1006 ac_unrecognized_opts=
1007 ac_unrecognized_sep=
1008 # The variables have the same names as the options, with
1009 # dashes changed to underlines.
1010 cache_file=/dev/null
1011 exec_prefix=NONE
1012 no_create=
1013 no_recursion=
1014 prefix=NONE
1015 program_prefix=NONE
1016 program_suffix=NONE
1017 program_transform_name=s,x,x,
1018 silent=
1019 site=
1020 srcdir=
1021 verbose=
1022 x_includes=NONE
1023 x_libraries=NONE
1024
1025 # Installation directory options.
1026 # These are left unexpanded so users can "make install exec_prefix=/foo"
1027 # and all the variables that are supposed to be based on exec_prefix
1028 # by default will actually change.
1029 # Use braces instead of parens because sh, perl, etc. also accept them.
1030 # (The list follows the same order as the GNU Coding Standards.)
1031 bindir='${exec_prefix}/bin'
1032 sbindir='${exec_prefix}/sbin'
1033 libexecdir='${exec_prefix}/libexec'
1034 datarootdir='${prefix}/share'
1035 datadir='${datarootdir}'
1036 sysconfdir='${prefix}/etc'
1037 sharedstatedir='${prefix}/com'
1038 localstatedir='${prefix}/var'
1039 includedir='${prefix}/include'
1040 oldincludedir='/usr/include'
1041 docdir='${datarootdir}/doc/${PACKAGE}'
1042 infodir='${datarootdir}/info'
1043 htmldir='${docdir}'
1044 dvidir='${docdir}'
1045 pdfdir='${docdir}'
1046 psdir='${docdir}'
1047 libdir='${exec_prefix}/lib'
1048 localedir='${datarootdir}/locale'
1049 mandir='${datarootdir}/man'
1050
1051 ac_prev=
1052 ac_dashdash=
1053 for ac_option
1054 do
1055   # If the previous option needs an argument, assign it.
1056   if test -n "$ac_prev"; then
1057     eval $ac_prev=\$ac_option
1058     ac_prev=
1059     continue
1060   fi
1061
1062   case $ac_option in
1063   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064   *=)   ac_optarg= ;;
1065   *)    ac_optarg=yes ;;
1066   esac
1067
1068   # Accept the important Cygnus configure options, so we can diagnose typos.
1069
1070   case $ac_dashdash$ac_option in
1071   --)
1072     ac_dashdash=yes ;;
1073
1074   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075     ac_prev=bindir ;;
1076   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1077     bindir=$ac_optarg ;;
1078
1079   -build | --build | --buil | --bui | --bu)
1080     ac_prev=build_alias ;;
1081   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1082     build_alias=$ac_optarg ;;
1083
1084   -cache-file | --cache-file | --cache-fil | --cache-fi \
1085   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1086     ac_prev=cache_file ;;
1087   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1088   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1089     cache_file=$ac_optarg ;;
1090
1091   --config-cache | -C)
1092     cache_file=config.cache ;;
1093
1094   -datadir | --datadir | --datadi | --datad)
1095     ac_prev=datadir ;;
1096   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1097     datadir=$ac_optarg ;;
1098
1099   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1100   | --dataroo | --dataro | --datar)
1101     ac_prev=datarootdir ;;
1102   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1103   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1104     datarootdir=$ac_optarg ;;
1105
1106   -disable-* | --disable-*)
1107     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110       as_fn_error $? "invalid feature name: $ac_useropt"
1111     ac_useropt_orig=$ac_useropt
1112     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113     case $ac_user_opts in
1114       *"
1115 "enable_$ac_useropt"
1116 "*) ;;
1117       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118          ac_unrecognized_sep=', ';;
1119     esac
1120     eval enable_$ac_useropt=no ;;
1121
1122   -docdir | --docdir | --docdi | --doc | --do)
1123     ac_prev=docdir ;;
1124   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125     docdir=$ac_optarg ;;
1126
1127   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128     ac_prev=dvidir ;;
1129   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130     dvidir=$ac_optarg ;;
1131
1132   -enable-* | --enable-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid feature name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "enable_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval enable_$ac_useropt=\$ac_optarg ;;
1147
1148   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1149   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1150   | --exec | --exe | --ex)
1151     ac_prev=exec_prefix ;;
1152   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1153   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1154   | --exec=* | --exe=* | --ex=*)
1155     exec_prefix=$ac_optarg ;;
1156
1157   -gas | --gas | --ga | --g)
1158     # Obsolete; use --with-gas.
1159     with_gas=yes ;;
1160
1161   -help | --help | --hel | --he | -h)
1162     ac_init_help=long ;;
1163   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1164     ac_init_help=recursive ;;
1165   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1166     ac_init_help=short ;;
1167
1168   -host | --host | --hos | --ho)
1169     ac_prev=host_alias ;;
1170   -host=* | --host=* | --hos=* | --ho=*)
1171     host_alias=$ac_optarg ;;
1172
1173   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174     ac_prev=htmldir ;;
1175   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176   | --ht=*)
1177     htmldir=$ac_optarg ;;
1178
1179   -includedir | --includedir | --includedi | --included | --include \
1180   | --includ | --inclu | --incl | --inc)
1181     ac_prev=includedir ;;
1182   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1183   | --includ=* | --inclu=* | --incl=* | --inc=*)
1184     includedir=$ac_optarg ;;
1185
1186   -infodir | --infodir | --infodi | --infod | --info | --inf)
1187     ac_prev=infodir ;;
1188   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1189     infodir=$ac_optarg ;;
1190
1191   -libdir | --libdir | --libdi | --libd)
1192     ac_prev=libdir ;;
1193   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1194     libdir=$ac_optarg ;;
1195
1196   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1197   | --libexe | --libex | --libe)
1198     ac_prev=libexecdir ;;
1199   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1200   | --libexe=* | --libex=* | --libe=*)
1201     libexecdir=$ac_optarg ;;
1202
1203   -localedir | --localedir | --localedi | --localed | --locale)
1204     ac_prev=localedir ;;
1205   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1206     localedir=$ac_optarg ;;
1207
1208   -localstatedir | --localstatedir | --localstatedi | --localstated \
1209   | --localstate | --localstat | --localsta | --localst | --locals)
1210     ac_prev=localstatedir ;;
1211   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1212   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1213     localstatedir=$ac_optarg ;;
1214
1215   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216     ac_prev=mandir ;;
1217   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1218     mandir=$ac_optarg ;;
1219
1220   -nfp | --nfp | --nf)
1221     # Obsolete; use --without-fp.
1222     with_fp=no ;;
1223
1224   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1225   | --no-cr | --no-c | -n)
1226     no_create=yes ;;
1227
1228   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230     no_recursion=yes ;;
1231
1232   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1233   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1234   | --oldin | --oldi | --old | --ol | --o)
1235     ac_prev=oldincludedir ;;
1236   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1237   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1238   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1239     oldincludedir=$ac_optarg ;;
1240
1241   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242     ac_prev=prefix ;;
1243   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1244     prefix=$ac_optarg ;;
1245
1246   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1247   | --program-pre | --program-pr | --program-p)
1248     ac_prev=program_prefix ;;
1249   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1250   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1251     program_prefix=$ac_optarg ;;
1252
1253   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1254   | --program-suf | --program-su | --program-s)
1255     ac_prev=program_suffix ;;
1256   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1257   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1258     program_suffix=$ac_optarg ;;
1259
1260   -program-transform-name | --program-transform-name \
1261   | --program-transform-nam | --program-transform-na \
1262   | --program-transform-n | --program-transform- \
1263   | --program-transform | --program-transfor \
1264   | --program-transfo | --program-transf \
1265   | --program-trans | --program-tran \
1266   | --progr-tra | --program-tr | --program-t)
1267     ac_prev=program_transform_name ;;
1268   -program-transform-name=* | --program-transform-name=* \
1269   | --program-transform-nam=* | --program-transform-na=* \
1270   | --program-transform-n=* | --program-transform-=* \
1271   | --program-transform=* | --program-transfor=* \
1272   | --program-transfo=* | --program-transf=* \
1273   | --program-trans=* | --program-tran=* \
1274   | --progr-tra=* | --program-tr=* | --program-t=*)
1275     program_transform_name=$ac_optarg ;;
1276
1277   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278     ac_prev=pdfdir ;;
1279   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1280     pdfdir=$ac_optarg ;;
1281
1282   -psdir | --psdir | --psdi | --psd | --ps)
1283     ac_prev=psdir ;;
1284   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285     psdir=$ac_optarg ;;
1286
1287   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288   | -silent | --silent | --silen | --sile | --sil)
1289     silent=yes ;;
1290
1291   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292     ac_prev=sbindir ;;
1293   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294   | --sbi=* | --sb=*)
1295     sbindir=$ac_optarg ;;
1296
1297   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1298   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1299   | --sharedst | --shareds | --shared | --share | --shar \
1300   | --sha | --sh)
1301     ac_prev=sharedstatedir ;;
1302   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1303   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1304   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305   | --sha=* | --sh=*)
1306     sharedstatedir=$ac_optarg ;;
1307
1308   -site | --site | --sit)
1309     ac_prev=site ;;
1310   -site=* | --site=* | --sit=*)
1311     site=$ac_optarg ;;
1312
1313   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314     ac_prev=srcdir ;;
1315   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1316     srcdir=$ac_optarg ;;
1317
1318   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1319   | --syscon | --sysco | --sysc | --sys | --sy)
1320     ac_prev=sysconfdir ;;
1321   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1322   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1323     sysconfdir=$ac_optarg ;;
1324
1325   -target | --target | --targe | --targ | --tar | --ta | --t)
1326     ac_prev=target_alias ;;
1327   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1328     target_alias=$ac_optarg ;;
1329
1330   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1331     verbose=yes ;;
1332
1333   -version | --version | --versio | --versi | --vers | -V)
1334     ac_init_version=: ;;
1335
1336   -with-* | --with-*)
1337     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338     # Reject names that are not valid shell variable names.
1339     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340       as_fn_error $? "invalid package name: $ac_useropt"
1341     ac_useropt_orig=$ac_useropt
1342     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343     case $ac_user_opts in
1344       *"
1345 "with_$ac_useropt"
1346 "*) ;;
1347       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348          ac_unrecognized_sep=', ';;
1349     esac
1350     eval with_$ac_useropt=\$ac_optarg ;;
1351
1352   -without-* | --without-*)
1353     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354     # Reject names that are not valid shell variable names.
1355     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356       as_fn_error $? "invalid package name: $ac_useropt"
1357     ac_useropt_orig=$ac_useropt
1358     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359     case $ac_user_opts in
1360       *"
1361 "with_$ac_useropt"
1362 "*) ;;
1363       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364          ac_unrecognized_sep=', ';;
1365     esac
1366     eval with_$ac_useropt=no ;;
1367
1368   --x)
1369     # Obsolete; use --with-x.
1370     with_x=yes ;;
1371
1372   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373   | --x-incl | --x-inc | --x-in | --x-i)
1374     ac_prev=x_includes ;;
1375   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377     x_includes=$ac_optarg ;;
1378
1379   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381     ac_prev=x_libraries ;;
1382   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384     x_libraries=$ac_optarg ;;
1385
1386   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1387 Try \`$0 --help' for more information"
1388     ;;
1389
1390   *=*)
1391     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392     # Reject names that are not valid shell variable names.
1393     case $ac_envvar in #(
1394       '' | [0-9]* | *[!_$as_cr_alnum]* )
1395       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396     esac
1397     eval $ac_envvar=\$ac_optarg
1398     export $ac_envvar ;;
1399
1400   *)
1401     # FIXME: should be removed in autoconf 3.0.
1402     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1406     ;;
1407
1408   esac
1409 done
1410
1411 if test -n "$ac_prev"; then
1412   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413   as_fn_error $? "missing argument to $ac_option"
1414 fi
1415
1416 if test -n "$ac_unrecognized_opts"; then
1417   case $enable_option_checking in
1418     no) ;;
1419     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1420     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421   esac
1422 fi
1423
1424 # Check all directory arguments for consistency.
1425 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426                 datadir sysconfdir sharedstatedir localstatedir includedir \
1427                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428                 libdir localedir mandir
1429 do
1430   eval ac_val=\$$ac_var
1431   # Remove trailing slashes.
1432   case $ac_val in
1433     */ )
1434       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435       eval $ac_var=\$ac_val;;
1436   esac
1437   # Be sure to have absolute directory names.
1438   case $ac_val in
1439     [\\/$]* | ?:[\\/]* )  continue;;
1440     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441   esac
1442   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1443 done
1444
1445 # There might be people who depend on the old broken behavior: `$host'
1446 # used to hold the argument of --host etc.
1447 # FIXME: To remove some day.
1448 build=$build_alias
1449 host=$host_alias
1450 target=$target_alias
1451
1452 # FIXME: To remove some day.
1453 if test "x$host_alias" != x; then
1454   if test "x$build_alias" = x; then
1455     cross_compiling=maybe
1456     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1457     If a cross compiler is detected then cross compile mode will be used" >&2
1458   elif test "x$build_alias" != "x$host_alias"; then
1459     cross_compiling=yes
1460   fi
1461 fi
1462
1463 ac_tool_prefix=
1464 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1465
1466 test "$silent" = yes && exec 6>/dev/null
1467
1468
1469 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470 ac_ls_di=`ls -di .` &&
1471 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472   as_fn_error $? "working directory cannot be determined"
1473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474   as_fn_error $? "pwd does not report name of working directory"
1475
1476
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479   ac_srcdir_defaulted=yes
1480   # Try the directory containing this script, then the parent directory.
1481   ac_confdir=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483          X"$as_myself" : 'X\(//\)[^/]' \| \
1484          X"$as_myself" : 'X\(//\)$' \| \
1485          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488             s//\1/
1489             q
1490           }
1491           /^X\(\/\/\)[^/].*/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)$/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\).*/{
1500             s//\1/
1501             q
1502           }
1503           s/.*/./; q'`
1504   srcdir=$ac_confdir
1505   if test ! -r "$srcdir/$ac_unique_file"; then
1506     srcdir=..
1507   fi
1508 else
1509   ac_srcdir_defaulted=no
1510 fi
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1514 fi
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 ac_abs_confdir=`(
1517         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1518         pwd)`
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1521   srcdir=.
1522 fi
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1526 case $srcdir in
1527 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528 esac
1529 for ac_var in $ac_precious_vars; do
1530   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531   eval ac_env_${ac_var}_value=\$${ac_var}
1532   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534 done
1535
1536 #
1537 # Report the --help message.
1538 #
1539 if test "$ac_init_help" = "long"; then
1540   # Omit some internal or obsolete options to make the list less imposing.
1541   # This message is too long to be a string in the A/UX 3.1 sh.
1542   cat <<_ACEOF
1543 \`configure' configures this package to adapt to many kinds of systems.
1544
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1546
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE.  See below for descriptions of some of the useful variables.
1549
1550 Defaults for the options are specified in brackets.
1551
1552 Configuration:
1553   -h, --help              display this help and exit
1554       --help=short        display options specific to this package
1555       --help=recursive    display the short help of all the included packages
1556   -V, --version           display version information and exit
1557   -q, --quiet, --silent   do not print \`checking ...' messages
1558       --cache-file=FILE   cache test results in FILE [disabled]
1559   -C, --config-cache      alias for \`--cache-file=config.cache'
1560   -n, --no-create         do not create output files
1561       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1562
1563 Installation directories:
1564   --prefix=PREFIX         install architecture-independent files in PREFIX
1565                           [$ac_default_prefix]
1566   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1567                           [PREFIX]
1568
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1573
1574 For better control, use the options below.
1575
1576 Fine tuning of the installation directories:
1577   --bindir=DIR            user executables [EPREFIX/bin]
1578   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1579   --libexecdir=DIR        program executables [EPREFIX/libexec]
1580   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1581   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1582   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1583   --libdir=DIR            object code libraries [EPREFIX/lib]
1584   --includedir=DIR        C header files [PREFIX/include]
1585   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1586   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1587   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1588   --infodir=DIR           info documentation [DATAROOTDIR/info]
1589   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1590   --mandir=DIR            man documentation [DATAROOTDIR/man]
1591   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1592   --htmldir=DIR           html documentation [DOCDIR]
1593   --dvidir=DIR            dvi documentation [DOCDIR]
1594   --pdfdir=DIR            pdf documentation [DOCDIR]
1595   --psdir=DIR             ps documentation [DOCDIR]
1596 _ACEOF
1597
1598   cat <<\_ACEOF
1599
1600 Program names:
1601   --program-prefix=PREFIX            prepend PREFIX to installed program names
1602   --program-suffix=SUFFIX            append SUFFIX to installed program names
1603   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1604
1605 System types:
1606   --build=BUILD     configure for building on BUILD [guessed]
1607   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1608 _ACEOF
1609 fi
1610
1611 if test -n "$ac_init_help"; then
1612
1613   cat <<\_ACEOF
1614
1615 Optional Features:
1616   --disable-option-checking  ignore unrecognized --enable/--with options
1617   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1618   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1619   --disable-dependency-tracking  speeds up one-time build
1620   --enable-dependency-tracking   do not reject slow dependency extractors
1621   --enable-shared[=PKGS]  build shared libraries [default=yes]
1622   --enable-static[=PKGS]  build static libraries [default=yes]
1623   --enable-fast-install[=PKGS]
1624                           optimize for fast installation [default=yes]
1625   --disable-libtool-lock  avoid locking (might break parallel builds)
1626   --disable-nmea          disable NMEA support
1627   --disable-oncore        disable Motorola OnCore chipset support
1628   --disable-sirf          disable SiRF chipset support
1629   --disable-superstar2    disable SuperStarII chipset support
1630   --disable-tsip          disable Trimble TSIP support
1631   --disable-fv18          disable San Jose Navigation FV-18 support
1632   --disable-tripmate      disable DeLorme TripMate support
1633   --disable-earthmate     disable DeLorme EarthMate Zodiac support
1634   --disable-itrax         disable iTrax hardware support
1635   --disable-ashtech       disable Ashtech support
1636   --disable-navcom        disable Navcom support
1637   --disable-garmin        disable Garmin kernel driver support
1638   --enable-garmintxt      enable Garmin Simple Text support
1639   --enable-tnt            disable True North Technologies support
1640   --disable-oceanserver   disable OceanServer support
1641   --disable-ubx           disable UBX Protocol support
1642   --disable-evermore      disable EverMore binary support
1643   --disable-mtk3301       disable MTK-3301 support
1644   --disable-gpsclock      disable GPSClock support
1645   --disable-rtcm104v2     disable rtcm104v2 support
1646   --disable-rtcm104v3     disable rtcm104v3 support
1647   --disable-ntrip         disable NTRIP support
1648   --disable-aivdm         disable Aivdm support
1649   --disable-timing        disable latency timing support
1650   --disable-clientdebug   disable client debugging support
1651   --disable-oldstyle      disable oldstyle (pre-JSON) protocol support
1652   --enable-profiling      enable profiling support
1653   --disable-ntpshm        disable NTP time hinting support
1654   --disable-pps           disable PPS time syncing support
1655   --enable-pps-on-cts     Enable PPS pulse on CTS rather than DCD
1656   --enable-gpsd-user=username
1657                           GPSD privilege revocation user
1658   --enable-gpsd-group=groupname
1659                           GPSD privilege revocation group, use if /dev/ttyS0
1660                           not found
1661   --enable-fixed-port-speed=nnn
1662                           compile with fixed serial port speed
1663   --enable-bluetooth      Enable support for Bluetooth GPS devices via BlueZ
1664                           (experimental)
1665   --enable-dbus           enable DBUS support
1666   --enable-max-clients=nnn
1667                           compile with limited maximum clients
1668   --enable-max-devices=nnn
1669                           compile with maximum allowed devices
1670   --disable-reconfigure   do not allow gpsd to change device settings
1671   --disable-controlsend   do not allow gpsctl/gpsmon to change device settings
1672   --enable-raw            enable raw measurement processing
1673   --enable-squelch        squelch gpsd_report and gpsd_hexdump to save cpu
1674   --disable-libgpsmm      don't build C++ bindings
1675   --disable-libQgpsmm     don't build QT bindings
1676   --disable-ipv6          don't build IPv6 support
1677
1678 Optional Packages:
1679   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1680   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1681   --with-pic              try to use only PIC/non-PIC objects [default=use
1682                           both]
1683   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1684
1685 Some influential environment variables:
1686   CC          C compiler command
1687   CFLAGS      C compiler flags
1688   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1689               nonstandard directory <lib dir>
1690   LIBS        libraries to pass to the linker, e.g. -l<library>
1691   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1692               you have headers in a nonstandard directory <include dir>
1693   CPP         C preprocessor
1694   CXX         C++ compiler command
1695   CXXFLAGS    C++ compiler flags
1696   CXXCPP      C++ preprocessor
1697   PKG_CONFIG  path to pkg-config utility
1698   PKG_CONFIG_PATH
1699               directories to add to pkg-config's search path
1700   PKG_CONFIG_LIBDIR
1701               path overriding pkg-config's built-in search path
1702   LIBUSB_CFLAGS
1703               C compiler flags for LIBUSB, overriding pkg-config
1704   LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1705   QtNetwork_CFLAGS
1706               C compiler flags for QtNetwork, overriding pkg-config
1707   QtNetwork_LIBS
1708               linker flags for QtNetwork, overriding pkg-config
1709
1710 Use these variables to override the choices made by `configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1712
1713 Report bugs to the package provider.
1714 _ACEOF
1715 ac_status=$?
1716 fi
1717
1718 if test "$ac_init_help" = "recursive"; then
1719   # If there are subdirs, report their specific --help.
1720   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721     test -d "$ac_dir" ||
1722       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1723       continue
1724     ac_builddir=.
1725
1726 case "$ac_dir" in
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 *)
1729   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1730   # A ".." for each directory in $ac_dir_suffix.
1731   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732   case $ac_top_builddir_sub in
1733   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735   esac ;;
1736 esac
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1741
1742 case $srcdir in
1743   .)  # We are building in place.
1744     ac_srcdir=.
1745     ac_top_srcdir=$ac_top_builddir_sub
1746     ac_abs_top_srcdir=$ac_pwd ;;
1747   [\\/]* | ?:[\\/]* )  # Absolute name.
1748     ac_srcdir=$srcdir$ac_dir_suffix;
1749     ac_top_srcdir=$srcdir
1750     ac_abs_top_srcdir=$srcdir ;;
1751   *) # Relative name.
1752     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753     ac_top_srcdir=$ac_top_build_prefix$srcdir
1754     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755 esac
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757
1758     cd "$ac_dir" || { ac_status=$?; continue; }
1759     # Check for guested configure.
1760     if test -f "$ac_srcdir/configure.gnu"; then
1761       echo &&
1762       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763     elif test -f "$ac_srcdir/configure"; then
1764       echo &&
1765       $SHELL "$ac_srcdir/configure" --help=recursive
1766     else
1767       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768     fi || ac_status=$?
1769     cd "$ac_pwd" || { ac_status=$?; break; }
1770   done
1771 fi
1772
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1775   cat <<\_ACEOF
1776 configure
1777 generated by GNU Autoconf 2.67
1778
1779 Copyright (C) 2010 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1782 _ACEOF
1783   exit
1784 fi
1785
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1789
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   rm -f conftest.$ac_objext
1797   if { { ac_try="$ac_compile"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_compile") 2>conftest.err
1805   ac_status=$?
1806   if test -s conftest.err; then
1807     grep -v '^ *+' conftest.err >conftest.er1
1808     cat conftest.er1 >&5
1809     mv -f conftest.er1 conftest.err
1810   fi
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; } && {
1813          test -z "$ac_c_werror_flag" ||
1814          test ! -s conftest.err
1815        } && test -s conftest.$ac_objext; then :
1816   ac_retval=0
1817 else
1818   $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821         ac_retval=1
1822 fi
1823   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824   as_fn_set_status $ac_retval
1825
1826 } # ac_fn_c_try_compile
1827
1828 # ac_fn_c_try_cpp LINENO
1829 # ----------------------
1830 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_cpp ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   if { { ac_try="$ac_cpp conftest.$ac_ext"
1835 case "(($ac_try" in
1836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837   *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1842   ac_status=$?
1843   if test -s conftest.err; then
1844     grep -v '^ *+' conftest.err >conftest.er1
1845     cat conftest.er1 >&5
1846     mv -f conftest.er1 conftest.err
1847   fi
1848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; } > conftest.i && {
1850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851          test ! -s conftest.err
1852        }; then :
1853   ac_retval=0
1854 else
1855   $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858     ac_retval=1
1859 fi
1860   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861   as_fn_set_status $ac_retval
1862
1863 } # ac_fn_c_try_cpp
1864
1865 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868 # the include files in INCLUDES and setting the cache variable VAR
1869 # accordingly.
1870 ac_fn_c_check_header_mongrel ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   if eval "test \"\${$3+set}\"" = set; then :
1874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval "test \"\${$3+set}\"" = set; then :
1877   $as_echo_n "(cached) " >&6
1878 fi
1879 eval ac_res=\$$3
1880                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 else
1883   # Is the header compilable?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885 $as_echo_n "checking $2 usability... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h.  */
1888 $4
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892   ac_header_compiler=yes
1893 else
1894   ac_header_compiler=no
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898 $as_echo "$ac_header_compiler" >&6; }
1899
1900 # Is the header present?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902 $as_echo_n "checking $2 presence... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_cpp "$LINENO"; then :
1908   ac_header_preproc=yes
1909 else
1910   ac_header_preproc=no
1911 fi
1912 rm -f conftest.err conftest.i conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914 $as_echo "$ac_header_preproc" >&6; }
1915
1916 # So?  What about this header?
1917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1918   yes:no: )
1919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923     ;;
1924   no:yes:* )
1925     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1928 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1932 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935     ;;
1936 esac
1937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval "test \"\${$3+set}\"" = set; then :
1940   $as_echo_n "(cached) " >&6
1941 else
1942   eval "$3=\$ac_header_compiler"
1943 fi
1944 eval ac_res=\$$3
1945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 fi
1948   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950 } # ac_fn_c_check_header_mongrel
1951
1952 # ac_fn_c_try_run LINENO
1953 # ----------------------
1954 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1955 # that executables *can* be run.
1956 ac_fn_c_try_run ()
1957 {
1958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959   if { { ac_try="$ac_link"
1960 case "(($ac_try" in
1961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962   *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966   (eval "$ac_link") 2>&5
1967   ac_status=$?
1968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1970   { { case "(($ac_try" in
1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972   *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976   (eval "$ac_try") 2>&5
1977   ac_status=$?
1978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979   test $ac_status = 0; }; }; then :
1980   ac_retval=0
1981 else
1982   $as_echo "$as_me: program exited with status $ac_status" >&5
1983        $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1985
1986        ac_retval=$ac_status
1987 fi
1988   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990   as_fn_set_status $ac_retval
1991
1992 } # ac_fn_c_try_run
1993
1994 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1995 # -------------------------------------------------------
1996 # Tests whether HEADER exists and can be compiled using the include files in
1997 # INCLUDES, setting the cache variable VAR accordingly.
1998 ac_fn_c_check_header_compile ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval "test \"\${$3+set}\"" = set; then :
2004   $as_echo_n "(cached) " >&6
2005 else
2006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h.  */
2008 $4
2009 #include <$2>
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012   eval "$3=yes"
2013 else
2014   eval "$3=no"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022
2023 } # ac_fn_c_check_header_compile
2024
2025 # ac_fn_c_try_link LINENO
2026 # -----------------------
2027 # Try to link conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_c_try_link ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   rm -f conftest.$ac_objext conftest$ac_exeext
2032   if { { ac_try="$ac_link"
2033 case "(($ac_try" in
2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035   *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039   (eval "$ac_link") 2>conftest.err
2040   ac_status=$?
2041   if test -s conftest.err; then
2042     grep -v '^ *+' conftest.err >conftest.er1
2043     cat conftest.er1 >&5
2044     mv -f conftest.er1 conftest.err
2045   fi
2046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047   test $ac_status = 0; } && {
2048          test -z "$ac_c_werror_flag" ||
2049          test ! -s conftest.err
2050        } && test -s conftest$ac_exeext && {
2051          test "$cross_compiling" = yes ||
2052          $as_test_x conftest$ac_exeext
2053        }; then :
2054   ac_retval=0
2055 else
2056   $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059         ac_retval=1
2060 fi
2061   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063   # interfere with the next link command; also delete a directory that is
2064   # left behind by Apple's compiler.  We do this before executing the actions.
2065   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067   as_fn_set_status $ac_retval
2068
2069 } # ac_fn_c_try_link
2070
2071 # ac_fn_c_check_func LINENO FUNC VAR
2072 # ----------------------------------
2073 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2074 ac_fn_c_check_func ()
2075 {
2076   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if eval "test \"\${$3+set}\"" = set; then :
2080   $as_echo_n "(cached) " >&6
2081 else
2082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2086 #define $2 innocuous_$2
2087
2088 /* System header to define __stub macros and hopefully few prototypes,
2089     which can conflict with char $2 (); below.
2090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2091     <limits.h> exists even on freestanding compilers.  */
2092
2093 #ifdef __STDC__
2094 # include <limits.h>
2095 #else
2096 # include <assert.h>
2097 #endif
2098
2099 #undef $2
2100
2101 /* Override any GCC internal prototype to avoid an error.
2102    Use char because int might match the return type of a GCC
2103    builtin and then its argument prototype would still apply.  */
2104 #ifdef __cplusplus
2105 extern "C"
2106 #endif
2107 char $2 ();
2108 /* The GNU C library defines this for functions which it implements
2109     to always fail with ENOSYS.  Some functions are actually named
2110     something starting with __ and the normal name is an alias.  */
2111 #if defined __stub_$2 || defined __stub___$2
2112 choke me
2113 #endif
2114
2115 int
2116 main ()
2117 {
2118 return $2 ();
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_link "$LINENO"; then :
2124   eval "$3=yes"
2125 else
2126   eval "$3=no"
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext \
2129     conftest$ac_exeext conftest.$ac_ext
2130 fi
2131 eval ac_res=\$$3
2132                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135
2136 } # ac_fn_c_check_func
2137
2138 # ac_fn_cxx_try_compile LINENO
2139 # ----------------------------
2140 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2141 ac_fn_cxx_try_compile ()
2142 {
2143   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144   rm -f conftest.$ac_objext
2145   if { { ac_try="$ac_compile"
2146 case "(($ac_try" in
2147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148   *) ac_try_echo=$ac_try;;
2149 esac
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152   (eval "$ac_compile") 2>conftest.err
2153   ac_status=$?
2154   if test -s conftest.err; then
2155     grep -v '^ *+' conftest.err >conftest.er1
2156     cat conftest.er1 >&5
2157     mv -f conftest.er1 conftest.err
2158   fi
2159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160   test $ac_status = 0; } && {
2161          test -z "$ac_cxx_werror_flag" ||
2162          test ! -s conftest.err
2163        } && test -s conftest.$ac_objext; then :
2164   ac_retval=0
2165 else
2166   $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169         ac_retval=1
2170 fi
2171   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172   as_fn_set_status $ac_retval
2173
2174 } # ac_fn_cxx_try_compile
2175
2176 # ac_fn_cxx_try_cpp LINENO
2177 # ------------------------
2178 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2179 ac_fn_cxx_try_cpp ()
2180 {
2181   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182   if { { ac_try="$ac_cpp conftest.$ac_ext"
2183 case "(($ac_try" in
2184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185   *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2190   ac_status=$?
2191   if test -s conftest.err; then
2192     grep -v '^ *+' conftest.err >conftest.er1
2193     cat conftest.er1 >&5
2194     mv -f conftest.er1 conftest.err
2195   fi
2196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197   test $ac_status = 0; } > conftest.i && {
2198          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2199          test ! -s conftest.err
2200        }; then :
2201   ac_retval=0
2202 else
2203   $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206     ac_retval=1
2207 fi
2208   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209   as_fn_set_status $ac_retval
2210
2211 } # ac_fn_cxx_try_cpp
2212
2213 # ac_fn_cxx_try_link LINENO
2214 # -------------------------
2215 # Try to link conftest.$ac_ext, and return whether this succeeded.
2216 ac_fn_cxx_try_link ()
2217 {
2218   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219   rm -f conftest.$ac_objext conftest$ac_exeext
2220   if { { ac_try="$ac_link"
2221 case "(($ac_try" in
2222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223   *) ac_try_echo=$ac_try;;
2224 esac
2225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226 $as_echo "$ac_try_echo"; } >&5
2227   (eval "$ac_link") 2>conftest.err
2228   ac_status=$?
2229   if test -s conftest.err; then
2230     grep -v '^ *+' conftest.err >conftest.er1
2231     cat conftest.er1 >&5
2232     mv -f conftest.er1 conftest.err
2233   fi
2234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2235   test $ac_status = 0; } && {
2236          test -z "$ac_cxx_werror_flag" ||
2237          test ! -s conftest.err
2238        } && test -s conftest$ac_exeext && {
2239          test "$cross_compiling" = yes ||
2240          $as_test_x conftest$ac_exeext
2241        }; then :
2242   ac_retval=0
2243 else
2244   $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247         ac_retval=1
2248 fi
2249   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2250   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2251   # interfere with the next link command; also delete a directory that is
2252   # left behind by Apple's compiler.  We do this before executing the actions.
2253   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2254   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255   as_fn_set_status $ac_retval
2256
2257 } # ac_fn_cxx_try_link
2258
2259 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2260 # --------------------------------------------
2261 # Tries to find the compile-time value of EXPR in a program that includes
2262 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2263 # computed
2264 ac_fn_c_compute_int ()
2265 {
2266   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267   if test "$cross_compiling" = yes; then
2268     # Depending upon the size, compute the lo and hi bounds.
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h.  */
2271 $4
2272 int
2273 main ()
2274 {
2275 static int test_array [1 - 2 * !(($2) >= 0)];
2276 test_array [0] = 0
2277
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283   ac_lo=0 ac_mid=0
2284   while :; do
2285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 int
2289 main ()
2290 {
2291 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292 test_array [0] = 0
2293
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299   ac_hi=$ac_mid; break
2300 else
2301   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2302                         if test $ac_lo -le $ac_mid; then
2303                           ac_lo= ac_hi=
2304                           break
2305                         fi
2306                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309   done
2310 else
2311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h.  */
2313 $4
2314 int
2315 main ()
2316 {
2317 static int test_array [1 - 2 * !(($2) < 0)];
2318 test_array [0] = 0
2319
2320   ;
2321   return 0;
2322 }
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325   ac_hi=-1 ac_mid=-1
2326   while :; do
2327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h.  */
2329 $4
2330 int
2331 main ()
2332 {
2333 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2334 test_array [0] = 0
2335
2336   ;
2337   return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341   ac_lo=$ac_mid; break
2342 else
2343   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2344                         if test $ac_mid -le $ac_hi; then
2345                           ac_lo= ac_hi=
2346                           break
2347                         fi
2348                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2349 fi
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351   done
2352 else
2353   ac_lo= ac_hi=
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 # Binary search between lo and hi bounds.
2359 while test "x$ac_lo" != "x$ac_hi"; do
2360   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363 $4
2364 int
2365 main ()
2366 {
2367 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2368 test_array [0] = 0
2369
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 if ac_fn_c_try_compile "$LINENO"; then :
2375   ac_hi=$ac_mid
2376 else
2377   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 done
2381 case $ac_lo in #((
2382 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2383 '') ac_retval=1 ;;
2384 esac
2385   else
2386     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h.  */
2388 $4
2389 static long int longval () { return $2; }
2390 static unsigned long int ulongval () { return $2; }
2391 #include <stdio.h>
2392 #include <stdlib.h>
2393 int
2394 main ()
2395 {
2396
2397   FILE *f = fopen ("conftest.val", "w");
2398   if (! f)
2399     return 1;
2400   if (($2) < 0)
2401     {
2402       long int i = longval ();
2403       if (i != ($2))
2404         return 1;
2405       fprintf (f, "%ld", i);
2406     }
2407   else
2408     {
2409       unsigned long int i = ulongval ();
2410       if (i != ($2))
2411         return 1;
2412       fprintf (f, "%lu", i);
2413     }
2414   /* Do not output a trailing newline, as this causes \r\n confusion
2415      on some platforms.  */
2416   return ferror (f) || fclose (f) != 0;
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_c_try_run "$LINENO"; then :
2423   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2424 else
2425   ac_retval=1
2426 fi
2427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2428   conftest.$ac_objext conftest.beam conftest.$ac_ext
2429 rm -f conftest.val
2430
2431   fi
2432   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433   as_fn_set_status $ac_retval
2434
2435 } # ac_fn_c_compute_int
2436
2437 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2438 # ----------------------------------------------------
2439 # Tries to find if the field MEMBER exists in type AGGR, after including
2440 # INCLUDES, setting cache variable VAR accordingly.
2441 ac_fn_c_check_member ()
2442 {
2443   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2445 $as_echo_n "checking for $2.$3... " >&6; }
2446 if eval "test \"\${$4+set}\"" = set; then :
2447   $as_echo_n "(cached) " >&6
2448 else
2449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h.  */
2451 $5
2452 int
2453 main ()
2454 {
2455 static $2 ac_aggr;
2456 if (ac_aggr.$3)
2457 return 0;
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 if ac_fn_c_try_compile "$LINENO"; then :
2463   eval "$4=yes"
2464 else
2465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h.  */
2467 $5
2468 int
2469 main ()
2470 {
2471 static $2 ac_aggr;
2472 if (sizeof ac_aggr.$3)
2473 return 0;
2474   ;
2475   return 0;
2476 }
2477 _ACEOF
2478 if ac_fn_c_try_compile "$LINENO"; then :
2479   eval "$4=yes"
2480 else
2481   eval "$4=no"
2482 fi
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 fi
2487 eval ac_res=\$$4
2488                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491
2492 } # ac_fn_c_check_member
2493
2494 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2495 # ---------------------------------------------
2496 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2497 # accordingly.
2498 ac_fn_c_check_decl ()
2499 {
2500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501   as_decl_name=`echo $2|sed 's/ *(.*//'`
2502   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2504 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2505 if eval "test \"\${$3+set}\"" = set; then :
2506   $as_echo_n "(cached) " >&6
2507 else
2508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h.  */
2510 $4
2511 int
2512 main ()
2513 {
2514 #ifndef $as_decl_name
2515 #ifdef __cplusplus
2516   (void) $as_decl_use;
2517 #else
2518   (void) $as_decl_name;
2519 #endif
2520 #endif
2521
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527   eval "$3=yes"
2528 else
2529   eval "$3=no"
2530 fi
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 fi
2533 eval ac_res=\$$3
2534                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2537
2538 } # ac_fn_c_check_decl
2539 cat >config.log <<_ACEOF
2540 This file contains any messages produced by compilers while
2541 running configure, to aid debugging if configure makes a mistake.
2542
2543 It was created by $as_me, which was
2544 generated by GNU Autoconf 2.67.  Invocation command line was
2545
2546   $ $0 $@
2547
2548 _ACEOF
2549 exec 5>>config.log
2550 {
2551 cat <<_ASUNAME
2552 ## --------- ##
2553 ## Platform. ##
2554 ## --------- ##
2555
2556 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2557 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2558 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2559 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2560 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2561
2562 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2563 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2564
2565 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2566 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2567 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2568 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2569 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2570 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2571 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2572
2573 _ASUNAME
2574
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578   IFS=$as_save_IFS
2579   test -z "$as_dir" && as_dir=.
2580     $as_echo "PATH: $as_dir"
2581   done
2582 IFS=$as_save_IFS
2583
2584 } >&5
2585
2586 cat >&5 <<_ACEOF
2587
2588
2589 ## ----------- ##
2590 ## Core tests. ##
2591 ## ----------- ##
2592
2593 _ACEOF
2594
2595
2596 # Keep a trace of the command line.
2597 # Strip out --no-create and --no-recursion so they do not pile up.
2598 # Strip out --silent because we don't want to record it for future runs.
2599 # Also quote any args containing shell meta-characters.
2600 # Make two passes to allow for proper duplicate-argument suppression.
2601 ac_configure_args=
2602 ac_configure_args0=
2603 ac_configure_args1=
2604 ac_must_keep_next=false
2605 for ac_pass in 1 2
2606 do
2607   for ac_arg
2608   do
2609     case $ac_arg in
2610     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2611     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2612     | -silent | --silent | --silen | --sile | --sil)
2613       continue ;;
2614     *\'*)
2615       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2616     esac
2617     case $ac_pass in
2618     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2619     2)
2620       as_fn_append ac_configure_args1 " '$ac_arg'"
2621       if test $ac_must_keep_next = true; then
2622         ac_must_keep_next=false # Got value, back to normal.
2623       else
2624         case $ac_arg in
2625           *=* | --config-cache | -C | -disable-* | --disable-* \
2626           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2627           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2628           | -with-* | --with-* | -without-* | --without-* | --x)
2629             case "$ac_configure_args0 " in
2630               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2631             esac
2632             ;;
2633           -* ) ac_must_keep_next=true ;;
2634         esac
2635       fi
2636       as_fn_append ac_configure_args " '$ac_arg'"
2637       ;;
2638     esac
2639   done
2640 done
2641 { ac_configure_args0=; unset ac_configure_args0;}
2642 { ac_configure_args1=; unset ac_configure_args1;}
2643
2644 # When interrupted or exit'd, cleanup temporary files, and complete
2645 # config.log.  We remove comments because anyway the quotes in there
2646 # would cause problems or look ugly.
2647 # WARNING: Use '\'' to represent an apostrophe within the trap.
2648 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2649 trap 'exit_status=$?
2650   # Save into config.log some information that might help in debugging.
2651   {
2652     echo
2653
2654     $as_echo "## ---------------- ##
2655 ## Cache variables. ##
2656 ## ---------------- ##"
2657     echo
2658     # The following way of writing the cache mishandles newlines in values,
2659 (
2660   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2661     eval ac_val=\$$ac_var
2662     case $ac_val in #(
2663     *${as_nl}*)
2664       case $ac_var in #(
2665       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2666 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2667       esac
2668       case $ac_var in #(
2669       _ | IFS | as_nl) ;; #(
2670       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2671       *) { eval $ac_var=; unset $ac_var;} ;;
2672       esac ;;
2673     esac
2674   done
2675   (set) 2>&1 |
2676     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2677     *${as_nl}ac_space=\ *)
2678       sed -n \
2679         "s/'\''/'\''\\\\'\'''\''/g;
2680           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2681       ;; #(
2682     *)
2683       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2684       ;;
2685     esac |
2686     sort
2687 )
2688     echo
2689
2690     $as_echo "## ----------------- ##
2691 ## Output variables. ##
2692 ## ----------------- ##"
2693     echo
2694     for ac_var in $ac_subst_vars
2695     do
2696       eval ac_val=\$$ac_var
2697       case $ac_val in
2698       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2699       esac
2700       $as_echo "$ac_var='\''$ac_val'\''"
2701     done | sort
2702     echo
2703
2704     if test -n "$ac_subst_files"; then
2705       $as_echo "## ------------------- ##
2706 ## File substitutions. ##
2707 ## ------------------- ##"
2708       echo
2709       for ac_var in $ac_subst_files
2710       do
2711         eval ac_val=\$$ac_var
2712         case $ac_val in
2713         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2714         esac
2715         $as_echo "$ac_var='\''$ac_val'\''"
2716       done | sort
2717       echo
2718     fi
2719
2720     if test -s confdefs.h; then
2721       $as_echo "## ----------- ##
2722 ## confdefs.h. ##
2723 ## ----------- ##"
2724       echo
2725       cat confdefs.h
2726       echo
2727     fi
2728     test "$ac_signal" != 0 &&
2729       $as_echo "$as_me: caught signal $ac_signal"
2730     $as_echo "$as_me: exit $exit_status"
2731   } >&5
2732   rm -f core *.core core.conftest.* &&
2733     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2734     exit $exit_status
2735 ' 0
2736 for ac_signal in 1 2 13 15; do
2737   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2738 done
2739 ac_signal=0
2740
2741 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2742 rm -f -r conftest* confdefs.h
2743
2744 $as_echo "/* confdefs.h */" > confdefs.h
2745
2746 # Predefined preprocessor variables.
2747
2748 cat >>confdefs.h <<_ACEOF
2749 #define PACKAGE_NAME "$PACKAGE_NAME"
2750 _ACEOF
2751
2752 cat >>confdefs.h <<_ACEOF
2753 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2754 _ACEOF
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2758 _ACEOF
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE_STRING "$PACKAGE_STRING"
2762 _ACEOF
2763
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2766 _ACEOF
2767
2768 cat >>confdefs.h <<_ACEOF
2769 #define PACKAGE_URL "$PACKAGE_URL"
2770 _ACEOF
2771
2772
2773 # Let the site file select an alternate cache file if it wants to.
2774 # Prefer an explicitly selected file to automatically selected ones.
2775 ac_site_file1=NONE
2776 ac_site_file2=NONE
2777 if test -n "$CONFIG_SITE"; then
2778   # We do not want a PATH search for config.site.
2779   case $CONFIG_SITE in #((
2780     -*)  ac_site_file1=./$CONFIG_SITE;;
2781     */*) ac_site_file1=$CONFIG_SITE;;
2782     *)   ac_site_file1=./$CONFIG_SITE;;
2783   esac
2784 elif test "x$prefix" != xNONE; then
2785   ac_site_file1=$prefix/share/config.site
2786   ac_site_file2=$prefix/etc/config.site
2787 else
2788   ac_site_file1=$ac_default_prefix/share/config.site
2789   ac_site_file2=$ac_default_prefix/etc/config.site
2790 fi
2791 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2792 do
2793   test "x$ac_site_file" = xNONE && continue
2794   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2795     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2796 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2797     sed 's/^/| /' "$ac_site_file" >&5
2798     . "$ac_site_file" \
2799       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801 as_fn_error $? "failed to load site script $ac_site_file
2802 See \`config.log' for more details" "$LINENO" 5 ; }
2803   fi
2804 done
2805
2806 if test -r "$cache_file"; then
2807   # Some versions of bash will fail to source /dev/null (special files
2808   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2809   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2810     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2811 $as_echo "$as_me: loading cache $cache_file" >&6;}
2812     case $cache_file in
2813       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2814       *)                      . "./$cache_file";;
2815     esac
2816   fi
2817 else
2818   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2819 $as_echo "$as_me: creating cache $cache_file" >&6;}
2820   >$cache_file
2821 fi
2822
2823 # Check that the precious variables saved in the cache have kept the same
2824 # value.
2825 ac_cache_corrupted=false
2826 for ac_var in $ac_precious_vars; do
2827   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2828   eval ac_new_set=\$ac_env_${ac_var}_set
2829   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2830   eval ac_new_val=\$ac_env_${ac_var}_value
2831   case $ac_old_set,$ac_new_set in
2832     set,)
2833       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2834 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2835       ac_cache_corrupted=: ;;
2836     ,set)
2837       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2838 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2839       ac_cache_corrupted=: ;;
2840     ,);;
2841     *)
2842       if test "x$ac_old_val" != "x$ac_new_val"; then
2843         # differences in whitespace do not lead to failure.
2844         ac_old_val_w=`echo x $ac_old_val`
2845         ac_new_val_w=`echo x $ac_new_val`
2846         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2847           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2848 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2849           ac_cache_corrupted=:
2850         else
2851           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2852 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2853           eval $ac_var=\$ac_old_val
2854         fi
2855         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2856 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2857         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2858 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2859       fi;;
2860   esac
2861   # Pass precious variables to config.status.
2862   if test "$ac_new_set" = set; then
2863     case $ac_new_val in
2864     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2865     *) ac_arg=$ac_var=$ac_new_val ;;
2866     esac
2867     case " $ac_configure_args " in
2868       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2869       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2870     esac
2871   fi
2872 done
2873 if $ac_cache_corrupted; then
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2877 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2878   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2879 fi
2880 ## -------------------- ##
2881 ## Main body of script. ##
2882 ## -------------------- ##
2883
2884 ac_ext=c
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889
2890
2891 am__api_version='1.11'
2892
2893 ac_aux_dir=
2894 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2895   if test -f "$ac_dir/install-sh"; then
2896     ac_aux_dir=$ac_dir
2897     ac_install_sh="$ac_aux_dir/install-sh -c"
2898     break
2899   elif test -f "$ac_dir/install.sh"; then
2900     ac_aux_dir=$ac_dir
2901     ac_install_sh="$ac_aux_dir/install.sh -c"
2902     break
2903   elif test -f "$ac_dir/shtool"; then
2904     ac_aux_dir=$ac_dir
2905     ac_install_sh="$ac_aux_dir/shtool install -c"
2906     break
2907   fi
2908 done
2909 if test -z "$ac_aux_dir"; then
2910   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2911 fi
2912
2913 # These three variables are undocumented and unsupported,
2914 # and are intended to be withdrawn in a future Autoconf release.
2915 # They can cause serious problems if a builder's source tree is in a directory
2916 # whose full name contains unusual characters.
2917 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2918 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2919 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2920
2921
2922 # Find a good install program.  We prefer a C program (faster),
2923 # so one script is as good as another.  But avoid the broken or
2924 # incompatible versions:
2925 # SysV /etc/install, /usr/sbin/install
2926 # SunOS /usr/etc/install
2927 # IRIX /sbin/install
2928 # AIX /bin/install
2929 # AmigaOS /C/install, which installs bootblocks on floppy discs
2930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2933 # OS/2's system install, which has a completely different semantic
2934 # ./install, which can be erroneously created by make from ./install.sh.
2935 # Reject install programs that cannot install multiple files.
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2937 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2938 if test -z "$INSTALL"; then
2939 if test "${ac_cv_path_install+set}" = set; then :
2940   $as_echo_n "(cached) " >&6
2941 else
2942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     # Account for people who put trailing slashes in PATH elements.
2948 case $as_dir/ in #((
2949   ./ | .// | /[cC]/* | \
2950   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2951   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2952   /usr/ucb/* ) ;;
2953   *)
2954     # OSF1 and SCO ODT 3.0 have their own names for install.
2955     # Don't use installbsd from OSF since it installs stuff as root
2956     # by default.
2957     for ac_prog in ginstall scoinst install; do
2958       for ac_exec_ext in '' $ac_executable_extensions; do
2959         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2960           if test $ac_prog = install &&
2961             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2962             # AIX install.  It has an incompatible calling convention.
2963             :
2964           elif test $ac_prog = install &&
2965             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966             # program-specific install script used by HP pwplus--don't use.
2967             :
2968           else
2969             rm -rf conftest.one conftest.two conftest.dir
2970             echo one > conftest.one
2971             echo two > conftest.two
2972             mkdir conftest.dir
2973             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2974               test -s conftest.one && test -s conftest.two &&
2975               test -s conftest.dir/conftest.one &&
2976               test -s conftest.dir/conftest.two
2977             then
2978               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2979               break 3
2980             fi
2981           fi
2982         fi
2983       done
2984     done
2985     ;;
2986 esac
2987
2988   done
2989 IFS=$as_save_IFS
2990
2991 rm -rf conftest.one conftest.two conftest.dir
2992
2993 fi
2994   if test "${ac_cv_path_install+set}" = set; then
2995     INSTALL=$ac_cv_path_install
2996   else
2997     # As a last resort, use the slow shell script.  Don't cache a
2998     # value for INSTALL within a source directory, because that will
2999     # break other packages using the cache if that directory is
3000     # removed, or if the value is a relative name.
3001     INSTALL=$ac_install_sh
3002   fi
3003 fi
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3005 $as_echo "$INSTALL" >&6; }
3006
3007 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3008 # It thinks the first close brace ends the variable substitution.
3009 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3010
3011 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3012
3013 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3014
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3016 $as_echo_n "checking whether build environment is sane... " >&6; }
3017 # Just in case
3018 sleep 1
3019 echo timestamp > conftest.file
3020 # Reject unsafe characters in $srcdir or the absolute working directory
3021 # name.  Accept space and tab only in the latter.
3022 am_lf='
3023 '
3024 case `pwd` in
3025   *[\\\"\#\$\&\'\`$am_lf]*)
3026     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3027 esac
3028 case $srcdir in
3029   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3030     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3031 esac
3032
3033 # Do `set' in a subshell so we don't clobber the current shell's
3034 # arguments.  Must try -L first in case configure is actually a
3035 # symlink; some systems play weird games with the mod time of symlinks
3036 # (eg FreeBSD returns the mod time of the symlink's containing
3037 # directory).
3038 if (
3039    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3040    if test "$*" = "X"; then
3041       # -L didn't work.
3042       set X `ls -t "$srcdir/configure" conftest.file`
3043    fi
3044    rm -f conftest.file
3045    if test "$*" != "X $srcdir/configure conftest.file" \
3046       && test "$*" != "X conftest.file $srcdir/configure"; then
3047
3048       # If neither matched, then we have a broken ls.  This can happen
3049       # if, for instance, CONFIG_SHELL is bash and it inherits a
3050       # broken ls alias from the environment.  This has actually
3051       # happened.  Such a system could not be considered "sane".
3052       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3053 alias in your environment" "$LINENO" 5
3054    fi
3055
3056    test "$2" = conftest.file
3057    )
3058 then
3059    # Ok.
3060    :
3061 else
3062    as_fn_error $? "newly created file is older than distributed files!
3063 Check your system clock" "$LINENO" 5
3064 fi
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066 $as_echo "yes" >&6; }
3067 test "$program_prefix" != NONE &&
3068   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3069 # Use a double $ so make ignores it.
3070 test "$program_suffix" != NONE &&
3071   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3072 # Double any \ or $.
3073 # By default was `s,x,x', remove it if useless.
3074 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3075 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3076
3077 # expand $ac_aux_dir to an absolute path
3078 am_aux_dir=`cd $ac_aux_dir && pwd`
3079
3080 if test x"${MISSING+set}" != xset; then
3081   case $am_aux_dir in
3082   *\ * | *\     *)
3083     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3084   *)
3085     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3086   esac
3087 fi
3088 # Use eval to expand $SHELL
3089 if eval "$MISSING --run true"; then
3090   am_missing_run="$MISSING --run "
3091 else
3092   am_missing_run=
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3094 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3095 fi
3096
3097 if test x"${install_sh}" != xset; then
3098   case $am_aux_dir in
3099   *\ * | *\     *)
3100     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3101   *)
3102     install_sh="\${SHELL} $am_aux_dir/install-sh"
3103   esac
3104 fi
3105
3106 # Installed binaries are usually stripped using `strip' when the user
3107 # run `make install-strip'.  However `strip' might not be the right
3108 # tool to use in cross-compilation environments, therefore Automake
3109 # will honor the `STRIP' environment variable to overrule this program.
3110 if test "$cross_compiling" != no; then
3111   if test -n "$ac_tool_prefix"; then
3112   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}strip; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_STRIP+set}" = set; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test -n "$STRIP"; then
3120   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127     for ac_exec_ext in '' $ac_executable_extensions; do
3128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134   done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 STRIP=$ac_cv_prog_STRIP
3140 if test -n "$STRIP"; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3142 $as_echo "$STRIP" >&6; }
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 if test -z "$ac_cv_prog_STRIP"; then
3151   ac_ct_STRIP=$STRIP
3152   # Extract the first word of "strip", so it can be a program name with args.
3153 set dummy strip; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3157   $as_echo_n "(cached) " >&6
3158 else
3159   if test -n "$ac_ct_STRIP"; then
3160   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165   IFS=$as_save_IFS
3166   test -z "$as_dir" && as_dir=.
3167     for ac_exec_ext in '' $ac_executable_extensions; do
3168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169     ac_cv_prog_ac_ct_STRIP="strip"
3170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171     break 2
3172   fi
3173 done
3174   done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3180 if test -n "$ac_ct_STRIP"; then
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3182 $as_echo "$ac_ct_STRIP" >&6; }
3183 else
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188   if test "x$ac_ct_STRIP" = x; then
3189     STRIP=":"
3190   else
3191     case $cross_compiling:$ac_tool_warned in
3192 yes:)
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned=yes ;;
3196 esac
3197     STRIP=$ac_ct_STRIP
3198   fi
3199 else
3200   STRIP="$ac_cv_prog_STRIP"
3201 fi
3202
3203 fi
3204 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3205
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3207 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3208 if test -z "$MKDIR_P"; then
3209   if test "${ac_cv_path_mkdir+set}" = set; then :
3210   $as_echo_n "(cached) " >&6
3211 else
3212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217     for ac_prog in mkdir gmkdir; do
3218          for ac_exec_ext in '' $ac_executable_extensions; do
3219            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3220            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3221              'mkdir (GNU coreutils) '* | \
3222              'mkdir (coreutils) '* | \
3223              'mkdir (fileutils) '4.1*)
3224                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3225                break 3;;
3226            esac
3227          done
3228        done
3229   done
3230 IFS=$as_save_IFS
3231
3232 fi
3233
3234   test -d ./--version && rmdir ./--version
3235   if test "${ac_cv_path_mkdir+set}" = set; then
3236     MKDIR_P="$ac_cv_path_mkdir -p"
3237   else
3238     # As a last resort, use the slow shell script.  Don't cache a
3239     # value for MKDIR_P within a source directory, because that will
3240     # break other packages using the cache if that directory is
3241     # removed, or if the value is a relative name.
3242     MKDIR_P="$ac_install_sh -d"
3243   fi
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3246 $as_echo "$MKDIR_P" >&6; }
3247
3248 mkdir_p="$MKDIR_P"
3249 case $mkdir_p in
3250   [\\/$]* | ?:[\\/]*) ;;
3251   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3252 esac
3253
3254 for ac_prog in gawk mawk nawk awk
3255 do
3256   # Extract the first word of "$ac_prog", so it can be a program name with args.
3257 set dummy $ac_prog; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if test "${ac_cv_prog_AWK+set}" = set; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   if test -n "$AWK"; then
3264   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273     ac_cv_prog_AWK="$ac_prog"
3274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278   done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 AWK=$ac_cv_prog_AWK
3284 if test -n "$AWK"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3286 $as_echo "$AWK" >&6; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293   test -n "$AWK" && break
3294 done
3295
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3297 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3298 set x ${MAKE-make}
3299 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3300 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   cat >conftest.make <<\_ACEOF
3304 SHELL = /bin/sh
3305 all:
3306         @echo '@@@%%%=$(MAKE)=@@@%%%'
3307 _ACEOF
3308 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3309 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3310   *@@@%%%=?*=@@@%%%*)
3311     eval ac_cv_prog_make_${ac_make}_set=yes;;
3312   *)
3313     eval ac_cv_prog_make_${ac_make}_set=no;;
3314 esac
3315 rm -f conftest.make
3316 fi
3317 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319 $as_echo "yes" >&6; }
3320   SET_MAKE=
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324   SET_MAKE="MAKE=${MAKE-make}"
3325 fi
3326
3327 rm -rf .tst 2>/dev/null
3328 mkdir .tst 2>/dev/null
3329 if test -d .tst; then
3330   am__leading_dot=.
3331 else
3332   am__leading_dot=_
3333 fi
3334 rmdir .tst 2>/dev/null
3335
3336 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3337   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3338   # is not polluted with repeated "-I."
3339   am__isrc=' -I$(srcdir)'
3340   # test to see if srcdir already configured
3341   if test -f $srcdir/config.status; then
3342     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3343   fi
3344 fi
3345
3346 # test whether we have cygpath
3347 if test -z "$CYGPATH_W"; then
3348   if (cygpath --version) >/dev/null 2>/dev/null; then
3349     CYGPATH_W='cygpath -w'
3350   else
3351     CYGPATH_W=echo
3352   fi
3353 fi
3354
3355
3356 # Define the identity of the package.
3357  PACKAGE=gpsd
3358  VERSION=2.95
3359
3360
3361 cat >>confdefs.h <<_ACEOF
3362 #define PACKAGE "$PACKAGE"
3363 _ACEOF
3364
3365
3366 cat >>confdefs.h <<_ACEOF
3367 #define VERSION "$VERSION"
3368 _ACEOF
3369
3370 # Some tools Automake needs.
3371
3372 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3373
3374
3375 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3376
3377
3378 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3379
3380
3381 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3382
3383
3384 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3385
3386 # We need awk for the "check" target.  The system "awk" is bad on
3387 # some platforms.
3388 # Always define AMTAR for backward compatibility.
3389
3390 AMTAR=${AMTAR-"${am_missing_run}tar"}
3391
3392 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3393
3394
3395
3396
3397
3398 ac_config_headers="$ac_config_headers gpsd_config.h"
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406
3407 # ACREQUIRE_BUGFIX
3408 # ----------------
3409 # Due to a longstanding Autoconf bug (Autoconf 2.50 to at least 2.63),
3410 # any macro that is AC_REQUIREd at any point must be AC_REQUIREd
3411 # *before* it is directly expanded.  The macros below were being
3412 # directly expanded before being AC_REQUIREd, so we AC_REQUIRE them
3413 # early to prevent out-of-order expansion problems.  See the threads
3414 # at:
3415 # http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3416 # http://lists.gnu.org/archive/html/autoconf-patches/2008-12/msg00058.html
3417 # http://lists.gnu.org/archive/html/bug-autoconf/2009-01/msg00019.html
3418 # http://lists.gnu.org/archive/html/bug-gnulib/2009-01/msg00247.html
3419
3420 DEPDIR="${am__leading_dot}deps"
3421
3422 ac_config_commands="$ac_config_commands depfiles"
3423
3424
3425 am_make=${MAKE-make}
3426 cat > confinc << 'END'
3427 am__doit:
3428         @echo this is the am__doit target
3429 .PHONY: am__doit
3430 END
3431 # If we don't find an include directive, just comment out the code.
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3433 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3434 am__include="#"
3435 am__quote=
3436 _am_result=none
3437 # First try GNU make style include.
3438 echo "include confinc" > confmf
3439 # Ignore all kinds of additional output from `make'.
3440 case `$am_make -s -f confmf 2> /dev/null` in #(
3441 *the\ am__doit\ target*)
3442   am__include=include
3443   am__quote=
3444   _am_result=GNU
3445   ;;
3446 esac
3447 # Now try BSD make style include.
3448 if test "$am__include" = "#"; then
3449    echo '.include "confinc"' > confmf
3450    case `$am_make -s -f confmf 2> /dev/null` in #(
3451    *the\ am__doit\ target*)
3452      am__include=.include
3453      am__quote="\""
3454      _am_result=BSD
3455      ;;
3456    esac
3457 fi
3458
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3461 $as_echo "$_am_result" >&6; }
3462 rm -f confinc confmf
3463
3464 # Check whether --enable-dependency-tracking was given.
3465 if test "${enable_dependency_tracking+set}" = set; then :
3466   enableval=$enable_dependency_tracking;
3467 fi
3468
3469 if test "x$enable_dependency_tracking" != xno; then
3470   am_depcomp="$ac_aux_dir/depcomp"
3471   AMDEPBACKSLASH='\'
3472 fi
3473  if test "x$enable_dependency_tracking" != xno; then
3474   AMDEP_TRUE=
3475   AMDEP_FALSE='#'
3476 else
3477   AMDEP_TRUE='#'
3478   AMDEP_FALSE=
3479 fi
3480
3481
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then :
3493   $as_echo_n "(cached) " >&6
3494 else
3495   if test -n "$CC"; then
3496   ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501   IFS=$as_save_IFS
3502   test -z "$as_dir" && as_dir=.
3503     for ac_exec_ext in '' $ac_executable_extensions; do
3504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507     break 2
3508   fi
3509 done
3510   done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 if test -z "$ac_cv_prog_CC"; then
3527   ac_ct_CC=$CC
3528   # Extract the first word of "gcc", so it can be a program name with args.
3529 set dummy gcc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   if test -n "$ac_ct_CC"; then
3536   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541   IFS=$as_save_IFS
3542   test -z "$as_dir" && as_dir=.
3543     for ac_exec_ext in '' $ac_executable_extensions; do
3544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545     ac_cv_prog_ac_ct_CC="gcc"
3546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547     break 2
3548   fi
3549 done
3550   done
3551 IFS=$as_save_IFS
3552
3553 fi
3554 fi
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3559 else
3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564   if test "x$ac_ct_CC" = x; then
3565     CC=""
3566   else
3567     case $cross_compiling:$ac_tool_warned in
3568 yes:)
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571 ac_tool_warned=yes ;;
3572 esac
3573     CC=$ac_ct_CC
3574   fi
3575 else
3576   CC="$ac_cv_prog_CC"
3577 fi
3578
3579 if test -z "$CC"; then
3580           if test -n "$ac_tool_prefix"; then
3581     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3582 set dummy ${ac_tool_prefix}cc; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_CC+set}" = set; then :
3586   $as_echo_n "(cached) " >&6
3587 else
3588   if test -n "$CC"; then
3589   ac_cv_prog_CC="$CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594   IFS=$as_save_IFS
3595   test -z "$as_dir" && as_dir=.
3596     for ac_exec_ext in '' $ac_executable_extensions; do
3597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598     ac_cv_prog_CC="${ac_tool_prefix}cc"
3599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600     break 2
3601   fi
3602 done
3603   done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 CC=$ac_cv_prog_CC
3609 if test -n "$CC"; then
3610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3612 else
3613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618   fi
3619 fi
3620 if test -z "$CC"; then
3621   # Extract the first word of "cc", so it can be a program name with args.
3622 set dummy cc; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if test "${ac_cv_prog_CC+set}" = set; then :
3626   $as_echo_n "(cached) " >&6
3627 else
3628   if test -n "$CC"; then
3629   ac_cv_prog_CC="$CC" # Let the user override the test.
3630 else
3631   ac_prog_rejected=no
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637     for ac_exec_ext in '' $ac_executable_extensions; do
3638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3640        ac_prog_rejected=yes
3641        continue
3642      fi
3643     ac_cv_prog_CC="cc"
3644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648   done
3649 IFS=$as_save_IFS
3650
3651 if test $ac_prog_rejected = yes; then
3652   # We found a bogon in the path, so make sure we never use it.
3653   set dummy $ac_cv_prog_CC
3654   shift
3655   if test $# != 0; then
3656     # We chose a different compiler from the bogus one.
3657     # However, it has the same basename, so the bogon will be chosen
3658     # first if we set CC to just the basename; use the full file name.
3659     shift
3660     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3661   fi
3662 fi
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3669 else
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675 fi
3676 if test -z "$CC"; then
3677   if test -n "$ac_tool_prefix"; then
3678   for ac_prog in cl.exe
3679   do
3680     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then :
3685   $as_echo_n "(cached) " >&6
3686 else
3687   if test -n "$CC"; then
3688   ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693   IFS=$as_save_IFS
3694   test -z "$as_dir" && as_dir=.
3695     for ac_exec_ext in '' $ac_executable_extensions; do
3696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699     break 2
3700   fi
3701 done
3702   done
3703 IFS=$as_save_IFS
3704
3705 fi
3706 fi
3707 CC=$ac_cv_prog_CC
3708 if test -n "$CC"; then
3709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3711 else
3712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3714 fi
3715
3716
3717     test -n "$CC" && break
3718   done
3719 fi
3720 if test -z "$CC"; then
3721   ac_ct_CC=$CC
3722   for ac_prog in cl.exe
3723 do
3724   # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy $ac_prog; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3729   $as_echo_n "(cached) " >&6
3730 else
3731   if test -n "$ac_ct_CC"; then
3732   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737   IFS=$as_save_IFS
3738   test -z "$as_dir" && as_dir=.
3739     for ac_exec_ext in '' $ac_executable_extensions; do
3740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741     ac_cv_prog_ac_ct_CC="$ac_prog"
3742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743     break 2
3744   fi
3745 done
3746   done
3747 IFS=$as_save_IFS
3748
3749 fi
3750 fi
3751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 $as_echo "$ac_ct_CC" >&6; }
3755 else
3756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 fi
3759
3760
3761   test -n "$ac_ct_CC" && break
3762 done
3763
3764   if test "x$ac_ct_CC" = x; then
3765     CC=""
3766   else
3767     case $cross_compiling:$ac_tool_warned in
3768 yes:)
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3771 ac_tool_warned=yes ;;
3772 esac
3773     CC=$ac_ct_CC
3774   fi
3775 fi
3776
3777 fi
3778
3779
3780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error $? "no acceptable C compiler found in \$PATH
3783 See \`config.log' for more details" "$LINENO" 5 ; }
3784
3785 # Provide some information about the compiler.
3786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3787 set X $ac_compile
3788 ac_compiler=$2
3789 for ac_option in --version -v -V -qversion; do
3790   { { ac_try="$ac_compiler $ac_option >&5"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3798   ac_status=$?
3799   if test -s conftest.err; then
3800     sed '10a\
3801 ... rest of stderr output deleted ...
3802          10q' conftest.err >conftest.er1
3803     cat conftest.er1 >&5
3804   fi
3805   rm -f conftest.er1 conftest.err
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }
3808 done
3809
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h.  */
3812
3813 int
3814 main ()
3815 {
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 ac_clean_files_save=$ac_clean_files
3822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3823 # Try to create an executable without -o first, disregard a.out.
3824 # It will help us diagnose broken compilers, and finding out an intuition
3825 # of exeext.
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3827 $as_echo_n "checking whether the C compiler works... " >&6; }
3828 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3829
3830 # The possible output files:
3831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3832
3833 ac_rmfiles=
3834 for ac_file in $ac_files
3835 do
3836   case $ac_file in
3837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3839   esac
3840 done
3841 rm -f $ac_rmfiles
3842
3843 if { { ac_try="$ac_link_default"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850   (eval "$ac_link_default") 2>&5
3851   ac_status=$?
3852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853   test $ac_status = 0; }; then :
3854   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3856 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3857 # so that the user can short-circuit this test for compilers unknown to
3858 # Autoconf.
3859 for ac_file in $ac_files ''
3860 do
3861   test -f "$ac_file" || continue
3862   case $ac_file in
3863     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3864         ;;
3865     [ab].out )
3866         # We found the default executable, but exeext='' is most
3867         # certainly right.
3868         break;;
3869     *.* )
3870         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3871         then :; else
3872            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3873         fi
3874         # We set ac_cv_exeext here because the later test for it is not
3875         # safe: cross compilers may not add the suffix if given an `-o'
3876         # argument, so we may need to know it at that point already.
3877         # Even if this section looks crufty: it has the advantage of
3878         # actually working.
3879         break;;
3880     * )
3881         break;;
3882   esac
3883 done
3884 test "$ac_cv_exeext" = no && ac_cv_exeext=
3885
3886 else
3887   ac_file=''
3888 fi
3889 if test -z "$ac_file"; then :
3890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; }
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error 77 "C compiler cannot create executables
3898 See \`config.log' for more details" "$LINENO" 5 ; }
3899 else
3900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3901 $as_echo "yes" >&6; }
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3904 $as_echo_n "checking for C compiler default output file name... " >&6; }
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3906 $as_echo "$ac_file" >&6; }
3907 ac_exeext=$ac_cv_exeext
3908
3909 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3910 ac_clean_files=$ac_clean_files_save
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920   (eval "$ac_link") 2>&5
3921   ac_status=$?
3922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923   test $ac_status = 0; }; then :
3924   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3927 # `rm'.
3928 for ac_file in conftest.exe conftest conftest.*; do
3929   test -f "$ac_file" || continue
3930   case $ac_file in
3931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933           break;;
3934     * ) break;;
3935   esac
3936 done
3937 else
3938   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details" "$LINENO" 5 ; }
3942 fi
3943 rm -f conftest conftest$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3946
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3949 ac_exeext=$EXEEXT
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h.  */
3952 #include <stdio.h>
3953 int
3954 main ()
3955 {
3956 FILE *f = fopen ("conftest.out", "w");
3957  return ferror (f) || fclose (f) != 0;
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 ac_clean_files="$ac_clean_files conftest.out"
3964 # Check that the compiler produces executables we can run.  If not, either
3965 # the compiler is broken, or we cross compile.
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3967 $as_echo_n "checking whether we are cross compiling... " >&6; }
3968 if test "$cross_compiling" != yes; then
3969   { { ac_try="$ac_link"
3970 case "(($ac_try" in
3971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972   *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976   (eval "$ac_link") 2>&5
3977   ac_status=$?
3978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979   test $ac_status = 0; }
3980   if { ac_try='./conftest$ac_cv_exeext'
3981   { { case "(($ac_try" in
3982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983   *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987   (eval "$ac_try") 2>&5
3988   ac_status=$?
3989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990   test $ac_status = 0; }; }; then
3991     cross_compiling=no
3992   else
3993     if test "$cross_compiling" = maybe; then
3994         cross_compiling=yes
3995     else
3996         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998 as_fn_error $? "cannot run C compiled programs.
3999 If you meant to cross compile, use \`--host'.
4000 See \`config.log' for more details" "$LINENO" 5 ; }
4001     fi
4002   fi
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4005 $as_echo "$cross_compiling" >&6; }
4006
4007 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4008 ac_clean_files=$ac_clean_files_save
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4010 $as_echo_n "checking for suffix of object files... " >&6; }
4011 if test "${ac_cv_objext+set}" = set; then :
4012   $as_echo_n "(cached) " >&6
4013 else
4014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016
4017 int
4018 main ()
4019 {
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.o conftest.obj
4026 if { { ac_try="$ac_compile"
4027 case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033   (eval "$ac_compile") 2>&5
4034   ac_status=$?
4035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036   test $ac_status = 0; }; then :
4037   for ac_file in conftest.o conftest.obj conftest.*; do
4038   test -f "$ac_file" || continue;
4039   case $ac_file in
4040     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4041     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4042        break;;
4043   esac
4044 done
4045 else
4046   $as_echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "cannot compute suffix of object files: cannot compile
4052 See \`config.log' for more details" "$LINENO" 5 ; }
4053 fi
4054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4057 $as_echo "$ac_cv_objext" >&6; }
4058 OBJEXT=$ac_cv_objext
4059 ac_objext=$OBJEXT
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4061 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4062 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067
4068 int
4069 main ()
4070 {
4071 #ifndef __GNUC__
4072        choke me
4073 #endif
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 if ac_fn_c_try_compile "$LINENO"; then :
4080   ac_compiler_gnu=yes
4081 else
4082   ac_compiler_gnu=no
4083 fi
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4086
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4089 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4090 if test $ac_compiler_gnu = yes; then
4091   GCC=yes
4092 else
4093   GCC=
4094 fi
4095 ac_test_CFLAGS=${CFLAGS+set}
4096 ac_save_CFLAGS=$CFLAGS
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4098 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4099 if test "${ac_cv_prog_cc_g+set}" = set; then :
4100   $as_echo_n "(cached) " >&6
4101 else
4102   ac_save_c_werror_flag=$ac_c_werror_flag
4103    ac_c_werror_flag=yes
4104    ac_cv_prog_cc_g=no
4105    CFLAGS="-g"
4106    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h.  */
4108
4109 int
4110 main ()
4111 {
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118   ac_cv_prog_cc_g=yes
4119 else
4120   CFLAGS=""
4121       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h.  */
4123
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133
4134 else
4135   ac_c_werror_flag=$ac_save_c_werror_flag
4136          CFLAGS="-g"
4137          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h.  */
4139
4140 int
4141 main ()
4142 {
4143
4144   ;
4145   return 0;
4146 }
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149   ac_cv_prog_cc_g=yes
4150 fi
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156    ac_c_werror_flag=$ac_save_c_werror_flag
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4159 $as_echo "$ac_cv_prog_cc_g" >&6; }
4160 if test "$ac_test_CFLAGS" = set; then
4161   CFLAGS=$ac_save_CFLAGS
4162 elif test $ac_cv_prog_cc_g = yes; then
4163   if test "$GCC" = yes; then
4164     CFLAGS="-g -O2"
4165   else
4166     CFLAGS="-g"
4167   fi
4168 else
4169   if test "$GCC" = yes; then
4170     CFLAGS="-O2"
4171   else
4172     CFLAGS=
4173   fi
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4177 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   ac_cv_prog_cc_c89=no
4181 ac_save_CC=$CC
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184 #include <stdarg.h>
4185 #include <stdio.h>
4186 #include <sys/types.h>
4187 #include <sys/stat.h>
4188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4189 struct buf { int x; };
4190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4191 static char *e (p, i)
4192      char **p;
4193      int i;
4194 {
4195   return p[i];
4196 }
4197 static char *f (char * (*g) (char **, int), char **p, ...)
4198 {
4199   char *s;
4200   va_list v;
4201   va_start (v,p);
4202   s = g (p, va_arg (v,int));
4203   va_end (v);
4204   return s;
4205 }
4206
4207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4208    function prototypes and stuff, but not '\xHH' hex character constants.
4209    These don't provoke an error unfortunately, instead are silently treated
4210    as 'x'.  The following induces an error, until -std is added to get
4211    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4212    array size at least.  It's necessary to write '\x00'==0 to get something
4213    that's true only with -std.  */
4214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4215
4216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4217    inside strings and character constants.  */
4218 #define FOO(x) 'x'
4219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4220
4221 int test (int i, double x);
4222 struct s1 {int (*f) (int a);};
4223 struct s2 {int (*f) (double a);};
4224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4225 int argc;
4226 char **argv;
4227 int
4228 main ()
4229 {
4230 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4231   ;
4232   return 0;
4233 }
4234 _ACEOF
4235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4236         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4237 do
4238   CC="$ac_save_CC $ac_arg"
4239   if ac_fn_c_try_compile "$LINENO"; then :
4240   ac_cv_prog_cc_c89=$ac_arg
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext
4243   test "x$ac_cv_prog_cc_c89" != "xno" && break
4244 done
4245 rm -f conftest.$ac_ext
4246 CC=$ac_save_CC
4247
4248 fi
4249 # AC_CACHE_VAL
4250 case "x$ac_cv_prog_cc_c89" in
4251   x)
4252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4253 $as_echo "none needed" >&6; } ;;
4254   xno)
4255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4256 $as_echo "unsupported" >&6; } ;;
4257   *)
4258     CC="$CC $ac_cv_prog_cc_c89"
4259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4261 esac
4262 if test "x$ac_cv_prog_cc_c89" != xno; then :
4263
4264 fi
4265
4266 ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272 depcc="$CC"   am_compiler_list=
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4275 $as_echo_n "checking dependency style of $depcc... " >&6; }
4276 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4280   # We make a subdir and do the tests there.  Otherwise we can end up
4281   # making bogus files that we don't know about and never remove.  For
4282   # instance it was reported that on HP-UX the gcc test will end up
4283   # making a dummy file named `D' -- because `-MD' means `put the output
4284   # in D'.
4285   mkdir conftest.dir
4286   # Copy depcomp to subdir because otherwise we won't find it if we're
4287   # using a relative directory.
4288   cp "$am_depcomp" conftest.dir
4289   cd conftest.dir
4290   # We will build objects and dependencies in a subdirectory because
4291   # it helps to detect inapplicable dependency modes.  For instance
4292   # both Tru64's cc and ICC support -MD to output dependencies as a
4293   # side effect of compilation, but ICC will put the dependencies in
4294   # the current directory while Tru64 will put them in the object
4295   # directory.
4296   mkdir sub
4297
4298   am_cv_CC_dependencies_compiler_type=none
4299   if test "$am_compiler_list" = ""; then
4300      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4301   fi
4302   am__universal=false
4303   case " $depcc " in #(
4304      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4305      esac
4306
4307   for depmode in $am_compiler_list; do
4308     # Setup a source with many dependencies, because some compilers
4309     # like to wrap large dependency lists on column 80 (with \), and
4310     # we should not choose a depcomp mode which is confused by this.
4311     #
4312     # We need to recreate these files for each test, as the compiler may
4313     # overwrite some of them when testing with obscure command lines.
4314     # This happens at least with the AIX C compiler.
4315     : > sub/conftest.c
4316     for i in 1 2 3 4 5 6; do
4317       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4318       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4319       # Solaris 8's {/usr,}/bin/sh.
4320       touch sub/conftst$i.h
4321     done
4322     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4323
4324     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4325     # mode.  It turns out that the SunPro C++ compiler does not properly
4326     # handle `-M -o', and we need to detect this.  Also, some Intel
4327     # versions had trouble with output in subdirs
4328     am__obj=sub/conftest.${OBJEXT-o}
4329     am__minus_obj="-o $am__obj"
4330     case $depmode in
4331     gcc)
4332       # This depmode causes a compiler race in universal mode.
4333       test "$am__universal" = false || continue
4334       ;;
4335     nosideeffect)
4336       # after this tag, mechanisms are not by side-effect, so they'll
4337       # only be used when explicitly requested
4338       if test "x$enable_dependency_tracking" = xyes; then
4339         continue
4340       else
4341         break
4342       fi
4343       ;;
4344     msvisualcpp | msvcmsys)
4345       # This compiler won't grok `-c -o', but also, the minuso test has
4346       # not run yet.  These depmodes are late enough in the game, and
4347       # so weak that their functioning should not be impacted.
4348       am__obj=conftest.${OBJEXT-o}
4349       am__minus_obj=
4350       ;;
4351     none) break ;;
4352     esac
4353     if depmode=$depmode \
4354        source=sub/conftest.c object=$am__obj \
4355        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4356        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4357          >/dev/null 2>conftest.err &&
4358        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4359        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4360        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4361        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4362       # icc doesn't choke on unknown options, it will just issue warnings
4363       # or remarks (even with -Werror).  So we grep stderr for any message
4364       # that says an option was ignored or not supported.
4365       # When given -MP, icc 7.0 and 7.1 complain thusly:
4366       #   icc: Command line warning: ignoring option '-M'; no argument required
4367       # The diagnosis changed in icc 8.0:
4368       #   icc: Command line remark: option '-MP' not supported
4369       if (grep 'ignoring option' conftest.err ||
4370           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4371         am_cv_CC_dependencies_compiler_type=$depmode
4372         break
4373       fi
4374     fi
4375   done
4376
4377   cd ..
4378   rm -rf conftest.dir
4379 else
4380   am_cv_CC_dependencies_compiler_type=none
4381 fi
4382
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4385 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4386 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4387
4388  if
4389   test "x$enable_dependency_tracking" != xno \
4390   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4391   am__fastdepCC_TRUE=
4392   am__fastdepCC_FALSE='#'
4393 else
4394   am__fastdepCC_TRUE='#'
4395   am__fastdepCC_FALSE=
4396 fi
4397
4398
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4405 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4406 # On Suns, sometimes $CPP names a directory.
4407 if test -n "$CPP" && test -d "$CPP"; then
4408   CPP=
4409 fi
4410 if test -z "$CPP"; then
4411   if test "${ac_cv_prog_CPP+set}" = set; then :
4412   $as_echo_n "(cached) " >&6
4413 else
4414       # Double quotes because CPP needs to be expanded
4415     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4416     do
4417       ac_preproc_ok=false
4418 for ac_c_preproc_warn_flag in '' yes
4419 do
4420   # Use a header file that comes with gcc, so configuring glibc
4421   # with a fresh cross-compiler works.
4422   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423   # <limits.h> exists even on freestanding compilers.
4424   # On the NeXT, cc -E runs the code through the compiler's parser,
4425   # not just through cpp. "Syntax error" is here to catch this case.
4426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h.  */
4428 #ifdef __STDC__
4429 # include <limits.h>
4430 #else
4431 # include <assert.h>
4432 #endif
4433                      Syntax error
4434 _ACEOF
4435 if ac_fn_c_try_cpp "$LINENO"; then :
4436
4437 else
4438   # Broken: fails on valid input.
4439 continue
4440 fi
4441 rm -f conftest.err conftest.i conftest.$ac_ext
4442
4443   # OK, works on sane cases.  Now check whether nonexistent headers
4444   # can be detected and how.
4445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447 #include <ac_nonexistent.h>
4448 _ACEOF
4449 if ac_fn_c_try_cpp "$LINENO"; then :
4450   # Broken: success on invalid input.
4451 continue
4452 else
4453   # Passes both tests.
4454 ac_preproc_ok=:
4455 break
4456 fi
4457 rm -f conftest.err conftest.i conftest.$ac_ext
4458
4459 done
4460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4461 rm -f conftest.i conftest.err conftest.$ac_ext
4462 if $ac_preproc_ok; then :
4463   break
4464 fi
4465
4466     done
4467     ac_cv_prog_CPP=$CPP
4468
4469 fi
4470   CPP=$ac_cv_prog_CPP
4471 else
4472   ac_cv_prog_CPP=$CPP
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4475 $as_echo "$CPP" >&6; }
4476 ac_preproc_ok=false
4477 for ac_c_preproc_warn_flag in '' yes
4478 do
4479   # Use a header file that comes with gcc, so configuring glibc
4480   # with a fresh cross-compiler works.
4481   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482   # <limits.h> exists even on freestanding compilers.
4483   # On the NeXT, cc -E runs the code through the compiler's parser,
4484   # not just through cpp. "Syntax error" is here to catch this case.
4485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487 #ifdef __STDC__
4488 # include <limits.h>
4489 #else
4490 # include <assert.h>
4491 #endif
4492                      Syntax error
4493 _ACEOF
4494 if ac_fn_c_try_cpp "$LINENO"; then :
4495
4496 else
4497   # Broken: fails on valid input.
4498 continue
4499 fi
4500 rm -f conftest.err conftest.i conftest.$ac_ext
4501
4502   # OK, works on sane cases.  Now check whether nonexistent headers
4503   # can be detected and how.
4504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h.  */
4506 #include <ac_nonexistent.h>
4507 _ACEOF
4508 if ac_fn_c_try_cpp "$LINENO"; then :
4509   # Broken: success on invalid input.
4510 continue
4511 else
4512   # Passes both tests.
4513 ac_preproc_ok=:
4514 break
4515 fi
4516 rm -f conftest.err conftest.i conftest.$ac_ext
4517
4518 done
4519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4520 rm -f conftest.i conftest.err conftest.$ac_ext
4521 if $ac_preproc_ok; then :
4522
4523 else
4524   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4526 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4527 See \`config.log' for more details" "$LINENO" 5 ; }
4528 fi
4529
4530 ac_ext=c
4531 ac_cpp='$CPP $CPPFLAGS'
4532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if test "${ac_cv_path_GREP+set}" = set; then :
4539   $as_echo_n "(cached) " >&6
4540 else
4541   if test -z "$GREP"; then
4542   ac_path_GREP_found=false
4543   # Loop through the user's path and test for each of PROGNAME-LIST
4544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549     for ac_prog in grep ggrep; do
4550     for ac_exec_ext in '' $ac_executable_extensions; do
4551       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554   # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4556 *GNU*)
4557   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4558 *)
4559   ac_count=0
4560   $as_echo_n 0123456789 >"conftest.in"
4561   while :
4562   do
4563     cat "conftest.in" "conftest.in" >"conftest.tmp"
4564     mv "conftest.tmp" "conftest.in"
4565     cp "conftest.in" "conftest.nl"
4566     $as_echo 'GREP' >> "conftest.nl"
4567     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569     as_fn_arith $ac_count + 1 && ac_count=$as_val
4570     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571       # Best one so far, save it but keep looking for a better one
4572       ac_cv_path_GREP="$ac_path_GREP"
4573       ac_path_GREP_max=$ac_count
4574     fi
4575     # 10*(2^10) chars as input seems more than enough
4576     test $ac_count -gt 10 && break
4577   done
4578   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4580
4581       $ac_path_GREP_found && break 3
4582     done
4583   done
4584   done
4585 IFS=$as_save_IFS
4586   if test -z "$ac_cv_path_GREP"; then
4587     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4588   fi
4589 else
4590   ac_cv_path_GREP=$GREP
4591 fi
4592
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596  GREP="$ac_cv_path_GREP"
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if test "${ac_cv_path_EGREP+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605    then ac_cv_path_EGREP="$GREP -E"
4606    else
4607      if test -z "$EGREP"; then
4608   ac_path_EGREP_found=false
4609   # Loop through the user's path and test for each of PROGNAME-LIST
4610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4612 do
4613   IFS=$as_save_IFS
4614   test -z "$as_dir" && as_dir=.
4615     for ac_prog in egrep; do
4616     for ac_exec_ext in '' $ac_executable_extensions; do
4617       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620   # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4622 *GNU*)
4623   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4624 *)
4625   ac_count=0
4626   $as_echo_n 0123456789 >"conftest.in"
4627   while :
4628   do
4629     cat "conftest.in" "conftest.in" >"conftest.tmp"
4630     mv "conftest.tmp" "conftest.in"
4631     cp "conftest.in" "conftest.nl"
4632     $as_echo 'EGREP' >> "conftest.nl"
4633     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635     as_fn_arith $ac_count + 1 && ac_count=$as_val
4636     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637       # Best one so far, save it but keep looking for a better one
4638       ac_cv_path_EGREP="$ac_path_EGREP"
4639       ac_path_EGREP_max=$ac_count
4640     fi
4641     # 10*(2^10) chars as input seems more than enough
4642     test $ac_count -gt 10 && break
4643   done
4644   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645 esac
4646
4647       $ac_path_EGREP_found && break 3
4648     done
4649   done
4650   done
4651 IFS=$as_save_IFS
4652   if test -z "$ac_cv_path_EGREP"; then
4653     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4654   fi
4655 else
4656   ac_cv_path_EGREP=$EGREP
4657 fi
4658
4659    fi
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663  EGREP="$ac_cv_path_EGREP"
4664
4665
4666
4667
4668
4669
4670
4671 # ACREQUIRE_BUGFIX done
4672
4673
4674
4675
4676
4677
4678         if test -n "$PYTHON"; then
4679       # If the user set $PYTHON, use it and don't search something else.
4680       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.4" >&5
4681 $as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
4682       prog="import sys
4683 # split strings by '.' and convert to numeric.  Append some zeros
4684 # because we need at least 4 digits for the hex conversion.
4685 # map returns an iterator in Python 3.0 and a list in 2.x
4686 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
4687 minverhex = 0
4688 # xrange is not present in Python 3.0 and range returns an iterator
4689 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
4690 sys.exit(sys.hexversion < minverhex)"
4691   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4692    ($PYTHON -c "$prog") >&5 2>&5
4693    ac_status=$?
4694    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695    (exit $ac_status); }; then :
4696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4697 $as_echo "yes" >&6; }
4698 else
4699   as_fn_error $? "too old" "$LINENO" 5
4700 fi
4701       am_display_PYTHON=$PYTHON
4702     else
4703       # Otherwise, try each interpreter until we find one that satisfies
4704       # VERSION.
4705       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
4706 $as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
4707 if test "${am_cv_pathless_PYTHON+set}" = set; then :
4708   $as_echo_n "(cached) " >&6
4709 else
4710
4711         for am_cv_pathless_PYTHON in python2.6 python2.5 python2.4 python none; do
4712           test "$am_cv_pathless_PYTHON" = none && break
4713           prog="import sys
4714 # split strings by '.' and convert to numeric.  Append some zeros
4715 # because we need at least 4 digits for the hex conversion.
4716 # map returns an iterator in Python 3.0 and a list in 2.x
4717 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
4718 minverhex = 0
4719 # xrange is not present in Python 3.0 and range returns an iterator
4720 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
4721 sys.exit(sys.hexversion < minverhex)"
4722   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4723    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4724    ac_status=$?
4725    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726    (exit $ac_status); }; then :
4727   break
4728 fi
4729         done
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
4732 $as_echo "$am_cv_pathless_PYTHON" >&6; }
4733       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4734       if test "$am_cv_pathless_PYTHON" = none; then
4735         PYTHON=:
4736       else
4737         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4738 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_path_PYTHON+set}" = set; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   case $PYTHON in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763
4764   ;;
4765 esac
4766 fi
4767 PYTHON=$ac_cv_path_PYTHON
4768 if test -n "$PYTHON"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
4770 $as_echo "$PYTHON" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776
4777       fi
4778       am_display_PYTHON=$am_cv_pathless_PYTHON
4779     fi
4780
4781
4782   if test "$PYTHON" = :; then
4783       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
4784   else
4785
4786
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
4788 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
4789 if test "${am_cv_python_version+set}" = set; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
4795 $as_echo "$am_cv_python_version" >&6; }
4796   PYTHON_VERSION=$am_cv_python_version
4797
4798
4799
4800   PYTHON_PREFIX='${prefix}'
4801
4802   PYTHON_EXEC_PREFIX='${exec_prefix}'
4803
4804
4805
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
4807 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
4808 if test "${am_cv_python_platform+set}" = set; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
4814 $as_echo "$am_cv_python_platform" >&6; }
4815   PYTHON_PLATFORM=$am_cv_python_platform
4816
4817
4818
4819
4820                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
4821 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
4822 if test "${am_cv_python_pythondir+set}" = set; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   if test "x$prefix" = xNONE
4826      then
4827        am_py_prefix=$ac_default_prefix
4828      else
4829        am_py_prefix=$prefix
4830      fi
4831      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
4832      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4833      case $am_cv_python_pythondir in
4834      $am_py_prefix*)
4835        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
4836        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
4837        ;;
4838      *)
4839        case $am_py_prefix in
4840          /usr|/System*) ;;
4841          *)
4842           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
4843           ;;
4844        esac
4845        ;;
4846      esac
4847
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
4850 $as_echo "$am_cv_python_pythondir" >&6; }
4851   pythondir=$am_cv_python_pythondir
4852
4853
4854
4855   pkgpythondir=\${pythondir}/$PACKAGE
4856
4857
4858             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
4859 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
4860 if test "${am_cv_python_pyexecdir+set}" = set; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   if test "x$exec_prefix" = xNONE
4864      then
4865        am_py_exec_prefix=$am_py_prefix
4866      else
4867        am_py_exec_prefix=$exec_prefix
4868      fi
4869      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
4870      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4871      case $am_cv_python_pyexecdir in
4872      $am_py_exec_prefix*)
4873        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
4874        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
4875        ;;
4876      *)
4877        case $am_py_exec_prefix in
4878          /usr|/System*) ;;
4879          *)
4880            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
4881            ;;
4882        esac
4883        ;;
4884      esac
4885
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
4888 $as_echo "$am_cv_python_pyexecdir" >&6; }
4889   pyexecdir=$am_cv_python_pyexecdir
4890
4891
4892
4893   pkgpyexecdir=\${pyexecdir}/$PACKAGE
4894
4895
4896
4897   fi
4898
4899
4900 ac_python=yes
4901 if test "x$PYTHON" = "x"; then
4902         # Extract the first word of "python", so it can be a program name with args.
4903 set dummy python; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_path_PYTHON+set}" = set; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   case $PYTHON in
4910   [\\/]* | ?:[\\/]*)
4911   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4912   ;;
4913   *)
4914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919     for ac_exec_ext in '' $ac_executable_extensions; do
4920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926   done
4927 IFS=$as_save_IFS
4928
4929   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="none"
4930   ;;
4931 esac
4932 fi
4933 PYTHON=$ac_cv_path_PYTHON
4934 if test -n "$PYTHON"; then
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
4936 $as_echo "$PYTHON" >&6; }
4937 else
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942
4943 fi
4944
4945 if test "x$PYTHON" = "xnone"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Python interpreter not found, Python support disabled." >&5
4947 $as_echo "$as_me: WARNING: *** Python interpreter not found, Python support disabled." >&2;}
4948         ac_python=no
4949 fi
4950
4951 if test "x$ac_python" = "xyes"; then
4952         { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version and location" >&5
4953 $as_echo_n "checking Python version and location... " >&6; }
4954         PYTHON_PREFIX=`$PYTHON -c "import sys; print(sys.prefix)"`
4955         PYTHON_VERSION_MAJOR=`$PYTHON -c "import sys; print('%d' % (sys.version_info[0]));"`
4956         PYTHON_VERSION_MINOR=`$PYTHON -c "import sys; print('%d' % (sys.version_info[1]));"`
4957         PYTHON_VERSION="${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}"
4958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON, $PYTHON_VERSION, $PYTHON_PREFIX" >&5
4959 $as_echo "$PYTHON, $PYTHON_VERSION, $PYTHON_PREFIX" >&6; }
4960
4961         PYTHON_CFLAGS="-DHAVE_PYTHON -I$PYTHON_PREFIX/include/python$PYTHON_VERSION"
4962
4963         # Define the directories we ask setup.py to install the
4964         # modules/extensions and scripts to. The way chosen here reproduces
4965         # the internal behaviour of distutils. Unfortunately distutils does
4966         # not export the pre-defined/configured directories, so we have to
4967         # define them on our own. For default installations of distutils the
4968         # chosen values here will match what distutils uses.
4969         # See Makefile.am to see how they're used with setup.py.
4970         PYTHON_DISTUTILS_LIBDIR=`$PYTHON -c 'import distutils.util; import sys; print ("build/lib.%s-%s" %(distutils.util.get_platform(), sys.version[0:3]))'`
4971         PYTHON_DISTUTILS_SCRIPTDIR=`$PYTHON  -c 'import sys; print ("build/scripts-%s" %(sys.version[0:3], ))'`
4972
4973         OLD_CPPFLAGS="$CPPFLAGS"
4974         OLD_CXXFLAGS="$CXXFLAGS"
4975         CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
4976         CXXFLAGS="$CXXFLAGS $PYTHON_CFLAGS"
4977
4978
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4981 $as_echo_n "checking for ANSI C header files... " >&6; }
4982 if test "${ac_cv_header_stdc+set}" = set; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h.  */
4987 #include <stdlib.h>
4988 #include <stdarg.h>
4989 #include <string.h>
4990 #include <float.h>
4991
4992 int
4993 main ()
4994 {
4995
4996   ;
4997   return 0;
4998 }
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001   ac_cv_header_stdc=yes
5002 else
5003   ac_cv_header_stdc=no
5004 fi
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006
5007 if test $ac_cv_header_stdc = yes; then
5008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h.  */
5011 #include <string.h>
5012
5013 _ACEOF
5014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015   $EGREP "memchr" >/dev/null 2>&1; then :
5016
5017 else
5018   ac_cv_header_stdc=no
5019 fi
5020 rm -f conftest*
5021
5022 fi
5023
5024 if test $ac_cv_header_stdc = yes; then
5025   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h.  */
5028 #include <stdlib.h>
5029
5030 _ACEOF
5031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032   $EGREP "free" >/dev/null 2>&1; then :
5033
5034 else
5035   ac_cv_header_stdc=no
5036 fi
5037 rm -f conftest*
5038
5039 fi
5040
5041 if test $ac_cv_header_stdc = yes; then
5042   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5043   if test "$cross_compiling" = yes; then :
5044   :
5045 else
5046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h.  */
5048 #include <ctype.h>
5049 #include <stdlib.h>
5050 #if ((' ' & 0x0FF) == 0x020)
5051 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5052 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5053 #else
5054 # define ISLOWER(c) \
5055                    (('a' <= (c) && (c) <= 'i') \
5056                      || ('j' <= (c) && (c) <= 'r') \
5057                      || ('s' <= (c) && (c) <= 'z'))
5058 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5059 #endif
5060
5061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5062 int
5063 main ()
5064 {
5065   int i;
5066   for (i = 0; i < 256; i++)
5067     if (XOR (islower (i), ISLOWER (i))
5068         || toupper (i) != TOUPPER (i))
5069       return 2;
5070   return 0;
5071 }
5072 _ACEOF
5073 if ac_fn_c_try_run "$LINENO"; then :
5074
5075 else
5076   ac_cv_header_stdc=no
5077 fi
5078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5079   conftest.$ac_objext conftest.beam conftest.$ac_ext
5080 fi
5081
5082 fi
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5085 $as_echo "$ac_cv_header_stdc" >&6; }
5086 if test $ac_cv_header_stdc = yes; then
5087
5088 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5089
5090 fi
5091
5092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5093 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5094                   inttypes.h stdint.h unistd.h
5095 do :
5096   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5097 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5098 "
5099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5100   cat >>confdefs.h <<_ACEOF
5101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5102 _ACEOF
5103
5104 fi
5105
5106 done
5107
5108
5109 for ac_header in Python.h
5110 do :
5111   ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
5112 if test "x$ac_cv_header_Python_h" = x""yes; then :
5113   cat >>confdefs.h <<_ACEOF
5114 #define HAVE_PYTHON_H 1
5115 _ACEOF
5116
5117 else
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Python include files not found! You should install the Python development package. Python support disabled" >&5
5119 $as_echo "$as_me: WARNING: *** Python include files not found! You should install the Python development package. Python support disabled" >&2;}; ac_python=no
5120 fi
5121
5122 done
5123
5124         CPPFLAGS="$OLD_CPPFLAGS"
5125         CXXFLAGS="$OLD_CXXFLAGS"
5126
5127         if test "x$ac_python" = "xyes"; then
5128
5129
5130
5131
5132                 ac_python=no
5133                 for pylibpath in '/usr/lib' $PYTHON_PREFIX/lib $PYTHON_PREFIX/lib/python$PYTHON_VERSION/config; do
5134                         eval `echo unset ac_cv_lib_python$PYTHON_VERSION'___'Py_Finalize | tr '.' '_'`
5135
5136                         save_LIBS=$LIBS
5137                         LIBS="$LIBS -L$pylibpath $PYTHON_LIBS"
5138                         as_ac_Lib=`$as_echo "ac_cv_lib_python$PYTHON_VERSION''_Py_Finalize" | $as_tr_sh`
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Py_Finalize in -lpython$PYTHON_VERSION" >&5
5140 $as_echo_n "checking for Py_Finalize in -lpython$PYTHON_VERSION... " >&6; }
5141 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   ac_check_lib_save_LIBS=$LIBS
5145 LIBS="-lpython$PYTHON_VERSION $PYTHON_DEPS $LIBS"
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h.  */
5148
5149 /* Override any GCC internal prototype to avoid an error.
5150    Use char because int might match the return type of a GCC
5151    builtin and then its argument prototype would still apply.  */
5152 #ifdef __cplusplus
5153 extern "C"
5154 #endif
5155 char Py_Finalize ();
5156 int
5157 main ()
5158 {
5159 return Py_Finalize ();
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_link "$LINENO"; then :
5165   eval "$as_ac_Lib=yes"
5166 else
5167   eval "$as_ac_Lib=no"
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext \
5170     conftest$ac_exeext conftest.$ac_ext
5171 LIBS=$ac_check_lib_save_LIBS
5172 fi
5173 eval ac_res=\$$as_ac_Lib
5174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5175 $as_echo "$ac_res" >&6; }
5176 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5177   PYTHON_LIBS="-L$pylibpath -lpython$PYTHON_VERSION $PYTHON_DEPS"; ac_python=yes
5178 fi
5179
5180                         LIBS=$save_LIBS
5181                         if test "x$ac_python" = "xyes"; then
5182                                 break
5183                         fi
5184                 done
5185
5186                 if test "x$ac_python" != "xyes"; then
5187                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Python development libraries required" >&5
5188 $as_echo "$as_me: WARNING: *** Python development libraries required" >&2;}
5189                 fi
5190
5191
5192
5193                 if test "x$python_install" = "xyes"; then
5194                         pkgpythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION"/site-packages/gpsd"
5195                 fi
5196         fi
5197 fi
5198  if test x"$ac_python" = xyes; then
5199   HAVE_PYTHON_TRUE=
5200   HAVE_PYTHON_FALSE='#'
5201 else
5202   HAVE_PYTHON_TRUE='#'
5203   HAVE_PYTHON_FALSE=
5204 fi
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5208 $as_echo_n "checking whether ln -s works... " >&6; }
5209 LN_S=$as_ln_s
5210 if test "$LN_S" = "ln -s"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212 $as_echo "yes" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5215 $as_echo "no, using $LN_S" >&6; }
5216 fi
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5219 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5220 set x ${MAKE-make}
5221 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5222 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   cat >conftest.make <<\_ACEOF
5226 SHELL = /bin/sh
5227 all:
5228         @echo '@@@%%%=$(MAKE)=@@@%%%'
5229 _ACEOF
5230 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5232   *@@@%%%=?*=@@@%%%*)
5233     eval ac_cv_prog_make_${ac_make}_set=yes;;
5234   *)
5235     eval ac_cv_prog_make_${ac_make}_set=no;;
5236 esac
5237 rm -f conftest.make
5238 fi
5239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5241 $as_echo "yes" >&6; }
5242   SET_MAKE=
5243 else
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5246   SET_MAKE="MAKE=${MAKE-make}"
5247 fi
5248
5249
5250 case `pwd` in
5251   *\ * | *\     *)
5252     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5253 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5254 esac
5255
5256
5257
5258 macro_version='2.2.6b'
5259 macro_revision='1.3017'
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 ltmain="$ac_aux_dir/ltmain.sh"
5274
5275 # Make sure we can run config.sub.
5276 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5277   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5278
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5280 $as_echo_n "checking build system type... " >&6; }
5281 if test "${ac_cv_build+set}" = set; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   ac_build_alias=$build_alias
5285 test "x$ac_build_alias" = x &&
5286   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5287 test "x$ac_build_alias" = x &&
5288   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5289 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5290   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5291
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5294 $as_echo "$ac_cv_build" >&6; }
5295 case $ac_cv_build in
5296 *-*-*) ;;
5297 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5298 esac
5299 build=$ac_cv_build
5300 ac_save_IFS=$IFS; IFS='-'
5301 set x $ac_cv_build
5302 shift
5303 build_cpu=$1
5304 build_vendor=$2
5305 shift; shift
5306 # Remember, the first character of IFS is used to create $*,
5307 # except with old shells:
5308 build_os=$*
5309 IFS=$ac_save_IFS
5310 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5311
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5314 $as_echo_n "checking host system type... " >&6; }
5315 if test "${ac_cv_host+set}" = set; then :
5316   $as_echo_n "(cached) " >&6
5317 else
5318   if test "x$host_alias" = x; then
5319   ac_cv_host=$ac_cv_build
5320 else
5321   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5322     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5323 fi
5324
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5327 $as_echo "$ac_cv_host" >&6; }
5328 case $ac_cv_host in
5329 *-*-*) ;;
5330 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5331 esac
5332 host=$ac_cv_host
5333 ac_save_IFS=$IFS; IFS='-'
5334 set x $ac_cv_host
5335 shift
5336 host_cpu=$1
5337 host_vendor=$2
5338 shift; shift
5339 # Remember, the first character of IFS is used to create $*,
5340 # except with old shells:
5341 host_os=$*
5342 IFS=$ac_save_IFS
5343 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5344
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5347 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5348 if test "${ac_cv_path_SED+set}" = set; then :
5349   $as_echo_n "(cached) " >&6
5350 else
5351             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5352      for ac_i in 1 2 3 4 5 6 7; do
5353        ac_script="$ac_script$as_nl$ac_script"
5354      done
5355      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5356      { ac_script=; unset ac_script;}
5357      if test -z "$SED"; then
5358   ac_path_SED_found=false
5359   # Loop through the user's path and test for each of PROGNAME-LIST
5360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_prog in sed gsed; do
5366     for ac_exec_ext in '' $ac_executable_extensions; do
5367       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5368       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5369 # Check for GNU ac_path_SED and select it if it is found.
5370   # Check for GNU $ac_path_SED
5371 case `"$ac_path_SED" --version 2>&1` in
5372 *GNU*)
5373   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5374 *)
5375   ac_count=0
5376   $as_echo_n 0123456789 >"conftest.in"
5377   while :
5378   do
5379     cat "conftest.in" "conftest.in" >"conftest.tmp"
5380     mv "conftest.tmp" "conftest.in"
5381     cp "conftest.in" "conftest.nl"
5382     $as_echo '' >> "conftest.nl"
5383     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5384     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5385     as_fn_arith $ac_count + 1 && ac_count=$as_val
5386     if test $ac_count -gt ${ac_path_SED_max-0}; then
5387       # Best one so far, save it but keep looking for a better one
5388       ac_cv_path_SED="$ac_path_SED"
5389       ac_path_SED_max=$ac_count
5390     fi
5391     # 10*(2^10) chars as input seems more than enough
5392     test $ac_count -gt 10 && break
5393   done
5394   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5395 esac
5396
5397       $ac_path_SED_found && break 3
5398     done
5399   done
5400   done
5401 IFS=$as_save_IFS
5402   if test -z "$ac_cv_path_SED"; then
5403     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5404   fi
5405 else
5406   ac_cv_path_SED=$SED
5407 fi
5408
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5411 $as_echo "$ac_cv_path_SED" >&6; }
5412  SED="$ac_cv_path_SED"
5413   rm -f conftest.sed
5414
5415 test -z "$SED" && SED=sed
5416 Xsed="$SED -e 1s/^X//"
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5429 $as_echo_n "checking for fgrep... " >&6; }
5430 if test "${ac_cv_path_FGREP+set}" = set; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5434    then ac_cv_path_FGREP="$GREP -F"
5435    else
5436      if test -z "$FGREP"; then
5437   ac_path_FGREP_found=false
5438   # Loop through the user's path and test for each of PROGNAME-LIST
5439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5441 do
5442   IFS=$as_save_IFS
5443   test -z "$as_dir" && as_dir=.
5444     for ac_prog in fgrep; do
5445     for ac_exec_ext in '' $ac_executable_extensions; do
5446       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5447       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5448 # Check for GNU ac_path_FGREP and select it if it is found.
5449   # Check for GNU $ac_path_FGREP
5450 case `"$ac_path_FGREP" --version 2>&1` in
5451 *GNU*)
5452   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5453 *)
5454   ac_count=0
5455   $as_echo_n 0123456789 >"conftest.in"
5456   while :
5457   do
5458     cat "conftest.in" "conftest.in" >"conftest.tmp"
5459     mv "conftest.tmp" "conftest.in"
5460     cp "conftest.in" "conftest.nl"
5461     $as_echo 'FGREP' >> "conftest.nl"
5462     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5463     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5464     as_fn_arith $ac_count + 1 && ac_count=$as_val
5465     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5466       # Best one so far, save it but keep looking for a better one
5467       ac_cv_path_FGREP="$ac_path_FGREP"
5468       ac_path_FGREP_max=$ac_count
5469     fi
5470     # 10*(2^10) chars as input seems more than enough
5471     test $ac_count -gt 10 && break
5472   done
5473   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5474 esac
5475
5476       $ac_path_FGREP_found && break 3
5477     done
5478   done
5479   done
5480 IFS=$as_save_IFS
5481   if test -z "$ac_cv_path_FGREP"; then
5482     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5483   fi
5484 else
5485   ac_cv_path_FGREP=$FGREP
5486 fi
5487
5488    fi
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5491 $as_echo "$ac_cv_path_FGREP" >&6; }
5492  FGREP="$ac_cv_path_FGREP"
5493
5494
5495 test -z "$GREP" && GREP=grep
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515 # Check whether --with-gnu-ld was given.
5516 if test "${with_gnu_ld+set}" = set; then :
5517   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5518 else
5519   with_gnu_ld=no
5520 fi
5521
5522 ac_prog=ld
5523 if test "$GCC" = yes; then
5524   # Check if gcc -print-prog-name=ld gives a path.
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5526 $as_echo_n "checking for ld used by $CC... " >&6; }
5527   case $host in
5528   *-*-mingw*)
5529     # gcc leaves a trailing carriage return which upsets mingw
5530     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5531   *)
5532     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5533   esac
5534   case $ac_prog in
5535     # Accept absolute paths.
5536     [\\/]* | ?:[\\/]*)
5537       re_direlt='/[^/][^/]*/\.\./'
5538       # Canonicalize the pathname of ld
5539       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5540       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5541         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5542       done
5543       test -z "$LD" && LD="$ac_prog"
5544       ;;
5545   "")
5546     # If it fails, then pretend we aren't using GCC.
5547     ac_prog=ld
5548     ;;
5549   *)
5550     # If it is relative, then search for the first ld in PATH.
5551     with_gnu_ld=unknown
5552     ;;
5553   esac
5554 elif test "$with_gnu_ld" = yes; then
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5556 $as_echo_n "checking for GNU ld... " >&6; }
5557 else
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5559 $as_echo_n "checking for non-GNU ld... " >&6; }
5560 fi
5561 if test "${lt_cv_path_LD+set}" = set; then :
5562   $as_echo_n "(cached) " >&6
5563 else
5564   if test -z "$LD"; then
5565   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5566   for ac_dir in $PATH; do
5567     IFS="$lt_save_ifs"
5568     test -z "$ac_dir" && ac_dir=.
5569     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5570       lt_cv_path_LD="$ac_dir/$ac_prog"
5571       # Check to see if the program is GNU ld.  I'd rather use --version,
5572       # but apparently some variants of GNU ld only accept -v.
5573       # Break only if it was the GNU/non-GNU ld that we prefer.
5574       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5575       *GNU* | *'with BFD'*)
5576         test "$with_gnu_ld" != no && break
5577         ;;
5578       *)
5579         test "$with_gnu_ld" != yes && break
5580         ;;
5581       esac
5582     fi
5583   done
5584   IFS="$lt_save_ifs"
5585 else
5586   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5587 fi
5588 fi
5589
5590 LD="$lt_cv_path_LD"
5591 if test -n "$LD"; then
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5593 $as_echo "$LD" >&6; }
5594 else
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5597 fi
5598 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5600 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5601 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5602   $as_echo_n "(cached) " >&6
5603 else
5604   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5605 case `$LD -v 2>&1 </dev/null` in
5606 *GNU* | *'with BFD'*)
5607   lt_cv_prog_gnu_ld=yes
5608   ;;
5609 *)
5610   lt_cv_prog_gnu_ld=no
5611   ;;
5612 esac
5613 fi
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5615 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5616 with_gnu_ld=$lt_cv_prog_gnu_ld
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5627 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5628 if test "${lt_cv_path_NM+set}" = set; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   if test -n "$NM"; then
5632   # Let the user override the test.
5633   lt_cv_path_NM="$NM"
5634 else
5635   lt_nm_to_check="${ac_tool_prefix}nm"
5636   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5637     lt_nm_to_check="$lt_nm_to_check nm"
5638   fi
5639   for lt_tmp_nm in $lt_nm_to_check; do
5640     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5641     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5642       IFS="$lt_save_ifs"
5643       test -z "$ac_dir" && ac_dir=.
5644       tmp_nm="$ac_dir/$lt_tmp_nm"
5645       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5646         # Check to see if the nm accepts a BSD-compat flag.
5647         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5648         #   nm: unknown option "B" ignored
5649         # Tru64's nm complains that /dev/null is an invalid object file
5650         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5651         */dev/null* | *'Invalid file or object type'*)
5652           lt_cv_path_NM="$tmp_nm -B"
5653           break
5654           ;;
5655         *)
5656           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5657           */dev/null*)
5658             lt_cv_path_NM="$tmp_nm -p"
5659             break
5660             ;;
5661           *)
5662             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5663             continue # so that we can try to find one that supports BSD flags
5664             ;;
5665           esac
5666           ;;
5667         esac
5668       fi
5669     done
5670     IFS="$lt_save_ifs"
5671   done
5672   : ${lt_cv_path_NM=no}
5673 fi
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5676 $as_echo "$lt_cv_path_NM" >&6; }
5677 if test "$lt_cv_path_NM" != "no"; then
5678   NM="$lt_cv_path_NM"
5679 else
5680   # Didn't find any BSD compatible name lister, look for dumpbin.
5681   if test -n "$ac_tool_prefix"; then
5682   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5683   do
5684     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   if test -n "$DUMPBIN"; then
5692   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697   IFS=$as_save_IFS
5698   test -z "$as_dir" && as_dir=.
5699     for ac_exec_ext in '' $ac_executable_extensions; do
5700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703     break 2
5704   fi
5705 done
5706   done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 DUMPBIN=$ac_cv_prog_DUMPBIN
5712 if test -n "$DUMPBIN"; then
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5714 $as_echo "$DUMPBIN" >&6; }
5715 else
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720
5721     test -n "$DUMPBIN" && break
5722   done
5723 fi
5724 if test -z "$DUMPBIN"; then
5725   ac_ct_DUMPBIN=$DUMPBIN
5726   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5727 do
5728   # Extract the first word of "$ac_prog", so it can be a program name with args.
5729 set dummy $ac_prog; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   if test -n "$ac_ct_DUMPBIN"; then
5736   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743     for ac_exec_ext in '' $ac_executable_extensions; do
5744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750   done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5756 if test -n "$ac_ct_DUMPBIN"; then
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5758 $as_echo "$ac_ct_DUMPBIN" >&6; }
5759 else
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764
5765   test -n "$ac_ct_DUMPBIN" && break
5766 done
5767
5768   if test "x$ac_ct_DUMPBIN" = x; then
5769     DUMPBIN=":"
5770   else
5771     case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775 ac_tool_warned=yes ;;
5776 esac
5777     DUMPBIN=$ac_ct_DUMPBIN
5778   fi
5779 fi
5780
5781
5782   if test "$DUMPBIN" != ":"; then
5783     NM="$DUMPBIN"
5784   fi
5785 fi
5786 test -z "$NM" && NM=nm
5787
5788
5789
5790
5791
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5794 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5795 if test "${lt_cv_nm_interface+set}" = set; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   lt_cv_nm_interface="BSD nm"
5799   echo "int some_variable = 0;" > conftest.$ac_ext
5800   (eval echo "\"\$as_me:5800: $ac_compile\"" >&5)
5801   (eval "$ac_compile" 2>conftest.err)
5802   cat conftest.err >&5
5803   (eval echo "\"\$as_me:5803: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5804   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5805   cat conftest.err >&5
5806   (eval echo "\"\$as_me:5806: output\"" >&5)
5807   cat conftest.out >&5
5808   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5809     lt_cv_nm_interface="MS dumpbin"
5810   fi
5811   rm -f conftest*
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5814 $as_echo "$lt_cv_nm_interface" >&6; }
5815
5816 # find the maximum length of command line arguments
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5818 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5819 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5820   $as_echo_n "(cached) " >&6
5821 else
5822     i=0
5823   teststring="ABCD"
5824
5825   case $build_os in
5826   msdosdjgpp*)
5827     # On DJGPP, this test can blow up pretty badly due to problems in libc
5828     # (any single argument exceeding 2000 bytes causes a buffer overrun
5829     # during glob expansion).  Even if it were fixed, the result of this
5830     # check would be larger than it should be.
5831     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5832     ;;
5833
5834   gnu*)
5835     # Under GNU Hurd, this test is not required because there is
5836     # no limit to the length of command line arguments.
5837     # Libtool will interpret -1 as no limit whatsoever
5838     lt_cv_sys_max_cmd_len=-1;
5839     ;;
5840
5841   cygwin* | mingw* | cegcc*)
5842     # On Win9x/ME, this test blows up -- it succeeds, but takes
5843     # about 5 minutes as the teststring grows exponentially.
5844     # Worse, since 9x/ME are not pre-emptively multitasking,
5845     # you end up with a "frozen" computer, even though with patience
5846     # the test eventually succeeds (with a max line length of 256k).
5847     # Instead, let's just punt: use the minimum linelength reported by
5848     # all of the supported platforms: 8192 (on NT/2K/XP).
5849     lt_cv_sys_max_cmd_len=8192;
5850     ;;
5851
5852   amigaos*)
5853     # On AmigaOS with pdksh, this test takes hours, literally.
5854     # So we just punt and use a minimum line length of 8192.
5855     lt_cv_sys_max_cmd_len=8192;
5856     ;;
5857
5858   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5859     # This has been around since 386BSD, at least.  Likely further.
5860     if test -x /sbin/sysctl; then
5861       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5862     elif test -x /usr/sbin/sysctl; then
5863       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5864     else
5865       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5866     fi
5867     # And add a safety zone
5868     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5869     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5870     ;;
5871
5872   interix*)
5873     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5874     lt_cv_sys_max_cmd_len=196608
5875     ;;
5876
5877   osf*)
5878     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5879     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5880     # nice to cause kernel panics so lets avoid the loop below.
5881     # First set a reasonable default.
5882     lt_cv_sys_max_cmd_len=16384
5883     #
5884     if test -x /sbin/sysconfig; then
5885       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5886         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5887       esac
5888     fi
5889     ;;
5890   sco3.2v5*)
5891     lt_cv_sys_max_cmd_len=102400
5892     ;;
5893   sysv5* | sco5v6* | sysv4.2uw2*)
5894     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5895     if test -n "$kargmax"; then
5896       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5897     else
5898       lt_cv_sys_max_cmd_len=32768
5899     fi
5900     ;;
5901   *)
5902     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5903     if test -n "$lt_cv_sys_max_cmd_len"; then
5904       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5905       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5906     else
5907       # Make teststring a little bigger before we do anything with it.
5908       # a 1K string should be a reasonable start.
5909       for i in 1 2 3 4 5 6 7 8 ; do
5910         teststring=$teststring$teststring
5911       done
5912       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5913       # If test is not a shell built-in, we'll probably end up computing a
5914       # maximum length that is only half of the actual maximum length, but
5915       # we can't tell.
5916       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5917                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5918               test $i != 17 # 1/2 MB should be enough
5919       do
5920         i=`expr $i + 1`
5921         teststring=$teststring$teststring
5922       done
5923       # Only check the string length outside the loop.
5924       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5925       teststring=
5926       # Add a significant safety factor because C++ compilers can tack on
5927       # massive amounts of additional arguments before passing them to the
5928       # linker.  It appears as though 1/2 is a usable value.
5929       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5930     fi
5931     ;;
5932   esac
5933
5934 fi
5935
5936 if test -n $lt_cv_sys_max_cmd_len ; then
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5938 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5939 else
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5941 $as_echo "none" >&6; }
5942 fi
5943 max_cmd_len=$lt_cv_sys_max_cmd_len
5944
5945
5946
5947
5948
5949
5950 : ${CP="cp -f"}
5951 : ${MV="mv -f"}
5952 : ${RM="rm -f"}
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5955 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5956 # Try some XSI features
5957 xsi_shell=no
5958 ( _lt_dummy="a/b/c"
5959   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5960       = c,a/b,, \
5961     && eval 'test $(( 1 + 1 )) -eq 2 \
5962     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5963   && xsi_shell=yes
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5965 $as_echo "$xsi_shell" >&6; }
5966
5967
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5969 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5970 lt_shell_append=no
5971 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5972     >/dev/null 2>&1 \
5973   && lt_shell_append=yes
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5975 $as_echo "$lt_shell_append" >&6; }
5976
5977
5978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5979   lt_unset=unset
5980 else
5981   lt_unset=false
5982 fi
5983
5984
5985
5986
5987
5988 # test EBCDIC or ASCII
5989 case `echo X|tr X '\101'` in
5990  A) # ASCII based system
5991     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5992   lt_SP2NL='tr \040 \012'
5993   lt_NL2SP='tr \015\012 \040\040'
5994   ;;
5995  *) # EBCDIC based system
5996   lt_SP2NL='tr \100 \n'
5997   lt_NL2SP='tr \r\n \100\100'
5998   ;;
5999 esac
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6010 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6011 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6012   $as_echo_n "(cached) " >&6
6013 else
6014   lt_cv_ld_reload_flag='-r'
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6017 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6018 reload_flag=$lt_cv_ld_reload_flag
6019 case $reload_flag in
6020 "" | " "*) ;;
6021 *) reload_flag=" $reload_flag" ;;
6022 esac
6023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6024 case $host_os in
6025   darwin*)
6026     if test "$GCC" = yes; then
6027       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6028     else
6029       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6030     fi
6031     ;;
6032 esac
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 if test -n "$ac_tool_prefix"; then
6043   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6048   $as_echo_n "(cached) " >&6
6049 else
6050   if test -n "$OBJDUMP"; then
6051   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056   IFS=$as_save_IFS
6057   test -z "$as_dir" && as_dir=.
6058     for ac_exec_ext in '' $ac_executable_extensions; do
6059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062     break 2
6063   fi
6064 done
6065   done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 OBJDUMP=$ac_cv_prog_OBJDUMP
6071 if test -n "$OBJDUMP"; then
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6073 $as_echo "$OBJDUMP" >&6; }
6074 else
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079
6080 fi
6081 if test -z "$ac_cv_prog_OBJDUMP"; then
6082   ac_ct_OBJDUMP=$OBJDUMP
6083   # Extract the first word of "objdump", so it can be a program name with args.
6084 set dummy objdump; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090   if test -n "$ac_ct_OBJDUMP"; then
6091   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098     for ac_exec_ext in '' $ac_executable_extensions; do
6099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102     break 2
6103   fi
6104 done
6105   done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6111 if test -n "$ac_ct_OBJDUMP"; then
6112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6113 $as_echo "$ac_ct_OBJDUMP" >&6; }
6114 else
6115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117 fi
6118
6119   if test "x$ac_ct_OBJDUMP" = x; then
6120     OBJDUMP="false"
6121   else
6122     case $cross_compiling:$ac_tool_warned in
6123 yes:)
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6126 ac_tool_warned=yes ;;
6127 esac
6128     OBJDUMP=$ac_ct_OBJDUMP
6129   fi
6130 else
6131   OBJDUMP="$ac_cv_prog_OBJDUMP"
6132 fi
6133
6134 test -z "$OBJDUMP" && OBJDUMP=objdump
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6145 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6146 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6147   $as_echo_n "(cached) " >&6
6148 else
6149   lt_cv_file_magic_cmd='$MAGIC_CMD'
6150 lt_cv_file_magic_test_file=
6151 lt_cv_deplibs_check_method='unknown'
6152 # Need to set the preceding variable on all platforms that support
6153 # interlibrary dependencies.
6154 # 'none' -- dependencies not supported.
6155 # `unknown' -- same as none, but documents that we really don't know.
6156 # 'pass_all' -- all dependencies passed with no checks.
6157 # 'test_compile' -- check by making test program.
6158 # 'file_magic [[regex]]' -- check by looking for files in library path
6159 # which responds to the $file_magic_cmd with a given extended regex.
6160 # If you have `file' or equivalent on your system and you're not sure
6161 # whether `pass_all' will *always* work, you probably want this one.
6162
6163 case $host_os in
6164 aix[4-9]*)
6165   lt_cv_deplibs_check_method=pass_all
6166   ;;
6167
6168 beos*)
6169   lt_cv_deplibs_check_method=pass_all
6170   ;;
6171
6172 bsdi[45]*)
6173   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6174   lt_cv_file_magic_cmd='/usr/bin/file -L'
6175   lt_cv_file_magic_test_file=/shlib/libc.so
6176   ;;
6177
6178 cygwin*)
6179   # func_win32_libid is a shell function defined in ltmain.sh
6180   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6181   lt_cv_file_magic_cmd='func_win32_libid'
6182   ;;
6183
6184 mingw* | pw32*)
6185   # Base MSYS/MinGW do not provide the 'file' command needed by
6186   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6187   # unless we find 'file', for example because we are cross-compiling.
6188   if ( file / ) >/dev/null 2>&1; then
6189     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6190     lt_cv_file_magic_cmd='func_win32_libid'
6191   else
6192     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6193     lt_cv_file_magic_cmd='$OBJDUMP -f'
6194   fi
6195   ;;
6196
6197 cegcc)
6198   # use the weaker test based on 'objdump'. See mingw*.
6199   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6200   lt_cv_file_magic_cmd='$OBJDUMP -f'
6201   ;;
6202
6203 darwin* | rhapsody*)
6204   lt_cv_deplibs_check_method=pass_all
6205   ;;
6206
6207 freebsd* | dragonfly*)
6208   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6209     case $host_cpu in
6210     i*86 )
6211       # Not sure whether the presence of OpenBSD here was a mistake.
6212       # Let's accept both of them until this is cleared up.
6213       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6214       lt_cv_file_magic_cmd=/usr/bin/file
6215       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6216       ;;
6217     esac
6218   else
6219     lt_cv_deplibs_check_method=pass_all
6220   fi
6221   ;;
6222
6223 gnu*)
6224   lt_cv_deplibs_check_method=pass_all
6225   ;;
6226
6227 hpux10.20* | hpux11*)
6228   lt_cv_file_magic_cmd=/usr/bin/file
6229   case $host_cpu in
6230   ia64*)
6231     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6232     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6233     ;;
6234   hppa*64*)
6235     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]'
6236     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6237     ;;
6238   *)
6239     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6240     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6241     ;;
6242   esac
6243   ;;
6244
6245 interix[3-9]*)
6246   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6247   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6248   ;;
6249
6250 irix5* | irix6* | nonstopux*)
6251   case $LD in
6252   *-32|*"-32 ") libmagic=32-bit;;
6253   *-n32|*"-n32 ") libmagic=N32;;
6254   *-64|*"-64 ") libmagic=64-bit;;
6255   *) libmagic=never-match;;
6256   esac
6257   lt_cv_deplibs_check_method=pass_all
6258   ;;
6259
6260 # This must be Linux ELF.
6261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6262   lt_cv_deplibs_check_method=pass_all
6263   ;;
6264
6265 netbsd* | netbsdelf*-gnu)
6266   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6268   else
6269     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6270   fi
6271   ;;
6272
6273 newos6*)
6274   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6275   lt_cv_file_magic_cmd=/usr/bin/file
6276   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6277   ;;
6278
6279 *nto* | *qnx*)
6280   lt_cv_deplibs_check_method=pass_all
6281   ;;
6282
6283 openbsd*)
6284   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6286   else
6287     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6288   fi
6289   ;;
6290
6291 osf3* | osf4* | osf5*)
6292   lt_cv_deplibs_check_method=pass_all
6293   ;;
6294
6295 rdos*)
6296   lt_cv_deplibs_check_method=pass_all
6297   ;;
6298
6299 solaris*)
6300   lt_cv_deplibs_check_method=pass_all
6301   ;;
6302
6303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6304   lt_cv_deplibs_check_method=pass_all
6305   ;;
6306
6307 sysv4 | sysv4.3*)
6308   case $host_vendor in
6309   motorola)
6310     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]'
6311     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6312     ;;
6313   ncr)
6314     lt_cv_deplibs_check_method=pass_all
6315     ;;
6316   sequent)
6317     lt_cv_file_magic_cmd='/bin/file'
6318     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6319     ;;
6320   sni)
6321     lt_cv_file_magic_cmd='/bin/file'
6322     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6323     lt_cv_file_magic_test_file=/lib/libc.so
6324     ;;
6325   siemens)
6326     lt_cv_deplibs_check_method=pass_all
6327     ;;
6328   pc)
6329     lt_cv_deplibs_check_method=pass_all
6330     ;;
6331   esac
6332   ;;
6333
6334 tpf*)
6335   lt_cv_deplibs_check_method=pass_all
6336   ;;
6337 esac
6338
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6342 file_magic_cmd=$lt_cv_file_magic_cmd
6343 deplibs_check_method=$lt_cv_deplibs_check_method
6344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357 if test -n "$ac_tool_prefix"; then
6358   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6359 set dummy ${ac_tool_prefix}ar; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if test "${ac_cv_prog_AR+set}" = set; then :
6363   $as_echo_n "(cached) " >&6
6364 else
6365   if test -n "$AR"; then
6366   ac_cv_prog_AR="$AR" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371   IFS=$as_save_IFS
6372   test -z "$as_dir" && as_dir=.
6373     for ac_exec_ext in '' $ac_executable_extensions; do
6374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375     ac_cv_prog_AR="${ac_tool_prefix}ar"
6376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377     break 2
6378   fi
6379 done
6380   done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 AR=$ac_cv_prog_AR
6386 if test -n "$AR"; then
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6388 $as_echo "$AR" >&6; }
6389 else
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394
6395 fi
6396 if test -z "$ac_cv_prog_AR"; then
6397   ac_ct_AR=$AR
6398   # Extract the first word of "ar", so it can be a program name with args.
6399 set dummy ar; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   if test -n "$ac_ct_AR"; then
6406   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413     for ac_exec_ext in '' $ac_executable_extensions; do
6414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415     ac_cv_prog_ac_ct_AR="ar"
6416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420   done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6426 if test -n "$ac_ct_AR"; then
6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6428 $as_echo "$ac_ct_AR" >&6; }
6429 else
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434   if test "x$ac_ct_AR" = x; then
6435     AR="false"
6436   else
6437     case $cross_compiling:$ac_tool_warned in
6438 yes:)
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6441 ac_tool_warned=yes ;;
6442 esac
6443     AR=$ac_ct_AR
6444   fi
6445 else
6446   AR="$ac_cv_prog_AR"
6447 fi
6448
6449 test -z "$AR" && AR=ar
6450 test -z "$AR_FLAGS" && AR_FLAGS=cru
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462 if test -n "$ac_tool_prefix"; then
6463   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}strip; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if test "${ac_cv_prog_STRIP+set}" = set; then :
6468   $as_echo_n "(cached) " >&6
6469 else
6470   if test -n "$STRIP"; then
6471   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478     for ac_exec_ext in '' $ac_executable_extensions; do
6479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485   done
6486 IFS=$as_save_IFS
6487
6488 fi
6489 fi
6490 STRIP=$ac_cv_prog_STRIP
6491 if test -n "$STRIP"; then
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6493 $as_echo "$STRIP" >&6; }
6494 else
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6497 fi
6498
6499
6500 fi
6501 if test -z "$ac_cv_prog_STRIP"; then
6502   ac_ct_STRIP=$STRIP
6503   # Extract the first word of "strip", so it can be a program name with args.
6504 set dummy strip; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6508   $as_echo_n "(cached) " >&6
6509 else
6510   if test -n "$ac_ct_STRIP"; then
6511   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518     for ac_exec_ext in '' $ac_executable_extensions; do
6519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520     ac_cv_prog_ac_ct_STRIP="strip"
6521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525   done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6531 if test -n "$ac_ct_STRIP"; then
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6533 $as_echo "$ac_ct_STRIP" >&6; }
6534 else
6535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539   if test "x$ac_ct_STRIP" = x; then
6540     STRIP=":"
6541   else
6542     case $cross_compiling:$ac_tool_warned in
6543 yes:)
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6547 esac
6548     STRIP=$ac_ct_STRIP
6549   fi
6550 else
6551   STRIP="$ac_cv_prog_STRIP"
6552 fi
6553
6554 test -z "$STRIP" && STRIP=:
6555
6556
6557
6558
6559
6560
6561 if test -n "$ac_tool_prefix"; then
6562   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   if test -n "$RANLIB"; then
6570   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577     for ac_exec_ext in '' $ac_executable_extensions; do
6578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584   done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 RANLIB=$ac_cv_prog_RANLIB
6590 if test -n "$RANLIB"; then
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6592 $as_echo "$RANLIB" >&6; }
6593 else
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598
6599 fi
6600 if test -z "$ac_cv_prog_RANLIB"; then
6601   ac_ct_RANLIB=$RANLIB
6602   # Extract the first word of "ranlib", so it can be a program name with args.
6603 set dummy ranlib; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6607   $as_echo_n "(cached) " >&6
6608 else
6609   if test -n "$ac_ct_RANLIB"; then
6610   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617     for ac_exec_ext in '' $ac_executable_extensions; do
6618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619     ac_cv_prog_ac_ct_RANLIB="ranlib"
6620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624   done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6630 if test -n "$ac_ct_RANLIB"; then
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6632 $as_echo "$ac_ct_RANLIB" >&6; }
6633 else
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6636 fi
6637
6638   if test "x$ac_ct_RANLIB" = x; then
6639     RANLIB=":"
6640   else
6641     case $cross_compiling:$ac_tool_warned in
6642 yes:)
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645 ac_tool_warned=yes ;;
6646 esac
6647     RANLIB=$ac_ct_RANLIB
6648   fi
6649 else
6650   RANLIB="$ac_cv_prog_RANLIB"
6651 fi
6652
6653 test -z "$RANLIB" && RANLIB=:
6654
6655
6656
6657
6658
6659
6660 # Determine commands to create old-style static archives.
6661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6662 old_postinstall_cmds='chmod 644 $oldlib'
6663 old_postuninstall_cmds=
6664
6665 if test -n "$RANLIB"; then
6666   case $host_os in
6667   openbsd*)
6668     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6669     ;;
6670   *)
6671     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6672     ;;
6673   esac
6674   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6675 fi
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710 # If no C compiler was specified, use CC.
6711 LTCC=${LTCC-"$CC"}
6712
6713 # If no C compiler flags were specified, use CFLAGS.
6714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6715
6716 # Allow CC to be a program name with arguments.
6717 compiler=$CC
6718
6719
6720 # Check for command to grab the raw symbol name followed by C symbol from nm.
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6722 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6724   $as_echo_n "(cached) " >&6
6725 else
6726
6727 # These are sane defaults that work on at least a few old systems.
6728 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6729
6730 # Character class describing NM global symbol codes.
6731 symcode='[BCDEGRST]'
6732
6733 # Regexp to match symbols that can be accessed directly from C.
6734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6735
6736 # Define system-specific variables.
6737 case $host_os in
6738 aix*)
6739   symcode='[BCDT]'
6740   ;;
6741 cygwin* | mingw* | pw32* | cegcc*)
6742   symcode='[ABCDGISTW]'
6743   ;;
6744 hpux*)
6745   if test "$host_cpu" = ia64; then
6746     symcode='[ABCDEGRST]'
6747   fi
6748   ;;
6749 irix* | nonstopux*)
6750   symcode='[BCDEGRST]'
6751   ;;
6752 osf*)
6753   symcode='[BCDEGQRST]'
6754   ;;
6755 solaris*)
6756   symcode='[BDRT]'
6757   ;;
6758 sco3.2v5*)
6759   symcode='[DT]'
6760   ;;
6761 sysv4.2uw2*)
6762   symcode='[DT]'
6763   ;;
6764 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6765   symcode='[ABDT]'
6766   ;;
6767 sysv4)
6768   symcode='[DFNSTU]'
6769   ;;
6770 esac
6771
6772 # If we're using GNU nm, then use its standard symbol codes.
6773 case `$NM -V 2>&1` in
6774 *GNU* | *'with BFD'*)
6775   symcode='[ABCDGIRSTW]' ;;
6776 esac
6777
6778 # Transform an extracted symbol line into a proper C declaration.
6779 # Some systems (esp. on ia64) link data and code symbols differently,
6780 # so use this general approach.
6781 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6782
6783 # Transform an extracted symbol line into symbol name and symbol address
6784 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6785 lt_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'"
6786
6787 # Handle CRLF in mingw tool chain
6788 opt_cr=
6789 case $build_os in
6790 mingw*)
6791   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6792   ;;
6793 esac
6794
6795 # Try without a prefix underscore, then with it.
6796 for ac_symprfx in "" "_"; do
6797
6798   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6799   symxfrm="\\1 $ac_symprfx\\2 \\2"
6800
6801   # Write the raw and C identifiers.
6802   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6803     # Fake it for dumpbin and say T for any non-static function
6804     # and D for any global variable.
6805     # Also find C++ and __fastcall symbols from MSVC++,
6806     # which start with @ or ?.
6807     lt_cv_sys_global_symbol_pipe="$AWK '"\
6808 "     {last_section=section; section=\$ 3};"\
6809 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6810 "     \$ 0!~/External *\|/{next};"\
6811 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6812 "     {if(hide[section]) next};"\
6813 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6814 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6815 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6816 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6817 "     ' prfx=^$ac_symprfx"
6818   else
6819     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6820   fi
6821
6822   # Check to see that the pipe works correctly.
6823   pipe_works=no
6824
6825   rm -f conftest*
6826   cat > conftest.$ac_ext <<_LT_EOF
6827 #ifdef __cplusplus
6828 extern "C" {
6829 #endif
6830 char nm_test_var;
6831 void nm_test_func(void);
6832 void nm_test_func(void){}
6833 #ifdef __cplusplus
6834 }
6835 #endif
6836 int main(){nm_test_var='a';nm_test_func();return(0);}
6837 _LT_EOF
6838
6839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840   (eval $ac_compile) 2>&5
6841   ac_status=$?
6842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843   test $ac_status = 0; }; then
6844     # Now try to grab the symbols.
6845     nlist=conftest.nm
6846     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6847   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6848   ac_status=$?
6849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6850   test $ac_status = 0; } && test -s "$nlist"; then
6851       # Try sorting and uniquifying the output.
6852       if sort "$nlist" | uniq > "$nlist"T; then
6853         mv -f "$nlist"T "$nlist"
6854       else
6855         rm -f "$nlist"T
6856       fi
6857
6858       # Make sure that we snagged all the symbols we need.
6859       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6860         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6861           cat <<_LT_EOF > conftest.$ac_ext
6862 #ifdef __cplusplus
6863 extern "C" {
6864 #endif
6865
6866 _LT_EOF
6867           # Now generate the symbol file.
6868           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6869
6870           cat <<_LT_EOF >> conftest.$ac_ext
6871
6872 /* The mapping between symbol names and symbols.  */
6873 const struct {
6874   const char *name;
6875   void       *address;
6876 }
6877 lt__PROGRAM__LTX_preloaded_symbols[] =
6878 {
6879   { "@PROGRAM@", (void *) 0 },
6880 _LT_EOF
6881           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6882           cat <<\_LT_EOF >> conftest.$ac_ext
6883   {0, (void *) 0}
6884 };
6885
6886 /* This works around a problem in FreeBSD linker */
6887 #ifdef FREEBSD_WORKAROUND
6888 static const void *lt_preloaded_setup() {
6889   return lt__PROGRAM__LTX_preloaded_symbols;
6890 }
6891 #endif
6892
6893 #ifdef __cplusplus
6894 }
6895 #endif
6896 _LT_EOF
6897           # Now try linking the two files.
6898           mv conftest.$ac_objext conftstm.$ac_objext
6899           lt_save_LIBS="$LIBS"
6900           lt_save_CFLAGS="$CFLAGS"
6901           LIBS="conftstm.$ac_objext"
6902           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6903           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6904   (eval $ac_link) 2>&5
6905   ac_status=$?
6906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6908             pipe_works=yes
6909           fi
6910           LIBS="$lt_save_LIBS"
6911           CFLAGS="$lt_save_CFLAGS"
6912         else
6913           echo "cannot find nm_test_func in $nlist" >&5
6914         fi
6915       else
6916         echo "cannot find nm_test_var in $nlist" >&5
6917       fi
6918     else
6919       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6920     fi
6921   else
6922     echo "$progname: failed program was:" >&5
6923     cat conftest.$ac_ext >&5
6924   fi
6925   rm -rf conftest* conftst*
6926
6927   # Do not use the global_symbol_pipe unless it works.
6928   if test "$pipe_works" = yes; then
6929     break
6930   else
6931     lt_cv_sys_global_symbol_pipe=
6932   fi
6933 done
6934
6935 fi
6936
6937 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6938   lt_cv_sys_global_symbol_to_cdecl=
6939 fi
6940 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6942 $as_echo "failed" >&6; }
6943 else
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6945 $as_echo "ok" >&6; }
6946 fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 # Check whether --enable-libtool-lock was given.
6970 if test "${enable_libtool_lock+set}" = set; then :
6971   enableval=$enable_libtool_lock;
6972 fi
6973
6974 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6975
6976 # Some flags need to be propagated to the compiler or linker for good
6977 # libtool support.
6978 case $host in
6979 ia64-*-hpux*)
6980   # Find out which ABI we are using.
6981   echo 'int i;' > conftest.$ac_ext
6982   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6983   (eval $ac_compile) 2>&5
6984   ac_status=$?
6985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986   test $ac_status = 0; }; then
6987     case `/usr/bin/file conftest.$ac_objext` in
6988       *ELF-32*)
6989         HPUX_IA64_MODE="32"
6990         ;;
6991       *ELF-64*)
6992         HPUX_IA64_MODE="64"
6993         ;;
6994     esac
6995   fi
6996   rm -rf conftest*
6997   ;;
6998 *-*-irix6*)
6999   # Find out which ABI we are using.
7000   echo '#line 7000 "configure"' > conftest.$ac_ext
7001   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002   (eval $ac_compile) 2>&5
7003   ac_status=$?
7004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005   test $ac_status = 0; }; then
7006     if test "$lt_cv_prog_gnu_ld" = yes; then
7007       case `/usr/bin/file conftest.$ac_objext` in
7008         *32-bit*)
7009           LD="${LD-ld} -melf32bsmip"
7010           ;;
7011         *N32*)
7012           LD="${LD-ld} -melf32bmipn32"
7013           ;;
7014         *64-bit*)
7015           LD="${LD-ld} -melf64bmip"
7016         ;;
7017       esac
7018     else
7019       case `/usr/bin/file conftest.$ac_objext` in
7020         *32-bit*)
7021           LD="${LD-ld} -32"
7022           ;;
7023         *N32*)
7024           LD="${LD-ld} -n32"
7025           ;;
7026         *64-bit*)
7027           LD="${LD-ld} -64"
7028           ;;
7029       esac
7030     fi
7031   fi
7032   rm -rf conftest*
7033   ;;
7034
7035 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7036 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7037   # Find out which ABI we are using.
7038   echo 'int i;' > conftest.$ac_ext
7039   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7040   (eval $ac_compile) 2>&5
7041   ac_status=$?
7042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043   test $ac_status = 0; }; then
7044     case `/usr/bin/file conftest.o` in
7045       *32-bit*)
7046         case $host in
7047           x86_64-*kfreebsd*-gnu)
7048             LD="${LD-ld} -m elf_i386_fbsd"
7049             ;;
7050           x86_64-*linux*)
7051             LD="${LD-ld} -m elf_i386"
7052             ;;
7053           ppc64-*linux*|powerpc64-*linux*)
7054             LD="${LD-ld} -m elf32ppclinux"
7055             ;;
7056           s390x-*linux*)
7057             LD="${LD-ld} -m elf_s390"
7058             ;;
7059           sparc64-*linux*)
7060             LD="${LD-ld} -m elf32_sparc"
7061             ;;
7062         esac
7063         ;;
7064       *64-bit*)
7065         case $host in
7066           x86_64-*kfreebsd*-gnu)
7067             LD="${LD-ld} -m elf_x86_64_fbsd"
7068             ;;
7069           x86_64-*linux*)
7070             LD="${LD-ld} -m elf_x86_64"
7071             ;;
7072           ppc*-*linux*|powerpc*-*linux*)
7073             LD="${LD-ld} -m elf64ppc"
7074             ;;
7075           s390*-*linux*|s390*-*tpf*)
7076             LD="${LD-ld} -m elf64_s390"
7077             ;;
7078           sparc*-*linux*)
7079             LD="${LD-ld} -m elf64_sparc"
7080             ;;
7081         esac
7082         ;;
7083     esac
7084   fi
7085   rm -rf conftest*
7086   ;;
7087
7088 *-*-sco3.2v5*)
7089   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7090   SAVE_CFLAGS="$CFLAGS"
7091   CFLAGS="$CFLAGS -belf"
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7093 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7094 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7095   $as_echo_n "(cached) " >&6
7096 else
7097   ac_ext=c
7098 ac_cpp='$CPP $CPPFLAGS'
7099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7102
7103      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h.  */
7105
7106 int
7107 main ()
7108 {
7109
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 if ac_fn_c_try_link "$LINENO"; then :
7115   lt_cv_cc_needs_belf=yes
7116 else
7117   lt_cv_cc_needs_belf=no
7118 fi
7119 rm -f core conftest.err conftest.$ac_objext \
7120     conftest$ac_exeext conftest.$ac_ext
7121      ac_ext=c
7122 ac_cpp='$CPP $CPPFLAGS'
7123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126
7127 fi
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7129 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7130   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7131     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7132     CFLAGS="$SAVE_CFLAGS"
7133   fi
7134   ;;
7135 sparc*-*solaris*)
7136   # Find out which ABI we are using.
7137   echo 'int i;' > conftest.$ac_ext
7138   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7139   (eval $ac_compile) 2>&5
7140   ac_status=$?
7141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7142   test $ac_status = 0; }; then
7143     case `/usr/bin/file conftest.o` in
7144     *64-bit*)
7145       case $lt_cv_prog_gnu_ld in
7146       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7147       *)
7148         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7149           LD="${LD-ld} -64"
7150         fi
7151         ;;
7152       esac
7153       ;;
7154     esac
7155   fi
7156   rm -rf conftest*
7157   ;;
7158 esac
7159
7160 need_locks="$enable_libtool_lock"
7161
7162
7163   case $host_os in
7164     rhapsody* | darwin*)
7165     if test -n "$ac_tool_prefix"; then
7166   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   if test -n "$DSYMUTIL"; then
7174   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181     for ac_exec_ext in '' $ac_executable_extensions; do
7182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188   done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7194 if test -n "$DSYMUTIL"; then
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7196 $as_echo "$DSYMUTIL" >&6; }
7197 else
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202
7203 fi
7204 if test -z "$ac_cv_prog_DSYMUTIL"; then
7205   ac_ct_DSYMUTIL=$DSYMUTIL
7206   # Extract the first word of "dsymutil", so it can be a program name with args.
7207 set dummy dsymutil; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$ac_ct_DSYMUTIL"; then
7214   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7234 if test -n "$ac_ct_DSYMUTIL"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7236 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242   if test "x$ac_ct_DSYMUTIL" = x; then
7243     DSYMUTIL=":"
7244   else
7245     case $cross_compiling:$ac_tool_warned in
7246 yes:)
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7250 esac
7251     DSYMUTIL=$ac_ct_DSYMUTIL
7252   fi
7253 else
7254   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7255 fi
7256
7257     if test -n "$ac_tool_prefix"; then
7258   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   if test -n "$NMEDIT"; then
7266   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273     for ac_exec_ext in '' $ac_executable_extensions; do
7274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280   done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 NMEDIT=$ac_cv_prog_NMEDIT
7286 if test -n "$NMEDIT"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7288 $as_echo "$NMEDIT" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294
7295 fi
7296 if test -z "$ac_cv_prog_NMEDIT"; then
7297   ac_ct_NMEDIT=$NMEDIT
7298   # Extract the first word of "nmedit", so it can be a program name with args.
7299 set dummy nmedit; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   if test -n "$ac_ct_NMEDIT"; then
7306   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7326 if test -n "$ac_ct_NMEDIT"; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7328 $as_echo "$ac_ct_NMEDIT" >&6; }
7329 else
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334   if test "x$ac_ct_NMEDIT" = x; then
7335     NMEDIT=":"
7336   else
7337     case $cross_compiling:$ac_tool_warned in
7338 yes:)
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7342 esac
7343     NMEDIT=$ac_ct_NMEDIT
7344   fi
7345 else
7346   NMEDIT="$ac_cv_prog_NMEDIT"
7347 fi
7348
7349     if test -n "$ac_tool_prefix"; then
7350   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_LIPO+set}" = set; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$LIPO"; then
7358   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 LIPO=$ac_cv_prog_LIPO
7378 if test -n "$LIPO"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7380 $as_echo "$LIPO" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386
7387 fi
7388 if test -z "$ac_cv_prog_LIPO"; then
7389   ac_ct_LIPO=$LIPO
7390   # Extract the first word of "lipo", so it can be a program name with args.
7391 set dummy lipo; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test -n "$ac_ct_LIPO"; then
7398   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_prog_ac_ct_LIPO="lipo"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7418 if test -n "$ac_ct_LIPO"; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7420 $as_echo "$ac_ct_LIPO" >&6; }
7421 else
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426   if test "x$ac_ct_LIPO" = x; then
7427     LIPO=":"
7428   else
7429     case $cross_compiling:$ac_tool_warned in
7430 yes:)
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7434 esac
7435     LIPO=$ac_ct_LIPO
7436   fi
7437 else
7438   LIPO="$ac_cv_prog_LIPO"
7439 fi
7440
7441     if test -n "$ac_tool_prefix"; then
7442   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   if test -n "$OTOOL"; then
7450   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457     for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464   done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 OTOOL=$ac_cv_prog_OTOOL
7470 if test -n "$OTOOL"; then
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7472 $as_echo "$OTOOL" >&6; }
7473 else
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478
7479 fi
7480 if test -z "$ac_cv_prog_OTOOL"; then
7481   ac_ct_OTOOL=$OTOOL
7482   # Extract the first word of "otool", so it can be a program name with args.
7483 set dummy otool; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   if test -n "$ac_ct_OTOOL"; then
7490   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495   IFS=$as_save_IFS
7496   test -z "$as_dir" && as_dir=.
7497     for ac_exec_ext in '' $ac_executable_extensions; do
7498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499     ac_cv_prog_ac_ct_OTOOL="otool"
7500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501     break 2
7502   fi
7503 done
7504   done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7510 if test -n "$ac_ct_OTOOL"; then
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7512 $as_echo "$ac_ct_OTOOL" >&6; }
7513 else
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518   if test "x$ac_ct_OTOOL" = x; then
7519     OTOOL=":"
7520   else
7521     case $cross_compiling:$ac_tool_warned in
7522 yes:)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7526 esac
7527     OTOOL=$ac_ct_OTOOL
7528   fi
7529 else
7530   OTOOL="$ac_cv_prog_OTOOL"
7531 fi
7532
7533     if test -n "$ac_tool_prefix"; then
7534   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7535 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$OTOOL64"; then
7542   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 OTOOL64=$ac_cv_prog_OTOOL64
7562 if test -n "$OTOOL64"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7564 $as_echo "$OTOOL64" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570
7571 fi
7572 if test -z "$ac_cv_prog_OTOOL64"; then
7573   ac_ct_OTOOL64=$OTOOL64
7574   # Extract the first word of "otool64", so it can be a program name with args.
7575 set dummy otool64; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   if test -n "$ac_ct_OTOOL64"; then
7582   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_prog_ac_ct_OTOOL64="otool64"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7602 if test -n "$ac_ct_OTOOL64"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7604 $as_echo "$ac_ct_OTOOL64" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610   if test "x$ac_ct_OTOOL64" = x; then
7611     OTOOL64=":"
7612   else
7613     case $cross_compiling:$ac_tool_warned in
7614 yes:)
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617 ac_tool_warned=yes ;;
7618 esac
7619     OTOOL64=$ac_ct_OTOOL64
7620   fi
7621 else
7622   OTOOL64="$ac_cv_prog_OTOOL64"
7623 fi
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7652 $as_echo_n "checking for -single_module linker flag... " >&6; }
7653 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656   lt_cv_apple_cc_single_mod=no
7657       if test -z "${LT_MULTI_MODULE}"; then
7658         # By default we will add the -single_module flag. You can override
7659         # by either setting the environment variable LT_MULTI_MODULE
7660         # non-empty at configure time, or by adding -multi_module to the
7661         # link flags.
7662         rm -rf libconftest.dylib*
7663         echo "int foo(void){return 1;}" > conftest.c
7664         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7665 -dynamiclib -Wl,-single_module conftest.c" >&5
7666         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7667           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7668         _lt_result=$?
7669         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7670           lt_cv_apple_cc_single_mod=yes
7671         else
7672           cat conftest.err >&5
7673         fi
7674         rm -rf libconftest.dylib*
7675         rm -f conftest.*
7676       fi
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7679 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7681 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7682 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   lt_cv_ld_exported_symbols_list=no
7686       save_LDFLAGS=$LDFLAGS
7687       echo "_main" > conftest.sym
7688       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h.  */
7691
7692 int
7693 main ()
7694 {
7695
7696   ;
7697   return 0;
7698 }
7699 _ACEOF
7700 if ac_fn_c_try_link "$LINENO"; then :
7701   lt_cv_ld_exported_symbols_list=yes
7702 else
7703   lt_cv_ld_exported_symbols_list=no
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext \
7706     conftest$ac_exeext conftest.$ac_ext
7707         LDFLAGS="$save_LDFLAGS"
7708
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7711 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7712     case $host_os in
7713     rhapsody* | darwin1.[012])
7714       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7715     darwin1.*)
7716       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7717     darwin*) # darwin 5.x on
7718       # if running on 10.5 or later, the deployment target defaults
7719       # to the OS version, if on x86, and 10.4, the deployment
7720       # target defaults to 10.4. Don't you love it?
7721       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7722         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7723           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7724         10.[012]*)
7725           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7726         10.*)
7727           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7728       esac
7729     ;;
7730   esac
7731     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7732       _lt_dar_single_mod='$single_module'
7733     fi
7734     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7735       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7736     else
7737       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7738     fi
7739     if test "$DSYMUTIL" != ":"; then
7740       _lt_dsymutil='~$DSYMUTIL $lib || :'
7741     else
7742       _lt_dsymutil=
7743     fi
7744     ;;
7745   esac
7746
7747 for ac_header in dlfcn.h
7748 do :
7749   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7750 "
7751 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7752   cat >>confdefs.h <<_ACEOF
7753 #define HAVE_DLFCN_H 1
7754 _ACEOF
7755
7756 fi
7757
7758 done
7759
7760
7761
7762 # Set options
7763
7764
7765
7766         enable_dlopen=no
7767
7768
7769   enable_win32_dll=no
7770
7771
7772             # Check whether --enable-shared was given.
7773 if test "${enable_shared+set}" = set; then :
7774   enableval=$enable_shared; p=${PACKAGE-default}
7775     case $enableval in
7776     yes) enable_shared=yes ;;
7777     no) enable_shared=no ;;
7778     *)
7779       enable_shared=no
7780       # Look at the argument we got.  We use all the common list separators.
7781       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7782       for pkg in $enableval; do
7783         IFS="$lt_save_ifs"
7784         if test "X$pkg" = "X$p"; then
7785           enable_shared=yes
7786         fi
7787       done
7788       IFS="$lt_save_ifs"
7789       ;;
7790     esac
7791 else
7792   enable_shared=yes
7793 fi
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803   # Check whether --enable-static was given.
7804 if test "${enable_static+set}" = set; then :
7805   enableval=$enable_static; p=${PACKAGE-default}
7806     case $enableval in
7807     yes) enable_static=yes ;;
7808     no) enable_static=no ;;
7809     *)
7810      enable_static=no
7811       # Look at the argument we got.  We use all the common list separators.
7812       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7813       for pkg in $enableval; do
7814         IFS="$lt_save_ifs"
7815         if test "X$pkg" = "X$p"; then
7816           enable_static=yes
7817         fi
7818       done
7819       IFS="$lt_save_ifs"
7820       ;;
7821     esac
7822 else
7823   enable_static=yes
7824 fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835 # Check whether --with-pic was given.
7836 if test "${with_pic+set}" = set; then :
7837   withval=$with_pic; pic_mode="$withval"
7838 else
7839   pic_mode=default
7840 fi
7841
7842
7843 test -z "$pic_mode" && pic_mode=default
7844
7845
7846
7847
7848
7849
7850
7851   # Check whether --enable-fast-install was given.
7852 if test "${enable_fast_install+set}" = set; then :
7853   enableval=$enable_fast_install; p=${PACKAGE-default}
7854     case $enableval in
7855     yes) enable_fast_install=yes ;;
7856     no) enable_fast_install=no ;;
7857     *)
7858       enable_fast_install=no
7859       # Look at the argument we got.  We use all the common list separators.
7860       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7861       for pkg in $enableval; do
7862         IFS="$lt_save_ifs"
7863         if test "X$pkg" = "X$p"; then
7864           enable_fast_install=yes
7865         fi
7866       done
7867       IFS="$lt_save_ifs"
7868       ;;
7869     esac
7870 else
7871   enable_fast_install=yes
7872 fi
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884 # This can be used to rebuild libtool when needed
7885 LIBTOOL_DEPS="$ltmain"
7886
7887 # Always use our own libtool.
7888 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914 test -z "$LN_S" && LN_S="ln -s"
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929 if test -n "${ZSH_VERSION+set}" ; then
7930    setopt NO_GLOB_SUBST
7931 fi
7932
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7934 $as_echo_n "checking for objdir... " >&6; }
7935 if test "${lt_cv_objdir+set}" = set; then :
7936   $as_echo_n "(cached) " >&6
7937 else
7938   rm -f .libs 2>/dev/null
7939 mkdir .libs 2>/dev/null
7940 if test -d .libs; then
7941   lt_cv_objdir=.libs
7942 else
7943   # MS-DOS does not allow filenames that begin with a dot.
7944   lt_cv_objdir=_libs
7945 fi
7946 rmdir .libs 2>/dev/null
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7949 $as_echo "$lt_cv_objdir" >&6; }
7950 objdir=$lt_cv_objdir
7951
7952
7953
7954
7955
7956 cat >>confdefs.h <<_ACEOF
7957 #define LT_OBJDIR "$lt_cv_objdir/"
7958 _ACEOF
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976 case $host_os in
7977 aix3*)
7978   # AIX sometimes has problems with the GCC collect2 program.  For some
7979   # reason, if we set the COLLECT_NAMES environment variable, the problems
7980   # vanish in a puff of smoke.
7981   if test "X${COLLECT_NAMES+set}" != Xset; then
7982     COLLECT_NAMES=
7983     export COLLECT_NAMES
7984   fi
7985   ;;
7986 esac
7987
7988 # Sed substitution that helps us do robust quoting.  It backslashifies
7989 # metacharacters that are still active within double-quoted strings.
7990 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7991
7992 # Same as above, but do not quote variable references.
7993 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7994
7995 # Sed substitution to delay expansion of an escaped shell variable in a
7996 # double_quote_subst'ed string.
7997 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7998
7999 # Sed substitution to delay expansion of an escaped single quote.
8000 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8001
8002 # Sed substitution to avoid accidental globbing in evaled expressions
8003 no_glob_subst='s/\*/\\\*/g'
8004
8005 # Global variables:
8006 ofile=libtool
8007 can_build_shared=yes
8008
8009 # All known linkers require a `.a' archive for static linking (except MSVC,
8010 # which needs '.lib').
8011 libext=a
8012
8013 with_gnu_ld="$lt_cv_prog_gnu_ld"
8014
8015 old_CC="$CC"
8016 old_CFLAGS="$CFLAGS"
8017
8018 # Set sane defaults for various variables
8019 test -z "$CC" && CC=cc
8020 test -z "$LTCC" && LTCC=$CC
8021 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8022 test -z "$LD" && LD=ld
8023 test -z "$ac_objext" && ac_objext=o
8024
8025 for cc_temp in $compiler""; do
8026   case $cc_temp in
8027     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8028     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8029     \-*) ;;
8030     *) break;;
8031   esac
8032 done
8033 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8034
8035
8036 # Only perform the check for file, if the check method requires it
8037 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8038 case $deplibs_check_method in
8039 file_magic*)
8040   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8042 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   case $MAGIC_CMD in
8047 [\\/*] |  ?:[\\/]*)
8048   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8049   ;;
8050 *)
8051   lt_save_MAGIC_CMD="$MAGIC_CMD"
8052   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8053   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8054   for ac_dir in $ac_dummy; do
8055     IFS="$lt_save_ifs"
8056     test -z "$ac_dir" && ac_dir=.
8057     if test -f $ac_dir/${ac_tool_prefix}file; then
8058       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8059       if test -n "$file_magic_test_file"; then
8060         case $deplibs_check_method in
8061         "file_magic "*)
8062           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8063           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8064           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8065             $EGREP "$file_magic_regex" > /dev/null; then
8066             :
8067           else
8068             cat <<_LT_EOF 1>&2
8069
8070 *** Warning: the command libtool uses to detect shared libraries,
8071 *** $file_magic_cmd, produces output that libtool cannot recognize.
8072 *** The result is that libtool may fail to recognize shared libraries
8073 *** as such.  This will affect the creation of libtool libraries that
8074 *** depend on shared libraries, but programs linked with such libtool
8075 *** libraries will work regardless of this problem.  Nevertheless, you
8076 *** may want to report the problem to your system manager and/or to
8077 *** bug-libtool@gnu.org
8078
8079 _LT_EOF
8080           fi ;;
8081         esac
8082       fi
8083       break
8084     fi
8085   done
8086   IFS="$lt_save_ifs"
8087   MAGIC_CMD="$lt_save_MAGIC_CMD"
8088   ;;
8089 esac
8090 fi
8091
8092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093 if test -n "$MAGIC_CMD"; then
8094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8095 $as_echo "$MAGIC_CMD" >&6; }
8096 else
8097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101
8102
8103
8104
8105 if test -z "$lt_cv_path_MAGIC_CMD"; then
8106   if test -n "$ac_tool_prefix"; then
8107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8108 $as_echo_n "checking for file... " >&6; }
8109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8110   $as_echo_n "(cached) " >&6
8111 else
8112   case $MAGIC_CMD in
8113 [\\/*] |  ?:[\\/]*)
8114   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8115   ;;
8116 *)
8117   lt_save_MAGIC_CMD="$MAGIC_CMD"
8118   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8119   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8120   for ac_dir in $ac_dummy; do
8121     IFS="$lt_save_ifs"
8122     test -z "$ac_dir" && ac_dir=.
8123     if test -f $ac_dir/file; then
8124       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8125       if test -n "$file_magic_test_file"; then
8126         case $deplibs_check_method in
8127         "file_magic "*)
8128           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8129           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8130           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8131             $EGREP "$file_magic_regex" > /dev/null; then
8132             :
8133           else
8134             cat <<_LT_EOF 1>&2
8135
8136 *** Warning: the command libtool uses to detect shared libraries,
8137 *** $file_magic_cmd, produces output that libtool cannot recognize.
8138 *** The result is that libtool may fail to recognize shared libraries
8139 *** as such.  This will affect the creation of libtool libraries that
8140 *** depend on shared libraries, but programs linked with such libtool
8141 *** libraries will work regardless of this problem.  Nevertheless, you
8142 *** may want to report the problem to your system manager and/or to
8143 *** bug-libtool@gnu.org
8144
8145 _LT_EOF
8146           fi ;;
8147         esac
8148       fi
8149       break
8150     fi
8151   done
8152   IFS="$lt_save_ifs"
8153   MAGIC_CMD="$lt_save_MAGIC_CMD"
8154   ;;
8155 esac
8156 fi
8157
8158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8159 if test -n "$MAGIC_CMD"; then
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8161 $as_echo "$MAGIC_CMD" >&6; }
8162 else
8163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168   else
8169     MAGIC_CMD=:
8170   fi
8171 fi
8172
8173   fi
8174   ;;
8175 esac
8176
8177 # Use C for the default configuration in the libtool script
8178
8179 lt_save_CC="$CC"
8180 ac_ext=c
8181 ac_cpp='$CPP $CPPFLAGS'
8182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8185
8186
8187 # Source file extension for C test sources.
8188 ac_ext=c
8189
8190 # Object file extension for compiled C test sources.
8191 objext=o
8192 objext=$objext
8193
8194 # Code to be used in simple compile tests
8195 lt_simple_compile_test_code="int some_variable = 0;"
8196
8197 # Code to be used in simple link tests
8198 lt_simple_link_test_code='int main(){return(0);}'
8199
8200
8201
8202
8203
8204
8205
8206 # If no C compiler was specified, use CC.
8207 LTCC=${LTCC-"$CC"}
8208
8209 # If no C compiler flags were specified, use CFLAGS.
8210 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8211
8212 # Allow CC to be a program name with arguments.
8213 compiler=$CC
8214
8215 # Save the default compiler, since it gets overwritten when the other
8216 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8217 compiler_DEFAULT=$CC
8218
8219 # save warnings/boilerplate of simple test code
8220 ac_outfile=conftest.$ac_objext
8221 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8222 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8223 _lt_compiler_boilerplate=`cat conftest.err`
8224 $RM conftest*
8225
8226 ac_outfile=conftest.$ac_objext
8227 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8228 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8229 _lt_linker_boilerplate=`cat conftest.err`
8230 $RM -r conftest*
8231
8232
8233 if test -n "$compiler"; then
8234
8235 lt_prog_compiler_no_builtin_flag=
8236
8237 if test "$GCC" = yes; then
8238   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8239
8240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8241 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8242 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8243   $as_echo_n "(cached) " >&6
8244 else
8245   lt_cv_prog_compiler_rtti_exceptions=no
8246    ac_outfile=conftest.$ac_objext
8247    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248    lt_compiler_flag="-fno-rtti -fno-exceptions"
8249    # Insert the option either (1) after the last *FLAGS variable, or
8250    # (2) before a word containing "conftest.", or (3) at the end.
8251    # Note that $ac_compile itself does not contain backslashes and begins
8252    # with a dollar sign (not a hyphen), so the echo should work correctly.
8253    # The option is referenced via a variable to avoid confusing sed.
8254    lt_compile=`echo "$ac_compile" | $SED \
8255    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257    -e 's:$: $lt_compiler_flag:'`
8258    (eval echo "\"\$as_me:8258: $lt_compile\"" >&5)
8259    (eval "$lt_compile" 2>conftest.err)
8260    ac_status=$?
8261    cat conftest.err >&5
8262    echo "$as_me:8262: \$? = $ac_status" >&5
8263    if (exit $ac_status) && test -s "$ac_outfile"; then
8264      # The compiler can only warn and ignore the option if not recognized
8265      # So say no if there are warnings other than the usual output.
8266      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8267      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8269        lt_cv_prog_compiler_rtti_exceptions=yes
8270      fi
8271    fi
8272    $RM conftest*
8273
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8276 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8277
8278 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8279     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8280 else
8281     :
8282 fi
8283
8284 fi
8285
8286
8287
8288
8289
8290
8291   lt_prog_compiler_wl=
8292 lt_prog_compiler_pic=
8293 lt_prog_compiler_static=
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8296 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8297
8298   if test "$GCC" = yes; then
8299     lt_prog_compiler_wl='-Wl,'
8300     lt_prog_compiler_static='-static'
8301
8302     case $host_os in
8303       aix*)
8304       # All AIX code is PIC.
8305       if test "$host_cpu" = ia64; then
8306         # AIX 5 now supports IA64 processor
8307         lt_prog_compiler_static='-Bstatic'
8308       fi
8309       ;;
8310
8311     amigaos*)
8312       case $host_cpu in
8313       powerpc)
8314             # see comment about AmigaOS4 .so support
8315             lt_prog_compiler_pic='-fPIC'
8316         ;;
8317       m68k)
8318             # FIXME: we need at least 68020 code to build shared libraries, but
8319             # adding the `-m68020' flag to GCC prevents building anything better,
8320             # like `-m68040'.
8321             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8322         ;;
8323       esac
8324       ;;
8325
8326     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8327       # PIC is the default for these OSes.
8328       ;;
8329
8330     mingw* | cygwin* | pw32* | os2* | cegcc*)
8331       # This hack is so that the source file can tell whether it is being
8332       # built for inclusion in a dll (and should export symbols for example).
8333       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8334       # (--disable-auto-import) libraries
8335       lt_prog_compiler_pic='-DDLL_EXPORT'
8336       ;;
8337
8338     darwin* | rhapsody*)
8339       # PIC is the default on this platform
8340       # Common symbols not allowed in MH_DYLIB files
8341       lt_prog_compiler_pic='-fno-common'
8342       ;;
8343
8344     hpux*)
8345       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8346       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8347       # sets the default TLS model and affects inlining.
8348       case $host_cpu in
8349       hppa*64*)
8350         # +Z the default
8351         ;;
8352       *)
8353         lt_prog_compiler_pic='-fPIC'
8354         ;;
8355       esac
8356       ;;
8357
8358     interix[3-9]*)
8359       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8360       # Instead, we relocate shared libraries at runtime.
8361       ;;
8362
8363     msdosdjgpp*)
8364       # Just because we use GCC doesn't mean we suddenly get shared libraries
8365       # on systems that don't support them.
8366       lt_prog_compiler_can_build_shared=no
8367       enable_shared=no
8368       ;;
8369
8370     *nto* | *qnx*)
8371       # QNX uses GNU C++, but need to define -shared option too, otherwise
8372       # it will coredump.
8373       lt_prog_compiler_pic='-fPIC -shared'
8374       ;;
8375
8376     sysv4*MP*)
8377       if test -d /usr/nec; then
8378         lt_prog_compiler_pic=-Kconform_pic
8379       fi
8380       ;;
8381
8382     *)
8383       lt_prog_compiler_pic='-fPIC'
8384       ;;
8385     esac
8386   else
8387     # PORTME Check for flag to pass linker flags through the system compiler.
8388     case $host_os in
8389     aix*)
8390       lt_prog_compiler_wl='-Wl,'
8391       if test "$host_cpu" = ia64; then
8392         # AIX 5 now supports IA64 processor
8393         lt_prog_compiler_static='-Bstatic'
8394       else
8395         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8396       fi
8397       ;;
8398
8399     mingw* | cygwin* | pw32* | os2* | cegcc*)
8400       # This hack is so that the source file can tell whether it is being
8401       # built for inclusion in a dll (and should export symbols for example).
8402       lt_prog_compiler_pic='-DDLL_EXPORT'
8403       ;;
8404
8405     hpux9* | hpux10* | hpux11*)
8406       lt_prog_compiler_wl='-Wl,'
8407       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8408       # not for PA HP-UX.
8409       case $host_cpu in
8410       hppa*64*|ia64*)
8411         # +Z the default
8412         ;;
8413       *)
8414         lt_prog_compiler_pic='+Z'
8415         ;;
8416       esac
8417       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8418       lt_prog_compiler_static='${wl}-a ${wl}archive'
8419       ;;
8420
8421     irix5* | irix6* | nonstopux*)
8422       lt_prog_compiler_wl='-Wl,'
8423       # PIC (with -KPIC) is the default.
8424       lt_prog_compiler_static='-non_shared'
8425       ;;
8426
8427     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8428       case $cc_basename in
8429       # old Intel for x86_64 which still supported -KPIC.
8430       ecc*)
8431         lt_prog_compiler_wl='-Wl,'
8432         lt_prog_compiler_pic='-KPIC'
8433         lt_prog_compiler_static='-static'
8434         ;;
8435       # icc used to be incompatible with GCC.
8436       # ICC 10 doesn't accept -KPIC any more.
8437       icc* | ifort*)
8438         lt_prog_compiler_wl='-Wl,'
8439         lt_prog_compiler_pic='-fPIC'
8440         lt_prog_compiler_static='-static'
8441         ;;
8442       # Lahey Fortran 8.1.
8443       lf95*)
8444         lt_prog_compiler_wl='-Wl,'
8445         lt_prog_compiler_pic='--shared'
8446         lt_prog_compiler_static='--static'
8447         ;;
8448       pgcc* | pgf77* | pgf90* | pgf95*)
8449         # Portland Group compilers (*not* the Pentium gcc compiler,
8450         # which looks to be a dead project)
8451         lt_prog_compiler_wl='-Wl,'
8452         lt_prog_compiler_pic='-fpic'
8453         lt_prog_compiler_static='-Bstatic'
8454         ;;
8455       ccc*)
8456         lt_prog_compiler_wl='-Wl,'
8457         # All Alpha code is PIC.
8458         lt_prog_compiler_static='-non_shared'
8459         ;;
8460       xl*)
8461         # IBM XL C 8.0/Fortran 10.1 on PPC
8462         lt_prog_compiler_wl='-Wl,'
8463         lt_prog_compiler_pic='-qpic'
8464         lt_prog_compiler_static='-qstaticlink'
8465         ;;
8466       *)
8467         case `$CC -V 2>&1 | sed 5q` in
8468         *Sun\ C*)
8469           # Sun C 5.9
8470           lt_prog_compiler_pic='-KPIC'
8471           lt_prog_compiler_static='-Bstatic'
8472           lt_prog_compiler_wl='-Wl,'
8473           ;;
8474         *Sun\ F*)
8475           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8476           lt_prog_compiler_pic='-KPIC'
8477           lt_prog_compiler_static='-Bstatic'
8478           lt_prog_compiler_wl=''
8479           ;;
8480         esac
8481         ;;
8482       esac
8483       ;;
8484
8485     newsos6)
8486       lt_prog_compiler_pic='-KPIC'
8487       lt_prog_compiler_static='-Bstatic'
8488       ;;
8489
8490     *nto* | *qnx*)
8491       # QNX uses GNU C++, but need to define -shared option too, otherwise
8492       # it will coredump.
8493       lt_prog_compiler_pic='-fPIC -shared'
8494       ;;
8495
8496     osf3* | osf4* | osf5*)
8497       lt_prog_compiler_wl='-Wl,'
8498       # All OSF/1 code is PIC.
8499       lt_prog_compiler_static='-non_shared'
8500       ;;
8501
8502     rdos*)
8503       lt_prog_compiler_static='-non_shared'
8504       ;;
8505
8506     solaris*)
8507       lt_prog_compiler_pic='-KPIC'
8508       lt_prog_compiler_static='-Bstatic'
8509       case $cc_basename in
8510       f77* | f90* | f95*)
8511         lt_prog_compiler_wl='-Qoption ld ';;
8512       *)
8513         lt_prog_compiler_wl='-Wl,';;
8514       esac
8515       ;;
8516
8517     sunos4*)
8518       lt_prog_compiler_wl='-Qoption ld '
8519       lt_prog_compiler_pic='-PIC'
8520       lt_prog_compiler_static='-Bstatic'
8521       ;;
8522
8523     sysv4 | sysv4.2uw2* | sysv4.3*)
8524       lt_prog_compiler_wl='-Wl,'
8525       lt_prog_compiler_pic='-KPIC'
8526       lt_prog_compiler_static='-Bstatic'
8527       ;;
8528
8529     sysv4*MP*)
8530       if test -d /usr/nec ;then
8531         lt_prog_compiler_pic='-Kconform_pic'
8532         lt_prog_compiler_static='-Bstatic'
8533       fi
8534       ;;
8535
8536     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8537       lt_prog_compiler_wl='-Wl,'
8538       lt_prog_compiler_pic='-KPIC'
8539       lt_prog_compiler_static='-Bstatic'
8540       ;;
8541
8542     unicos*)
8543       lt_prog_compiler_wl='-Wl,'
8544       lt_prog_compiler_can_build_shared=no
8545       ;;
8546
8547     uts4*)
8548       lt_prog_compiler_pic='-pic'
8549       lt_prog_compiler_static='-Bstatic'
8550       ;;
8551
8552     *)
8553       lt_prog_compiler_can_build_shared=no
8554       ;;
8555     esac
8556   fi
8557
8558 case $host_os in
8559   # For platforms which do not support PIC, -DPIC is meaningless:
8560   *djgpp*)
8561     lt_prog_compiler_pic=
8562     ;;
8563   *)
8564     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8565     ;;
8566 esac
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8568 $as_echo "$lt_prog_compiler_pic" >&6; }
8569
8570
8571
8572
8573
8574
8575 #
8576 # Check to make sure the PIC flag actually works.
8577 #
8578 if test -n "$lt_prog_compiler_pic"; then
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8581 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   lt_cv_prog_compiler_pic_works=no
8585    ac_outfile=conftest.$ac_objext
8586    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8587    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8588    # Insert the option either (1) after the last *FLAGS variable, or
8589    # (2) before a word containing "conftest.", or (3) at the end.
8590    # Note that $ac_compile itself does not contain backslashes and begins
8591    # with a dollar sign (not a hyphen), so the echo should work correctly.
8592    # The option is referenced via a variable to avoid confusing sed.
8593    lt_compile=`echo "$ac_compile" | $SED \
8594    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8595    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8596    -e 's:$: $lt_compiler_flag:'`
8597    (eval echo "\"\$as_me:8597: $lt_compile\"" >&5)
8598    (eval "$lt_compile" 2>conftest.err)
8599    ac_status=$?
8600    cat conftest.err >&5
8601    echo "$as_me:8601: \$? = $ac_status" >&5
8602    if (exit $ac_status) && test -s "$ac_outfile"; then
8603      # The compiler can only warn and ignore the option if not recognized
8604      # So say no if there are warnings other than the usual output.
8605      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8606      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8607      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8608        lt_cv_prog_compiler_pic_works=yes
8609      fi
8610    fi
8611    $RM conftest*
8612
8613 fi
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8616
8617 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8618     case $lt_prog_compiler_pic in
8619      "" | " "*) ;;
8620      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8621      esac
8622 else
8623     lt_prog_compiler_pic=
8624      lt_prog_compiler_can_build_shared=no
8625 fi
8626
8627 fi
8628
8629
8630
8631
8632
8633
8634 #
8635 # Check to make sure the static flag actually works.
8636 #
8637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8639 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8640 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8641   $as_echo_n "(cached) " >&6
8642 else
8643   lt_cv_prog_compiler_static_works=no
8644    save_LDFLAGS="$LDFLAGS"
8645    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8646    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8647    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8648      # The linker can only warn and ignore the option if not recognized
8649      # So say no if there are warnings
8650      if test -s conftest.err; then
8651        # Append any errors to the config.log.
8652        cat conftest.err 1>&5
8653        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8654        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8655        if diff conftest.exp conftest.er2 >/dev/null; then
8656          lt_cv_prog_compiler_static_works=yes
8657        fi
8658      else
8659        lt_cv_prog_compiler_static_works=yes
8660      fi
8661    fi
8662    $RM -r conftest*
8663    LDFLAGS="$save_LDFLAGS"
8664
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8667 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8668
8669 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8670     :
8671 else
8672     lt_prog_compiler_static=
8673 fi
8674
8675
8676
8677
8678
8679
8680
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8683 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   lt_cv_prog_compiler_c_o=no
8687    $RM -r conftest 2>/dev/null
8688    mkdir conftest
8689    cd conftest
8690    mkdir out
8691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8692
8693    lt_compiler_flag="-o out/conftest2.$ac_objext"
8694    # Insert the option either (1) after the last *FLAGS variable, or
8695    # (2) before a word containing "conftest.", or (3) at the end.
8696    # Note that $ac_compile itself does not contain backslashes and begins
8697    # with a dollar sign (not a hyphen), so the echo should work correctly.
8698    lt_compile=`echo "$ac_compile" | $SED \
8699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8701    -e 's:$: $lt_compiler_flag:'`
8702    (eval echo "\"\$as_me:8702: $lt_compile\"" >&5)
8703    (eval "$lt_compile" 2>out/conftest.err)
8704    ac_status=$?
8705    cat out/conftest.err >&5
8706    echo "$as_me:8706: \$? = $ac_status" >&5
8707    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8708    then
8709      # The compiler can only warn and ignore the option if not recognized
8710      # So say no if there are warnings
8711      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8712      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8713      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8714        lt_cv_prog_compiler_c_o=yes
8715      fi
8716    fi
8717    chmod u+w . 2>&5
8718    $RM conftest*
8719    # SGI C++ compiler will create directory out/ii_files/ for
8720    # template instantiation
8721    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8722    $RM out/* && rmdir out
8723    cd ..
8724    $RM -r conftest
8725    $RM conftest*
8726
8727 fi
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8729 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8730
8731
8732
8733
8734
8735
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8738 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8739   $as_echo_n "(cached) " >&6
8740 else
8741   lt_cv_prog_compiler_c_o=no
8742    $RM -r conftest 2>/dev/null
8743    mkdir conftest
8744    cd conftest
8745    mkdir out
8746    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8747
8748    lt_compiler_flag="-o out/conftest2.$ac_objext"
8749    # Insert the option either (1) after the last *FLAGS variable, or
8750    # (2) before a word containing "conftest.", or (3) at the end.
8751    # Note that $ac_compile itself does not contain backslashes and begins
8752    # with a dollar sign (not a hyphen), so the echo should work correctly.
8753    lt_compile=`echo "$ac_compile" | $SED \
8754    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8755    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8756    -e 's:$: $lt_compiler_flag:'`
8757    (eval echo "\"\$as_me:8757: $lt_compile\"" >&5)
8758    (eval "$lt_compile" 2>out/conftest.err)
8759    ac_status=$?
8760    cat out/conftest.err >&5
8761    echo "$as_me:8761: \$? = $ac_status" >&5
8762    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8763    then
8764      # The compiler can only warn and ignore the option if not recognized
8765      # So say no if there are warnings
8766      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8767      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8768      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8769        lt_cv_prog_compiler_c_o=yes
8770      fi
8771    fi
8772    chmod u+w . 2>&5
8773    $RM conftest*
8774    # SGI C++ compiler will create directory out/ii_files/ for
8775    # template instantiation
8776    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8777    $RM out/* && rmdir out
8778    cd ..
8779    $RM -r conftest
8780    $RM conftest*
8781
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8784 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8785
8786
8787
8788
8789 hard_links="nottested"
8790 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8791   # do not overwrite the value of need_locks provided by the user
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8793 $as_echo_n "checking if we can lock with hard links... " >&6; }
8794   hard_links=yes
8795   $RM conftest*
8796   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8797   touch conftest.a
8798   ln conftest.a conftest.b 2>&5 || hard_links=no
8799   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8801 $as_echo "$hard_links" >&6; }
8802   if test "$hard_links" = no; then
8803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8804 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8805     need_locks=warn
8806   fi
8807 else
8808   need_locks=no
8809 fi
8810
8811
8812
8813
8814
8815
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8817 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8818
8819   runpath_var=
8820   allow_undefined_flag=
8821   always_export_symbols=no
8822   archive_cmds=
8823   archive_expsym_cmds=
8824   compiler_needs_object=no
8825   enable_shared_with_static_runtimes=no
8826   export_dynamic_flag_spec=
8827   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8828   hardcode_automatic=no
8829   hardcode_direct=no
8830   hardcode_direct_absolute=no
8831   hardcode_libdir_flag_spec=
8832   hardcode_libdir_flag_spec_ld=
8833   hardcode_libdir_separator=
8834   hardcode_minus_L=no
8835   hardcode_shlibpath_var=unsupported
8836   inherit_rpath=no
8837   link_all_deplibs=unknown
8838   module_cmds=
8839   module_expsym_cmds=
8840   old_archive_from_new_cmds=
8841   old_archive_from_expsyms_cmds=
8842   thread_safe_flag_spec=
8843   whole_archive_flag_spec=
8844   # include_expsyms should be a list of space-separated symbols to be *always*
8845   # included in the symbol list
8846   include_expsyms=
8847   # exclude_expsyms can be an extended regexp of symbols to exclude
8848   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8849   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8850   # as well as any symbol that contains `d'.
8851   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8852   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8853   # platforms (ab)use it in PIC code, but their linkers get confused if
8854   # the symbol is explicitly referenced.  Since portable code cannot
8855   # rely on this symbol name, it's probably fine to never include it in
8856   # preloaded symbol tables.
8857   # Exclude shared library initialization/finalization symbols.
8858   extract_expsyms_cmds=
8859
8860   case $host_os in
8861   cygwin* | mingw* | pw32* | cegcc*)
8862     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8863     # When not using gcc, we currently assume that we are using
8864     # Microsoft Visual C++.
8865     if test "$GCC" != yes; then
8866       with_gnu_ld=no
8867     fi
8868     ;;
8869   interix*)
8870     # we just hope/assume this is gcc and not c89 (= MSVC++)
8871     with_gnu_ld=yes
8872     ;;
8873   openbsd*)
8874     with_gnu_ld=no
8875     ;;
8876   linux* | k*bsd*-gnu)
8877     link_all_deplibs=no
8878     ;;
8879   esac
8880
8881   ld_shlibs=yes
8882   if test "$with_gnu_ld" = yes; then
8883     # If archive_cmds runs LD, not CC, wlarc should be empty
8884     wlarc='${wl}'
8885
8886     # Set some defaults for GNU ld with shared library support. These
8887     # are reset later if shared libraries are not supported. Putting them
8888     # here allows them to be overridden if necessary.
8889     runpath_var=LD_RUN_PATH
8890     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8891     export_dynamic_flag_spec='${wl}--export-dynamic'
8892     # ancient GNU ld didn't support --whole-archive et. al.
8893     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8894       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8895     else
8896       whole_archive_flag_spec=
8897     fi
8898     supports_anon_versioning=no
8899     case `$LD -v 2>&1` in
8900       *GNU\ gold*) supports_anon_versioning=yes ;;
8901       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8902       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8903       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8904       *\ 2.11.*) ;; # other 2.11 versions
8905       *) supports_anon_versioning=yes ;;
8906     esac
8907
8908     # See if GNU ld supports shared libraries.
8909     case $host_os in
8910     aix[3-9]*)
8911       # On AIX/PPC, the GNU linker is very broken
8912       if test "$host_cpu" != ia64; then
8913         ld_shlibs=no
8914         cat <<_LT_EOF 1>&2
8915
8916 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8917 *** to be unable to reliably create shared libraries on AIX.
8918 *** Therefore, libtool is disabling shared libraries support.  If you
8919 *** really care for shared libraries, you may want to modify your PATH
8920 *** so that a non-GNU linker is found, and then restart.
8921
8922 _LT_EOF
8923       fi
8924       ;;
8925
8926     amigaos*)
8927       case $host_cpu in
8928       powerpc)
8929             # see comment about AmigaOS4 .so support
8930             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931             archive_expsym_cmds=''
8932         ;;
8933       m68k)
8934             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)'
8935             hardcode_libdir_flag_spec='-L$libdir'
8936             hardcode_minus_L=yes
8937         ;;
8938       esac
8939       ;;
8940
8941     beos*)
8942       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8943         allow_undefined_flag=unsupported
8944         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8945         # support --undefined.  This deserves some investigation.  FIXME
8946         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947       else
8948         ld_shlibs=no
8949       fi
8950       ;;
8951
8952     cygwin* | mingw* | pw32* | cegcc*)
8953       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8954       # as there is no search path for DLLs.
8955       hardcode_libdir_flag_spec='-L$libdir'
8956       allow_undefined_flag=unsupported
8957       always_export_symbols=no
8958       enable_shared_with_static_runtimes=yes
8959       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8960
8961       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8962         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8963         # If the export-symbols file already is a .def file (1st line
8964         # is EXPORTS), use it as is; otherwise, prepend...
8965         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8966           cp $export_symbols $output_objdir/$soname.def;
8967         else
8968           echo EXPORTS > $output_objdir/$soname.def;
8969           cat $export_symbols >> $output_objdir/$soname.def;
8970         fi~
8971         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8972       else
8973         ld_shlibs=no
8974       fi
8975       ;;
8976
8977     interix[3-9]*)
8978       hardcode_direct=no
8979       hardcode_shlibpath_var=no
8980       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8981       export_dynamic_flag_spec='${wl}-E'
8982       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8983       # Instead, shared libraries are loaded at an image base (0x10000000 by
8984       # default) and relocated if they conflict, which is a slow very memory
8985       # consuming and fragmenting process.  To avoid this, we pick a random,
8986       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8987       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8988       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8989       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'
8990       ;;
8991
8992     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8993       tmp_diet=no
8994       if test "$host_os" = linux-dietlibc; then
8995         case $cc_basename in
8996           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8997         esac
8998       fi
8999       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9000          && test "$tmp_diet" = no
9001       then
9002         tmp_addflag=
9003         tmp_sharedflag='-shared'
9004         case $cc_basename,$host_cpu in
9005         pgcc*)                          # Portland Group C compiler
9006           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'
9007           tmp_addflag=' $pic_flag'
9008           ;;
9009         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9010           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'
9011           tmp_addflag=' $pic_flag -Mnomain' ;;
9012         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9013           tmp_addflag=' -i_dynamic' ;;
9014         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9015           tmp_addflag=' -i_dynamic -nofor_main' ;;
9016         ifc* | ifort*)                  # Intel Fortran compiler
9017           tmp_addflag=' -nofor_main' ;;
9018         lf95*)                          # Lahey Fortran 8.1
9019           whole_archive_flag_spec=
9020           tmp_sharedflag='--shared' ;;
9021         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9022           tmp_sharedflag='-qmkshrobj'
9023           tmp_addflag= ;;
9024         esac
9025         case `$CC -V 2>&1 | sed 5q` in
9026         *Sun\ C*)                       # Sun C 5.9
9027           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'
9028           compiler_needs_object=yes
9029           tmp_sharedflag='-G' ;;
9030         *Sun\ F*)                       # Sun Fortran 8.3
9031           tmp_sharedflag='-G' ;;
9032         esac
9033         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034
9035         if test "x$supports_anon_versioning" = xyes; then
9036           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9037             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9038             echo "local: *; };" >> $output_objdir/$libname.ver~
9039             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9040         fi
9041
9042         case $cc_basename in
9043         xlf*)
9044           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9045           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9046           hardcode_libdir_flag_spec=
9047           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9048           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9049           if test "x$supports_anon_versioning" = xyes; then
9050             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9051               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9052               echo "local: *; };" >> $output_objdir/$libname.ver~
9053               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9054           fi
9055           ;;
9056         esac
9057       else
9058         ld_shlibs=no
9059       fi
9060       ;;
9061
9062     netbsd* | netbsdelf*-gnu)
9063       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9064         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9065         wlarc=
9066       else
9067         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9069       fi
9070       ;;
9071
9072     solaris*)
9073       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9074         ld_shlibs=no
9075         cat <<_LT_EOF 1>&2
9076
9077 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9078 *** create shared libraries on Solaris systems.  Therefore, libtool
9079 *** is disabling shared libraries support.  We urge you to upgrade GNU
9080 *** binutils to release 2.9.1 or newer.  Another option is to modify
9081 *** your PATH or compiler configuration so that the native linker is
9082 *** used, and then restart.
9083
9084 _LT_EOF
9085       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9086         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088       else
9089         ld_shlibs=no
9090       fi
9091       ;;
9092
9093     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9094       case `$LD -v 2>&1` in
9095         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9096         ld_shlibs=no
9097         cat <<_LT_EOF 1>&2
9098
9099 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9100 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9101 *** is disabling shared libraries support.  We urge you to upgrade GNU
9102 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9103 *** your PATH or compiler configuration so that the native linker is
9104 *** used, and then restart.
9105
9106 _LT_EOF
9107         ;;
9108         *)
9109           # For security reasons, it is highly recommended that you always
9110           # use absolute paths for naming shared libraries, and exclude the
9111           # DT_RUNPATH tag from executables and libraries.  But doing so
9112           # requires that you compile everything twice, which is a pain.
9113           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9114             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9115             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9117           else
9118             ld_shlibs=no
9119           fi
9120         ;;
9121       esac
9122       ;;
9123
9124     sunos4*)
9125       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9126       wlarc=
9127       hardcode_direct=yes
9128       hardcode_shlibpath_var=no
9129       ;;
9130
9131     *)
9132       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9133         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135       else
9136         ld_shlibs=no
9137       fi
9138       ;;
9139     esac
9140
9141     if test "$ld_shlibs" = no; then
9142       runpath_var=
9143       hardcode_libdir_flag_spec=
9144       export_dynamic_flag_spec=
9145       whole_archive_flag_spec=
9146     fi
9147   else
9148     # PORTME fill in a description of your system's linker (not GNU ld)
9149     case $host_os in
9150     aix3*)
9151       allow_undefined_flag=unsupported
9152       always_export_symbols=yes
9153       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'
9154       # Note: this linker hardcodes the directories in LIBPATH if there
9155       # are no directories specified by -L.
9156       hardcode_minus_L=yes
9157       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9158         # Neither direct hardcoding nor static linking is supported with a
9159         # broken collect2.
9160         hardcode_direct=unsupported
9161       fi
9162       ;;
9163
9164     aix[4-9]*)
9165       if test "$host_cpu" = ia64; then
9166         # On IA64, the linker does run time linking by default, so we don't
9167         # have to do anything special.
9168         aix_use_runtimelinking=no
9169         exp_sym_flag='-Bexport'
9170         no_entry_flag=""
9171       else
9172         # If we're using GNU nm, then we don't want the "-C" option.
9173         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9174         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9175           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'
9176         else
9177           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'
9178         fi
9179         aix_use_runtimelinking=no
9180
9181         # Test if we are trying to use run time linking or normal
9182         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9183         # need to do runtime linking.
9184         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9185           for ld_flag in $LDFLAGS; do
9186           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9187             aix_use_runtimelinking=yes
9188             break
9189           fi
9190           done
9191           ;;
9192         esac
9193
9194         exp_sym_flag='-bexport'
9195         no_entry_flag='-bnoentry'
9196       fi
9197
9198       # When large executables or shared objects are built, AIX ld can
9199       # have problems creating the table of contents.  If linking a library
9200       # or program results in "error TOC overflow" add -mminimal-toc to
9201       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9202       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9203
9204       archive_cmds=''
9205       hardcode_direct=yes
9206       hardcode_direct_absolute=yes
9207       hardcode_libdir_separator=':'
9208       link_all_deplibs=yes
9209       file_list_spec='${wl}-f,'
9210
9211       if test "$GCC" = yes; then
9212         case $host_os in aix4.[012]|aix4.[012].*)
9213         # We only want to do this on AIX 4.2 and lower, the check
9214         # below for broken collect2 doesn't work under 4.3+
9215           collect2name=`${CC} -print-prog-name=collect2`
9216           if test -f "$collect2name" &&
9217            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9218           then
9219           # We have reworked collect2
9220           :
9221           else
9222           # We have old collect2
9223           hardcode_direct=unsupported
9224           # It fails to find uninstalled libraries when the uninstalled
9225           # path is not listed in the libpath.  Setting hardcode_minus_L
9226           # to unsupported forces relinking
9227           hardcode_minus_L=yes
9228           hardcode_libdir_flag_spec='-L$libdir'
9229           hardcode_libdir_separator=
9230           fi
9231           ;;
9232         esac
9233         shared_flag='-shared'
9234         if test "$aix_use_runtimelinking" = yes; then
9235           shared_flag="$shared_flag "'${wl}-G'
9236         fi
9237         link_all_deplibs=no
9238       else
9239         # not using gcc
9240         if test "$host_cpu" = ia64; then
9241         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9242         # chokes on -Wl,-G. The following line is correct:
9243           shared_flag='-G'
9244         else
9245           if test "$aix_use_runtimelinking" = yes; then
9246             shared_flag='${wl}-G'
9247           else
9248             shared_flag='${wl}-bM:SRE'
9249           fi
9250         fi
9251       fi
9252
9253       export_dynamic_flag_spec='${wl}-bexpall'
9254       # It seems that -bexpall does not export symbols beginning with
9255       # underscore (_), so it is better to generate a list of symbols to export.
9256       always_export_symbols=yes
9257       if test "$aix_use_runtimelinking" = yes; then
9258         # Warning - without using the other runtime loading flags (-brtl),
9259         # -berok will link without error, but may produce a broken library.
9260         allow_undefined_flag='-berok'
9261         # Determine the default libpath from the value encoded in an
9262         # empty executable.
9263         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h.  */
9265
9266 int
9267 main ()
9268 {
9269
9270   ;
9271   return 0;
9272 }
9273 _ACEOF
9274 if ac_fn_c_try_link "$LINENO"; then :
9275
9276 lt_aix_libpath_sed='
9277     /Import File Strings/,/^$/ {
9278         /^0/ {
9279             s/^0  *\(.*\)$/\1/
9280             p
9281         }
9282     }'
9283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9284 # Check for a 64-bit object if we didn't find anything.
9285 if test -z "$aix_libpath"; then
9286   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9287 fi
9288 fi
9289 rm -f core conftest.err conftest.$ac_objext \
9290     conftest$ac_exeext conftest.$ac_ext
9291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9292
9293         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9294         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"
9295       else
9296         if test "$host_cpu" = ia64; then
9297           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9298           allow_undefined_flag="-z nodefs"
9299           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"
9300         else
9301          # Determine the default libpath from the value encoded in an
9302          # empty executable.
9303          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h.  */
9305
9306 int
9307 main ()
9308 {
9309
9310   ;
9311   return 0;
9312 }
9313 _ACEOF
9314 if ac_fn_c_try_link "$LINENO"; then :
9315
9316 lt_aix_libpath_sed='
9317     /Import File Strings/,/^$/ {
9318         /^0/ {
9319             s/^0  *\(.*\)$/\1/
9320             p
9321         }
9322     }'
9323 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9324 # Check for a 64-bit object if we didn't find anything.
9325 if test -z "$aix_libpath"; then
9326   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327 fi
9328 fi
9329 rm -f core conftest.err conftest.$ac_objext \
9330     conftest$ac_exeext conftest.$ac_ext
9331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9332
9333          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9334           # Warning - without using the other run time loading flags,
9335           # -berok will link without error, but may produce a broken library.
9336           no_undefined_flag=' ${wl}-bernotok'
9337           allow_undefined_flag=' ${wl}-berok'
9338           # Exported symbols can be pulled into shared objects from archives
9339           whole_archive_flag_spec='$convenience'
9340           archive_cmds_need_lc=yes
9341           # This is similar to how AIX traditionally builds its shared libraries.
9342           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'
9343         fi
9344       fi
9345       ;;
9346
9347     amigaos*)
9348       case $host_cpu in
9349       powerpc)
9350             # see comment about AmigaOS4 .so support
9351             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352             archive_expsym_cmds=''
9353         ;;
9354       m68k)
9355             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)'
9356             hardcode_libdir_flag_spec='-L$libdir'
9357             hardcode_minus_L=yes
9358         ;;
9359       esac
9360       ;;
9361
9362     bsdi[45]*)
9363       export_dynamic_flag_spec=-rdynamic
9364       ;;
9365
9366     cygwin* | mingw* | pw32* | cegcc*)
9367       # When not using gcc, we currently assume that we are using
9368       # Microsoft Visual C++.
9369       # hardcode_libdir_flag_spec is actually meaningless, as there is
9370       # no search path for DLLs.
9371       hardcode_libdir_flag_spec=' '
9372       allow_undefined_flag=unsupported
9373       # Tell ltmain to make .lib files, not .a files.
9374       libext=lib
9375       # Tell ltmain to make .dll files, not .so files.
9376       shrext_cmds=".dll"
9377       # FIXME: Setting linknames here is a bad hack.
9378       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9379       # The linker will automatically build a .lib file if we build a DLL.
9380       old_archive_from_new_cmds='true'
9381       # FIXME: Should let the user specify the lib program.
9382       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9383       fix_srcfile_path='`cygpath -w "$srcfile"`'
9384       enable_shared_with_static_runtimes=yes
9385       ;;
9386
9387     darwin* | rhapsody*)
9388
9389
9390   archive_cmds_need_lc=no
9391   hardcode_direct=no
9392   hardcode_automatic=yes
9393   hardcode_shlibpath_var=unsupported
9394   whole_archive_flag_spec=''
9395   link_all_deplibs=yes
9396   allow_undefined_flag="$_lt_dar_allow_undefined"
9397   case $cc_basename in
9398      ifort*) _lt_dar_can_shared=yes ;;
9399      *) _lt_dar_can_shared=$GCC ;;
9400   esac
9401   if test "$_lt_dar_can_shared" = "yes"; then
9402     output_verbose_link_cmd=echo
9403     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9404     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9405     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}"
9406     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}"
9407
9408   else
9409   ld_shlibs=no
9410   fi
9411
9412       ;;
9413
9414     dgux*)
9415       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416       hardcode_libdir_flag_spec='-L$libdir'
9417       hardcode_shlibpath_var=no
9418       ;;
9419
9420     freebsd1*)
9421       ld_shlibs=no
9422       ;;
9423
9424     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9425     # support.  Future versions do this automatically, but an explicit c++rt0.o
9426     # does not break anything, and helps significantly (at the cost of a little
9427     # extra space).
9428     freebsd2.2*)
9429       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9430       hardcode_libdir_flag_spec='-R$libdir'
9431       hardcode_direct=yes
9432       hardcode_shlibpath_var=no
9433       ;;
9434
9435     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9436     freebsd2*)
9437       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9438       hardcode_direct=yes
9439       hardcode_minus_L=yes
9440       hardcode_shlibpath_var=no
9441       ;;
9442
9443     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9444     freebsd* | dragonfly*)
9445       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9446       hardcode_libdir_flag_spec='-R$libdir'
9447       hardcode_direct=yes
9448       hardcode_shlibpath_var=no
9449       ;;
9450
9451     hpux9*)
9452       if test "$GCC" = yes; then
9453         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'
9454       else
9455         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'
9456       fi
9457       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458       hardcode_libdir_separator=:
9459       hardcode_direct=yes
9460
9461       # hardcode_minus_L: Not really in the search PATH,
9462       # but as the default location of the library.
9463       hardcode_minus_L=yes
9464       export_dynamic_flag_spec='${wl}-E'
9465       ;;
9466
9467     hpux10*)
9468       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9469         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9470       else
9471         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9472       fi
9473       if test "$with_gnu_ld" = no; then
9474         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9475         hardcode_libdir_flag_spec_ld='+b $libdir'
9476         hardcode_libdir_separator=:
9477         hardcode_direct=yes
9478         hardcode_direct_absolute=yes
9479         export_dynamic_flag_spec='${wl}-E'
9480         # hardcode_minus_L: Not really in the search PATH,
9481         # but as the default location of the library.
9482         hardcode_minus_L=yes
9483       fi
9484       ;;
9485
9486     hpux11*)
9487       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9488         case $host_cpu in
9489         hppa*64*)
9490           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9491           ;;
9492         ia64*)
9493           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9494           ;;
9495         *)
9496           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497           ;;
9498         esac
9499       else
9500         case $host_cpu in
9501         hppa*64*)
9502           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9503           ;;
9504         ia64*)
9505           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9506           ;;
9507         *)
9508           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9509           ;;
9510         esac
9511       fi
9512       if test "$with_gnu_ld" = no; then
9513         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514         hardcode_libdir_separator=:
9515
9516         case $host_cpu in
9517         hppa*64*|ia64*)
9518           hardcode_direct=no
9519           hardcode_shlibpath_var=no
9520           ;;
9521         *)
9522           hardcode_direct=yes
9523           hardcode_direct_absolute=yes
9524           export_dynamic_flag_spec='${wl}-E'
9525
9526           # hardcode_minus_L: Not really in the search PATH,
9527           # but as the default location of the library.
9528           hardcode_minus_L=yes
9529           ;;
9530         esac
9531       fi
9532       ;;
9533
9534     irix5* | irix6* | nonstopux*)
9535       if test "$GCC" = yes; then
9536         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'
9537         # Try to use the -exported_symbol ld option, if it does not
9538         # work, assume that -exports_file does not work either and
9539         # implicitly export all symbols.
9540         save_LDFLAGS="$LDFLAGS"
9541         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9542         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h.  */
9544 int foo(void) {}
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"; then :
9547   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'
9548
9549 fi
9550 rm -f core conftest.err conftest.$ac_objext \
9551     conftest$ac_exeext conftest.$ac_ext
9552         LDFLAGS="$save_LDFLAGS"
9553       else
9554         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'
9555         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'
9556       fi
9557       archive_cmds_need_lc='no'
9558       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559       hardcode_libdir_separator=:
9560       inherit_rpath=yes
9561       link_all_deplibs=yes
9562       ;;
9563
9564     netbsd* | netbsdelf*-gnu)
9565       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9566         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9567       else
9568         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9569       fi
9570       hardcode_libdir_flag_spec='-R$libdir'
9571       hardcode_direct=yes
9572       hardcode_shlibpath_var=no
9573       ;;
9574
9575     newsos6)
9576       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577       hardcode_direct=yes
9578       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579       hardcode_libdir_separator=:
9580       hardcode_shlibpath_var=no
9581       ;;
9582
9583     *nto* | *qnx*)
9584       ;;
9585
9586     openbsd*)
9587       if test -f /usr/libexec/ld.so; then
9588         hardcode_direct=yes
9589         hardcode_shlibpath_var=no
9590         hardcode_direct_absolute=yes
9591         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9592           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9593           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9594           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9595           export_dynamic_flag_spec='${wl}-E'
9596         else
9597           case $host_os in
9598            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9599              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9600              hardcode_libdir_flag_spec='-R$libdir'
9601              ;;
9602            *)
9603              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9604              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9605              ;;
9606           esac
9607         fi
9608       else
9609         ld_shlibs=no
9610       fi
9611       ;;
9612
9613     os2*)
9614       hardcode_libdir_flag_spec='-L$libdir'
9615       hardcode_minus_L=yes
9616       allow_undefined_flag=unsupported
9617       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'
9618       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9619       ;;
9620
9621     osf3*)
9622       if test "$GCC" = yes; then
9623         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9624         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'
9625       else
9626         allow_undefined_flag=' -expect_unresolved \*'
9627         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'
9628       fi
9629       archive_cmds_need_lc='no'
9630       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631       hardcode_libdir_separator=:
9632       ;;
9633
9634     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9635       if test "$GCC" = yes; then
9636         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9637         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'
9638         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9639       else
9640         allow_undefined_flag=' -expect_unresolved \*'
9641         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'
9642         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~
9643         $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'
9644
9645         # Both c and cxx compiler support -rpath directly
9646         hardcode_libdir_flag_spec='-rpath $libdir'
9647       fi
9648       archive_cmds_need_lc='no'
9649       hardcode_libdir_separator=:
9650       ;;
9651
9652     solaris*)
9653       no_undefined_flag=' -z defs'
9654       if test "$GCC" = yes; then
9655         wlarc='${wl}'
9656         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9657         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9658           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9659       else
9660         case `$CC -V 2>&1` in
9661         *"Compilers 5.0"*)
9662           wlarc=''
9663           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9665           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9666           ;;
9667         *)
9668           wlarc='${wl}'
9669           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9670           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9671           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9672           ;;
9673         esac
9674       fi
9675       hardcode_libdir_flag_spec='-R$libdir'
9676       hardcode_shlibpath_var=no
9677       case $host_os in
9678       solaris2.[0-5] | solaris2.[0-5].*) ;;
9679       *)
9680         # The compiler driver will combine and reorder linker options,
9681         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9682         # but is careful enough not to reorder.
9683         # Supported since Solaris 2.6 (maybe 2.5.1?)
9684         if test "$GCC" = yes; then
9685           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9686         else
9687           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9688         fi
9689         ;;
9690       esac
9691       link_all_deplibs=yes
9692       ;;
9693
9694     sunos4*)
9695       if test "x$host_vendor" = xsequent; then
9696         # Use $CC to link under sequent, because it throws in some extra .o
9697         # files that make .init and .fini sections work.
9698         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9699       else
9700         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9701       fi
9702       hardcode_libdir_flag_spec='-L$libdir'
9703       hardcode_direct=yes
9704       hardcode_minus_L=yes
9705       hardcode_shlibpath_var=no
9706       ;;
9707
9708     sysv4)
9709       case $host_vendor in
9710         sni)
9711           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712           hardcode_direct=yes # is this really true???
9713         ;;
9714         siemens)
9715           ## LD is ld it makes a PLAMLIB
9716           ## CC just makes a GrossModule.
9717           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9718           reload_cmds='$CC -r -o $output$reload_objs'
9719           hardcode_direct=no
9720         ;;
9721         motorola)
9722           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9724         ;;
9725       esac
9726       runpath_var='LD_RUN_PATH'
9727       hardcode_shlibpath_var=no
9728       ;;
9729
9730     sysv4.3*)
9731       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732       hardcode_shlibpath_var=no
9733       export_dynamic_flag_spec='-Bexport'
9734       ;;
9735
9736     sysv4*MP*)
9737       if test -d /usr/nec; then
9738         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739         hardcode_shlibpath_var=no
9740         runpath_var=LD_RUN_PATH
9741         hardcode_runpath_var=yes
9742         ld_shlibs=yes
9743       fi
9744       ;;
9745
9746     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9747       no_undefined_flag='${wl}-z,text'
9748       archive_cmds_need_lc=no
9749       hardcode_shlibpath_var=no
9750       runpath_var='LD_RUN_PATH'
9751
9752       if test "$GCC" = yes; then
9753         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755       else
9756         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758       fi
9759       ;;
9760
9761     sysv5* | sco3.2v5* | sco5v6*)
9762       # Note: We can NOT use -z defs as we might desire, because we do not
9763       # link with -lc, and that would cause any symbols used from libc to
9764       # always be unresolved, which means just about no library would
9765       # ever link correctly.  If we're not using GNU ld we use -z text
9766       # though, which does catch some bad symbols but isn't as heavy-handed
9767       # as -z defs.
9768       no_undefined_flag='${wl}-z,text'
9769       allow_undefined_flag='${wl}-z,nodefs'
9770       archive_cmds_need_lc=no
9771       hardcode_shlibpath_var=no
9772       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9773       hardcode_libdir_separator=':'
9774       link_all_deplibs=yes
9775       export_dynamic_flag_spec='${wl}-Bexport'
9776       runpath_var='LD_RUN_PATH'
9777
9778       if test "$GCC" = yes; then
9779         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9780         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781       else
9782         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784       fi
9785       ;;
9786
9787     uts4*)
9788       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789       hardcode_libdir_flag_spec='-L$libdir'
9790       hardcode_shlibpath_var=no
9791       ;;
9792
9793     *)
9794       ld_shlibs=no
9795       ;;
9796     esac
9797
9798     if test x$host_vendor = xsni; then
9799       case $host in
9800       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9801         export_dynamic_flag_spec='${wl}-Blargedynsym'
9802         ;;
9803       esac
9804     fi
9805   fi
9806
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9808 $as_echo "$ld_shlibs" >&6; }
9809 test "$ld_shlibs" = no && can_build_shared=no
9810
9811 with_gnu_ld=$with_gnu_ld
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827 #
9828 # Do we need to explicitly link libc?
9829 #
9830 case "x$archive_cmds_need_lc" in
9831 x|xyes)
9832   # Assume -lc should be added
9833   archive_cmds_need_lc=yes
9834
9835   if test "$enable_shared" = yes && test "$GCC" = yes; then
9836     case $archive_cmds in
9837     *'~'*)
9838       # FIXME: we may have to deal with multi-command sequences.
9839       ;;
9840     '$CC '*)
9841       # Test whether the compiler implicitly links with -lc since on some
9842       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9843       # to ld, don't add -lc before -lgcc.
9844       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9845 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9846       $RM conftest*
9847       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9848
9849       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9850   (eval $ac_compile) 2>&5
9851   ac_status=$?
9852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9853   test $ac_status = 0; } 2>conftest.err; then
9854         soname=conftest
9855         lib=conftest
9856         libobjs=conftest.$ac_objext
9857         deplibs=
9858         wl=$lt_prog_compiler_wl
9859         pic_flag=$lt_prog_compiler_pic
9860         compiler_flags=-v
9861         linker_flags=-v
9862         verstring=
9863         output_objdir=.
9864         libname=conftest
9865         lt_save_allow_undefined_flag=$allow_undefined_flag
9866         allow_undefined_flag=
9867         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9868   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9869   ac_status=$?
9870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871   test $ac_status = 0; }
9872         then
9873           archive_cmds_need_lc=no
9874         else
9875           archive_cmds_need_lc=yes
9876         fi
9877         allow_undefined_flag=$lt_save_allow_undefined_flag
9878       else
9879         cat conftest.err 1>&5
9880       fi
9881       $RM conftest*
9882       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9883 $as_echo "$archive_cmds_need_lc" >&6; }
9884       ;;
9885     esac
9886   fi
9887   ;;
9888 esac
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10047 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10048
10049 if test "$GCC" = yes; then
10050   case $host_os in
10051     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10052     *) lt_awk_arg="/^libraries:/" ;;
10053   esac
10054   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10055   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10056     # if the path contains ";" then we assume it to be the separator
10057     # otherwise default to the standard path separator (i.e. ":") - it is
10058     # assumed that no part of a normal pathname contains ";" but that should
10059     # okay in the real world where ";" in dirpaths is itself problematic.
10060     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10061   else
10062     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10063   fi
10064   # Ok, now we have the path, separated by spaces, we can step through it
10065   # and add multilib dir if necessary.
10066   lt_tmp_lt_search_path_spec=
10067   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10068   for lt_sys_path in $lt_search_path_spec; do
10069     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10070       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10071     else
10072       test -d "$lt_sys_path" && \
10073         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10074     fi
10075   done
10076   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10077 BEGIN {RS=" "; FS="/|\n";} {
10078   lt_foo="";
10079   lt_count=0;
10080   for (lt_i = NF; lt_i > 0; lt_i--) {
10081     if ($lt_i != "" && $lt_i != ".") {
10082       if ($lt_i == "..") {
10083         lt_count++;
10084       } else {
10085         if (lt_count == 0) {
10086           lt_foo="/" $lt_i lt_foo;
10087         } else {
10088           lt_count--;
10089         }
10090       }
10091     }
10092   }
10093   if (lt_foo != "") { lt_freq[lt_foo]++; }
10094   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10095 }'`
10096   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10097 else
10098   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10099 fi
10100 library_names_spec=
10101 libname_spec='lib$name'
10102 soname_spec=
10103 shrext_cmds=".so"
10104 postinstall_cmds=
10105 postuninstall_cmds=
10106 finish_cmds=
10107 finish_eval=
10108 shlibpath_var=
10109 shlibpath_overrides_runpath=unknown
10110 version_type=none
10111 dynamic_linker="$host_os ld.so"
10112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10113 need_lib_prefix=unknown
10114 hardcode_into_libs=no
10115
10116 # when you set need_version to no, make sure it does not cause -set_version
10117 # flags to be left without arguments
10118 need_version=unknown
10119
10120 case $host_os in
10121 aix3*)
10122   version_type=linux
10123   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10124   shlibpath_var=LIBPATH
10125
10126   # AIX 3 has no versioning support, so we append a major version to the name.
10127   soname_spec='${libname}${release}${shared_ext}$major'
10128   ;;
10129
10130 aix[4-9]*)
10131   version_type=linux
10132   need_lib_prefix=no
10133   need_version=no
10134   hardcode_into_libs=yes
10135   if test "$host_cpu" = ia64; then
10136     # AIX 5 supports IA64
10137     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10138     shlibpath_var=LD_LIBRARY_PATH
10139   else
10140     # With GCC up to 2.95.x, collect2 would create an import file
10141     # for dependence libraries.  The import file would start with
10142     # the line `#! .'.  This would cause the generated library to
10143     # depend on `.', always an invalid library.  This was fixed in
10144     # development snapshots of GCC prior to 3.0.
10145     case $host_os in
10146       aix4 | aix4.[01] | aix4.[01].*)
10147       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10148            echo ' yes '
10149            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10150         :
10151       else
10152         can_build_shared=no
10153       fi
10154       ;;
10155     esac
10156     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10157     # soname into executable. Probably we can add versioning support to
10158     # collect2, so additional links can be useful in future.
10159     if test "$aix_use_runtimelinking" = yes; then
10160       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10161       # instead of lib<name>.a to let people know that these are not
10162       # typical AIX shared libraries.
10163       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164     else
10165       # We preserve .a as extension for shared libraries through AIX4.2
10166       # and later when we are not doing run time linking.
10167       library_names_spec='${libname}${release}.a $libname.a'
10168       soname_spec='${libname}${release}${shared_ext}$major'
10169     fi
10170     shlibpath_var=LIBPATH
10171   fi
10172   ;;
10173
10174 amigaos*)
10175   case $host_cpu in
10176   powerpc)
10177     # Since July 2007 AmigaOS4 officially supports .so libraries.
10178     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180     ;;
10181   m68k)
10182     library_names_spec='$libname.ixlibrary $libname.a'
10183     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10184     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'
10185     ;;
10186   esac
10187   ;;
10188
10189 beos*)
10190   library_names_spec='${libname}${shared_ext}'
10191   dynamic_linker="$host_os ld.so"
10192   shlibpath_var=LIBRARY_PATH
10193   ;;
10194
10195 bsdi[45]*)
10196   version_type=linux
10197   need_version=no
10198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199   soname_spec='${libname}${release}${shared_ext}$major'
10200   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10201   shlibpath_var=LD_LIBRARY_PATH
10202   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10203   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10204   # the default ld.so.conf also contains /usr/contrib/lib and
10205   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10206   # libtool to hard-code these into programs
10207   ;;
10208
10209 cygwin* | mingw* | pw32* | cegcc*)
10210   version_type=windows
10211   shrext_cmds=".dll"
10212   need_version=no
10213   need_lib_prefix=no
10214
10215   case $GCC,$host_os in
10216   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10217     library_names_spec='$libname.dll.a'
10218     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10219     postinstall_cmds='base_file=`basename \${file}`~
10220       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10221       dldir=$destdir/`dirname \$dlpath`~
10222       test -d \$dldir || mkdir -p \$dldir~
10223       $install_prog $dir/$dlname \$dldir/$dlname~
10224       chmod a+x \$dldir/$dlname~
10225       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10226         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10227       fi'
10228     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10229       dlpath=$dir/\$dldll~
10230        $RM \$dlpath'
10231     shlibpath_overrides_runpath=yes
10232
10233     case $host_os in
10234     cygwin*)
10235       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10236       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10237       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10238       ;;
10239     mingw* | cegcc*)
10240       # MinGW DLLs use traditional 'lib' prefix
10241       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10243       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10244         # It is most probably a Windows format PATH printed by
10245         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10246         # path with ; separators, and with drive letters. We can handle the
10247         # drive letters (cygwin fileutils understands them), so leave them,
10248         # especially as we might pass files found there to a mingw objdump,
10249         # which wouldn't understand a cygwinified path. Ahh.
10250         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10251       else
10252         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10253       fi
10254       ;;
10255     pw32*)
10256       # pw32 DLLs use 'pw' prefix rather than 'lib'
10257       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10258       ;;
10259     esac
10260     ;;
10261
10262   *)
10263     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10264     ;;
10265   esac
10266   dynamic_linker='Win32 ld.exe'
10267   # FIXME: first we should search . and the directory the executable is in
10268   shlibpath_var=PATH
10269   ;;
10270
10271 darwin* | rhapsody*)
10272   dynamic_linker="$host_os dyld"
10273   version_type=darwin
10274   need_lib_prefix=no
10275   need_version=no
10276   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10277   soname_spec='${libname}${release}${major}$shared_ext'
10278   shlibpath_overrides_runpath=yes
10279   shlibpath_var=DYLD_LIBRARY_PATH
10280   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10281
10282   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10283   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10284   ;;
10285
10286 dgux*)
10287   version_type=linux
10288   need_lib_prefix=no
10289   need_version=no
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10291   soname_spec='${libname}${release}${shared_ext}$major'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   ;;
10294
10295 freebsd1*)
10296   dynamic_linker=no
10297   ;;
10298
10299 freebsd* | dragonfly*)
10300   # DragonFly does not have aout.  When/if they implement a new
10301   # versioning mechanism, adjust this.
10302   if test -x /usr/bin/objformat; then
10303     objformat=`/usr/bin/objformat`
10304   else
10305     case $host_os in
10306     freebsd[123]*) objformat=aout ;;
10307     *) objformat=elf ;;
10308     esac
10309   fi
10310   version_type=freebsd-$objformat
10311   case $version_type in
10312     freebsd-elf*)
10313       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10314       need_version=no
10315       need_lib_prefix=no
10316       ;;
10317     freebsd-*)
10318       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10319       need_version=yes
10320       ;;
10321   esac
10322   shlibpath_var=LD_LIBRARY_PATH
10323   case $host_os in
10324   freebsd2*)
10325     shlibpath_overrides_runpath=yes
10326     ;;
10327   freebsd3.[01]* | freebsdelf3.[01]*)
10328     shlibpath_overrides_runpath=yes
10329     hardcode_into_libs=yes
10330     ;;
10331   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10332   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10333     shlibpath_overrides_runpath=no
10334     hardcode_into_libs=yes
10335     ;;
10336   *) # from 4.6 on, and DragonFly
10337     shlibpath_overrides_runpath=yes
10338     hardcode_into_libs=yes
10339     ;;
10340   esac
10341   ;;
10342
10343 gnu*)
10344   version_type=linux
10345   need_lib_prefix=no
10346   need_version=no
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10348   soname_spec='${libname}${release}${shared_ext}$major'
10349   shlibpath_var=LD_LIBRARY_PATH
10350   hardcode_into_libs=yes
10351   ;;
10352
10353 hpux9* | hpux10* | hpux11*)
10354   # Give a soname corresponding to the major version so that dld.sl refuses to
10355   # link against other versions.
10356   version_type=sunos
10357   need_lib_prefix=no
10358   need_version=no
10359   case $host_cpu in
10360   ia64*)
10361     shrext_cmds='.so'
10362     hardcode_into_libs=yes
10363     dynamic_linker="$host_os dld.so"
10364     shlibpath_var=LD_LIBRARY_PATH
10365     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367     soname_spec='${libname}${release}${shared_ext}$major'
10368     if test "X$HPUX_IA64_MODE" = X32; then
10369       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10370     else
10371       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10372     fi
10373     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10374     ;;
10375   hppa*64*)
10376     shrext_cmds='.sl'
10377     hardcode_into_libs=yes
10378     dynamic_linker="$host_os dld.sl"
10379     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382     soname_spec='${libname}${release}${shared_ext}$major'
10383     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10385     ;;
10386   *)
10387     shrext_cmds='.sl'
10388     dynamic_linker="$host_os dld.sl"
10389     shlibpath_var=SHLIB_PATH
10390     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392     soname_spec='${libname}${release}${shared_ext}$major'
10393     ;;
10394   esac
10395   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10396   postinstall_cmds='chmod 555 $lib'
10397   ;;
10398
10399 interix[3-9]*)
10400   version_type=linux
10401   need_lib_prefix=no
10402   need_version=no
10403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10404   soname_spec='${libname}${release}${shared_ext}$major'
10405   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10406   shlibpath_var=LD_LIBRARY_PATH
10407   shlibpath_overrides_runpath=no
10408   hardcode_into_libs=yes
10409   ;;
10410
10411 irix5* | irix6* | nonstopux*)
10412   case $host_os in
10413     nonstopux*) version_type=nonstopux ;;
10414     *)
10415         if test "$lt_cv_prog_gnu_ld" = yes; then
10416                 version_type=linux
10417         else
10418                 version_type=irix
10419         fi ;;
10420   esac
10421   need_lib_prefix=no
10422   need_version=no
10423   soname_spec='${libname}${release}${shared_ext}$major'
10424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10425   case $host_os in
10426   irix5* | nonstopux*)
10427     libsuff= shlibsuff=
10428     ;;
10429   *)
10430     case $LD in # libtool.m4 will add one of these switches to LD
10431     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10432       libsuff= shlibsuff= libmagic=32-bit;;
10433     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10434       libsuff=32 shlibsuff=N32 libmagic=N32;;
10435     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10436       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10437     *) libsuff= shlibsuff= libmagic=never-match;;
10438     esac
10439     ;;
10440   esac
10441   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10442   shlibpath_overrides_runpath=no
10443   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10444   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10445   hardcode_into_libs=yes
10446   ;;
10447
10448 # No shared lib support for Linux oldld, aout, or coff.
10449 linux*oldld* | linux*aout* | linux*coff*)
10450   dynamic_linker=no
10451   ;;
10452
10453 # This must be Linux ELF.
10454 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10455   version_type=linux
10456   need_lib_prefix=no
10457   need_version=no
10458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459   soname_spec='${libname}${release}${shared_ext}$major'
10460   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10461   shlibpath_var=LD_LIBRARY_PATH
10462   shlibpath_overrides_runpath=no
10463   # Some binutils ld are patched to set DT_RUNPATH
10464   save_LDFLAGS=$LDFLAGS
10465   save_libdir=$libdir
10466   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10467        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h.  */
10470
10471 int
10472 main ()
10473 {
10474
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10481   shlibpath_overrides_runpath=yes
10482 fi
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext \
10485     conftest$ac_exeext conftest.$ac_ext
10486   LDFLAGS=$save_LDFLAGS
10487   libdir=$save_libdir
10488
10489   # This implies no fast_install, which is unacceptable.
10490   # Some rework will be needed to allow for fast_install
10491   # before this can be enabled.
10492   hardcode_into_libs=yes
10493
10494   # Append ld.so.conf contents to the search path
10495   if test -f /etc/ld.so.conf; then
10496     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' ' '`
10497     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10498   fi
10499
10500   # We used to test for /lib/ld.so.1 and disable shared libraries on
10501   # powerpc, because MkLinux only supported shared libraries with the
10502   # GNU dynamic linker.  Since this was broken with cross compilers,
10503   # most powerpc-linux boxes support dynamic linking these days and
10504   # people can always --disable-shared, the test was removed, and we
10505   # assume the GNU/Linux dynamic linker is in use.
10506   dynamic_linker='GNU/Linux ld.so'
10507   ;;
10508
10509 netbsdelf*-gnu)
10510   version_type=linux
10511   need_lib_prefix=no
10512   need_version=no
10513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10514   soname_spec='${libname}${release}${shared_ext}$major'
10515   shlibpath_var=LD_LIBRARY_PATH
10516   shlibpath_overrides_runpath=no
10517   hardcode_into_libs=yes
10518   dynamic_linker='NetBSD ld.elf_so'
10519   ;;
10520
10521 netbsd*)
10522   version_type=sunos
10523   need_lib_prefix=no
10524   need_version=no
10525   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10527     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10528     dynamic_linker='NetBSD (a.out) ld.so'
10529   else
10530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10531     soname_spec='${libname}${release}${shared_ext}$major'
10532     dynamic_linker='NetBSD ld.elf_so'
10533   fi
10534   shlibpath_var=LD_LIBRARY_PATH
10535   shlibpath_overrides_runpath=yes
10536   hardcode_into_libs=yes
10537   ;;
10538
10539 newsos6)
10540   version_type=linux
10541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542   shlibpath_var=LD_LIBRARY_PATH
10543   shlibpath_overrides_runpath=yes
10544   ;;
10545
10546 *nto* | *qnx*)
10547   version_type=qnx
10548   need_lib_prefix=no
10549   need_version=no
10550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551   soname_spec='${libname}${release}${shared_ext}$major'
10552   shlibpath_var=LD_LIBRARY_PATH
10553   shlibpath_overrides_runpath=no
10554   hardcode_into_libs=yes
10555   dynamic_linker='ldqnx.so'
10556   ;;
10557
10558 openbsd*)
10559   version_type=sunos
10560   sys_lib_dlsearch_path_spec="/usr/lib"
10561   need_lib_prefix=no
10562   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10563   case $host_os in
10564     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10565     *)                          need_version=no  ;;
10566   esac
10567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10568   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10569   shlibpath_var=LD_LIBRARY_PATH
10570   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10571     case $host_os in
10572       openbsd2.[89] | openbsd2.[89].*)
10573         shlibpath_overrides_runpath=no
10574         ;;
10575       *)
10576         shlibpath_overrides_runpath=yes
10577         ;;
10578       esac
10579   else
10580     shlibpath_overrides_runpath=yes
10581   fi
10582   ;;
10583
10584 os2*)
10585   libname_spec='$name'
10586   shrext_cmds=".dll"
10587   need_lib_prefix=no
10588   library_names_spec='$libname${shared_ext} $libname.a'
10589   dynamic_linker='OS/2 ld.exe'
10590   shlibpath_var=LIBPATH
10591   ;;
10592
10593 osf3* | osf4* | osf5*)
10594   version_type=osf
10595   need_lib_prefix=no
10596   need_version=no
10597   soname_spec='${libname}${release}${shared_ext}$major'
10598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599   shlibpath_var=LD_LIBRARY_PATH
10600   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10601   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10602   ;;
10603
10604 rdos*)
10605   dynamic_linker=no
10606   ;;
10607
10608 solaris*)
10609   version_type=linux
10610   need_lib_prefix=no
10611   need_version=no
10612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613   soname_spec='${libname}${release}${shared_ext}$major'
10614   shlibpath_var=LD_LIBRARY_PATH
10615   shlibpath_overrides_runpath=yes
10616   hardcode_into_libs=yes
10617   # ldd complains unless libraries are executable
10618   postinstall_cmds='chmod +x $lib'
10619   ;;
10620
10621 sunos4*)
10622   version_type=sunos
10623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10624   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10625   shlibpath_var=LD_LIBRARY_PATH
10626   shlibpath_overrides_runpath=yes
10627   if test "$with_gnu_ld" = yes; then
10628     need_lib_prefix=no
10629   fi
10630   need_version=yes
10631   ;;
10632
10633 sysv4 | sysv4.3*)
10634   version_type=linux
10635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636   soname_spec='${libname}${release}${shared_ext}$major'
10637   shlibpath_var=LD_LIBRARY_PATH
10638   case $host_vendor in
10639     sni)
10640       shlibpath_overrides_runpath=no
10641       need_lib_prefix=no
10642       runpath_var=LD_RUN_PATH
10643       ;;
10644     siemens)
10645       need_lib_prefix=no
10646       ;;
10647     motorola)
10648       need_lib_prefix=no
10649       need_version=no
10650       shlibpath_overrides_runpath=no
10651       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10652       ;;
10653   esac
10654   ;;
10655
10656 sysv4*MP*)
10657   if test -d /usr/nec ;then
10658     version_type=linux
10659     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10660     soname_spec='$libname${shared_ext}.$major'
10661     shlibpath_var=LD_LIBRARY_PATH
10662   fi
10663   ;;
10664
10665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10666   version_type=freebsd-elf
10667   need_lib_prefix=no
10668   need_version=no
10669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10670   soname_spec='${libname}${release}${shared_ext}$major'
10671   shlibpath_var=LD_LIBRARY_PATH
10672   shlibpath_overrides_runpath=yes
10673   hardcode_into_libs=yes
10674   if test "$with_gnu_ld" = yes; then
10675     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10676   else
10677     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10678     case $host_os in
10679       sco3.2v5*)
10680         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10681         ;;
10682     esac
10683   fi
10684   sys_lib_dlsearch_path_spec='/usr/lib'
10685   ;;
10686
10687 tpf*)
10688   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10689   version_type=linux
10690   need_lib_prefix=no
10691   need_version=no
10692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693   shlibpath_var=LD_LIBRARY_PATH
10694   shlibpath_overrides_runpath=no
10695   hardcode_into_libs=yes
10696   ;;
10697
10698 uts4*)
10699   version_type=linux
10700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701   soname_spec='${libname}${release}${shared_ext}$major'
10702   shlibpath_var=LD_LIBRARY_PATH
10703   ;;
10704
10705 *)
10706   dynamic_linker=no
10707   ;;
10708 esac
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10710 $as_echo "$dynamic_linker" >&6; }
10711 test "$dynamic_linker" = no && can_build_shared=no
10712
10713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10714 if test "$GCC" = yes; then
10715   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10716 fi
10717
10718 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10719   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10720 fi
10721 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10722   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10723 fi
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10812 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10813 hardcode_action=
10814 if test -n "$hardcode_libdir_flag_spec" ||
10815    test -n "$runpath_var" ||
10816    test "X$hardcode_automatic" = "Xyes" ; then
10817
10818   # We can hardcode non-existent directories.
10819   if test "$hardcode_direct" != no &&
10820      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10821      # have to relink, otherwise we might link with an installed library
10822      # when we should be linking with a yet-to-be-installed one
10823      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10824      test "$hardcode_minus_L" != no; then
10825     # Linking always hardcodes the temporary library directory.
10826     hardcode_action=relink
10827   else
10828     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10829     hardcode_action=immediate
10830   fi
10831 else
10832   # We cannot hardcode anything, or else we can only hardcode existing
10833   # directories.
10834   hardcode_action=unsupported
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10837 $as_echo "$hardcode_action" >&6; }
10838
10839 if test "$hardcode_action" = relink ||
10840    test "$inherit_rpath" = yes; then
10841   # Fast installation is not supported
10842   enable_fast_install=no
10843 elif test "$shlibpath_overrides_runpath" = yes ||
10844      test "$enable_shared" = no; then
10845   # Fast installation is not necessary
10846   enable_fast_install=needless
10847 fi
10848
10849
10850
10851
10852
10853
10854   if test "x$enable_dlopen" != xyes; then
10855   enable_dlopen=unknown
10856   enable_dlopen_self=unknown
10857   enable_dlopen_self_static=unknown
10858 else
10859   lt_cv_dlopen=no
10860   lt_cv_dlopen_libs=
10861
10862   case $host_os in
10863   beos*)
10864     lt_cv_dlopen="load_add_on"
10865     lt_cv_dlopen_libs=
10866     lt_cv_dlopen_self=yes
10867     ;;
10868
10869   mingw* | pw32* | cegcc*)
10870     lt_cv_dlopen="LoadLibrary"
10871     lt_cv_dlopen_libs=
10872     ;;
10873
10874   cygwin*)
10875     lt_cv_dlopen="dlopen"
10876     lt_cv_dlopen_libs=
10877     ;;
10878
10879   darwin*)
10880   # if libdl is installed we need to link against it
10881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10882 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10884   $as_echo_n "(cached) " >&6
10885 else
10886   ac_check_lib_save_LIBS=$LIBS
10887 LIBS="-ldl  $LIBS"
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h.  */
10890
10891 /* Override any GCC internal prototype to avoid an error.
10892    Use char because int might match the return type of a GCC
10893    builtin and then its argument prototype would still apply.  */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 char dlopen ();
10898 int
10899 main ()
10900 {
10901 return dlopen ();
10902   ;
10903   return 0;
10904 }
10905 _ACEOF
10906 if ac_fn_c_try_link "$LINENO"; then :
10907   ac_cv_lib_dl_dlopen=yes
10908 else
10909   ac_cv_lib_dl_dlopen=no
10910 fi
10911 rm -f core conftest.err conftest.$ac_objext \
10912     conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10914 fi
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10916 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10917 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10918   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10919 else
10920
10921     lt_cv_dlopen="dyld"
10922     lt_cv_dlopen_libs=
10923     lt_cv_dlopen_self=yes
10924
10925 fi
10926
10927     ;;
10928
10929   *)
10930     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10931 if test "x$ac_cv_func_shl_load" = x""yes; then :
10932   lt_cv_dlopen="shl_load"
10933 else
10934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10935 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10936 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10937   $as_echo_n "(cached) " >&6
10938 else
10939   ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-ldld  $LIBS"
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h.  */
10943
10944 /* Override any GCC internal prototype to avoid an error.
10945    Use char because int might match the return type of a GCC
10946    builtin and then its argument prototype would still apply.  */
10947 #ifdef __cplusplus
10948 extern "C"
10949 #endif
10950 char shl_load ();
10951 int
10952 main ()
10953 {
10954 return shl_load ();
10955   ;
10956   return 0;
10957 }
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960   ac_cv_lib_dld_shl_load=yes
10961 else
10962   ac_cv_lib_dld_shl_load=no
10963 fi
10964 rm -f core conftest.err conftest.$ac_objext \
10965     conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10967 fi
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10969 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10970 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10971   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10972 else
10973   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10974 if test "x$ac_cv_func_dlopen" = x""yes; then :
10975   lt_cv_dlopen="dlopen"
10976 else
10977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10978 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10980   $as_echo_n "(cached) " >&6
10981 else
10982   ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-ldl  $LIBS"
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h.  */
10986
10987 /* Override any GCC internal prototype to avoid an error.
10988    Use char because int might match the return type of a GCC
10989    builtin and then its argument prototype would still apply.  */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 char dlopen ();
10994 int
10995 main ()
10996 {
10997 return dlopen ();
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 if ac_fn_c_try_link "$LINENO"; then :
11003   ac_cv_lib_dl_dlopen=yes
11004 else
11005   ac_cv_lib_dl_dlopen=no
11006 fi
11007 rm -f core conftest.err conftest.$ac_objext \
11008     conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11010 fi
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11012 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11013 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11014   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11015 else
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11017 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-lsvld  $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h.  */
11025
11026 /* Override any GCC internal prototype to avoid an error.
11027    Use char because int might match the return type of a GCC
11028    builtin and then its argument prototype would still apply.  */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char dlopen ();
11033 int
11034 main ()
11035 {
11036 return dlopen ();
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042   ac_cv_lib_svld_dlopen=yes
11043 else
11044   ac_cv_lib_svld_dlopen=no
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext \
11047     conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11051 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11052 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11053   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11054 else
11055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11056 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11057 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11058   $as_echo_n "(cached) " >&6
11059 else
11060   ac_check_lib_save_LIBS=$LIBS
11061 LIBS="-ldld  $LIBS"
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h.  */
11064
11065 /* Override any GCC internal prototype to avoid an error.
11066    Use char because int might match the return type of a GCC
11067    builtin and then its argument prototype would still apply.  */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 char dld_link ();
11072 int
11073 main ()
11074 {
11075 return dld_link ();
11076   ;
11077   return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"; then :
11081   ac_cv_lib_dld_dld_link=yes
11082 else
11083   ac_cv_lib_dld_dld_link=no
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext \
11086     conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11090 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11091 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11092   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11093 fi
11094
11095
11096 fi
11097
11098
11099 fi
11100
11101
11102 fi
11103
11104
11105 fi
11106
11107
11108 fi
11109
11110     ;;
11111   esac
11112
11113   if test "x$lt_cv_dlopen" != xno; then
11114     enable_dlopen=yes
11115   else
11116     enable_dlopen=no
11117   fi
11118
11119   case $lt_cv_dlopen in
11120   dlopen)
11121     save_CPPFLAGS="$CPPFLAGS"
11122     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11123
11124     save_LDFLAGS="$LDFLAGS"
11125     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11126
11127     save_LIBS="$LIBS"
11128     LIBS="$lt_cv_dlopen_libs $LIBS"
11129
11130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11131 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11132 if test "${lt_cv_dlopen_self+set}" = set; then :
11133   $as_echo_n "(cached) " >&6
11134 else
11135           if test "$cross_compiling" = yes; then :
11136   lt_cv_dlopen_self=cross
11137 else
11138   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11139   lt_status=$lt_dlunknown
11140   cat > conftest.$ac_ext <<_LT_EOF
11141 #line 11141 "configure"
11142 #include "confdefs.h"
11143
11144 #if HAVE_DLFCN_H
11145 #include <dlfcn.h>
11146 #endif
11147
11148 #include <stdio.h>
11149
11150 #ifdef RTLD_GLOBAL
11151 #  define LT_DLGLOBAL           RTLD_GLOBAL
11152 #else
11153 #  ifdef DL_GLOBAL
11154 #    define LT_DLGLOBAL         DL_GLOBAL
11155 #  else
11156 #    define LT_DLGLOBAL         0
11157 #  endif
11158 #endif
11159
11160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11161    find out it does not work in some platform. */
11162 #ifndef LT_DLLAZY_OR_NOW
11163 #  ifdef RTLD_LAZY
11164 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11165 #  else
11166 #    ifdef DL_LAZY
11167 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11168 #    else
11169 #      ifdef RTLD_NOW
11170 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11171 #      else
11172 #        ifdef DL_NOW
11173 #          define LT_DLLAZY_OR_NOW      DL_NOW
11174 #        else
11175 #          define LT_DLLAZY_OR_NOW      0
11176 #        endif
11177 #      endif
11178 #    endif
11179 #  endif
11180 #endif
11181
11182 void fnord() { int i=42;}
11183 int main ()
11184 {
11185   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11186   int status = $lt_dlunknown;
11187
11188   if (self)
11189     {
11190       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11191       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11192       /* dlclose (self); */
11193     }
11194   else
11195     puts (dlerror ());
11196
11197   return status;
11198 }
11199 _LT_EOF
11200   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11201   (eval $ac_link) 2>&5
11202   ac_status=$?
11203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11205     (./conftest; exit; ) >&5 2>/dev/null
11206     lt_status=$?
11207     case x$lt_status in
11208       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11209       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11210       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11211     esac
11212   else :
11213     # compilation failed
11214     lt_cv_dlopen_self=no
11215   fi
11216 fi
11217 rm -fr conftest*
11218
11219
11220 fi
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11222 $as_echo "$lt_cv_dlopen_self" >&6; }
11223
11224     if test "x$lt_cv_dlopen_self" = xyes; then
11225       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11226       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11227 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11228 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11229   $as_echo_n "(cached) " >&6
11230 else
11231           if test "$cross_compiling" = yes; then :
11232   lt_cv_dlopen_self_static=cross
11233 else
11234   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11235   lt_status=$lt_dlunknown
11236   cat > conftest.$ac_ext <<_LT_EOF
11237 #line 11237 "configure"
11238 #include "confdefs.h"
11239
11240 #if HAVE_DLFCN_H
11241 #include <dlfcn.h>
11242 #endif
11243
11244 #include <stdio.h>
11245
11246 #ifdef RTLD_GLOBAL
11247 #  define LT_DLGLOBAL           RTLD_GLOBAL
11248 #else
11249 #  ifdef DL_GLOBAL
11250 #    define LT_DLGLOBAL         DL_GLOBAL
11251 #  else
11252 #    define LT_DLGLOBAL         0
11253 #  endif
11254 #endif
11255
11256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11257    find out it does not work in some platform. */
11258 #ifndef LT_DLLAZY_OR_NOW
11259 #  ifdef RTLD_LAZY
11260 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11261 #  else
11262 #    ifdef DL_LAZY
11263 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11264 #    else
11265 #      ifdef RTLD_NOW
11266 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11267 #      else
11268 #        ifdef DL_NOW
11269 #          define LT_DLLAZY_OR_NOW      DL_NOW
11270 #        else
11271 #          define LT_DLLAZY_OR_NOW      0
11272 #        endif
11273 #      endif
11274 #    endif
11275 #  endif
11276 #endif
11277
11278 void fnord() { int i=42;}
11279 int main ()
11280 {
11281   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11282   int status = $lt_dlunknown;
11283
11284   if (self)
11285     {
11286       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11287       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11288       /* dlclose (self); */
11289     }
11290   else
11291     puts (dlerror ());
11292
11293   return status;
11294 }
11295 _LT_EOF
11296   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11297   (eval $ac_link) 2>&5
11298   ac_status=$?
11299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11300   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11301     (./conftest; exit; ) >&5 2>/dev/null
11302     lt_status=$?
11303     case x$lt_status in
11304       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11305       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11306       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11307     esac
11308   else :
11309     # compilation failed
11310     lt_cv_dlopen_self_static=no
11311   fi
11312 fi
11313 rm -fr conftest*
11314
11315
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11318 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11319     fi
11320
11321     CPPFLAGS="$save_CPPFLAGS"
11322     LDFLAGS="$save_LDFLAGS"
11323     LIBS="$save_LIBS"
11324     ;;
11325   esac
11326
11327   case $lt_cv_dlopen_self in
11328   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11329   *) enable_dlopen_self=unknown ;;
11330   esac
11331
11332   case $lt_cv_dlopen_self_static in
11333   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11334   *) enable_dlopen_self_static=unknown ;;
11335   esac
11336 fi
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354 striplib=
11355 old_striplib=
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11357 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11358 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11359   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11360   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11362 $as_echo "yes" >&6; }
11363 else
11364 # FIXME - insert some real tests, host_os isn't really good enough
11365   case $host_os in
11366   darwin*)
11367     if test -n "$STRIP" ; then
11368       striplib="$STRIP -x"
11369       old_striplib="$STRIP -S"
11370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371 $as_echo "yes" >&6; }
11372     else
11373       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375     fi
11376     ;;
11377   *)
11378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380     ;;
11381   esac
11382 fi
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395   # Report which library types will actually be built
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11397 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11399 $as_echo "$can_build_shared" >&6; }
11400
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11402 $as_echo_n "checking whether to build shared libraries... " >&6; }
11403   test "$can_build_shared" = "no" && enable_shared=no
11404
11405   # On AIX, shared libraries and static libraries use the same namespace, and
11406   # are all built from PIC.
11407   case $host_os in
11408   aix3*)
11409     test "$enable_shared" = yes && enable_static=no
11410     if test -n "$RANLIB"; then
11411       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11412       postinstall_cmds='$RANLIB $lib'
11413     fi
11414     ;;
11415
11416   aix[4-9]*)
11417     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11418       test "$enable_shared" = yes && enable_static=no
11419     fi
11420     ;;
11421   esac
11422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11423 $as_echo "$enable_shared" >&6; }
11424
11425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11426 $as_echo_n "checking whether to build static libraries... " >&6; }
11427   # Make sure either enable_shared or enable_static is yes.
11428   test "$enable_shared" = yes || enable_static=yes
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11430 $as_echo "$enable_static" >&6; }
11431
11432
11433
11434
11435 fi
11436 ac_ext=c
11437 ac_cpp='$CPP $CPPFLAGS'
11438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11441
11442 CC="$lt_save_CC"
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456         ac_config_commands="$ac_config_commands libtool"
11457
11458
11459
11460
11461 # Only expand once:
11462
11463
11464 ac_ext=cpp
11465 ac_cpp='$CXXCPP $CPPFLAGS'
11466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11469 if test -z "$CXX"; then
11470   if test -n "$CCC"; then
11471     CXX=$CCC
11472   else
11473     if test -n "$ac_tool_prefix"; then
11474   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11475   do
11476     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if test "${ac_cv_prog_CXX+set}" = set; then :
11481   $as_echo_n "(cached) " >&6
11482 else
11483   if test -n "$CXX"; then
11484   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11485 else
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11488 do
11489   IFS=$as_save_IFS
11490   test -z "$as_dir" && as_dir=.
11491     for ac_exec_ext in '' $ac_executable_extensions; do
11492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11495     break 2
11496   fi
11497 done
11498   done
11499 IFS=$as_save_IFS
11500
11501 fi
11502 fi
11503 CXX=$ac_cv_prog_CXX
11504 if test -n "$CXX"; then
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11506 $as_echo "$CXX" >&6; }
11507 else
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11510 fi
11511
11512
11513     test -n "$CXX" && break
11514   done
11515 fi
11516 if test -z "$CXX"; then
11517   ac_ct_CXX=$CXX
11518   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11519 do
11520   # Extract the first word of "$ac_prog", so it can be a program name with args.
11521 set dummy $ac_prog; ac_word=$2
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523 $as_echo_n "checking for $ac_word... " >&6; }
11524 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11525   $as_echo_n "(cached) " >&6
11526 else
11527   if test -n "$ac_ct_CXX"; then
11528   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11529 else
11530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531 for as_dir in $PATH
11532 do
11533   IFS=$as_save_IFS
11534   test -z "$as_dir" && as_dir=.
11535     for ac_exec_ext in '' $ac_executable_extensions; do
11536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11537     ac_cv_prog_ac_ct_CXX="$ac_prog"
11538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11539     break 2
11540   fi
11541 done
11542   done
11543 IFS=$as_save_IFS
11544
11545 fi
11546 fi
11547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11548 if test -n "$ac_ct_CXX"; then
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11550 $as_echo "$ac_ct_CXX" >&6; }
11551 else
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11554 fi
11555
11556
11557   test -n "$ac_ct_CXX" && break
11558 done
11559
11560   if test "x$ac_ct_CXX" = x; then
11561     CXX="g++"
11562   else
11563     case $cross_compiling:$ac_tool_warned in
11564 yes:)
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11567 ac_tool_warned=yes ;;
11568 esac
11569     CXX=$ac_ct_CXX
11570   fi
11571 fi
11572
11573   fi
11574 fi
11575 # Provide some information about the compiler.
11576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11577 set X $ac_compile
11578 ac_compiler=$2
11579 for ac_option in --version -v -V -qversion; do
11580   { { ac_try="$ac_compiler $ac_option >&5"
11581 case "(($ac_try" in
11582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583   *) ac_try_echo=$ac_try;;
11584 esac
11585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11586 $as_echo "$ac_try_echo"; } >&5
11587   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11588   ac_status=$?
11589   if test -s conftest.err; then
11590     sed '10a\
11591 ... rest of stderr output deleted ...
11592          10q' conftest.err >conftest.er1
11593     cat conftest.er1 >&5
11594   fi
11595   rm -f conftest.er1 conftest.err
11596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11597   test $ac_status = 0; }
11598 done
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11601 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11602 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11603   $as_echo_n "(cached) " >&6
11604 else
11605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h.  */
11607
11608 int
11609 main ()
11610 {
11611 #ifndef __GNUC__
11612        choke me
11613 #endif
11614
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_cxx_try_compile "$LINENO"; then :
11620   ac_compiler_gnu=yes
11621 else
11622   ac_compiler_gnu=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11626
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11629 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11630 if test $ac_compiler_gnu = yes; then
11631   GXX=yes
11632 else
11633   GXX=
11634 fi
11635 ac_test_CXXFLAGS=${CXXFLAGS+set}
11636 ac_save_CXXFLAGS=$CXXFLAGS
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11638 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11639 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11643    ac_cxx_werror_flag=yes
11644    ac_cv_prog_cxx_g=no
11645    CXXFLAGS="-g"
11646    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h.  */
11648
11649 int
11650 main ()
11651 {
11652
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 if ac_fn_cxx_try_compile "$LINENO"; then :
11658   ac_cv_prog_cxx_g=yes
11659 else
11660   CXXFLAGS=""
11661       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h.  */
11663
11664 int
11665 main ()
11666 {
11667
11668   ;
11669   return 0;
11670 }
11671 _ACEOF
11672 if ac_fn_cxx_try_compile "$LINENO"; then :
11673
11674 else
11675   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11676          CXXFLAGS="-g"
11677          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h.  */
11679
11680 int
11681 main ()
11682 {
11683
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_cxx_try_compile "$LINENO"; then :
11689   ac_cv_prog_cxx_g=yes
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 fi
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11699 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11700 if test "$ac_test_CXXFLAGS" = set; then
11701   CXXFLAGS=$ac_save_CXXFLAGS
11702 elif test $ac_cv_prog_cxx_g = yes; then
11703   if test "$GXX" = yes; then
11704     CXXFLAGS="-g -O2"
11705   else
11706     CXXFLAGS="-g"
11707   fi
11708 else
11709   if test "$GXX" = yes; then
11710     CXXFLAGS="-O2"
11711   else
11712     CXXFLAGS=
11713   fi
11714 fi
11715 ac_ext=c
11716 ac_cpp='$CPP $CPPFLAGS'
11717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11720
11721 depcc="$CXX"  am_compiler_list=
11722
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11724 $as_echo_n "checking dependency style of $depcc... " >&6; }
11725 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11726   $as_echo_n "(cached) " >&6
11727 else
11728   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11729   # We make a subdir and do the tests there.  Otherwise we can end up
11730   # making bogus files that we don't know about and never remove.  For
11731   # instance it was reported that on HP-UX the gcc test will end up
11732   # making a dummy file named `D' -- because `-MD' means `put the output
11733   # in D'.
11734   mkdir conftest.dir
11735   # Copy depcomp to subdir because otherwise we won't find it if we're
11736   # using a relative directory.
11737   cp "$am_depcomp" conftest.dir
11738   cd conftest.dir
11739   # We will build objects and dependencies in a subdirectory because
11740   # it helps to detect inapplicable dependency modes.  For instance
11741   # both Tru64's cc and ICC support -MD to output dependencies as a
11742   # side effect of compilation, but ICC will put the dependencies in
11743   # the current directory while Tru64 will put them in the object
11744   # directory.
11745   mkdir sub
11746
11747   am_cv_CXX_dependencies_compiler_type=none
11748   if test "$am_compiler_list" = ""; then
11749      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11750   fi
11751   am__universal=false
11752   case " $depcc " in #(
11753      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11754      esac
11755
11756   for depmode in $am_compiler_list; do
11757     # Setup a source with many dependencies, because some compilers
11758     # like to wrap large dependency lists on column 80 (with \), and
11759     # we should not choose a depcomp mode which is confused by this.
11760     #
11761     # We need to recreate these files for each test, as the compiler may
11762     # overwrite some of them when testing with obscure command lines.
11763     # This happens at least with the AIX C compiler.
11764     : > sub/conftest.c
11765     for i in 1 2 3 4 5 6; do
11766       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11767       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11768       # Solaris 8's {/usr,}/bin/sh.
11769       touch sub/conftst$i.h
11770     done
11771     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11772
11773     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11774     # mode.  It turns out that the SunPro C++ compiler does not properly
11775     # handle `-M -o', and we need to detect this.  Also, some Intel
11776     # versions had trouble with output in subdirs
11777     am__obj=sub/conftest.${OBJEXT-o}
11778     am__minus_obj="-o $am__obj"
11779     case $depmode in
11780     gcc)
11781       # This depmode causes a compiler race in universal mode.
11782       test "$am__universal" = false || continue
11783       ;;
11784     nosideeffect)
11785       # after this tag, mechanisms are not by side-effect, so they'll
11786       # only be used when explicitly requested
11787       if test "x$enable_dependency_tracking" = xyes; then
11788         continue
11789       else
11790         break
11791       fi
11792       ;;
11793     msvisualcpp | msvcmsys)
11794       # This compiler won't grok `-c -o', but also, the minuso test has
11795       # not run yet.  These depmodes are late enough in the game, and
11796       # so weak that their functioning should not be impacted.
11797       am__obj=conftest.${OBJEXT-o}
11798       am__minus_obj=
11799       ;;
11800     none) break ;;
11801     esac
11802     if depmode=$depmode \
11803        source=sub/conftest.c object=$am__obj \
11804        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11805        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11806          >/dev/null 2>conftest.err &&
11807        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11808        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11809        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11810        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11811       # icc doesn't choke on unknown options, it will just issue warnings
11812       # or remarks (even with -Werror).  So we grep stderr for any message
11813       # that says an option was ignored or not supported.
11814       # When given -MP, icc 7.0 and 7.1 complain thusly:
11815       #   icc: Command line warning: ignoring option '-M'; no argument required
11816       # The diagnosis changed in icc 8.0:
11817       #   icc: Command line remark: option '-MP' not supported
11818       if (grep 'ignoring option' conftest.err ||
11819           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11820         am_cv_CXX_dependencies_compiler_type=$depmode
11821         break
11822       fi
11823     fi
11824   done
11825
11826   cd ..
11827   rm -rf conftest.dir
11828 else
11829   am_cv_CXX_dependencies_compiler_type=none
11830 fi
11831
11832 fi
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11834 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11835 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11836
11837  if
11838   test "x$enable_dependency_tracking" != xno \
11839   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11840   am__fastdepCXX_TRUE=
11841   am__fastdepCXX_FALSE='#'
11842 else
11843   am__fastdepCXX_TRUE='#'
11844   am__fastdepCXX_FALSE=
11845 fi
11846
11847
11848
11849 ac_ext=cpp
11850 ac_cpp='$CXXCPP $CPPFLAGS'
11851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11854 if test -z "$CXX"; then
11855   if test -n "$CCC"; then
11856     CXX=$CCC
11857   else
11858     if test -n "$ac_tool_prefix"; then
11859   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11860   do
11861     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if test "${ac_cv_prog_CXX+set}" = set; then :
11866   $as_echo_n "(cached) " >&6
11867 else
11868   if test -n "$CXX"; then
11869   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11870 else
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876     for ac_exec_ext in '' $ac_executable_extensions; do
11877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11878     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880     break 2
11881   fi
11882 done
11883   done
11884 IFS=$as_save_IFS
11885
11886 fi
11887 fi
11888 CXX=$ac_cv_prog_CXX
11889 if test -n "$CXX"; then
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11891 $as_echo "$CXX" >&6; }
11892 else
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11895 fi
11896
11897
11898     test -n "$CXX" && break
11899   done
11900 fi
11901 if test -z "$CXX"; then
11902   ac_ct_CXX=$CXX
11903   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11904 do
11905   # Extract the first word of "$ac_prog", so it can be a program name with args.
11906 set dummy $ac_prog; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   if test -n "$ac_ct_CXX"; then
11913   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11917 do
11918   IFS=$as_save_IFS
11919   test -z "$as_dir" && as_dir=.
11920     for ac_exec_ext in '' $ac_executable_extensions; do
11921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922     ac_cv_prog_ac_ct_CXX="$ac_prog"
11923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924     break 2
11925   fi
11926 done
11927   done
11928 IFS=$as_save_IFS
11929
11930 fi
11931 fi
11932 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11933 if test -n "$ac_ct_CXX"; then
11934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11935 $as_echo "$ac_ct_CXX" >&6; }
11936 else
11937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11939 fi
11940
11941
11942   test -n "$ac_ct_CXX" && break
11943 done
11944
11945   if test "x$ac_ct_CXX" = x; then
11946     CXX="g++"
11947   else
11948     case $cross_compiling:$ac_tool_warned in
11949 yes:)
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11952 ac_tool_warned=yes ;;
11953 esac
11954     CXX=$ac_ct_CXX
11955   fi
11956 fi
11957
11958   fi
11959 fi
11960 # Provide some information about the compiler.
11961 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11962 set X $ac_compile
11963 ac_compiler=$2
11964 for ac_option in --version -v -V -qversion; do
11965   { { ac_try="$ac_compiler $ac_option >&5"
11966 case "(($ac_try" in
11967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968   *) ac_try_echo=$ac_try;;
11969 esac
11970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11971 $as_echo "$ac_try_echo"; } >&5
11972   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11973   ac_status=$?
11974   if test -s conftest.err; then
11975     sed '10a\
11976 ... rest of stderr output deleted ...
11977          10q' conftest.err >conftest.er1
11978     cat conftest.er1 >&5
11979   fi
11980   rm -f conftest.er1 conftest.err
11981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11982   test $ac_status = 0; }
11983 done
11984
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11986 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11987 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11988   $as_echo_n "(cached) " >&6
11989 else
11990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h.  */
11992
11993 int
11994 main ()
11995 {
11996 #ifndef __GNUC__
11997        choke me
11998 #endif
11999
12000   ;
12001   return 0;
12002 }
12003 _ACEOF
12004 if ac_fn_cxx_try_compile "$LINENO"; then :
12005   ac_compiler_gnu=yes
12006 else
12007   ac_compiler_gnu=no
12008 fi
12009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12010 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12011
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12014 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12015 if test $ac_compiler_gnu = yes; then
12016   GXX=yes
12017 else
12018   GXX=
12019 fi
12020 ac_test_CXXFLAGS=${CXXFLAGS+set}
12021 ac_save_CXXFLAGS=$CXXFLAGS
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12023 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12024 if test "${ac_cv_prog_cxx_g+set}" = set; then :
12025   $as_echo_n "(cached) " >&6
12026 else
12027   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12028    ac_cxx_werror_flag=yes
12029    ac_cv_prog_cxx_g=no
12030    CXXFLAGS="-g"
12031    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h.  */
12033
12034 int
12035 main ()
12036 {
12037
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 if ac_fn_cxx_try_compile "$LINENO"; then :
12043   ac_cv_prog_cxx_g=yes
12044 else
12045   CXXFLAGS=""
12046       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h.  */
12048
12049 int
12050 main ()
12051 {
12052
12053   ;
12054   return 0;
12055 }
12056 _ACEOF
12057 if ac_fn_cxx_try_compile "$LINENO"; then :
12058
12059 else
12060   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12061          CXXFLAGS="-g"
12062          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h.  */
12064
12065 int
12066 main ()
12067 {
12068
12069   ;
12070   return 0;
12071 }
12072 _ACEOF
12073 if ac_fn_cxx_try_compile "$LINENO"; then :
12074   ac_cv_prog_cxx_g=yes
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 fi
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 fi
12080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12084 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12085 if test "$ac_test_CXXFLAGS" = set; then
12086   CXXFLAGS=$ac_save_CXXFLAGS
12087 elif test $ac_cv_prog_cxx_g = yes; then
12088   if test "$GXX" = yes; then
12089     CXXFLAGS="-g -O2"
12090   else
12091     CXXFLAGS="-g"
12092   fi
12093 else
12094   if test "$GXX" = yes; then
12095     CXXFLAGS="-O2"
12096   else
12097     CXXFLAGS=
12098   fi
12099 fi
12100 ac_ext=c
12101 ac_cpp='$CPP $CPPFLAGS'
12102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12105
12106 depcc="$CXX"  am_compiler_list=
12107
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12109 $as_echo_n "checking dependency style of $depcc... " >&6; }
12110 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12111   $as_echo_n "(cached) " >&6
12112 else
12113   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12114   # We make a subdir and do the tests there.  Otherwise we can end up
12115   # making bogus files that we don't know about and never remove.  For
12116   # instance it was reported that on HP-UX the gcc test will end up
12117   # making a dummy file named `D' -- because `-MD' means `put the output
12118   # in D'.
12119   mkdir conftest.dir
12120   # Copy depcomp to subdir because otherwise we won't find it if we're
12121   # using a relative directory.
12122   cp "$am_depcomp" conftest.dir
12123   cd conftest.dir
12124   # We will build objects and dependencies in a subdirectory because
12125   # it helps to detect inapplicable dependency modes.  For instance
12126   # both Tru64's cc and ICC support -MD to output dependencies as a
12127   # side effect of compilation, but ICC will put the dependencies in
12128   # the current directory while Tru64 will put them in the object
12129   # directory.
12130   mkdir sub
12131
12132   am_cv_CXX_dependencies_compiler_type=none
12133   if test "$am_compiler_list" = ""; then
12134      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12135   fi
12136   am__universal=false
12137   case " $depcc " in #(
12138      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12139      esac
12140
12141   for depmode in $am_compiler_list; do
12142     # Setup a source with many dependencies, because some compilers
12143     # like to wrap large dependency lists on column 80 (with \), and
12144     # we should not choose a depcomp mode which is confused by this.
12145     #
12146     # We need to recreate these files for each test, as the compiler may
12147     # overwrite some of them when testing with obscure command lines.
12148     # This happens at least with the AIX C compiler.
12149     : > sub/conftest.c
12150     for i in 1 2 3 4 5 6; do
12151       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12152       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12153       # Solaris 8's {/usr,}/bin/sh.
12154       touch sub/conftst$i.h
12155     done
12156     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12157
12158     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12159     # mode.  It turns out that the SunPro C++ compiler does not properly
12160     # handle `-M -o', and we need to detect this.  Also, some Intel
12161     # versions had trouble with output in subdirs
12162     am__obj=sub/conftest.${OBJEXT-o}
12163     am__minus_obj="-o $am__obj"
12164     case $depmode in
12165     gcc)
12166       # This depmode causes a compiler race in universal mode.
12167       test "$am__universal" = false || continue
12168       ;;
12169     nosideeffect)
12170       # after this tag, mechanisms are not by side-effect, so they'll
12171       # only be used when explicitly requested
12172       if test "x$enable_dependency_tracking" = xyes; then
12173         continue
12174       else
12175         break
12176       fi
12177       ;;
12178     msvisualcpp | msvcmsys)
12179       # This compiler won't grok `-c -o', but also, the minuso test has
12180       # not run yet.  These depmodes are late enough in the game, and
12181       # so weak that their functioning should not be impacted.
12182       am__obj=conftest.${OBJEXT-o}
12183       am__minus_obj=
12184       ;;
12185     none) break ;;
12186     esac
12187     if depmode=$depmode \
12188        source=sub/conftest.c object=$am__obj \
12189        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12190        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12191          >/dev/null 2>conftest.err &&
12192        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12193        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12194        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12195        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12196       # icc doesn't choke on unknown options, it will just issue warnings
12197       # or remarks (even with -Werror).  So we grep stderr for any message
12198       # that says an option was ignored or not supported.
12199       # When given -MP, icc 7.0 and 7.1 complain thusly:
12200       #   icc: Command line warning: ignoring option '-M'; no argument required
12201       # The diagnosis changed in icc 8.0:
12202       #   icc: Command line remark: option '-MP' not supported
12203       if (grep 'ignoring option' conftest.err ||
12204           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12205         am_cv_CXX_dependencies_compiler_type=$depmode
12206         break
12207       fi
12208     fi
12209   done
12210
12211   cd ..
12212   rm -rf conftest.dir
12213 else
12214   am_cv_CXX_dependencies_compiler_type=none
12215 fi
12216
12217 fi
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12219 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12220 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12221
12222  if
12223   test "x$enable_dependency_tracking" != xno \
12224   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12225   am__fastdepCXX_TRUE=
12226   am__fastdepCXX_FALSE='#'
12227 else
12228   am__fastdepCXX_TRUE='#'
12229   am__fastdepCXX_FALSE=
12230 fi
12231
12232
12233 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12234     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12235     (test "X$CXX" != "Xg++"))) ; then
12236   ac_ext=cpp
12237 ac_cpp='$CXXCPP $CPPFLAGS'
12238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12242 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12243 if test -z "$CXXCPP"; then
12244   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12245   $as_echo_n "(cached) " >&6
12246 else
12247       # Double quotes because CXXCPP needs to be expanded
12248     for CXXCPP in "$CXX -E" "/lib/cpp"
12249     do
12250       ac_preproc_ok=false
12251 for ac_cxx_preproc_warn_flag in '' yes
12252 do
12253   # Use a header file that comes with gcc, so configuring glibc
12254   # with a fresh cross-compiler works.
12255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12256   # <limits.h> exists even on freestanding compilers.
12257   # On the NeXT, cc -E runs the code through the compiler's parser,
12258   # not just through cpp. "Syntax error" is here to catch this case.
12259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h.  */
12261 #ifdef __STDC__
12262 # include <limits.h>
12263 #else
12264 # include <assert.h>
12265 #endif
12266                      Syntax error
12267 _ACEOF
12268 if ac_fn_cxx_try_cpp "$LINENO"; then :
12269
12270 else
12271   # Broken: fails on valid input.
12272 continue
12273 fi
12274 rm -f conftest.err conftest.i conftest.$ac_ext
12275
12276   # OK, works on sane cases.  Now check whether nonexistent headers
12277   # can be detected and how.
12278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h.  */
12280 #include <ac_nonexistent.h>
12281 _ACEOF
12282 if ac_fn_cxx_try_cpp "$LINENO"; then :
12283   # Broken: success on invalid input.
12284 continue
12285 else
12286   # Passes both tests.
12287 ac_preproc_ok=:
12288 break
12289 fi
12290 rm -f conftest.err conftest.i conftest.$ac_ext
12291
12292 done
12293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12294 rm -f conftest.i conftest.err conftest.$ac_ext
12295 if $ac_preproc_ok; then :
12296   break
12297 fi
12298
12299     done
12300     ac_cv_prog_CXXCPP=$CXXCPP
12301
12302 fi
12303   CXXCPP=$ac_cv_prog_CXXCPP
12304 else
12305   ac_cv_prog_CXXCPP=$CXXCPP
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12308 $as_echo "$CXXCPP" >&6; }
12309 ac_preproc_ok=false
12310 for ac_cxx_preproc_warn_flag in '' yes
12311 do
12312   # Use a header file that comes with gcc, so configuring glibc
12313   # with a fresh cross-compiler works.
12314   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12315   # <limits.h> exists even on freestanding compilers.
12316   # On the NeXT, cc -E runs the code through the compiler's parser,
12317   # not just through cpp. "Syntax error" is here to catch this case.
12318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h.  */
12320 #ifdef __STDC__
12321 # include <limits.h>
12322 #else
12323 # include <assert.h>
12324 #endif
12325                      Syntax error
12326 _ACEOF
12327 if ac_fn_cxx_try_cpp "$LINENO"; then :
12328
12329 else
12330   # Broken: fails on valid input.
12331 continue
12332 fi
12333 rm -f conftest.err conftest.i conftest.$ac_ext
12334
12335   # OK, works on sane cases.  Now check whether nonexistent headers
12336   # can be detected and how.
12337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h.  */
12339 #include <ac_nonexistent.h>
12340 _ACEOF
12341 if ac_fn_cxx_try_cpp "$LINENO"; then :
12342   # Broken: success on invalid input.
12343 continue
12344 else
12345   # Passes both tests.
12346 ac_preproc_ok=:
12347 break
12348 fi
12349 rm -f conftest.err conftest.i conftest.$ac_ext
12350
12351 done
12352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12353 rm -f conftest.i conftest.err conftest.$ac_ext
12354 if $ac_preproc_ok; then :
12355
12356 else
12357   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12359 _lt_caught_CXX_error=yes; }
12360 fi
12361
12362 ac_ext=c
12363 ac_cpp='$CPP $CPPFLAGS'
12364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12367
12368 else
12369   _lt_caught_CXX_error=yes
12370 fi
12371
12372
12373
12374
12375 ac_ext=cpp
12376 ac_cpp='$CXXCPP $CPPFLAGS'
12377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12380
12381 archive_cmds_need_lc_CXX=no
12382 allow_undefined_flag_CXX=
12383 always_export_symbols_CXX=no
12384 archive_expsym_cmds_CXX=
12385 compiler_needs_object_CXX=no
12386 export_dynamic_flag_spec_CXX=
12387 hardcode_direct_CXX=no
12388 hardcode_direct_absolute_CXX=no
12389 hardcode_libdir_flag_spec_CXX=
12390 hardcode_libdir_flag_spec_ld_CXX=
12391 hardcode_libdir_separator_CXX=
12392 hardcode_minus_L_CXX=no
12393 hardcode_shlibpath_var_CXX=unsupported
12394 hardcode_automatic_CXX=no
12395 inherit_rpath_CXX=no
12396 module_cmds_CXX=
12397 module_expsym_cmds_CXX=
12398 link_all_deplibs_CXX=unknown
12399 old_archive_cmds_CXX=$old_archive_cmds
12400 no_undefined_flag_CXX=
12401 whole_archive_flag_spec_CXX=
12402 enable_shared_with_static_runtimes_CXX=no
12403
12404 # Source file extension for C++ test sources.
12405 ac_ext=cpp
12406
12407 # Object file extension for compiled C++ test sources.
12408 objext=o
12409 objext_CXX=$objext
12410
12411 # No sense in running all these tests if we already determined that
12412 # the CXX compiler isn't working.  Some variables (like enable_shared)
12413 # are currently assumed to apply to all compilers on this platform,
12414 # and will be corrupted by setting them based on a non-working compiler.
12415 if test "$_lt_caught_CXX_error" != yes; then
12416   # Code to be used in simple compile tests
12417   lt_simple_compile_test_code="int some_variable = 0;"
12418
12419   # Code to be used in simple link tests
12420   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12421
12422   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12423
12424
12425
12426
12427
12428
12429 # If no C compiler was specified, use CC.
12430 LTCC=${LTCC-"$CC"}
12431
12432 # If no C compiler flags were specified, use CFLAGS.
12433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12434
12435 # Allow CC to be a program name with arguments.
12436 compiler=$CC
12437
12438
12439   # save warnings/boilerplate of simple test code
12440   ac_outfile=conftest.$ac_objext
12441 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12443 _lt_compiler_boilerplate=`cat conftest.err`
12444 $RM conftest*
12445
12446   ac_outfile=conftest.$ac_objext
12447 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12449 _lt_linker_boilerplate=`cat conftest.err`
12450 $RM -r conftest*
12451
12452
12453   # Allow CC to be a program name with arguments.
12454   lt_save_CC=$CC
12455   lt_save_LD=$LD
12456   lt_save_GCC=$GCC
12457   GCC=$GXX
12458   lt_save_with_gnu_ld=$with_gnu_ld
12459   lt_save_path_LD=$lt_cv_path_LD
12460   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12461     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12462   else
12463     $as_unset lt_cv_prog_gnu_ld
12464   fi
12465   if test -n "${lt_cv_path_LDCXX+set}"; then
12466     lt_cv_path_LD=$lt_cv_path_LDCXX
12467   else
12468     $as_unset lt_cv_path_LD
12469   fi
12470   test -z "${LDCXX+set}" || LD=$LDCXX
12471   CC=${CXX-"c++"}
12472   compiler=$CC
12473   compiler_CXX=$CC
12474   for cc_temp in $compiler""; do
12475   case $cc_temp in
12476     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12477     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12478     \-*) ;;
12479     *) break;;
12480   esac
12481 done
12482 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12483
12484
12485   if test -n "$compiler"; then
12486     # We don't want -fno-exception when compiling C++ code, so set the
12487     # no_builtin_flag separately
12488     if test "$GXX" = yes; then
12489       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12490     else
12491       lt_prog_compiler_no_builtin_flag_CXX=
12492     fi
12493
12494     if test "$GXX" = yes; then
12495       # Set up default GNU C++ configuration
12496
12497
12498
12499 # Check whether --with-gnu-ld was given.
12500 if test "${with_gnu_ld+set}" = set; then :
12501   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12502 else
12503   with_gnu_ld=no
12504 fi
12505
12506 ac_prog=ld
12507 if test "$GCC" = yes; then
12508   # Check if gcc -print-prog-name=ld gives a path.
12509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12510 $as_echo_n "checking for ld used by $CC... " >&6; }
12511   case $host in
12512   *-*-mingw*)
12513     # gcc leaves a trailing carriage return which upsets mingw
12514     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12515   *)
12516     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12517   esac
12518   case $ac_prog in
12519     # Accept absolute paths.
12520     [\\/]* | ?:[\\/]*)
12521       re_direlt='/[^/][^/]*/\.\./'
12522       # Canonicalize the pathname of ld
12523       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12524       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12525         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12526       done
12527       test -z "$LD" && LD="$ac_prog"
12528       ;;
12529   "")
12530     # If it fails, then pretend we aren't using GCC.
12531     ac_prog=ld
12532     ;;
12533   *)
12534     # If it is relative, then search for the first ld in PATH.
12535     with_gnu_ld=unknown
12536     ;;
12537   esac
12538 elif test "$with_gnu_ld" = yes; then
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12540 $as_echo_n "checking for GNU ld... " >&6; }
12541 else
12542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12543 $as_echo_n "checking for non-GNU ld... " >&6; }
12544 fi
12545 if test "${lt_cv_path_LD+set}" = set; then :
12546   $as_echo_n "(cached) " >&6
12547 else
12548   if test -z "$LD"; then
12549   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12550   for ac_dir in $PATH; do
12551     IFS="$lt_save_ifs"
12552     test -z "$ac_dir" && ac_dir=.
12553     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12554       lt_cv_path_LD="$ac_dir/$ac_prog"
12555       # Check to see if the program is GNU ld.  I'd rather use --version,
12556       # but apparently some variants of GNU ld only accept -v.
12557       # Break only if it was the GNU/non-GNU ld that we prefer.
12558       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12559       *GNU* | *'with BFD'*)
12560         test "$with_gnu_ld" != no && break
12561         ;;
12562       *)
12563         test "$with_gnu_ld" != yes && break
12564         ;;
12565       esac
12566     fi
12567   done
12568   IFS="$lt_save_ifs"
12569 else
12570   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12571 fi
12572 fi
12573
12574 LD="$lt_cv_path_LD"
12575 if test -n "$LD"; then
12576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12577 $as_echo "$LD" >&6; }
12578 else
12579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12581 fi
12582 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12584 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12585 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12586   $as_echo_n "(cached) " >&6
12587 else
12588   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12589 case `$LD -v 2>&1 </dev/null` in
12590 *GNU* | *'with BFD'*)
12591   lt_cv_prog_gnu_ld=yes
12592   ;;
12593 *)
12594   lt_cv_prog_gnu_ld=no
12595   ;;
12596 esac
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12599 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12600 with_gnu_ld=$lt_cv_prog_gnu_ld
12601
12602
12603
12604
12605
12606
12607
12608       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12609       # archiving commands below assume that GNU ld is being used.
12610       if test "$with_gnu_ld" = yes; then
12611         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612         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'
12613
12614         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12615         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12616
12617         # If archive_cmds runs LD, not CC, wlarc should be empty
12618         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12619         #     investigate it a little bit more. (MM)
12620         wlarc='${wl}'
12621
12622         # ancient GNU ld didn't support --whole-archive et. al.
12623         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12624           $GREP 'no-whole-archive' > /dev/null; then
12625           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12626         else
12627           whole_archive_flag_spec_CXX=
12628         fi
12629       else
12630         with_gnu_ld=no
12631         wlarc=
12632
12633         # A generic and very simple default shared library creation
12634         # command for GNU C++ for the case where it uses the native
12635         # linker, instead of GNU ld.  If possible, this setting should
12636         # overridden to take advantage of the native linker features on
12637         # the platform it is being used on.
12638         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12639       fi
12640
12641       # Commands to make compiler produce verbose output that lists
12642       # what "hidden" libraries, object files and flags are used when
12643       # linking a shared library.
12644       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12645
12646     else
12647       GXX=no
12648       with_gnu_ld=no
12649       wlarc=
12650     fi
12651
12652     # PORTME: fill in a description of your system's C++ link characteristics
12653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12654 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12655     ld_shlibs_CXX=yes
12656     case $host_os in
12657       aix3*)
12658         # FIXME: insert proper C++ library support
12659         ld_shlibs_CXX=no
12660         ;;
12661       aix[4-9]*)
12662         if test "$host_cpu" = ia64; then
12663           # On IA64, the linker does run time linking by default, so we don't
12664           # have to do anything special.
12665           aix_use_runtimelinking=no
12666           exp_sym_flag='-Bexport'
12667           no_entry_flag=""
12668         else
12669           aix_use_runtimelinking=no
12670
12671           # Test if we are trying to use run time linking or normal
12672           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12673           # need to do runtime linking.
12674           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12675             for ld_flag in $LDFLAGS; do
12676               case $ld_flag in
12677               *-brtl*)
12678                 aix_use_runtimelinking=yes
12679                 break
12680                 ;;
12681               esac
12682             done
12683             ;;
12684           esac
12685
12686           exp_sym_flag='-bexport'
12687           no_entry_flag='-bnoentry'
12688         fi
12689
12690         # When large executables or shared objects are built, AIX ld can
12691         # have problems creating the table of contents.  If linking a library
12692         # or program results in "error TOC overflow" add -mminimal-toc to
12693         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12694         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12695
12696         archive_cmds_CXX=''
12697         hardcode_direct_CXX=yes
12698         hardcode_direct_absolute_CXX=yes
12699         hardcode_libdir_separator_CXX=':'
12700         link_all_deplibs_CXX=yes
12701         file_list_spec_CXX='${wl}-f,'
12702
12703         if test "$GXX" = yes; then
12704           case $host_os in aix4.[012]|aix4.[012].*)
12705           # We only want to do this on AIX 4.2 and lower, the check
12706           # below for broken collect2 doesn't work under 4.3+
12707           collect2name=`${CC} -print-prog-name=collect2`
12708           if test -f "$collect2name" &&
12709              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12710           then
12711             # We have reworked collect2
12712             :
12713           else
12714             # We have old collect2
12715             hardcode_direct_CXX=unsupported
12716             # It fails to find uninstalled libraries when the uninstalled
12717             # path is not listed in the libpath.  Setting hardcode_minus_L
12718             # to unsupported forces relinking
12719             hardcode_minus_L_CXX=yes
12720             hardcode_libdir_flag_spec_CXX='-L$libdir'
12721             hardcode_libdir_separator_CXX=
12722           fi
12723           esac
12724           shared_flag='-shared'
12725           if test "$aix_use_runtimelinking" = yes; then
12726             shared_flag="$shared_flag "'${wl}-G'
12727           fi
12728         else
12729           # not using gcc
12730           if test "$host_cpu" = ia64; then
12731           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12732           # chokes on -Wl,-G. The following line is correct:
12733           shared_flag='-G'
12734           else
12735             if test "$aix_use_runtimelinking" = yes; then
12736               shared_flag='${wl}-G'
12737             else
12738               shared_flag='${wl}-bM:SRE'
12739             fi
12740           fi
12741         fi
12742
12743         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12744         # It seems that -bexpall does not export symbols beginning with
12745         # underscore (_), so it is better to generate a list of symbols to
12746         # export.
12747         always_export_symbols_CXX=yes
12748         if test "$aix_use_runtimelinking" = yes; then
12749           # Warning - without using the other runtime loading flags (-brtl),
12750           # -berok will link without error, but may produce a broken library.
12751           allow_undefined_flag_CXX='-berok'
12752           # Determine the default libpath from the value encoded in an empty
12753           # executable.
12754           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h.  */
12756
12757 int
12758 main ()
12759 {
12760
12761   ;
12762   return 0;
12763 }
12764 _ACEOF
12765 if ac_fn_cxx_try_link "$LINENO"; then :
12766
12767 lt_aix_libpath_sed='
12768     /Import File Strings/,/^$/ {
12769         /^0/ {
12770             s/^0  *\(.*\)$/\1/
12771             p
12772         }
12773     }'
12774 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12775 # Check for a 64-bit object if we didn't find anything.
12776 if test -z "$aix_libpath"; then
12777   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12778 fi
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext \
12781     conftest$ac_exeext conftest.$ac_ext
12782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12783
12784           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12785
12786           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"
12787         else
12788           if test "$host_cpu" = ia64; then
12789             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12790             allow_undefined_flag_CXX="-z nodefs"
12791             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"
12792           else
12793             # Determine the default libpath from the value encoded in an
12794             # empty executable.
12795             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h.  */
12797
12798 int
12799 main ()
12800 {
12801
12802   ;
12803   return 0;
12804 }
12805 _ACEOF
12806 if ac_fn_cxx_try_link "$LINENO"; then :
12807
12808 lt_aix_libpath_sed='
12809     /Import File Strings/,/^$/ {
12810         /^0/ {
12811             s/^0  *\(.*\)$/\1/
12812             p
12813         }
12814     }'
12815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12816 # Check for a 64-bit object if we didn't find anything.
12817 if test -z "$aix_libpath"; then
12818   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12819 fi
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext \
12822     conftest$ac_exeext conftest.$ac_ext
12823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12824
12825             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12826             # Warning - without using the other run time loading flags,
12827             # -berok will link without error, but may produce a broken library.
12828             no_undefined_flag_CXX=' ${wl}-bernotok'
12829             allow_undefined_flag_CXX=' ${wl}-berok'
12830             # Exported symbols can be pulled into shared objects from archives
12831             whole_archive_flag_spec_CXX='$convenience'
12832             archive_cmds_need_lc_CXX=yes
12833             # This is similar to how AIX traditionally builds its shared
12834             # libraries.
12835             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'
12836           fi
12837         fi
12838         ;;
12839
12840       beos*)
12841         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12842           allow_undefined_flag_CXX=unsupported
12843           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12844           # support --undefined.  This deserves some investigation.  FIXME
12845           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846         else
12847           ld_shlibs_CXX=no
12848         fi
12849         ;;
12850
12851       chorus*)
12852         case $cc_basename in
12853           *)
12854           # FIXME: insert proper C++ library support
12855           ld_shlibs_CXX=no
12856           ;;
12857         esac
12858         ;;
12859
12860       cygwin* | mingw* | pw32* | cegcc*)
12861         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12862         # as there is no search path for DLLs.
12863         hardcode_libdir_flag_spec_CXX='-L$libdir'
12864         allow_undefined_flag_CXX=unsupported
12865         always_export_symbols_CXX=no
12866         enable_shared_with_static_runtimes_CXX=yes
12867
12868         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12869           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'
12870           # If the export-symbols file already is a .def file (1st line
12871           # is EXPORTS), use it as is; otherwise, prepend...
12872           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12873             cp $export_symbols $output_objdir/$soname.def;
12874           else
12875             echo EXPORTS > $output_objdir/$soname.def;
12876             cat $export_symbols >> $output_objdir/$soname.def;
12877           fi~
12878           $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'
12879         else
12880           ld_shlibs_CXX=no
12881         fi
12882         ;;
12883       darwin* | rhapsody*)
12884
12885
12886   archive_cmds_need_lc_CXX=no
12887   hardcode_direct_CXX=no
12888   hardcode_automatic_CXX=yes
12889   hardcode_shlibpath_var_CXX=unsupported
12890   whole_archive_flag_spec_CXX=''
12891   link_all_deplibs_CXX=yes
12892   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12893   case $cc_basename in
12894      ifort*) _lt_dar_can_shared=yes ;;
12895      *) _lt_dar_can_shared=$GCC ;;
12896   esac
12897   if test "$_lt_dar_can_shared" = "yes"; then
12898     output_verbose_link_cmd=echo
12899     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}"
12900     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12901     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}"
12902     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}"
12903        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12904       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}"
12905       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}"
12906     fi
12907
12908   else
12909   ld_shlibs_CXX=no
12910   fi
12911
12912         ;;
12913
12914       dgux*)
12915         case $cc_basename in
12916           ec++*)
12917             # FIXME: insert proper C++ library support
12918             ld_shlibs_CXX=no
12919             ;;
12920           ghcx*)
12921             # Green Hills C++ Compiler
12922             # FIXME: insert proper C++ library support
12923             ld_shlibs_CXX=no
12924             ;;
12925           *)
12926             # FIXME: insert proper C++ library support
12927             ld_shlibs_CXX=no
12928             ;;
12929         esac
12930         ;;
12931
12932       freebsd[12]*)
12933         # C++ shared libraries reported to be fairly broken before
12934         # switch to ELF
12935         ld_shlibs_CXX=no
12936         ;;
12937
12938       freebsd-elf*)
12939         archive_cmds_need_lc_CXX=no
12940         ;;
12941
12942       freebsd* | dragonfly*)
12943         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12944         # conventions
12945         ld_shlibs_CXX=yes
12946         ;;
12947
12948       gnu*)
12949         ;;
12950
12951       hpux9*)
12952         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12953         hardcode_libdir_separator_CXX=:
12954         export_dynamic_flag_spec_CXX='${wl}-E'
12955         hardcode_direct_CXX=yes
12956         hardcode_minus_L_CXX=yes # Not in the search PATH,
12957                                              # but as the default
12958                                              # location of the library.
12959
12960         case $cc_basename in
12961           CC*)
12962             # FIXME: insert proper C++ library support
12963             ld_shlibs_CXX=no
12964             ;;
12965           aCC*)
12966             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'
12967             # Commands to make compiler produce verbose output that lists
12968             # what "hidden" libraries, object files and flags are used when
12969             # linking a shared library.
12970             #
12971             # There doesn't appear to be a way to prevent this compiler from
12972             # explicitly linking system object files so we need to strip them
12973             # from the output so that they don't get included in the library
12974             # dependencies.
12975             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'
12976             ;;
12977           *)
12978             if test "$GXX" = yes; then
12979               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'
12980             else
12981               # FIXME: insert proper C++ library support
12982               ld_shlibs_CXX=no
12983             fi
12984             ;;
12985         esac
12986         ;;
12987
12988       hpux10*|hpux11*)
12989         if test $with_gnu_ld = no; then
12990           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12991           hardcode_libdir_separator_CXX=:
12992
12993           case $host_cpu in
12994             hppa*64*|ia64*)
12995               ;;
12996             *)
12997               export_dynamic_flag_spec_CXX='${wl}-E'
12998               ;;
12999           esac
13000         fi
13001         case $host_cpu in
13002           hppa*64*|ia64*)
13003             hardcode_direct_CXX=no
13004             hardcode_shlibpath_var_CXX=no
13005             ;;
13006           *)
13007             hardcode_direct_CXX=yes
13008             hardcode_direct_absolute_CXX=yes
13009             hardcode_minus_L_CXX=yes # Not in the search PATH,
13010                                                  # but as the default
13011                                                  # location of the library.
13012             ;;
13013         esac
13014
13015         case $cc_basename in
13016           CC*)
13017             # FIXME: insert proper C++ library support
13018             ld_shlibs_CXX=no
13019             ;;
13020           aCC*)
13021             case $host_cpu in
13022               hppa*64*)
13023                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024                 ;;
13025               ia64*)
13026                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13027                 ;;
13028               *)
13029                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13030                 ;;
13031             esac
13032             # Commands to make compiler produce verbose output that lists
13033             # what "hidden" libraries, object files and flags are used when
13034             # linking a shared library.
13035             #
13036             # There doesn't appear to be a way to prevent this compiler from
13037             # explicitly linking system object files so we need to strip them
13038             # from the output so that they don't get included in the library
13039             # dependencies.
13040             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'
13041             ;;
13042           *)
13043             if test "$GXX" = yes; then
13044               if test $with_gnu_ld = no; then
13045                 case $host_cpu in
13046                   hppa*64*)
13047                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13048                     ;;
13049                   ia64*)
13050                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13051                     ;;
13052                   *)
13053                     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'
13054                     ;;
13055                 esac
13056               fi
13057             else
13058               # FIXME: insert proper C++ library support
13059               ld_shlibs_CXX=no
13060             fi
13061             ;;
13062         esac
13063         ;;
13064
13065       interix[3-9]*)
13066         hardcode_direct_CXX=no
13067         hardcode_shlibpath_var_CXX=no
13068         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13069         export_dynamic_flag_spec_CXX='${wl}-E'
13070         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13071         # Instead, shared libraries are loaded at an image base (0x10000000 by
13072         # default) and relocated if they conflict, which is a slow very memory
13073         # consuming and fragmenting process.  To avoid this, we pick a random,
13074         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13075         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13076         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'
13077         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'
13078         ;;
13079       irix5* | irix6*)
13080         case $cc_basename in
13081           CC*)
13082             # SGI C++
13083             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'
13084
13085             # Archives containing C++ object files must be created using
13086             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13087             # necessary to make sure instantiated templates are included
13088             # in the archive.
13089             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13090             ;;
13091           *)
13092             if test "$GXX" = yes; then
13093               if test "$with_gnu_ld" = no; then
13094                 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'
13095               else
13096                 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'
13097               fi
13098             fi
13099             link_all_deplibs_CXX=yes
13100             ;;
13101         esac
13102         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13103         hardcode_libdir_separator_CXX=:
13104         inherit_rpath_CXX=yes
13105         ;;
13106
13107       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13108         case $cc_basename in
13109           KCC*)
13110             # Kuck and Associates, Inc. (KAI) C++ Compiler
13111
13112             # KCC will only create a shared library if the output file
13113             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13114             # to its proper name (with version) after linking.
13115             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'
13116             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'
13117             # Commands to make compiler produce verbose output that lists
13118             # what "hidden" libraries, object files and flags are used when
13119             # linking a shared library.
13120             #
13121             # There doesn't appear to be a way to prevent this compiler from
13122             # explicitly linking system object files so we need to strip them
13123             # from the output so that they don't get included in the library
13124             # dependencies.
13125             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'
13126
13127             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13128             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13129
13130             # Archives containing C++ object files must be created using
13131             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13132             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13133             ;;
13134           icpc* | ecpc* )
13135             # Intel C++
13136             with_gnu_ld=yes
13137             # version 8.0 and above of icpc choke on multiply defined symbols
13138             # if we add $predep_objects and $postdep_objects, however 7.1 and
13139             # earlier do not add the objects themselves.
13140             case `$CC -V 2>&1` in
13141               *"Version 7."*)
13142                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13143                 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'
13144                 ;;
13145               *)  # Version 8.0 or newer
13146                 tmp_idyn=
13147                 case $host_cpu in
13148                   ia64*) tmp_idyn=' -i_dynamic';;
13149                 esac
13150                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13151                 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'
13152                 ;;
13153             esac
13154             archive_cmds_need_lc_CXX=no
13155             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13156             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13157             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13158             ;;
13159           pgCC* | pgcpp*)
13160             # Portland Group C++ compiler
13161             case `$CC -V` in
13162             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13163               prelink_cmds_CXX='tpldir=Template.dir~
13164                 rm -rf $tpldir~
13165                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13166                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13167               old_archive_cmds_CXX='tpldir=Template.dir~
13168                 rm -rf $tpldir~
13169                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13170                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13171                 $RANLIB $oldlib'
13172               archive_cmds_CXX='tpldir=Template.dir~
13173                 rm -rf $tpldir~
13174                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13175                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13176               archive_expsym_cmds_CXX='tpldir=Template.dir~
13177                 rm -rf $tpldir~
13178                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13179                 $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'
13180               ;;
13181             *) # Version 6 will use weak symbols
13182               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13183               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'
13184               ;;
13185             esac
13186
13187             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13188             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13189             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'
13190             ;;
13191           cxx*)
13192             # Compaq C++
13193             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194             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'
13195
13196             runpath_var=LD_RUN_PATH
13197             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13198             hardcode_libdir_separator_CXX=:
13199
13200             # Commands to make compiler produce verbose output that lists
13201             # what "hidden" libraries, object files and flags are used when
13202             # linking a shared library.
13203             #
13204             # There doesn't appear to be a way to prevent this compiler from
13205             # explicitly linking system object files so we need to strip them
13206             # from the output so that they don't get included in the library
13207             # dependencies.
13208             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'
13209             ;;
13210           xl*)
13211             # IBM XL 8.0 on PPC, with GNU ld
13212             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13213             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13214             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13215             if test "x$supports_anon_versioning" = xyes; then
13216               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13217                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13218                 echo "local: *; };" >> $output_objdir/$libname.ver~
13219                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13220             fi
13221             ;;
13222           *)
13223             case `$CC -V 2>&1 | sed 5q` in
13224             *Sun\ C*)
13225               # Sun C++ 5.9
13226               no_undefined_flag_CXX=' -zdefs'
13227               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13228               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'
13229               hardcode_libdir_flag_spec_CXX='-R$libdir'
13230               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'
13231               compiler_needs_object_CXX=yes
13232
13233               # Not sure whether something based on
13234               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13235               # would be better.
13236               output_verbose_link_cmd='echo'
13237
13238               # Archives containing C++ object files must be created using
13239               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13240               # necessary to make sure instantiated templates are included
13241               # in the archive.
13242               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13243               ;;
13244             esac
13245             ;;
13246         esac
13247         ;;
13248
13249       lynxos*)
13250         # FIXME: insert proper C++ library support
13251         ld_shlibs_CXX=no
13252         ;;
13253
13254       m88k*)
13255         # FIXME: insert proper C++ library support
13256         ld_shlibs_CXX=no
13257         ;;
13258
13259       mvs*)
13260         case $cc_basename in
13261           cxx*)
13262             # FIXME: insert proper C++ library support
13263             ld_shlibs_CXX=no
13264             ;;
13265           *)
13266             # FIXME: insert proper C++ library support
13267             ld_shlibs_CXX=no
13268             ;;
13269         esac
13270         ;;
13271
13272       netbsd*)
13273         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13274           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13275           wlarc=
13276           hardcode_libdir_flag_spec_CXX='-R$libdir'
13277           hardcode_direct_CXX=yes
13278           hardcode_shlibpath_var_CXX=no
13279         fi
13280         # Workaround some broken pre-1.5 toolchains
13281         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13282         ;;
13283
13284       *nto* | *qnx*)
13285         ld_shlibs_CXX=yes
13286         ;;
13287
13288       openbsd2*)
13289         # C++ shared libraries are fairly broken
13290         ld_shlibs_CXX=no
13291         ;;
13292
13293       openbsd*)
13294         if test -f /usr/libexec/ld.so; then
13295           hardcode_direct_CXX=yes
13296           hardcode_shlibpath_var_CXX=no
13297           hardcode_direct_absolute_CXX=yes
13298           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13299           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13300           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13301             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13302             export_dynamic_flag_spec_CXX='${wl}-E'
13303             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13304           fi
13305           output_verbose_link_cmd=echo
13306         else
13307           ld_shlibs_CXX=no
13308         fi
13309         ;;
13310
13311       osf3* | osf4* | osf5*)
13312         case $cc_basename in
13313           KCC*)
13314             # Kuck and Associates, Inc. (KAI) C++ Compiler
13315
13316             # KCC will only create a shared library if the output file
13317             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13318             # to its proper name (with version) after linking.
13319             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'
13320
13321             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13322             hardcode_libdir_separator_CXX=:
13323
13324             # Archives containing C++ object files must be created using
13325             # the KAI C++ compiler.
13326             case $host in
13327               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13328               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13329             esac
13330             ;;
13331           RCC*)
13332             # Rational C++ 2.4.1
13333             # FIXME: insert proper C++ library support
13334             ld_shlibs_CXX=no
13335             ;;
13336           cxx*)
13337             case $host in
13338               osf3*)
13339                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13340                 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'
13341                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13342                 ;;
13343               *)
13344                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13345                 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'
13346                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13347                   echo "-hidden">> $lib.exp~
13348                   $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~
13349                   $RM $lib.exp'
13350                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13351                 ;;
13352             esac
13353
13354             hardcode_libdir_separator_CXX=:
13355
13356             # Commands to make compiler produce verbose output that lists
13357             # what "hidden" libraries, object files and flags are used when
13358             # linking a shared library.
13359             #
13360             # There doesn't appear to be a way to prevent this compiler from
13361             # explicitly linking system object files so we need to strip them
13362             # from the output so that they don't get included in the library
13363             # dependencies.
13364             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'
13365             ;;
13366           *)
13367             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13368               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13369               case $host in
13370                 osf3*)
13371                   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'
13372                   ;;
13373                 *)
13374                   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'
13375                   ;;
13376               esac
13377
13378               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13379               hardcode_libdir_separator_CXX=:
13380
13381               # Commands to make compiler produce verbose output that lists
13382               # what "hidden" libraries, object files and flags are used when
13383               # linking a shared library.
13384               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13385
13386             else
13387               # FIXME: insert proper C++ library support
13388               ld_shlibs_CXX=no
13389             fi
13390             ;;
13391         esac
13392         ;;
13393
13394       psos*)
13395         # FIXME: insert proper C++ library support
13396         ld_shlibs_CXX=no
13397         ;;
13398
13399       sunos4*)
13400         case $cc_basename in
13401           CC*)
13402             # Sun C++ 4.x
13403             # FIXME: insert proper C++ library support
13404             ld_shlibs_CXX=no
13405             ;;
13406           lcc*)
13407             # Lucid
13408             # FIXME: insert proper C++ library support
13409             ld_shlibs_CXX=no
13410             ;;
13411           *)
13412             # FIXME: insert proper C++ library support
13413             ld_shlibs_CXX=no
13414             ;;
13415         esac
13416         ;;
13417
13418       solaris*)
13419         case $cc_basename in
13420           CC*)
13421             # Sun C++ 4.2, 5.x and Centerline C++
13422             archive_cmds_need_lc_CXX=yes
13423             no_undefined_flag_CXX=' -zdefs'
13424             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13425             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13426               $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'
13427
13428             hardcode_libdir_flag_spec_CXX='-R$libdir'
13429             hardcode_shlibpath_var_CXX=no
13430             case $host_os in
13431               solaris2.[0-5] | solaris2.[0-5].*) ;;
13432               *)
13433                 # The compiler driver will combine and reorder linker options,
13434                 # but understands `-z linker_flag'.
13435                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13436                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13437                 ;;
13438             esac
13439             link_all_deplibs_CXX=yes
13440
13441             output_verbose_link_cmd='echo'
13442
13443             # Archives containing C++ object files must be created using
13444             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13445             # necessary to make sure instantiated templates are included
13446             # in the archive.
13447             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13448             ;;
13449           gcx*)
13450             # Green Hills C++ Compiler
13451             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13452
13453             # The C++ compiler must be used to create the archive.
13454             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13455             ;;
13456           *)
13457             # GNU C++ compiler with Solaris linker
13458             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13459               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13460               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13461                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13462                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13463                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13464
13465                 # Commands to make compiler produce verbose output that lists
13466                 # what "hidden" libraries, object files and flags are used when
13467                 # linking a shared library.
13468                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13469               else
13470                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13471                 # platform.
13472                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13473                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13474                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13475
13476                 # Commands to make compiler produce verbose output that lists
13477                 # what "hidden" libraries, object files and flags are used when
13478                 # linking a shared library.
13479                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13480               fi
13481
13482               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13483               case $host_os in
13484                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13485                 *)
13486                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13487                   ;;
13488               esac
13489             fi
13490             ;;
13491         esac
13492         ;;
13493
13494     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13495       no_undefined_flag_CXX='${wl}-z,text'
13496       archive_cmds_need_lc_CXX=no
13497       hardcode_shlibpath_var_CXX=no
13498       runpath_var='LD_RUN_PATH'
13499
13500       case $cc_basename in
13501         CC*)
13502           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13503           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13504           ;;
13505         *)
13506           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13508           ;;
13509       esac
13510       ;;
13511
13512       sysv5* | sco3.2v5* | sco5v6*)
13513         # Note: We can NOT use -z defs as we might desire, because we do not
13514         # link with -lc, and that would cause any symbols used from libc to
13515         # always be unresolved, which means just about no library would
13516         # ever link correctly.  If we're not using GNU ld we use -z text
13517         # though, which does catch some bad symbols but isn't as heavy-handed
13518         # as -z defs.
13519         no_undefined_flag_CXX='${wl}-z,text'
13520         allow_undefined_flag_CXX='${wl}-z,nodefs'
13521         archive_cmds_need_lc_CXX=no
13522         hardcode_shlibpath_var_CXX=no
13523         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13524         hardcode_libdir_separator_CXX=':'
13525         link_all_deplibs_CXX=yes
13526         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13527         runpath_var='LD_RUN_PATH'
13528
13529         case $cc_basename in
13530           CC*)
13531             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13532             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13533             ;;
13534           *)
13535             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13536             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13537             ;;
13538         esac
13539       ;;
13540
13541       tandem*)
13542         case $cc_basename in
13543           NCC*)
13544             # NonStop-UX NCC 3.20
13545             # FIXME: insert proper C++ library support
13546             ld_shlibs_CXX=no
13547             ;;
13548           *)
13549             # FIXME: insert proper C++ library support
13550             ld_shlibs_CXX=no
13551             ;;
13552         esac
13553         ;;
13554
13555       vxworks*)
13556         # FIXME: insert proper C++ library support
13557         ld_shlibs_CXX=no
13558         ;;
13559
13560       *)
13561         # FIXME: insert proper C++ library support
13562         ld_shlibs_CXX=no
13563         ;;
13564     esac
13565
13566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13567 $as_echo "$ld_shlibs_CXX" >&6; }
13568     test "$ld_shlibs_CXX" = no && can_build_shared=no
13569
13570     GCC_CXX="$GXX"
13571     LD_CXX="$LD"
13572
13573     ## CAVEAT EMPTOR:
13574     ## There is no encapsulation within the following macros, do not change
13575     ## the running order or otherwise move them around unless you know exactly
13576     ## what you are doing...
13577     # Dependencies to place before and after the object being linked:
13578 predep_objects_CXX=
13579 postdep_objects_CXX=
13580 predeps_CXX=
13581 postdeps_CXX=
13582 compiler_lib_search_path_CXX=
13583
13584 cat > conftest.$ac_ext <<_LT_EOF
13585 class Foo
13586 {
13587 public:
13588   Foo (void) { a = 0; }
13589 private:
13590   int a;
13591 };
13592 _LT_EOF
13593
13594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13595   (eval $ac_compile) 2>&5
13596   ac_status=$?
13597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598   test $ac_status = 0; }; then
13599   # Parse the compiler output and extract the necessary
13600   # objects, libraries and library flags.
13601
13602   # Sentinel used to keep track of whether or not we are before
13603   # the conftest object file.
13604   pre_test_object_deps_done=no
13605
13606   for p in `eval "$output_verbose_link_cmd"`; do
13607     case $p in
13608
13609     -L* | -R* | -l*)
13610        # Some compilers place space between "-{L,R}" and the path.
13611        # Remove the space.
13612        if test $p = "-L" ||
13613           test $p = "-R"; then
13614          prev=$p
13615          continue
13616        else
13617          prev=
13618        fi
13619
13620        if test "$pre_test_object_deps_done" = no; then
13621          case $p in
13622          -L* | -R*)
13623            # Internal compiler library paths should come after those
13624            # provided the user.  The postdeps already come after the
13625            # user supplied libs so there is no need to process them.
13626            if test -z "$compiler_lib_search_path_CXX"; then
13627              compiler_lib_search_path_CXX="${prev}${p}"
13628            else
13629              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13630            fi
13631            ;;
13632          # The "-l" case would never come before the object being
13633          # linked, so don't bother handling this case.
13634          esac
13635        else
13636          if test -z "$postdeps_CXX"; then
13637            postdeps_CXX="${prev}${p}"
13638          else
13639            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13640          fi
13641        fi
13642        ;;
13643
13644     *.$objext)
13645        # This assumes that the test object file only shows up
13646        # once in the compiler output.
13647        if test "$p" = "conftest.$objext"; then
13648          pre_test_object_deps_done=yes
13649          continue
13650        fi
13651
13652        if test "$pre_test_object_deps_done" = no; then
13653          if test -z "$predep_objects_CXX"; then
13654            predep_objects_CXX="$p"
13655          else
13656            predep_objects_CXX="$predep_objects_CXX $p"
13657          fi
13658        else
13659          if test -z "$postdep_objects_CXX"; then
13660            postdep_objects_CXX="$p"
13661          else
13662            postdep_objects_CXX="$postdep_objects_CXX $p"
13663          fi
13664        fi
13665        ;;
13666
13667     *) ;; # Ignore the rest.
13668
13669     esac
13670   done
13671
13672   # Clean up.
13673   rm -f a.out a.exe
13674 else
13675   echo "libtool.m4: error: problem compiling CXX test program"
13676 fi
13677
13678 $RM -f confest.$objext
13679
13680 # PORTME: override above test on systems where it is broken
13681 case $host_os in
13682 interix[3-9]*)
13683   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13684   # hack all around it, let's just trust "g++" to DTRT.
13685   predep_objects_CXX=
13686   postdep_objects_CXX=
13687   postdeps_CXX=
13688   ;;
13689
13690 linux*)
13691   case `$CC -V 2>&1 | sed 5q` in
13692   *Sun\ C*)
13693     # Sun C++ 5.9
13694
13695     # The more standards-conforming stlport4 library is
13696     # incompatible with the Cstd library. Avoid specifying
13697     # it if it's in CXXFLAGS. Ignore libCrun as
13698     # -library=stlport4 depends on it.
13699     case " $CXX $CXXFLAGS " in
13700     *" -library=stlport4 "*)
13701       solaris_use_stlport4=yes
13702       ;;
13703     esac
13704
13705     if test "$solaris_use_stlport4" != yes; then
13706       postdeps_CXX='-library=Cstd -library=Crun'
13707     fi
13708     ;;
13709   esac
13710   ;;
13711
13712 solaris*)
13713   case $cc_basename in
13714   CC*)
13715     # The more standards-conforming stlport4 library is
13716     # incompatible with the Cstd library. Avoid specifying
13717     # it if it's in CXXFLAGS. Ignore libCrun as
13718     # -library=stlport4 depends on it.
13719     case " $CXX $CXXFLAGS " in
13720     *" -library=stlport4 "*)
13721       solaris_use_stlport4=yes
13722       ;;
13723     esac
13724
13725     # Adding this requires a known-good setup of shared libraries for
13726     # Sun compiler versions before 5.6, else PIC objects from an old
13727     # archive will be linked into the output, leading to subtle bugs.
13728     if test "$solaris_use_stlport4" != yes; then
13729       postdeps_CXX='-library=Cstd -library=Crun'
13730     fi
13731     ;;
13732   esac
13733   ;;
13734 esac
13735
13736
13737 case " $postdeps_CXX " in
13738 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13739 esac
13740  compiler_lib_search_dirs_CXX=
13741 if test -n "${compiler_lib_search_path_CXX}"; then
13742  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13743 fi
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775     lt_prog_compiler_wl_CXX=
13776 lt_prog_compiler_pic_CXX=
13777 lt_prog_compiler_static_CXX=
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13780 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13781
13782   # C++ specific cases for pic, static, wl, etc.
13783   if test "$GXX" = yes; then
13784     lt_prog_compiler_wl_CXX='-Wl,'
13785     lt_prog_compiler_static_CXX='-static'
13786
13787     case $host_os in
13788     aix*)
13789       # All AIX code is PIC.
13790       if test "$host_cpu" = ia64; then
13791         # AIX 5 now supports IA64 processor
13792         lt_prog_compiler_static_CXX='-Bstatic'
13793       fi
13794       ;;
13795
13796     amigaos*)
13797       case $host_cpu in
13798       powerpc)
13799             # see comment about AmigaOS4 .so support
13800             lt_prog_compiler_pic_CXX='-fPIC'
13801         ;;
13802       m68k)
13803             # FIXME: we need at least 68020 code to build shared libraries, but
13804             # adding the `-m68020' flag to GCC prevents building anything better,
13805             # like `-m68040'.
13806             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13807         ;;
13808       esac
13809       ;;
13810
13811     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13812       # PIC is the default for these OSes.
13813       ;;
13814     mingw* | cygwin* | os2* | pw32* | cegcc*)
13815       # This hack is so that the source file can tell whether it is being
13816       # built for inclusion in a dll (and should export symbols for example).
13817       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13818       # (--disable-auto-import) libraries
13819       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13820       ;;
13821     darwin* | rhapsody*)
13822       # PIC is the default on this platform
13823       # Common symbols not allowed in MH_DYLIB files
13824       lt_prog_compiler_pic_CXX='-fno-common'
13825       ;;
13826     *djgpp*)
13827       # DJGPP does not support shared libraries at all
13828       lt_prog_compiler_pic_CXX=
13829       ;;
13830     interix[3-9]*)
13831       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13832       # Instead, we relocate shared libraries at runtime.
13833       ;;
13834     sysv4*MP*)
13835       if test -d /usr/nec; then
13836         lt_prog_compiler_pic_CXX=-Kconform_pic
13837       fi
13838       ;;
13839     hpux*)
13840       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13841       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13842       # sets the default TLS model and affects inlining.
13843       case $host_cpu in
13844       hppa*64*)
13845         ;;
13846       *)
13847         lt_prog_compiler_pic_CXX='-fPIC'
13848         ;;
13849       esac
13850       ;;
13851     *qnx* | *nto*)
13852       # QNX uses GNU C++, but need to define -shared option too, otherwise
13853       # it will coredump.
13854       lt_prog_compiler_pic_CXX='-fPIC -shared'
13855       ;;
13856     *)
13857       lt_prog_compiler_pic_CXX='-fPIC'
13858       ;;
13859     esac
13860   else
13861     case $host_os in
13862       aix[4-9]*)
13863         # All AIX code is PIC.
13864         if test "$host_cpu" = ia64; then
13865           # AIX 5 now supports IA64 processor
13866           lt_prog_compiler_static_CXX='-Bstatic'
13867         else
13868           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13869         fi
13870         ;;
13871       chorus*)
13872         case $cc_basename in
13873         cxch68*)
13874           # Green Hills C++ Compiler
13875           # _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"
13876           ;;
13877         esac
13878         ;;
13879       dgux*)
13880         case $cc_basename in
13881           ec++*)
13882             lt_prog_compiler_pic_CXX='-KPIC'
13883             ;;
13884           ghcx*)
13885             # Green Hills C++ Compiler
13886             lt_prog_compiler_pic_CXX='-pic'
13887             ;;
13888           *)
13889             ;;
13890         esac
13891         ;;
13892       freebsd* | dragonfly*)
13893         # FreeBSD uses GNU C++
13894         ;;
13895       hpux9* | hpux10* | hpux11*)
13896         case $cc_basename in
13897           CC*)
13898             lt_prog_compiler_wl_CXX='-Wl,'
13899             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13900             if test "$host_cpu" != ia64; then
13901               lt_prog_compiler_pic_CXX='+Z'
13902             fi
13903             ;;
13904           aCC*)
13905             lt_prog_compiler_wl_CXX='-Wl,'
13906             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13907             case $host_cpu in
13908             hppa*64*|ia64*)
13909               # +Z the default
13910               ;;
13911             *)
13912               lt_prog_compiler_pic_CXX='+Z'
13913               ;;
13914             esac
13915             ;;
13916           *)
13917             ;;
13918         esac
13919         ;;
13920       interix*)
13921         # This is c89, which is MS Visual C++ (no shared libs)
13922         # Anyone wants to do a port?
13923         ;;
13924       irix5* | irix6* | nonstopux*)
13925         case $cc_basename in
13926           CC*)
13927             lt_prog_compiler_wl_CXX='-Wl,'
13928             lt_prog_compiler_static_CXX='-non_shared'
13929             # CC pic flag -KPIC is the default.
13930             ;;
13931           *)
13932             ;;
13933         esac
13934         ;;
13935       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13936         case $cc_basename in
13937           KCC*)
13938             # KAI C++ Compiler
13939             lt_prog_compiler_wl_CXX='--backend -Wl,'
13940             lt_prog_compiler_pic_CXX='-fPIC'
13941             ;;
13942           ecpc* )
13943             # old Intel C++ for x86_64 which still supported -KPIC.
13944             lt_prog_compiler_wl_CXX='-Wl,'
13945             lt_prog_compiler_pic_CXX='-KPIC'
13946             lt_prog_compiler_static_CXX='-static'
13947             ;;
13948           icpc* )
13949             # Intel C++, used to be incompatible with GCC.
13950             # ICC 10 doesn't accept -KPIC any more.
13951             lt_prog_compiler_wl_CXX='-Wl,'
13952             lt_prog_compiler_pic_CXX='-fPIC'
13953             lt_prog_compiler_static_CXX='-static'
13954             ;;
13955           pgCC* | pgcpp*)
13956             # Portland Group C++ compiler
13957             lt_prog_compiler_wl_CXX='-Wl,'
13958             lt_prog_compiler_pic_CXX='-fpic'
13959             lt_prog_compiler_static_CXX='-Bstatic'
13960             ;;
13961           cxx*)
13962             # Compaq C++
13963             # Make sure the PIC flag is empty.  It appears that all Alpha
13964             # Linux and Compaq Tru64 Unix objects are PIC.
13965             lt_prog_compiler_pic_CXX=
13966             lt_prog_compiler_static_CXX='-non_shared'
13967             ;;
13968           xlc* | xlC*)
13969             # IBM XL 8.0 on PPC
13970             lt_prog_compiler_wl_CXX='-Wl,'
13971             lt_prog_compiler_pic_CXX='-qpic'
13972             lt_prog_compiler_static_CXX='-qstaticlink'
13973             ;;
13974           *)
13975             case `$CC -V 2>&1 | sed 5q` in
13976             *Sun\ C*)
13977               # Sun C++ 5.9
13978               lt_prog_compiler_pic_CXX='-KPIC'
13979               lt_prog_compiler_static_CXX='-Bstatic'
13980               lt_prog_compiler_wl_CXX='-Qoption ld '
13981               ;;
13982             esac
13983             ;;
13984         esac
13985         ;;
13986       lynxos*)
13987         ;;
13988       m88k*)
13989         ;;
13990       mvs*)
13991         case $cc_basename in
13992           cxx*)
13993             lt_prog_compiler_pic_CXX='-W c,exportall'
13994             ;;
13995           *)
13996             ;;
13997         esac
13998         ;;
13999       netbsd* | netbsdelf*-gnu)
14000         ;;
14001       *qnx* | *nto*)
14002         # QNX uses GNU C++, but need to define -shared option too, otherwise
14003         # it will coredump.
14004         lt_prog_compiler_pic_CXX='-fPIC -shared'
14005         ;;
14006       osf3* | osf4* | osf5*)
14007         case $cc_basename in
14008           KCC*)
14009             lt_prog_compiler_wl_CXX='--backend -Wl,'
14010             ;;
14011           RCC*)
14012             # Rational C++ 2.4.1
14013             lt_prog_compiler_pic_CXX='-pic'
14014             ;;
14015           cxx*)
14016             # Digital/Compaq C++
14017             lt_prog_compiler_wl_CXX='-Wl,'
14018             # Make sure the PIC flag is empty.  It appears that all Alpha
14019             # Linux and Compaq Tru64 Unix objects are PIC.
14020             lt_prog_compiler_pic_CXX=
14021             lt_prog_compiler_static_CXX='-non_shared'
14022             ;;
14023           *)
14024             ;;
14025         esac
14026         ;;
14027       psos*)
14028         ;;
14029       solaris*)
14030         case $cc_basename in
14031           CC*)
14032             # Sun C++ 4.2, 5.x and Centerline C++
14033             lt_prog_compiler_pic_CXX='-KPIC'
14034             lt_prog_compiler_static_CXX='-Bstatic'
14035             lt_prog_compiler_wl_CXX='-Qoption ld '
14036             ;;
14037           gcx*)
14038             # Green Hills C++ Compiler
14039             lt_prog_compiler_pic_CXX='-PIC'
14040             ;;
14041           *)
14042             ;;
14043         esac
14044         ;;
14045       sunos4*)
14046         case $cc_basename in
14047           CC*)
14048             # Sun C++ 4.x
14049             lt_prog_compiler_pic_CXX='-pic'
14050             lt_prog_compiler_static_CXX='-Bstatic'
14051             ;;
14052           lcc*)
14053             # Lucid
14054             lt_prog_compiler_pic_CXX='-pic'
14055             ;;
14056           *)
14057             ;;
14058         esac
14059         ;;
14060       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14061         case $cc_basename in
14062           CC*)
14063             lt_prog_compiler_wl_CXX='-Wl,'
14064             lt_prog_compiler_pic_CXX='-KPIC'
14065             lt_prog_compiler_static_CXX='-Bstatic'
14066             ;;
14067         esac
14068         ;;
14069       tandem*)
14070         case $cc_basename in
14071           NCC*)
14072             # NonStop-UX NCC 3.20
14073             lt_prog_compiler_pic_CXX='-KPIC'
14074             ;;
14075           *)
14076             ;;
14077         esac
14078         ;;
14079       vxworks*)
14080         ;;
14081       *)
14082         lt_prog_compiler_can_build_shared_CXX=no
14083         ;;
14084     esac
14085   fi
14086
14087 case $host_os in
14088   # For platforms which do not support PIC, -DPIC is meaningless:
14089   *djgpp*)
14090     lt_prog_compiler_pic_CXX=
14091     ;;
14092   *)
14093     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14094     ;;
14095 esac
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14097 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14098
14099
14100
14101 #
14102 # Check to make sure the PIC flag actually works.
14103 #
14104 if test -n "$lt_prog_compiler_pic_CXX"; then
14105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14106 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14107 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14108   $as_echo_n "(cached) " >&6
14109 else
14110   lt_cv_prog_compiler_pic_works_CXX=no
14111    ac_outfile=conftest.$ac_objext
14112    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14113    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14114    # Insert the option either (1) after the last *FLAGS variable, or
14115    # (2) before a word containing "conftest.", or (3) at the end.
14116    # Note that $ac_compile itself does not contain backslashes and begins
14117    # with a dollar sign (not a hyphen), so the echo should work correctly.
14118    # The option is referenced via a variable to avoid confusing sed.
14119    lt_compile=`echo "$ac_compile" | $SED \
14120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14122    -e 's:$: $lt_compiler_flag:'`
14123    (eval echo "\"\$as_me:14123: $lt_compile\"" >&5)
14124    (eval "$lt_compile" 2>conftest.err)
14125    ac_status=$?
14126    cat conftest.err >&5
14127    echo "$as_me:14127: \$? = $ac_status" >&5
14128    if (exit $ac_status) && test -s "$ac_outfile"; then
14129      # The compiler can only warn and ignore the option if not recognized
14130      # So say no if there are warnings other than the usual output.
14131      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14132      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14133      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14134        lt_cv_prog_compiler_pic_works_CXX=yes
14135      fi
14136    fi
14137    $RM conftest*
14138
14139 fi
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14141 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14142
14143 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14144     case $lt_prog_compiler_pic_CXX in
14145      "" | " "*) ;;
14146      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14147      esac
14148 else
14149     lt_prog_compiler_pic_CXX=
14150      lt_prog_compiler_can_build_shared_CXX=no
14151 fi
14152
14153 fi
14154
14155
14156
14157 #
14158 # Check to make sure the static flag actually works.
14159 #
14160 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14162 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14163 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14164   $as_echo_n "(cached) " >&6
14165 else
14166   lt_cv_prog_compiler_static_works_CXX=no
14167    save_LDFLAGS="$LDFLAGS"
14168    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14169    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14170    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14171      # The linker can only warn and ignore the option if not recognized
14172      # So say no if there are warnings
14173      if test -s conftest.err; then
14174        # Append any errors to the config.log.
14175        cat conftest.err 1>&5
14176        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14177        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14178        if diff conftest.exp conftest.er2 >/dev/null; then
14179          lt_cv_prog_compiler_static_works_CXX=yes
14180        fi
14181      else
14182        lt_cv_prog_compiler_static_works_CXX=yes
14183      fi
14184    fi
14185    $RM -r conftest*
14186    LDFLAGS="$save_LDFLAGS"
14187
14188 fi
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14190 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14191
14192 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14193     :
14194 else
14195     lt_prog_compiler_static_CXX=
14196 fi
14197
14198
14199
14200
14201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14203 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14204   $as_echo_n "(cached) " >&6
14205 else
14206   lt_cv_prog_compiler_c_o_CXX=no
14207    $RM -r conftest 2>/dev/null
14208    mkdir conftest
14209    cd conftest
14210    mkdir out
14211    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14212
14213    lt_compiler_flag="-o out/conftest2.$ac_objext"
14214    # Insert the option either (1) after the last *FLAGS variable, or
14215    # (2) before a word containing "conftest.", or (3) at the end.
14216    # Note that $ac_compile itself does not contain backslashes and begins
14217    # with a dollar sign (not a hyphen), so the echo should work correctly.
14218    lt_compile=`echo "$ac_compile" | $SED \
14219    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14220    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14221    -e 's:$: $lt_compiler_flag:'`
14222    (eval echo "\"\$as_me:14222: $lt_compile\"" >&5)
14223    (eval "$lt_compile" 2>out/conftest.err)
14224    ac_status=$?
14225    cat out/conftest.err >&5
14226    echo "$as_me:14226: \$? = $ac_status" >&5
14227    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14228    then
14229      # The compiler can only warn and ignore the option if not recognized
14230      # So say no if there are warnings
14231      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14232      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14233      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14234        lt_cv_prog_compiler_c_o_CXX=yes
14235      fi
14236    fi
14237    chmod u+w . 2>&5
14238    $RM conftest*
14239    # SGI C++ compiler will create directory out/ii_files/ for
14240    # template instantiation
14241    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14242    $RM out/* && rmdir out
14243    cd ..
14244    $RM -r conftest
14245    $RM conftest*
14246
14247 fi
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14249 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14250
14251
14252
14253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14255 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14256   $as_echo_n "(cached) " >&6
14257 else
14258   lt_cv_prog_compiler_c_o_CXX=no
14259    $RM -r conftest 2>/dev/null
14260    mkdir conftest
14261    cd conftest
14262    mkdir out
14263    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14264
14265    lt_compiler_flag="-o out/conftest2.$ac_objext"
14266    # Insert the option either (1) after the last *FLAGS variable, or
14267    # (2) before a word containing "conftest.", or (3) at the end.
14268    # Note that $ac_compile itself does not contain backslashes and begins
14269    # with a dollar sign (not a hyphen), so the echo should work correctly.
14270    lt_compile=`echo "$ac_compile" | $SED \
14271    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14272    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14273    -e 's:$: $lt_compiler_flag:'`
14274    (eval echo "\"\$as_me:14274: $lt_compile\"" >&5)
14275    (eval "$lt_compile" 2>out/conftest.err)
14276    ac_status=$?
14277    cat out/conftest.err >&5
14278    echo "$as_me:14278: \$? = $ac_status" >&5
14279    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14280    then
14281      # The compiler can only warn and ignore the option if not recognized
14282      # So say no if there are warnings
14283      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14284      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14285      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14286        lt_cv_prog_compiler_c_o_CXX=yes
14287      fi
14288    fi
14289    chmod u+w . 2>&5
14290    $RM conftest*
14291    # SGI C++ compiler will create directory out/ii_files/ for
14292    # template instantiation
14293    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14294    $RM out/* && rmdir out
14295    cd ..
14296    $RM -r conftest
14297    $RM conftest*
14298
14299 fi
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14301 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14302
14303
14304
14305
14306 hard_links="nottested"
14307 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14308   # do not overwrite the value of need_locks provided by the user
14309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14310 $as_echo_n "checking if we can lock with hard links... " >&6; }
14311   hard_links=yes
14312   $RM conftest*
14313   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14314   touch conftest.a
14315   ln conftest.a conftest.b 2>&5 || hard_links=no
14316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14318 $as_echo "$hard_links" >&6; }
14319   if test "$hard_links" = no; then
14320     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14321 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14322     need_locks=warn
14323   fi
14324 else
14325   need_locks=no
14326 fi
14327
14328
14329
14330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14331 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14332
14333   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14334   case $host_os in
14335   aix[4-9]*)
14336     # If we're using GNU nm, then we don't want the "-C" option.
14337     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14338     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14339       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'
14340     else
14341       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'
14342     fi
14343     ;;
14344   pw32*)
14345     export_symbols_cmds_CXX="$ltdll_cmds"
14346   ;;
14347   cygwin* | mingw* | cegcc*)
14348     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'
14349   ;;
14350   linux* | k*bsd*-gnu)
14351     link_all_deplibs_CXX=no
14352   ;;
14353   *)
14354     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14355   ;;
14356   esac
14357   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14360 $as_echo "$ld_shlibs_CXX" >&6; }
14361 test "$ld_shlibs_CXX" = no && can_build_shared=no
14362
14363 with_gnu_ld_CXX=$with_gnu_ld
14364
14365
14366
14367
14368
14369
14370 #
14371 # Do we need to explicitly link libc?
14372 #
14373 case "x$archive_cmds_need_lc_CXX" in
14374 x|xyes)
14375   # Assume -lc should be added
14376   archive_cmds_need_lc_CXX=yes
14377
14378   if test "$enable_shared" = yes && test "$GCC" = yes; then
14379     case $archive_cmds_CXX in
14380     *'~'*)
14381       # FIXME: we may have to deal with multi-command sequences.
14382       ;;
14383     '$CC '*)
14384       # Test whether the compiler implicitly links with -lc since on some
14385       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14386       # to ld, don't add -lc before -lgcc.
14387       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14388 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14389       $RM conftest*
14390       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14391
14392       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14393   (eval $ac_compile) 2>&5
14394   ac_status=$?
14395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14396   test $ac_status = 0; } 2>conftest.err; then
14397         soname=conftest
14398         lib=conftest
14399         libobjs=conftest.$ac_objext
14400         deplibs=
14401         wl=$lt_prog_compiler_wl_CXX
14402         pic_flag=$lt_prog_compiler_pic_CXX
14403         compiler_flags=-v
14404         linker_flags=-v
14405         verstring=
14406         output_objdir=.
14407         libname=conftest
14408         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14409         allow_undefined_flag_CXX=
14410         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14411   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14412   ac_status=$?
14413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14414   test $ac_status = 0; }
14415         then
14416           archive_cmds_need_lc_CXX=no
14417         else
14418           archive_cmds_need_lc_CXX=yes
14419         fi
14420         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14421       else
14422         cat conftest.err 1>&5
14423       fi
14424       $RM conftest*
14425       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14426 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14427       ;;
14428     esac
14429   fi
14430   ;;
14431 esac
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
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
14488
14489
14490
14491
14492
14493
14494
14495
14496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14497 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14498
14499 library_names_spec=
14500 libname_spec='lib$name'
14501 soname_spec=
14502 shrext_cmds=".so"
14503 postinstall_cmds=
14504 postuninstall_cmds=
14505 finish_cmds=
14506 finish_eval=
14507 shlibpath_var=
14508 shlibpath_overrides_runpath=unknown
14509 version_type=none
14510 dynamic_linker="$host_os ld.so"
14511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14512 need_lib_prefix=unknown
14513 hardcode_into_libs=no
14514
14515 # when you set need_version to no, make sure it does not cause -set_version
14516 # flags to be left without arguments
14517 need_version=unknown
14518
14519 case $host_os in
14520 aix3*)
14521   version_type=linux
14522   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14523   shlibpath_var=LIBPATH
14524
14525   # AIX 3 has no versioning support, so we append a major version to the name.
14526   soname_spec='${libname}${release}${shared_ext}$major'
14527   ;;
14528
14529 aix[4-9]*)
14530   version_type=linux
14531   need_lib_prefix=no
14532   need_version=no
14533   hardcode_into_libs=yes
14534   if test "$host_cpu" = ia64; then
14535     # AIX 5 supports IA64
14536     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14537     shlibpath_var=LD_LIBRARY_PATH
14538   else
14539     # With GCC up to 2.95.x, collect2 would create an import file
14540     # for dependence libraries.  The import file would start with
14541     # the line `#! .'.  This would cause the generated library to
14542     # depend on `.', always an invalid library.  This was fixed in
14543     # development snapshots of GCC prior to 3.0.
14544     case $host_os in
14545       aix4 | aix4.[01] | aix4.[01].*)
14546       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14547            echo ' yes '
14548            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14549         :
14550       else
14551         can_build_shared=no
14552       fi
14553       ;;
14554     esac
14555     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14556     # soname into executable. Probably we can add versioning support to
14557     # collect2, so additional links can be useful in future.
14558     if test "$aix_use_runtimelinking" = yes; then
14559       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14560       # instead of lib<name>.a to let people know that these are not
14561       # typical AIX shared libraries.
14562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563     else
14564       # We preserve .a as extension for shared libraries through AIX4.2
14565       # and later when we are not doing run time linking.
14566       library_names_spec='${libname}${release}.a $libname.a'
14567       soname_spec='${libname}${release}${shared_ext}$major'
14568     fi
14569     shlibpath_var=LIBPATH
14570   fi
14571   ;;
14572
14573 amigaos*)
14574   case $host_cpu in
14575   powerpc)
14576     # Since July 2007 AmigaOS4 officially supports .so libraries.
14577     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579     ;;
14580   m68k)
14581     library_names_spec='$libname.ixlibrary $libname.a'
14582     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14583     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'
14584     ;;
14585   esac
14586   ;;
14587
14588 beos*)
14589   library_names_spec='${libname}${shared_ext}'
14590   dynamic_linker="$host_os ld.so"
14591   shlibpath_var=LIBRARY_PATH
14592   ;;
14593
14594 bsdi[45]*)
14595   version_type=linux
14596   need_version=no
14597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598   soname_spec='${libname}${release}${shared_ext}$major'
14599   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14600   shlibpath_var=LD_LIBRARY_PATH
14601   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14602   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14603   # the default ld.so.conf also contains /usr/contrib/lib and
14604   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14605   # libtool to hard-code these into programs
14606   ;;
14607
14608 cygwin* | mingw* | pw32* | cegcc*)
14609   version_type=windows
14610   shrext_cmds=".dll"
14611   need_version=no
14612   need_lib_prefix=no
14613
14614   case $GCC,$host_os in
14615   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14616     library_names_spec='$libname.dll.a'
14617     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14618     postinstall_cmds='base_file=`basename \${file}`~
14619       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14620       dldir=$destdir/`dirname \$dlpath`~
14621       test -d \$dldir || mkdir -p \$dldir~
14622       $install_prog $dir/$dlname \$dldir/$dlname~
14623       chmod a+x \$dldir/$dlname~
14624       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14625         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14626       fi'
14627     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14628       dlpath=$dir/\$dldll~
14629        $RM \$dlpath'
14630     shlibpath_overrides_runpath=yes
14631
14632     case $host_os in
14633     cygwin*)
14634       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14635       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14636       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14637       ;;
14638     mingw* | cegcc*)
14639       # MinGW DLLs use traditional 'lib' prefix
14640       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14641       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14642       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14643         # It is most probably a Windows format PATH printed by
14644         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14645         # path with ; separators, and with drive letters. We can handle the
14646         # drive letters (cygwin fileutils understands them), so leave them,
14647         # especially as we might pass files found there to a mingw objdump,
14648         # which wouldn't understand a cygwinified path. Ahh.
14649         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14650       else
14651         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14652       fi
14653       ;;
14654     pw32*)
14655       # pw32 DLLs use 'pw' prefix rather than 'lib'
14656       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14657       ;;
14658     esac
14659     ;;
14660
14661   *)
14662     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14663     ;;
14664   esac
14665   dynamic_linker='Win32 ld.exe'
14666   # FIXME: first we should search . and the directory the executable is in
14667   shlibpath_var=PATH
14668   ;;
14669
14670 darwin* | rhapsody*)
14671   dynamic_linker="$host_os dyld"
14672   version_type=darwin
14673   need_lib_prefix=no
14674   need_version=no
14675   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14676   soname_spec='${libname}${release}${major}$shared_ext'
14677   shlibpath_overrides_runpath=yes
14678   shlibpath_var=DYLD_LIBRARY_PATH
14679   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14680
14681   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14682   ;;
14683
14684 dgux*)
14685   version_type=linux
14686   need_lib_prefix=no
14687   need_version=no
14688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14689   soname_spec='${libname}${release}${shared_ext}$major'
14690   shlibpath_var=LD_LIBRARY_PATH
14691   ;;
14692
14693 freebsd1*)
14694   dynamic_linker=no
14695   ;;
14696
14697 freebsd* | dragonfly*)
14698   # DragonFly does not have aout.  When/if they implement a new
14699   # versioning mechanism, adjust this.
14700   if test -x /usr/bin/objformat; then
14701     objformat=`/usr/bin/objformat`
14702   else
14703     case $host_os in
14704     freebsd[123]*) objformat=aout ;;
14705     *) objformat=elf ;;
14706     esac
14707   fi
14708   version_type=freebsd-$objformat
14709   case $version_type in
14710     freebsd-elf*)
14711       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14712       need_version=no
14713       need_lib_prefix=no
14714       ;;
14715     freebsd-*)
14716       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14717       need_version=yes
14718       ;;
14719   esac
14720   shlibpath_var=LD_LIBRARY_PATH
14721   case $host_os in
14722   freebsd2*)
14723     shlibpath_overrides_runpath=yes
14724     ;;
14725   freebsd3.[01]* | freebsdelf3.[01]*)
14726     shlibpath_overrides_runpath=yes
14727     hardcode_into_libs=yes
14728     ;;
14729   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14730   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14731     shlibpath_overrides_runpath=no
14732     hardcode_into_libs=yes
14733     ;;
14734   *) # from 4.6 on, and DragonFly
14735     shlibpath_overrides_runpath=yes
14736     hardcode_into_libs=yes
14737     ;;
14738   esac
14739   ;;
14740
14741 gnu*)
14742   version_type=linux
14743   need_lib_prefix=no
14744   need_version=no
14745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14746   soname_spec='${libname}${release}${shared_ext}$major'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   hardcode_into_libs=yes
14749   ;;
14750
14751 hpux9* | hpux10* | hpux11*)
14752   # Give a soname corresponding to the major version so that dld.sl refuses to
14753   # link against other versions.
14754   version_type=sunos
14755   need_lib_prefix=no
14756   need_version=no
14757   case $host_cpu in
14758   ia64*)
14759     shrext_cmds='.so'
14760     hardcode_into_libs=yes
14761     dynamic_linker="$host_os dld.so"
14762     shlibpath_var=LD_LIBRARY_PATH
14763     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765     soname_spec='${libname}${release}${shared_ext}$major'
14766     if test "X$HPUX_IA64_MODE" = X32; then
14767       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14768     else
14769       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14770     fi
14771     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14772     ;;
14773   hppa*64*)
14774     shrext_cmds='.sl'
14775     hardcode_into_libs=yes
14776     dynamic_linker="$host_os dld.sl"
14777     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14778     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780     soname_spec='${libname}${release}${shared_ext}$major'
14781     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14782     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14783     ;;
14784   *)
14785     shrext_cmds='.sl'
14786     dynamic_linker="$host_os dld.sl"
14787     shlibpath_var=SHLIB_PATH
14788     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790     soname_spec='${libname}${release}${shared_ext}$major'
14791     ;;
14792   esac
14793   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14794   postinstall_cmds='chmod 555 $lib'
14795   ;;
14796
14797 interix[3-9]*)
14798   version_type=linux
14799   need_lib_prefix=no
14800   need_version=no
14801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14802   soname_spec='${libname}${release}${shared_ext}$major'
14803   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14804   shlibpath_var=LD_LIBRARY_PATH
14805   shlibpath_overrides_runpath=no
14806   hardcode_into_libs=yes
14807   ;;
14808
14809 irix5* | irix6* | nonstopux*)
14810   case $host_os in
14811     nonstopux*) version_type=nonstopux ;;
14812     *)
14813         if test "$lt_cv_prog_gnu_ld" = yes; then
14814                 version_type=linux
14815         else
14816                 version_type=irix
14817         fi ;;
14818   esac
14819   need_lib_prefix=no
14820   need_version=no
14821   soname_spec='${libname}${release}${shared_ext}$major'
14822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14823   case $host_os in
14824   irix5* | nonstopux*)
14825     libsuff= shlibsuff=
14826     ;;
14827   *)
14828     case $LD in # libtool.m4 will add one of these switches to LD
14829     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14830       libsuff= shlibsuff= libmagic=32-bit;;
14831     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14832       libsuff=32 shlibsuff=N32 libmagic=N32;;
14833     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14834       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14835     *) libsuff= shlibsuff= libmagic=never-match;;
14836     esac
14837     ;;
14838   esac
14839   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14840   shlibpath_overrides_runpath=no
14841   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14842   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14843   hardcode_into_libs=yes
14844   ;;
14845
14846 # No shared lib support for Linux oldld, aout, or coff.
14847 linux*oldld* | linux*aout* | linux*coff*)
14848   dynamic_linker=no
14849   ;;
14850
14851 # This must be Linux ELF.
14852 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14853   version_type=linux
14854   need_lib_prefix=no
14855   need_version=no
14856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857   soname_spec='${libname}${release}${shared_ext}$major'
14858   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14859   shlibpath_var=LD_LIBRARY_PATH
14860   shlibpath_overrides_runpath=no
14861   # Some binutils ld are patched to set DT_RUNPATH
14862   save_LDFLAGS=$LDFLAGS
14863   save_libdir=$libdir
14864   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14865        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h.  */
14868
14869 int
14870 main ()
14871 {
14872
14873   ;
14874   return 0;
14875 }
14876 _ACEOF
14877 if ac_fn_cxx_try_link "$LINENO"; then :
14878   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14879   shlibpath_overrides_runpath=yes
14880 fi
14881 fi
14882 rm -f core conftest.err conftest.$ac_objext \
14883     conftest$ac_exeext conftest.$ac_ext
14884   LDFLAGS=$save_LDFLAGS
14885   libdir=$save_libdir
14886
14887   # This implies no fast_install, which is unacceptable.
14888   # Some rework will be needed to allow for fast_install
14889   # before this can be enabled.
14890   hardcode_into_libs=yes
14891
14892   # Append ld.so.conf contents to the search path
14893   if test -f /etc/ld.so.conf; then
14894     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' ' '`
14895     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14896   fi
14897
14898   # We used to test for /lib/ld.so.1 and disable shared libraries on
14899   # powerpc, because MkLinux only supported shared libraries with the
14900   # GNU dynamic linker.  Since this was broken with cross compilers,
14901   # most powerpc-linux boxes support dynamic linking these days and
14902   # people can always --disable-shared, the test was removed, and we
14903   # assume the GNU/Linux dynamic linker is in use.
14904   dynamic_linker='GNU/Linux ld.so'
14905   ;;
14906
14907 netbsdelf*-gnu)
14908   version_type=linux
14909   need_lib_prefix=no
14910   need_version=no
14911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14912   soname_spec='${libname}${release}${shared_ext}$major'
14913   shlibpath_var=LD_LIBRARY_PATH
14914   shlibpath_overrides_runpath=no
14915   hardcode_into_libs=yes
14916   dynamic_linker='NetBSD ld.elf_so'
14917   ;;
14918
14919 netbsd*)
14920   version_type=sunos
14921   need_lib_prefix=no
14922   need_version=no
14923   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14925     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14926     dynamic_linker='NetBSD (a.out) ld.so'
14927   else
14928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14929     soname_spec='${libname}${release}${shared_ext}$major'
14930     dynamic_linker='NetBSD ld.elf_so'
14931   fi
14932   shlibpath_var=LD_LIBRARY_PATH
14933   shlibpath_overrides_runpath=yes
14934   hardcode_into_libs=yes
14935   ;;
14936
14937 newsos6)
14938   version_type=linux
14939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940   shlibpath_var=LD_LIBRARY_PATH
14941   shlibpath_overrides_runpath=yes
14942   ;;
14943
14944 *nto* | *qnx*)
14945   version_type=qnx
14946   need_lib_prefix=no
14947   need_version=no
14948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949   soname_spec='${libname}${release}${shared_ext}$major'
14950   shlibpath_var=LD_LIBRARY_PATH
14951   shlibpath_overrides_runpath=no
14952   hardcode_into_libs=yes
14953   dynamic_linker='ldqnx.so'
14954   ;;
14955
14956 openbsd*)
14957   version_type=sunos
14958   sys_lib_dlsearch_path_spec="/usr/lib"
14959   need_lib_prefix=no
14960   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14961   case $host_os in
14962     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14963     *)                          need_version=no  ;;
14964   esac
14965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14967   shlibpath_var=LD_LIBRARY_PATH
14968   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14969     case $host_os in
14970       openbsd2.[89] | openbsd2.[89].*)
14971         shlibpath_overrides_runpath=no
14972         ;;
14973       *)
14974         shlibpath_overrides_runpath=yes
14975         ;;
14976       esac
14977   else
14978     shlibpath_overrides_runpath=yes
14979   fi
14980   ;;
14981
14982 os2*)
14983   libname_spec='$name'
14984   shrext_cmds=".dll"
14985   need_lib_prefix=no
14986   library_names_spec='$libname${shared_ext} $libname.a'
14987   dynamic_linker='OS/2 ld.exe'
14988   shlibpath_var=LIBPATH
14989   ;;
14990
14991 osf3* | osf4* | osf5*)
14992   version_type=osf
14993   need_lib_prefix=no
14994   need_version=no
14995   soname_spec='${libname}${release}${shared_ext}$major'
14996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997   shlibpath_var=LD_LIBRARY_PATH
14998   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14999   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15000   ;;
15001
15002 rdos*)
15003   dynamic_linker=no
15004   ;;
15005
15006 solaris*)
15007   version_type=linux
15008   need_lib_prefix=no
15009   need_version=no
15010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011   soname_spec='${libname}${release}${shared_ext}$major'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   shlibpath_overrides_runpath=yes
15014   hardcode_into_libs=yes
15015   # ldd complains unless libraries are executable
15016   postinstall_cmds='chmod +x $lib'
15017   ;;
15018
15019 sunos4*)
15020   version_type=sunos
15021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15023   shlibpath_var=LD_LIBRARY_PATH
15024   shlibpath_overrides_runpath=yes
15025   if test "$with_gnu_ld" = yes; then
15026     need_lib_prefix=no
15027   fi
15028   need_version=yes
15029   ;;
15030
15031 sysv4 | sysv4.3*)
15032   version_type=linux
15033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15034   soname_spec='${libname}${release}${shared_ext}$major'
15035   shlibpath_var=LD_LIBRARY_PATH
15036   case $host_vendor in
15037     sni)
15038       shlibpath_overrides_runpath=no
15039       need_lib_prefix=no
15040       runpath_var=LD_RUN_PATH
15041       ;;
15042     siemens)
15043       need_lib_prefix=no
15044       ;;
15045     motorola)
15046       need_lib_prefix=no
15047       need_version=no
15048       shlibpath_overrides_runpath=no
15049       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15050       ;;
15051   esac
15052   ;;
15053
15054 sysv4*MP*)
15055   if test -d /usr/nec ;then
15056     version_type=linux
15057     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15058     soname_spec='$libname${shared_ext}.$major'
15059     shlibpath_var=LD_LIBRARY_PATH
15060   fi
15061   ;;
15062
15063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15064   version_type=freebsd-elf
15065   need_lib_prefix=no
15066   need_version=no
15067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15068   soname_spec='${libname}${release}${shared_ext}$major'
15069   shlibpath_var=LD_LIBRARY_PATH
15070   shlibpath_overrides_runpath=yes
15071   hardcode_into_libs=yes
15072   if test "$with_gnu_ld" = yes; then
15073     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15074   else
15075     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15076     case $host_os in
15077       sco3.2v5*)
15078         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15079         ;;
15080     esac
15081   fi
15082   sys_lib_dlsearch_path_spec='/usr/lib'
15083   ;;
15084
15085 tpf*)
15086   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15087   version_type=linux
15088   need_lib_prefix=no
15089   need_version=no
15090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15091   shlibpath_var=LD_LIBRARY_PATH
15092   shlibpath_overrides_runpath=no
15093   hardcode_into_libs=yes
15094   ;;
15095
15096 uts4*)
15097   version_type=linux
15098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099   soname_spec='${libname}${release}${shared_ext}$major'
15100   shlibpath_var=LD_LIBRARY_PATH
15101   ;;
15102
15103 *)
15104   dynamic_linker=no
15105   ;;
15106 esac
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15108 $as_echo "$dynamic_linker" >&6; }
15109 test "$dynamic_linker" = no && can_build_shared=no
15110
15111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15112 if test "$GCC" = yes; then
15113   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15114 fi
15115
15116 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15117   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15118 fi
15119 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15120   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15121 fi
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15159 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15160 hardcode_action_CXX=
15161 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15162    test -n "$runpath_var_CXX" ||
15163    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15164
15165   # We can hardcode non-existent directories.
15166   if test "$hardcode_direct_CXX" != no &&
15167      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15168      # have to relink, otherwise we might link with an installed library
15169      # when we should be linking with a yet-to-be-installed one
15170      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15171      test "$hardcode_minus_L_CXX" != no; then
15172     # Linking always hardcodes the temporary library directory.
15173     hardcode_action_CXX=relink
15174   else
15175     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15176     hardcode_action_CXX=immediate
15177   fi
15178 else
15179   # We cannot hardcode anything, or else we can only hardcode existing
15180   # directories.
15181   hardcode_action_CXX=unsupported
15182 fi
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15184 $as_echo "$hardcode_action_CXX" >&6; }
15185
15186 if test "$hardcode_action_CXX" = relink ||
15187    test "$inherit_rpath_CXX" = yes; then
15188   # Fast installation is not supported
15189   enable_fast_install=no
15190 elif test "$shlibpath_overrides_runpath" = yes ||
15191      test "$enable_shared" = no; then
15192   # Fast installation is not necessary
15193   enable_fast_install=needless
15194 fi
15195
15196
15197
15198
15199
15200
15201
15202   fi # test -n "$compiler"
15203
15204   CC=$lt_save_CC
15205   LDCXX=$LD
15206   LD=$lt_save_LD
15207   GCC=$lt_save_GCC
15208   with_gnu_ld=$lt_save_with_gnu_ld
15209   lt_cv_path_LDCXX=$lt_cv_path_LD
15210   lt_cv_path_LD=$lt_save_path_LD
15211   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15212   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15213 fi # test "$_lt_caught_CXX_error" != yes
15214
15215 ac_ext=c
15216 ac_cpp='$CPP $CPPFLAGS'
15217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15220
15221
15222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15223 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15224 if test "${ac_cv_c_bigendian+set}" = set; then :
15225   $as_echo_n "(cached) " >&6
15226 else
15227   ac_cv_c_bigendian=unknown
15228     # See if we're dealing with a universal compiler.
15229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h.  */
15231 #ifndef __APPLE_CC__
15232                not a universal capable compiler
15233              #endif
15234              typedef int dummy;
15235
15236 _ACEOF
15237 if ac_fn_c_try_compile "$LINENO"; then :
15238
15239         # Check for potential -arch flags.  It is not universal unless
15240         # there are at least two -arch flags with different values.
15241         ac_arch=
15242         ac_prev=
15243         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15244          if test -n "$ac_prev"; then
15245            case $ac_word in
15246              i?86 | x86_64 | ppc | ppc64)
15247                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15248                  ac_arch=$ac_word
15249                else
15250                  ac_cv_c_bigendian=universal
15251                  break
15252                fi
15253                ;;
15254            esac
15255            ac_prev=
15256          elif test "x$ac_word" = "x-arch"; then
15257            ac_prev=arch
15258          fi
15259        done
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262     if test $ac_cv_c_bigendian = unknown; then
15263       # See if sys/param.h defines the BYTE_ORDER macro.
15264       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h.  */
15266 #include <sys/types.h>
15267              #include <sys/param.h>
15268
15269 int
15270 main ()
15271 {
15272 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15273                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15274                      && LITTLE_ENDIAN)
15275               bogus endian macros
15276              #endif
15277
15278   ;
15279   return 0;
15280 }
15281 _ACEOF
15282 if ac_fn_c_try_compile "$LINENO"; then :
15283   # It does; now see whether it defined to BIG_ENDIAN or not.
15284          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h.  */
15286 #include <sys/types.h>
15287                 #include <sys/param.h>
15288
15289 int
15290 main ()
15291 {
15292 #if BYTE_ORDER != BIG_ENDIAN
15293                  not big endian
15294                 #endif
15295
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 if ac_fn_c_try_compile "$LINENO"; then :
15301   ac_cv_c_bigendian=yes
15302 else
15303   ac_cv_c_bigendian=no
15304 fi
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 fi
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15308     fi
15309     if test $ac_cv_c_bigendian = unknown; then
15310       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15311       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h.  */
15313 #include <limits.h>
15314
15315 int
15316 main ()
15317 {
15318 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15319               bogus endian macros
15320              #endif
15321
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 if ac_fn_c_try_compile "$LINENO"; then :
15327   # It does; now see whether it defined to _BIG_ENDIAN or not.
15328          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h.  */
15330 #include <limits.h>
15331
15332 int
15333 main ()
15334 {
15335 #ifndef _BIG_ENDIAN
15336                  not big endian
15337                 #endif
15338
15339   ;
15340   return 0;
15341 }
15342 _ACEOF
15343 if ac_fn_c_try_compile "$LINENO"; then :
15344   ac_cv_c_bigendian=yes
15345 else
15346   ac_cv_c_bigendian=no
15347 fi
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 fi
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351     fi
15352     if test $ac_cv_c_bigendian = unknown; then
15353       # Compile a test program.
15354       if test "$cross_compiling" = yes; then :
15355   # Try to guess by grepping values from an object file.
15356          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h.  */
15358 short int ascii_mm[] =
15359                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15360                 short int ascii_ii[] =
15361                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15362                 int use_ascii (int i) {
15363                   return ascii_mm[i] + ascii_ii[i];
15364                 }
15365                 short int ebcdic_ii[] =
15366                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15367                 short int ebcdic_mm[] =
15368                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15369                 int use_ebcdic (int i) {
15370                   return ebcdic_mm[i] + ebcdic_ii[i];
15371                 }
15372                 extern int foo;
15373
15374 int
15375 main ()
15376 {
15377 return use_ascii (foo) == use_ebcdic (foo);
15378   ;
15379   return 0;
15380 }
15381 _ACEOF
15382 if ac_fn_c_try_compile "$LINENO"; then :
15383   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15384               ac_cv_c_bigendian=yes
15385             fi
15386             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15387               if test "$ac_cv_c_bigendian" = unknown; then
15388                 ac_cv_c_bigendian=no
15389               else
15390                 # finding both strings is unlikely to happen, but who knows?
15391                 ac_cv_c_bigendian=unknown
15392               fi
15393             fi
15394 fi
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396 else
15397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h.  */
15399 $ac_includes_default
15400 int
15401 main ()
15402 {
15403
15404              /* Are we little or big endian?  From Harbison&Steele.  */
15405              union
15406              {
15407                long int l;
15408                char c[sizeof (long int)];
15409              } u;
15410              u.l = 1;
15411              return u.c[sizeof (long int) - 1] == 1;
15412
15413   ;
15414   return 0;
15415 }
15416 _ACEOF
15417 if ac_fn_c_try_run "$LINENO"; then :
15418   ac_cv_c_bigendian=no
15419 else
15420   ac_cv_c_bigendian=yes
15421 fi
15422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15423   conftest.$ac_objext conftest.beam conftest.$ac_ext
15424 fi
15425
15426     fi
15427 fi
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15429 $as_echo "$ac_cv_c_bigendian" >&6; }
15430  case $ac_cv_c_bigendian in #(
15431    yes)
15432      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15433 ;; #(
15434    no)
15435       ;; #(
15436    universal)
15437
15438 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15439
15440      ;; #(
15441    *)
15442      as_fn_error $? "unknown endianness
15443  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
15444  esac
15445
15446 type_error="no"
15447 # The cast to long int works around a bug in the HP C Compiler
15448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15450 # This bug is HP SR number 8606223364.
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15452 $as_echo_n "checking size of char... " >&6; }
15453 if test "${ac_cv_sizeof_char+set}" = set; then :
15454   $as_echo_n "(cached) " >&6
15455 else
15456   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
15457
15458 else
15459   if test "$ac_cv_type_char" = yes; then
15460      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15462 as_fn_error 77 "cannot compute sizeof (char)
15463 See \`config.log' for more details" "$LINENO" 5 ; }
15464    else
15465      ac_cv_sizeof_char=0
15466    fi
15467 fi
15468
15469 fi
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15471 $as_echo "$ac_cv_sizeof_char" >&6; }
15472
15473
15474
15475 cat >>confdefs.h <<_ACEOF
15476 #define SIZEOF_CHAR $ac_cv_sizeof_char
15477 _ACEOF
15478
15479
15480 # The cast to long int works around a bug in the HP C Compiler
15481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15483 # This bug is HP SR number 8606223364.
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15485 $as_echo_n "checking size of short... " >&6; }
15486 if test "${ac_cv_sizeof_short+set}" = set; then :
15487   $as_echo_n "(cached) " >&6
15488 else
15489   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15490
15491 else
15492   if test "$ac_cv_type_short" = yes; then
15493      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15495 as_fn_error 77 "cannot compute sizeof (short)
15496 See \`config.log' for more details" "$LINENO" 5 ; }
15497    else
15498      ac_cv_sizeof_short=0
15499    fi
15500 fi
15501
15502 fi
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15504 $as_echo "$ac_cv_sizeof_short" >&6; }
15505
15506
15507
15508 cat >>confdefs.h <<_ACEOF
15509 #define SIZEOF_SHORT $ac_cv_sizeof_short
15510 _ACEOF
15511
15512
15513 # The cast to long int works around a bug in the HP C Compiler
15514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15516 # This bug is HP SR number 8606223364.
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15518 $as_echo_n "checking size of int... " >&6; }
15519 if test "${ac_cv_sizeof_int+set}" = set; then :
15520   $as_echo_n "(cached) " >&6
15521 else
15522   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15523
15524 else
15525   if test "$ac_cv_type_int" = yes; then
15526      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15528 as_fn_error 77 "cannot compute sizeof (int)
15529 See \`config.log' for more details" "$LINENO" 5 ; }
15530    else
15531      ac_cv_sizeof_int=0
15532    fi
15533 fi
15534
15535 fi
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15537 $as_echo "$ac_cv_sizeof_int" >&6; }
15538
15539
15540
15541 cat >>confdefs.h <<_ACEOF
15542 #define SIZEOF_INT $ac_cv_sizeof_int
15543 _ACEOF
15544
15545
15546 # The cast to long int works around a bug in the HP C Compiler
15547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15549 # This bug is HP SR number 8606223364.
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15551 $as_echo_n "checking size of long... " >&6; }
15552 if test "${ac_cv_sizeof_long+set}" = set; then :
15553   $as_echo_n "(cached) " >&6
15554 else
15555   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15556
15557 else
15558   if test "$ac_cv_type_long" = yes; then
15559      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15561 as_fn_error 77 "cannot compute sizeof (long)
15562 See \`config.log' for more details" "$LINENO" 5 ; }
15563    else
15564      ac_cv_sizeof_long=0
15565    fi
15566 fi
15567
15568 fi
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15570 $as_echo "$ac_cv_sizeof_long" >&6; }
15571
15572
15573
15574 cat >>confdefs.h <<_ACEOF
15575 #define SIZEOF_LONG $ac_cv_sizeof_long
15576 _ACEOF
15577
15578
15579 # The cast to long int works around a bug in the HP C Compiler
15580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15582 # This bug is HP SR number 8606223364.
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15584 $as_echo_n "checking size of long long... " >&6; }
15585 if test "${ac_cv_sizeof_long_long+set}" = set; then :
15586   $as_echo_n "(cached) " >&6
15587 else
15588   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
15589
15590 else
15591   if test "$ac_cv_type_long_long" = yes; then
15592      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15594 as_fn_error 77 "cannot compute sizeof (long long)
15595 See \`config.log' for more details" "$LINENO" 5 ; }
15596    else
15597      ac_cv_sizeof_long_long=0
15598    fi
15599 fi
15600
15601 fi
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15603 $as_echo "$ac_cv_sizeof_long_long" >&6; }
15604
15605
15606
15607 cat >>confdefs.h <<_ACEOF
15608 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15609 _ACEOF
15610
15611
15612 # The cast to long int works around a bug in the HP C Compiler
15613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15615 # This bug is HP SR number 8606223364.
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
15617 $as_echo_n "checking size of float... " >&6; }
15618 if test "${ac_cv_sizeof_float+set}" = set; then :
15619   $as_echo_n "(cached) " >&6
15620 else
15621   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
15622
15623 else
15624   if test "$ac_cv_type_float" = yes; then
15625      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15627 as_fn_error 77 "cannot compute sizeof (float)
15628 See \`config.log' for more details" "$LINENO" 5 ; }
15629    else
15630      ac_cv_sizeof_float=0
15631    fi
15632 fi
15633
15634 fi
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
15636 $as_echo "$ac_cv_sizeof_float" >&6; }
15637
15638
15639
15640 cat >>confdefs.h <<_ACEOF
15641 #define SIZEOF_FLOAT $ac_cv_sizeof_float
15642 _ACEOF
15643
15644
15645 # The cast to long int works around a bug in the HP C Compiler
15646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15648 # This bug is HP SR number 8606223364.
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15650 $as_echo_n "checking size of double... " >&6; }
15651 if test "${ac_cv_sizeof_double+set}" = set; then :
15652   $as_echo_n "(cached) " >&6
15653 else
15654   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
15655
15656 else
15657   if test "$ac_cv_type_double" = yes; then
15658      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15660 as_fn_error 77 "cannot compute sizeof (double)
15661 See \`config.log' for more details" "$LINENO" 5 ; }
15662    else
15663      ac_cv_sizeof_double=0
15664    fi
15665 fi
15666
15667 fi
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15669 $as_echo "$ac_cv_sizeof_double" >&6; }
15670
15671
15672
15673 cat >>confdefs.h <<_ACEOF
15674 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15675 _ACEOF
15676
15677
15678 if test x"$ac_cv_sizeof_char" != "x1" ; then
15679         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(char)==1" >&5
15680 $as_echo "$as_me: WARNING: gpsd requires sizeof(char)==1" >&2;};
15681         type_error="yes"
15682 fi
15683 if test x"$ac_cv_sizeof_short" != "x2" ; then
15684         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(short)==2" >&5
15685 $as_echo "$as_me: WARNING: gpsd requires sizeof(short)==2" >&2;};
15686         type_error="yes"
15687 fi
15688 if test x"$ac_cv_sizeof_int" != "x4" ; then
15689         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(int)==4" >&5
15690 $as_echo "$as_me: WARNING: gpsd requires sizeof(int)==4" >&2;};
15691         type_error="yes"
15692 fi
15693 if test x"$ac_cv_sizeof_long_long" != "x8" ; then
15694         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(long long)==8" >&5
15695 $as_echo "$as_me: WARNING: gpsd requires sizeof(long long)==8" >&2;};
15696         type_error="yes"
15697 fi
15698 if test x"$ac_cv_sizeof_float" != "x4" ; then
15699         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(float)==4" >&5
15700 $as_echo "$as_me: WARNING: gpsd requires sizeof(float)==4" >&2;};
15701         type_error="yes"
15702 fi
15703 if test x"$ac_cv_sizeof_double" != "x8" ; then
15704         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(double)==8" >&5
15705 $as_echo "$as_me: WARNING: gpsd requires sizeof(double)==8" >&2;};
15706         type_error="yes"
15707 fi
15708 if test x"$type_error" = "xyes" ; then
15709         as_fn_error $? "Your system does not provide all required data types" "$LINENO" 5 ;
15710 fi
15711
15712 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15713 # for constant arguments.  Useless!
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15715 $as_echo_n "checking for working alloca.h... " >&6; }
15716 if test "${ac_cv_working_alloca_h+set}" = set; then :
15717   $as_echo_n "(cached) " >&6
15718 else
15719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h.  */
15721 #include <alloca.h>
15722 int
15723 main ()
15724 {
15725 char *p = (char *) alloca (2 * sizeof (int));
15726                           if (p) return 0;
15727   ;
15728   return 0;
15729 }
15730 _ACEOF
15731 if ac_fn_c_try_link "$LINENO"; then :
15732   ac_cv_working_alloca_h=yes
15733 else
15734   ac_cv_working_alloca_h=no
15735 fi
15736 rm -f core conftest.err conftest.$ac_objext \
15737     conftest$ac_exeext conftest.$ac_ext
15738 fi
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15740 $as_echo "$ac_cv_working_alloca_h" >&6; }
15741 if test $ac_cv_working_alloca_h = yes; then
15742
15743 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15744
15745 fi
15746
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15748 $as_echo_n "checking for alloca... " >&6; }
15749 if test "${ac_cv_func_alloca_works+set}" = set; then :
15750   $as_echo_n "(cached) " >&6
15751 else
15752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h.  */
15754 #ifdef __GNUC__
15755 # define alloca __builtin_alloca
15756 #else
15757 # ifdef _MSC_VER
15758 #  include <malloc.h>
15759 #  define alloca _alloca
15760 # else
15761 #  ifdef HAVE_ALLOCA_H
15762 #   include <alloca.h>
15763 #  else
15764 #   ifdef _AIX
15765  #pragma alloca
15766 #   else
15767 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15768 char *alloca ();
15769 #    endif
15770 #   endif
15771 #  endif
15772 # endif
15773 #endif
15774
15775 int
15776 main ()
15777 {
15778 char *p = (char *) alloca (1);
15779                                     if (p) return 0;
15780   ;
15781   return 0;
15782 }
15783 _ACEOF
15784 if ac_fn_c_try_link "$LINENO"; then :
15785   ac_cv_func_alloca_works=yes
15786 else
15787   ac_cv_func_alloca_works=no
15788 fi
15789 rm -f core conftest.err conftest.$ac_objext \
15790     conftest$ac_exeext conftest.$ac_ext
15791 fi
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15793 $as_echo "$ac_cv_func_alloca_works" >&6; }
15794
15795 if test $ac_cv_func_alloca_works = yes; then
15796
15797 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15798
15799 else
15800   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15801 # that cause trouble.  Some versions do not even contain alloca or
15802 # contain a buggy version.  If you still want to use their alloca,
15803 # use ar to extract alloca.o from them instead of compiling alloca.c.
15804
15805 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15806
15807 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15808
15809
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15811 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15812 if test "${ac_cv_os_cray+set}" = set; then :
15813   $as_echo_n "(cached) " >&6
15814 else
15815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h.  */
15817 #if defined CRAY && ! defined CRAY2
15818 webecray
15819 #else
15820 wenotbecray
15821 #endif
15822
15823 _ACEOF
15824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15825   $EGREP "webecray" >/dev/null 2>&1; then :
15826   ac_cv_os_cray=yes
15827 else
15828   ac_cv_os_cray=no
15829 fi
15830 rm -f conftest*
15831
15832 fi
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15834 $as_echo "$ac_cv_os_cray" >&6; }
15835 if test $ac_cv_os_cray = yes; then
15836   for ac_func in _getb67 GETB67 getb67; do
15837     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15838 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15839 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15840
15841 cat >>confdefs.h <<_ACEOF
15842 #define CRAY_STACKSEG_END $ac_func
15843 _ACEOF
15844
15845     break
15846 fi
15847
15848   done
15849 fi
15850
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15852 $as_echo_n "checking stack direction for C alloca... " >&6; }
15853 if test "${ac_cv_c_stack_direction+set}" = set; then :
15854   $as_echo_n "(cached) " >&6
15855 else
15856   if test "$cross_compiling" = yes; then :
15857   ac_cv_c_stack_direction=0
15858 else
15859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h.  */
15861 $ac_includes_default
15862 int
15863 find_stack_direction ()
15864 {
15865   static char *addr = 0;
15866   auto char dummy;
15867   if (addr == 0)
15868     {
15869       addr = &dummy;
15870       return find_stack_direction ();
15871     }
15872   else
15873     return (&dummy > addr) ? 1 : -1;
15874 }
15875
15876 int
15877 main ()
15878 {
15879   return find_stack_direction () < 0;
15880 }
15881 _ACEOF
15882 if ac_fn_c_try_run "$LINENO"; then :
15883   ac_cv_c_stack_direction=1
15884 else
15885   ac_cv_c_stack_direction=-1
15886 fi
15887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15888   conftest.$ac_objext conftest.beam conftest.$ac_ext
15889 fi
15890
15891 fi
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15893 $as_echo "$ac_cv_c_stack_direction" >&6; }
15894 cat >>confdefs.h <<_ACEOF
15895 #define STACK_DIRECTION $ac_cv_c_stack_direction
15896 _ACEOF
15897
15898
15899 fi
15900
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15902 $as_echo_n "checking for ANSI C header files... " >&6; }
15903 if test "${ac_cv_header_stdc+set}" = set; then :
15904   $as_echo_n "(cached) " >&6
15905 else
15906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h.  */
15908 #include <stdlib.h>
15909 #include <stdarg.h>
15910 #include <string.h>
15911 #include <float.h>
15912
15913 int
15914 main ()
15915 {
15916
15917   ;
15918   return 0;
15919 }
15920 _ACEOF
15921 if ac_fn_c_try_compile "$LINENO"; then :
15922   ac_cv_header_stdc=yes
15923 else
15924   ac_cv_header_stdc=no
15925 fi
15926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15927
15928 if test $ac_cv_header_stdc = yes; then
15929   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h.  */
15932 #include <string.h>
15933
15934 _ACEOF
15935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15936   $EGREP "memchr" >/dev/null 2>&1; then :
15937
15938 else
15939   ac_cv_header_stdc=no
15940 fi
15941 rm -f conftest*
15942
15943 fi
15944
15945 if test $ac_cv_header_stdc = yes; then
15946   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h.  */
15949 #include <stdlib.h>
15950
15951 _ACEOF
15952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15953   $EGREP "free" >/dev/null 2>&1; then :
15954
15955 else
15956   ac_cv_header_stdc=no
15957 fi
15958 rm -f conftest*
15959
15960 fi
15961
15962 if test $ac_cv_header_stdc = yes; then
15963   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15964   if test "$cross_compiling" = yes; then :
15965   :
15966 else
15967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h.  */
15969 #include <ctype.h>
15970 #include <stdlib.h>
15971 #if ((' ' & 0x0FF) == 0x020)
15972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15974 #else
15975 # define ISLOWER(c) \
15976                    (('a' <= (c) && (c) <= 'i') \
15977                      || ('j' <= (c) && (c) <= 'r') \
15978                      || ('s' <= (c) && (c) <= 'z'))
15979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15980 #endif
15981
15982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15983 int
15984 main ()
15985 {
15986   int i;
15987   for (i = 0; i < 256; i++)
15988     if (XOR (islower (i), ISLOWER (i))
15989         || toupper (i) != TOUPPER (i))
15990       return 2;
15991   return 0;
15992 }
15993 _ACEOF
15994 if ac_fn_c_try_run "$LINENO"; then :
15995
15996 else
15997   ac_cv_header_stdc=no
15998 fi
15999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16000   conftest.$ac_objext conftest.beam conftest.$ac_ext
16001 fi
16002
16003 fi
16004 fi
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16006 $as_echo "$ac_cv_header_stdc" >&6; }
16007 if test $ac_cv_header_stdc = yes; then
16008
16009 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16010
16011 fi
16012
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16014 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16015 if test "${ac_cv_c_const+set}" = set; then :
16016   $as_echo_n "(cached) " >&6
16017 else
16018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h.  */
16020
16021 int
16022 main ()
16023 {
16024 /* FIXME: Include the comments suggested by Paul. */
16025 #ifndef __cplusplus
16026   /* Ultrix mips cc rejects this.  */
16027   typedef int charset[2];
16028   const charset cs;
16029   /* SunOS 4.1.1 cc rejects this.  */
16030   char const *const *pcpcc;
16031   char **ppc;
16032   /* NEC SVR4.0.2 mips cc rejects this.  */
16033   struct point {int x, y;};
16034   static struct point const zero = {0,0};
16035   /* AIX XL C 1.02.0.0 rejects this.
16036      It does not let you subtract one const X* pointer from another in
16037      an arm of an if-expression whose if-part is not a constant
16038      expression */
16039   const char *g = "string";
16040   pcpcc = &g + (g ? g-g : 0);
16041   /* HPUX 7.0 cc rejects these. */
16042   ++pcpcc;
16043   ppc = (char**) pcpcc;
16044   pcpcc = (char const *const *) ppc;
16045   { /* SCO 3.2v4 cc rejects this.  */
16046     char *t;
16047     char const *s = 0 ? (char *) 0 : (char const *) 0;
16048
16049     *t++ = 0;
16050     if (s) return 0;
16051   }
16052   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16053     int x[] = {25, 17};
16054     const int *foo = &x[0];
16055     ++foo;
16056   }
16057   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16058     typedef const int *iptr;
16059     iptr p = 0;
16060     ++p;
16061   }
16062   { /* AIX XL C 1.02.0.0 rejects this saying
16063        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16064     struct s { int j; const int *ap[3]; };
16065     struct s *b; b->j = 5;
16066   }
16067   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16068     const int foo = 10;
16069     if (!foo) return 0;
16070   }
16071   return !cs[0] && !zero.x;
16072 #endif
16073
16074   ;
16075   return 0;
16076 }
16077 _ACEOF
16078 if ac_fn_c_try_compile "$LINENO"; then :
16079   ac_cv_c_const=yes
16080 else
16081   ac_cv_c_const=no
16082 fi
16083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16084 fi
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16086 $as_echo "$ac_cv_c_const" >&6; }
16087 if test $ac_cv_c_const = no; then
16088
16089 $as_echo "#define const /**/" >>confdefs.h
16090
16091 fi
16092
16093
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly working floating point implementation" >&5
16095 $as_echo_n "checking for properly working floating point implementation... " >&6; }
16096 if test "x$build" = "x$host"; then
16097         if eval "$CC $CFLAGS -o test_float ${srcdir}/test_float.c"; then
16098                 if ./test_float > /dev/null; then
16099                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100 $as_echo "yes" >&6; }
16101                 else
16102                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16103 $as_echo "no" >&6; }
16104                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We strongly recommend you manually examine the test_float results" >&5
16105 $as_echo "$as_me: WARNING: We strongly recommend you manually examine the test_float results" >&2;}
16106                 fi
16107         else
16108                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure compiling test_float" >&5
16109 $as_echo "failure compiling test_float" >&6; }
16110         fi
16111 else
16112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped test (cross-compiling)" >&5
16113 $as_echo "skipped test (cross-compiling)" >&6; }
16114         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We are cross-compiling, and thus cannot run the floating point test now.
16115 We strongly recommend running test_float on the target platform." >&5
16116 $as_echo "$as_me: WARNING: We are cross-compiling, and thus cannot run the floating point test now.
16117 We strongly recommend running test_float on the target platform." >&2;}
16118 fi
16119
16120
16121 if eval "test x$GCC = xyes"; then
16122         CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
16123         fi
16124
16125 for ac_header in sys/termios.h sys/select.h sys/time.h sys/modem.h sys/ipc.h sys/shm.h sys/stat.h sys/socket.h sys/ioctl.h sys/un.h
16126 do :
16127   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16129 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16130   cat >>confdefs.h <<_ACEOF
16131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16132 _ACEOF
16133
16134 fi
16135
16136 done
16137
16138 for ac_header in arpa/inet.h netinet/in_systm.h netinet/in.h netinet/tcp.h
16139 do :
16140   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16141 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16143   cat >>confdefs.h <<_ACEOF
16144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16145 _ACEOF
16146
16147 fi
16148
16149 done
16150
16151 for ac_header in netinet/ip.h
16152 do :
16153   ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_NETINET_IN_SYSTM_H && HAVE_NETINET_IN_H
16154 #include netinet/ip.h
16155 #endif
16156
16157 "
16158 if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
16159   cat >>confdefs.h <<_ACEOF
16160 #define HAVE_NETINET_IP_H 1
16161 _ACEOF
16162
16163 fi
16164
16165 done
16166
16167 for ac_header in termios.h strings.h getopt.h netdb.h syslog.h pwd.h grp.h
16168 do :
16169   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16172   cat >>confdefs.h <<_ACEOF
16173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16174 _ACEOF
16175
16176 fi
16177
16178 done
16179
16180
16181 for ac_func in round
16182 do :
16183   ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
16184 if test "x$ac_cv_func_round" = x""yes; then :
16185   cat >>confdefs.h <<_ACEOF
16186 #define HAVE_ROUND 1
16187 _ACEOF
16188  roundf
16189 fi
16190 done
16191
16192 for ac_func in strlcpy
16193 do :
16194   ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16195 if test "x$ac_cv_func_strlcpy" = x""yes; then :
16196   cat >>confdefs.h <<_ACEOF
16197 #define HAVE_STRLCPY 1
16198 _ACEOF
16199
16200 fi
16201 done
16202
16203 for ac_func in strlcat
16204 do :
16205   ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
16206 if test "x$ac_cv_func_strlcat" = x""yes; then :
16207   cat >>confdefs.h <<_ACEOF
16208 #define HAVE_STRLCAT 1
16209 _ACEOF
16210
16211 fi
16212 done
16213
16214 for ac_func in strtonum
16215 do :
16216   ac_fn_c_check_func "$LINENO" "strtonum" "ac_cv_func_strtonum"
16217 if test "x$ac_cv_func_strtonum" = x""yes; then :
16218   cat >>confdefs.h <<_ACEOF
16219 #define HAVE_STRTONUM 1
16220 _ACEOF
16221
16222 fi
16223 done
16224
16225 for ac_func in setlocale
16226 do :
16227   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
16228 if test "x$ac_cv_func_setlocale" = x""yes; then :
16229   cat >>confdefs.h <<_ACEOF
16230 #define HAVE_SETLOCALE 1
16231 _ACEOF
16232
16233 fi
16234 done
16235
16236 for ac_func in vsnprintf
16237 do :
16238   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
16239 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
16240   cat >>confdefs.h <<_ACEOF
16241 #define HAVE_VSNPRINTF 1
16242 _ACEOF
16243
16244 fi
16245 done
16246
16247
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16249 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16250 if test "${ac_cv_header_time+set}" = set; then :
16251   $as_echo_n "(cached) " >&6
16252 else
16253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h.  */
16255 #include <sys/types.h>
16256 #include <sys/time.h>
16257 #include <time.h>
16258
16259 int
16260 main ()
16261 {
16262 if ((struct tm *) 0)
16263 return 0;
16264   ;
16265   return 0;
16266 }
16267 _ACEOF
16268 if ac_fn_c_try_compile "$LINENO"; then :
16269   ac_cv_header_time=yes
16270 else
16271   ac_cv_header_time=no
16272 fi
16273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274 fi
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16276 $as_echo "$ac_cv_header_time" >&6; }
16277 if test $ac_cv_header_time = yes; then
16278
16279 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16280
16281 fi
16282
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16284 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16285 if test "${ac_cv_struct_tm+set}" = set; then :
16286   $as_echo_n "(cached) " >&6
16287 else
16288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289 /* end confdefs.h.  */
16290 #include <sys/types.h>
16291 #include <time.h>
16292
16293 int
16294 main ()
16295 {
16296 struct tm tm;
16297                                      int *p = &tm.tm_sec;
16298                                      return !p;
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 if ac_fn_c_try_compile "$LINENO"; then :
16304   ac_cv_struct_tm=time.h
16305 else
16306   ac_cv_struct_tm=sys/time.h
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16309 fi
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16311 $as_echo "$ac_cv_struct_tm" >&6; }
16312 if test $ac_cv_struct_tm = sys/time.h; then
16313
16314 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16315
16316 fi
16317
16318 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
16319 #include <$ac_cv_struct_tm>
16320
16321 "
16322 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
16323
16324 cat >>confdefs.h <<_ACEOF
16325 #define HAVE_STRUCT_TM_TM_ZONE 1
16326 _ACEOF
16327
16328
16329 fi
16330
16331 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16332
16333 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
16334
16335 else
16336   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
16337 "
16338 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
16339   ac_have_decl=1
16340 else
16341   ac_have_decl=0
16342 fi
16343
16344 cat >>confdefs.h <<_ACEOF
16345 #define HAVE_DECL_TZNAME $ac_have_decl
16346 _ACEOF
16347
16348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
16349 $as_echo_n "checking for tzname... " >&6; }
16350 if test "${ac_cv_var_tzname+set}" = set; then :
16351   $as_echo_n "(cached) " >&6
16352 else
16353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h.  */
16355 #include <time.h>
16356 #if !HAVE_DECL_TZNAME
16357 extern char *tzname[];
16358 #endif
16359
16360 int
16361 main ()
16362 {
16363 return tzname[0][0];
16364   ;
16365   return 0;
16366 }
16367 _ACEOF
16368 if ac_fn_c_try_link "$LINENO"; then :
16369   ac_cv_var_tzname=yes
16370 else
16371   ac_cv_var_tzname=no
16372 fi
16373 rm -f core conftest.err conftest.$ac_objext \
16374     conftest$ac_exeext conftest.$ac_ext
16375 fi
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
16377 $as_echo "$ac_cv_var_tzname" >&6; }
16378   if test $ac_cv_var_tzname = yes; then
16379
16380 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
16381
16382   fi
16383 fi
16384
16385
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16387 $as_echo_n "checking for timezone variable... " >&6; }
16388 if test "${ac_cv_var_timezone+set}" = set; then :
16389   $as_echo_n "(cached) " >&6
16390 else
16391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h.  */
16393
16394 #include <time.h>
16395
16396 int
16397 main ()
16398 {
16399
16400                 timezone = 1;
16401
16402   ;
16403   return 0;
16404 }
16405 _ACEOF
16406 if ac_fn_c_try_compile "$LINENO"; then :
16407   ac_cv_var_timezone=yes
16408 else
16409   ac_cv_var_timezone=no
16410 fi
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 fi
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
16414 $as_echo "$ac_cv_var_timezone" >&6; }
16415 if test $ac_cv_var_timezone = yes; then
16416
16417 $as_echo "#define HAVE_TIMEZONE /**/" >>confdefs.h
16418
16419 else
16420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
16421 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
16422 if test "${ac_cv_struct_tm_gmtoff+set}" = set; then :
16423   $as_echo_n "(cached) " >&6
16424 else
16425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h.  */
16427
16428 #include <time.h>
16429
16430 int
16431 main ()
16432 {
16433
16434                         struct tm tm;
16435                         tm.tm_gmtoff = 1;
16436
16437   ;
16438   return 0;
16439 }
16440 _ACEOF
16441 if ac_fn_c_try_compile "$LINENO"; then :
16442   ac_cv_struct_tm_gmtoff=yes
16443 else
16444   ac_cv_struct_tm_gmtoff=no
16445
16446 fi
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 fi
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
16450 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
16451         if test $ac_cv_struct_tm_gmtoff = yes; then
16452
16453 $as_echo "#define HAVE_TM_GMTOFF /**/" >>confdefs.h
16454
16455         else
16456                 as_fn_error $? "unable to find a way to determine timezone" "$LINENO" 5
16457         fi
16458 fi
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight external" >&5
16460 $as_echo_n "checking for daylight external... " >&6; }
16461 if test "${mb_cv_var_daylight+set}" = set; then :
16462   $as_echo_n "(cached) " >&6
16463 else
16464     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h.  */
16466 #include <time.h>
16467 int
16468 main ()
16469 {
16470 return (int)daylight;
16471   ;
16472   return 0;
16473 }
16474 _ACEOF
16475 if ac_fn_c_try_link "$LINENO"; then :
16476   mb_cv_var_daylight=yes
16477 else
16478   mb_cv_var_daylight=no
16479 fi
16480 rm -f core conftest.err conftest.$ac_objext \
16481     conftest$ac_exeext conftest.$ac_ext
16482
16483 fi
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mb_cv_var_daylight" >&5
16485 $as_echo "$mb_cv_var_daylight" >&6; }
16486 if test $mb_cv_var_daylight = yes; then
16487
16488 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16489
16490 fi
16491
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16493 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16494 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
16495   $as_echo_n "(cached) " >&6
16496 else
16497   ac_check_lib_save_LIBS=$LIBS
16498 LIBS="-lnsl  $LIBS"
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h.  */
16501
16502 /* Override any GCC internal prototype to avoid an error.
16503    Use char because int might match the return type of a GCC
16504    builtin and then its argument prototype would still apply.  */
16505 #ifdef __cplusplus
16506 extern "C"
16507 #endif
16508 char gethostbyname ();
16509 int
16510 main ()
16511 {
16512 return gethostbyname ();
16513   ;
16514   return 0;
16515 }
16516 _ACEOF
16517 if ac_fn_c_try_link "$LINENO"; then :
16518   ac_cv_lib_nsl_gethostbyname=yes
16519 else
16520   ac_cv_lib_nsl_gethostbyname=no
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext \
16523     conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16525 fi
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16527 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16528 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
16529   LIBNSL="-lnsl"
16530 fi
16531
16532
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16534 $as_echo_n "checking for socket in -lsocket... " >&6; }
16535 if test "${ac_cv_lib_socket_socket+set}" = set; then :
16536   $as_echo_n "(cached) " >&6
16537 else
16538   ac_check_lib_save_LIBS=$LIBS
16539 LIBS="-lsocket  $LIBS"
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h.  */
16542
16543 /* Override any GCC internal prototype to avoid an error.
16544    Use char because int might match the return type of a GCC
16545    builtin and then its argument prototype would still apply.  */
16546 #ifdef __cplusplus
16547 extern "C"
16548 #endif
16549 char socket ();
16550 int
16551 main ()
16552 {
16553 return socket ();
16554   ;
16555   return 0;
16556 }
16557 _ACEOF
16558 if ac_fn_c_try_link "$LINENO"; then :
16559   ac_cv_lib_socket_socket=yes
16560 else
16561   ac_cv_lib_socket_socket=no
16562 fi
16563 rm -f core conftest.err conftest.$ac_objext \
16564     conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16566 fi
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16568 $as_echo "$ac_cv_lib_socket_socket" >&6; }
16569 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
16570   LIBSOCKET="-lsocket"
16571 fi
16572
16573
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
16575 $as_echo_n "checking for rint in -lm... " >&6; }
16576 if test "${ac_cv_lib_m_rint+set}" = set; then :
16577   $as_echo_n "(cached) " >&6
16578 else
16579   ac_check_lib_save_LIBS=$LIBS
16580 LIBS="-lm  $LIBS"
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h.  */
16583
16584 /* Override any GCC internal prototype to avoid an error.
16585    Use char because int might match the return type of a GCC
16586    builtin and then its argument prototype would still apply.  */
16587 #ifdef __cplusplus
16588 extern "C"
16589 #endif
16590 char rint ();
16591 int
16592 main ()
16593 {
16594 return rint ();
16595   ;
16596   return 0;
16597 }
16598 _ACEOF
16599 if ac_fn_c_try_link "$LINENO"; then :
16600   ac_cv_lib_m_rint=yes
16601 else
16602   ac_cv_lib_m_rint=no
16603 fi
16604 rm -f core conftest.err conftest.$ac_objext \
16605     conftest$ac_exeext conftest.$ac_ext
16606 LIBS=$ac_check_lib_save_LIBS
16607 fi
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
16609 $as_echo "$ac_cv_lib_m_rint" >&6; }
16610 if test "x$ac_cv_lib_m_rint" = x""yes; then :
16611   LIBM="-lm"
16612 fi
16613
16614
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
16616 $as_echo_n "checking for open in -lc... " >&6; }
16617 if test "${ac_cv_lib_c_open+set}" = set; then :
16618   $as_echo_n "(cached) " >&6
16619 else
16620   ac_check_lib_save_LIBS=$LIBS
16621 LIBS="-lc  $LIBS"
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h.  */
16624
16625 /* Override any GCC internal prototype to avoid an error.
16626    Use char because int might match the return type of a GCC
16627    builtin and then its argument prototype would still apply.  */
16628 #ifdef __cplusplus
16629 extern "C"
16630 #endif
16631 char open ();
16632 int
16633 main ()
16634 {
16635 return open ();
16636   ;
16637   return 0;
16638 }
16639 _ACEOF
16640 if ac_fn_c_try_link "$LINENO"; then :
16641   ac_cv_lib_c_open=yes
16642 else
16643   ac_cv_lib_c_open=no
16644 fi
16645 rm -f core conftest.err conftest.$ac_objext \
16646     conftest$ac_exeext conftest.$ac_ext
16647 LIBS=$ac_check_lib_save_LIBS
16648 fi
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
16650 $as_echo "$ac_cv_lib_c_open" >&6; }
16651 if test "x$ac_cv_lib_c_open" = x""yes; then :
16652   LIBC="-lc"
16653 fi
16654
16655
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcancelstate in -lpthread" >&5
16657 $as_echo_n "checking for pthread_setcancelstate in -lpthread... " >&6; }
16658 if test "${ac_cv_lib_pthread_pthread_setcancelstate+set}" = set; then :
16659   $as_echo_n "(cached) " >&6
16660 else
16661   ac_check_lib_save_LIBS=$LIBS
16662 LIBS="-lpthread  $LIBS"
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h.  */
16665
16666 /* Override any GCC internal prototype to avoid an error.
16667    Use char because int might match the return type of a GCC
16668    builtin and then its argument prototype would still apply.  */
16669 #ifdef __cplusplus
16670 extern "C"
16671 #endif
16672 char pthread_setcancelstate ();
16673 int
16674 main ()
16675 {
16676 return pthread_setcancelstate ();
16677   ;
16678   return 0;
16679 }
16680 _ACEOF
16681 if ac_fn_c_try_link "$LINENO"; then :
16682   ac_cv_lib_pthread_pthread_setcancelstate=yes
16683 else
16684   ac_cv_lib_pthread_pthread_setcancelstate=no
16685 fi
16686 rm -f core conftest.err conftest.$ac_objext \
16687     conftest$ac_exeext conftest.$ac_ext
16688 LIBS=$ac_check_lib_save_LIBS
16689 fi
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setcancelstate" >&5
16691 $as_echo "$ac_cv_lib_pthread_pthread_setcancelstate" >&6; }
16692 if test "x$ac_cv_lib_pthread_pthread_setcancelstate" = x""yes; then :
16693   LIBPTHREAD="-lpthread"
16694
16695 $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
16696
16697 fi
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16708         if test -n "$ac_tool_prefix"; then
16709   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16710 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16712 $as_echo_n "checking for $ac_word... " >&6; }
16713 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16714   $as_echo_n "(cached) " >&6
16715 else
16716   case $PKG_CONFIG in
16717   [\\/]* | ?:[\\/]*)
16718   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16719   ;;
16720   *)
16721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16722 for as_dir in $PATH
16723 do
16724   IFS=$as_save_IFS
16725   test -z "$as_dir" && as_dir=.
16726     for ac_exec_ext in '' $ac_executable_extensions; do
16727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16728     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16730     break 2
16731   fi
16732 done
16733   done
16734 IFS=$as_save_IFS
16735
16736   ;;
16737 esac
16738 fi
16739 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16740 if test -n "$PKG_CONFIG"; then
16741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16742 $as_echo "$PKG_CONFIG" >&6; }
16743 else
16744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745 $as_echo "no" >&6; }
16746 fi
16747
16748
16749 fi
16750 if test -z "$ac_cv_path_PKG_CONFIG"; then
16751   ac_pt_PKG_CONFIG=$PKG_CONFIG
16752   # Extract the first word of "pkg-config", so it can be a program name with args.
16753 set dummy pkg-config; ac_word=$2
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16755 $as_echo_n "checking for $ac_word... " >&6; }
16756 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16757   $as_echo_n "(cached) " >&6
16758 else
16759   case $ac_pt_PKG_CONFIG in
16760   [\\/]* | ?:[\\/]*)
16761   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16762   ;;
16763   *)
16764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16765 for as_dir in $PATH
16766 do
16767   IFS=$as_save_IFS
16768   test -z "$as_dir" && as_dir=.
16769     for ac_exec_ext in '' $ac_executable_extensions; do
16770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16771     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16773     break 2
16774   fi
16775 done
16776   done
16777 IFS=$as_save_IFS
16778
16779   ;;
16780 esac
16781 fi
16782 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16783 if test -n "$ac_pt_PKG_CONFIG"; then
16784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16785 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16786 else
16787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16789 fi
16790
16791   if test "x$ac_pt_PKG_CONFIG" = x; then
16792     PKG_CONFIG=""
16793   else
16794     case $cross_compiling:$ac_tool_warned in
16795 yes:)
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16798 ac_tool_warned=yes ;;
16799 esac
16800     PKG_CONFIG=$ac_pt_PKG_CONFIG
16801   fi
16802 else
16803   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16804 fi
16805
16806 fi
16807 if test -n "$PKG_CONFIG"; then
16808         _pkg_min_version=0.9.0
16809         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16810 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16811         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16812                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16813 $as_echo "yes" >&6; }
16814         else
16815                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16816 $as_echo "no" >&6; }
16817                 PKG_CONFIG=""
16818         fi
16819 fi
16820
16821 pkg_failed=no
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
16823 $as_echo_n "checking for LIBUSB... " >&6; }
16824
16825 if test -n "$LIBUSB_CFLAGS"; then
16826     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
16827  elif test -n "$PKG_CONFIG"; then
16828     if test -n "$PKG_CONFIG" && \
16829     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
16830   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
16831   ac_status=$?
16832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16833   test $ac_status = 0; }; then
16834   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.0" 2>/dev/null`
16835 else
16836   pkg_failed=yes
16837 fi
16838  else
16839     pkg_failed=untried
16840 fi
16841 if test -n "$LIBUSB_LIBS"; then
16842     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
16843  elif test -n "$PKG_CONFIG"; then
16844     if test -n "$PKG_CONFIG" && \
16845     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
16846   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
16847   ac_status=$?
16848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16849   test $ac_status = 0; }; then
16850   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.0" 2>/dev/null`
16851 else
16852   pkg_failed=yes
16853 fi
16854  else
16855     pkg_failed=untried
16856 fi
16857
16858
16859
16860 if test $pkg_failed = yes; then
16861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16862 $as_echo "no" >&6; }
16863
16864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16865         _pkg_short_errors_supported=yes
16866 else
16867         _pkg_short_errors_supported=no
16868 fi
16869         if test $_pkg_short_errors_supported = yes; then
16870                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0 >= 1.0.0" 2>&1`
16871         else
16872                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0 >= 1.0.0" 2>&1`
16873         fi
16874         # Put the nasty error message in config.log where it belongs
16875         echo "$LIBUSB_PKG_ERRORS" >&5
16876
16877         ac_libusb=no
16878 elif test $pkg_failed = untried; then
16879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16880 $as_echo "no" >&6; }
16881         ac_libusb=no
16882 else
16883         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
16884         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
16885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16886 $as_echo "yes" >&6; }
16887         ac_libusb=yes
16888 fi
16889
16890
16891 if test x"$ac_libusb" = x"yes" ; then
16892
16893 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
16894
16895 fi
16896
16897
16898
16899
16900
16901 for ac_header in ncurses.h
16902 do :
16903   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
16904 if test "x$ac_cv_header_ncurses_h" = x""yes; then :
16905   cat >>confdefs.h <<_ACEOF
16906 #define HAVE_NCURSES_H 1
16907 _ACEOF
16908
16909 fi
16910
16911 done
16912
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
16914 $as_echo_n "checking for initscr in -lncurses... " >&6; }
16915 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
16916   $as_echo_n "(cached) " >&6
16917 else
16918   ac_check_lib_save_LIBS=$LIBS
16919 LIBS="-lncurses  $LIBS"
16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921 /* end confdefs.h.  */
16922
16923 /* Override any GCC internal prototype to avoid an error.
16924    Use char because int might match the return type of a GCC
16925    builtin and then its argument prototype would still apply.  */
16926 #ifdef __cplusplus
16927 extern "C"
16928 #endif
16929 char initscr ();
16930 int
16931 main ()
16932 {
16933 return initscr ();
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 if ac_fn_c_try_link "$LINENO"; then :
16939   ac_cv_lib_ncurses_initscr=yes
16940 else
16941   ac_cv_lib_ncurses_initscr=no
16942 fi
16943 rm -f core conftest.err conftest.$ac_objext \
16944     conftest$ac_exeext conftest.$ac_ext
16945 LIBS=$ac_check_lib_save_LIBS
16946 fi
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
16948 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
16949 if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
16950   NCURSES_LIBS="-lncurses"
16951 fi
16952
16953
16954 if test x"$NCURSES_LIBS" = x"" ; then
16955   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not including curses support" >&5
16956 $as_echo "$as_me: WARNING: Not including curses support" >&2;}
16957    if false; then
16958   HAVE_NCURSES_TRUE=
16959   HAVE_NCURSES_FALSE='#'
16960 else
16961   HAVE_NCURSES_TRUE='#'
16962   HAVE_NCURSES_FALSE=
16963 fi
16964
16965   ac_ncurses="no"
16966 else
16967    if true; then
16968   HAVE_NCURSES_TRUE=
16969   HAVE_NCURSES_FALSE='#'
16970 else
16971   HAVE_NCURSES_TRUE='#'
16972   HAVE_NCURSES_FALSE=
16973 fi
16974
16975   ac_ncurses="yes"
16976 fi
16977
16978 # Check whether --enable-nmea was given.
16979 if test "${enable_nmea+set}" = set; then :
16980   enableval=$enable_nmea; ac_nmea=$enableval
16981 else
16982   ac_nmea=yes
16983 fi
16984
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NMEA support" >&5
16986 $as_echo_n "checking for NMEA support... " >&6; }
16987 if test x"$ac_nmea" = "xyes"; then
16988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16989 $as_echo "yes" >&6; }
16990
16991 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
16992
16993 else
16994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995 $as_echo "no" >&6; }
16996 fi
16997
16998 # Check whether --enable-oncore was given.
16999 if test "${enable_oncore+set}" = set; then :
17000   enableval=$enable_oncore; ac_oncore=$enableval
17001 else
17002   ac_oncore=yes
17003 fi
17004
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motorola OnCore support" >&5
17006 $as_echo_n "checking for Motorola OnCore support... " >&6; }
17007 if test x"$ac_oncore" = "xyes"; then
17008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17009 $as_echo "yes" >&6; }
17010
17011 $as_echo "#define ONCORE_ENABLE 1" >>confdefs.h
17012
17013 else
17014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17015 $as_echo "no" >&6; }
17016 fi
17017
17018 # Check whether --enable-sirf was given.
17019 if test "${enable_sirf+set}" = set; then :
17020   enableval=$enable_sirf; ac_sirf=$enableval
17021 else
17022   ac_sirf=yes
17023 fi
17024
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SiRF support" >&5
17026 $as_echo_n "checking for SiRF support... " >&6; }
17027 if test x"$ac_sirf" = "xyes"; then
17028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17029 $as_echo "yes" >&6; }
17030
17031 $as_echo "#define SIRF_ENABLE 1" >>confdefs.h
17032
17033 else
17034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17035 $as_echo "no" >&6; }
17036 fi
17037
17038 # Check whether --enable-superstar2 was given.
17039 if test "${enable_superstar2+set}" = set; then :
17040   enableval=$enable_superstar2; ac_superstar2=$enableval
17041 else
17042   ac_superstar2=yes
17043 fi
17044
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SuperStarII support" >&5
17046 $as_echo_n "checking for SuperStarII support... " >&6; }
17047 if test x"$ac_superstar2" = "xyes"; then
17048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17049 $as_echo "yes" >&6; }
17050
17051 $as_echo "#define SUPERSTAR2_ENABLE 1" >>confdefs.h
17052
17053 else
17054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17055 $as_echo "no" >&6; }
17056 fi
17057
17058 # Check whether --enable-tsip was given.
17059 if test "${enable_tsip+set}" = set; then :
17060   enableval=$enable_tsip; ac_tsip=$enableval
17061 else
17062   ac_tsip=yes
17063 fi
17064
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Trimble TSIP support" >&5
17066 $as_echo_n "checking for Trimble TSIP support... " >&6; }
17067 if test x"$ac_tsip" = "xyes"; then
17068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17069 $as_echo "yes" >&6; }
17070
17071 $as_echo "#define TSIP_ENABLE 1" >>confdefs.h
17072
17073 else
17074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17075 $as_echo "no" >&6; }
17076 fi
17077
17078 # Check whether --enable-fv18 was given.
17079 if test "${enable_fv18+set}" = set; then :
17080   enableval=$enable_fv18; ac_fv18=$enableval
17081 else
17082   ac_fv18=yes
17083 fi
17084
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FV-18 support" >&5
17086 $as_echo_n "checking for FV-18 support... " >&6; }
17087 if test x"$ac_fv18" = "xyes"; then
17088     ac_nmea=yes
17089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17090 $as_echo "yes" >&6; }
17091
17092 $as_echo "#define FV18_ENABLE 1" >>confdefs.h
17093
17094
17095 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
17096
17097 else
17098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 $as_echo "no" >&6; }
17100 fi
17101
17102 # Check whether --enable-tripmate was given.
17103 if test "${enable_tripmate+set}" = set; then :
17104   enableval=$enable_tripmate; ac_tripmate=$enableval
17105 else
17106   ac_tripmate=yes
17107 fi
17108
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tripmate support" >&5
17110 $as_echo_n "checking for Tripmate support... " >&6; }
17111 if test x"$ac_tripmate" = "xyes"; then
17112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17113 $as_echo "yes" >&6; }
17114
17115 $as_echo "#define TRIPMATE_ENABLE 1" >>confdefs.h
17116
17117 else
17118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17119 $as_echo "no" >&6; }
17120 fi
17121
17122 # Check whether --enable-earthmate was given.
17123 if test "${enable_earthmate+set}" = set; then :
17124   enableval=$enable_earthmate; ac_earthmate=$enableval
17125 else
17126   ac_earthmate=yes
17127 fi
17128
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EarthMate support" >&5
17130 $as_echo_n "checking for EarthMate support... " >&6; }
17131 if test x"$ac_earthmate" = "xyes"; then
17132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17133 $as_echo "yes" >&6; }
17134
17135 $as_echo "#define EARTHMATE_ENABLE 1" >>confdefs.h
17136
17137 else
17138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17139 $as_echo "no" >&6; }
17140 fi
17141
17142 # Check whether --enable-itrax was given.
17143 if test "${enable_itrax+set}" = set; then :
17144   enableval=$enable_itrax; ac_itrax=$enableval
17145 else
17146   ac_itrax=yes
17147 fi
17148
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iTrax support" >&5
17150 $as_echo_n "checking for iTrax support... " >&6; }
17151 if test x"$ac_itrax" = "xyes"; then
17152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17153 $as_echo "yes" >&6; }
17154
17155 $as_echo "#define ITRAX_ENABLE 1" >>confdefs.h
17156
17157 else
17158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17159 $as_echo "no" >&6; }
17160 fi
17161
17162 # Check whether --enable-ashtech was given.
17163 if test "${enable_ashtech+set}" = set; then :
17164   enableval=$enable_ashtech; ac_ashtech=$enableval
17165 else
17166   ac_ashtech=yes
17167 fi
17168
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ashtech support" >&5
17170 $as_echo_n "checking for Ashtech support... " >&6; }
17171 if test x"$ac_ashtech" = "xyes"; then
17172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17173 $as_echo "yes" >&6; }
17174
17175 $as_echo "#define ASHTECH_ENABLE 1" >>confdefs.h
17176
17177 else
17178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179 $as_echo "no" >&6; }
17180 fi
17181
17182 # Check whether --enable-navcom was given.
17183 if test "${enable_navcom+set}" = set; then :
17184   enableval=$enable_navcom; ac_navcom=$enableval
17185 else
17186   ac_navcom=yes
17187 fi
17188
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Navcom support" >&5
17190 $as_echo_n "checking for Navcom support... " >&6; }
17191 if test x"$ac_navcom" = "xyes"; then
17192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17193 $as_echo "yes" >&6; }
17194
17195 $as_echo "#define NAVCOM_ENABLE 1" >>confdefs.h
17196
17197 else
17198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17199 $as_echo "no" >&6; }
17200 fi
17201
17202 # Check whether --enable-garmin was given.
17203 if test "${enable_garmin+set}" = set; then :
17204   enableval=$enable_garmin; ac_garmin=$enableval
17205 else
17206   ac_garmin=yes
17207 fi
17208
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Garmin support" >&5
17210 $as_echo_n "checking for Garmin support... " >&6; }
17211 if test x"$ac_garmin" = "xyes"; then
17212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17213 $as_echo "yes" >&6; }
17214
17215 $as_echo "#define GARMIN_ENABLE 1" >>confdefs.h
17216
17217 else
17218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17219 $as_echo "no" >&6; }
17220 fi
17221
17222 # Check whether --enable-garmintxt was given.
17223 if test "${enable_garmintxt+set}" = set; then :
17224   enableval=$enable_garmintxt; ac_garmintxt=$enableval
17225 else
17226   ac_garmintxt=yes
17227 fi
17228
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Garmin Simple Text support" >&5
17230 $as_echo_n "checking for Garmin Simple Text support... " >&6; }
17231 if test x"$ac_garmintxt" = "xyes"; then
17232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17233 $as_echo "yes" >&6; }
17234
17235 $as_echo "#define GARMINTXT_ENABLE 1" >>confdefs.h
17236
17237 else
17238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239 $as_echo "no" >&6; }
17240 fi
17241
17242 # Check whether --enable-tnt was given.
17243 if test "${enable_tnt+set}" = set; then :
17244   enableval=$enable_tnt; ac_tnt=$enableval
17245 else
17246   ac_tnt=yes
17247 fi
17248
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for True North support" >&5
17250 $as_echo_n "checking for True North support... " >&6; }
17251 if test x"$ac_tnt" = "xyes"; then
17252     ac_nmea=yes
17253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17254 $as_echo "yes" >&6; }
17255
17256 $as_echo "#define TNT_ENABLE 1" >>confdefs.h
17257
17258
17259 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
17260
17261 else
17262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17264 fi
17265
17266 # Check whether --enable-oceanserver was given.
17267 if test "${enable_oceanserver+set}" = set; then :
17268   enableval=$enable_oceanserver; ac_oceanserver=$enableval
17269 else
17270   ac_oceanserver=yes
17271 fi
17272
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OceanServer support" >&5
17274 $as_echo_n "checking for OceanServer support... " >&6; }
17275 if test x"$ac_oceanserver" = "xyes"; then
17276     ac_nmea=yes
17277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17278 $as_echo "yes" >&6; }
17279
17280 $as_echo "#define OCEANSERVER_ENABLE 1" >>confdefs.h
17281
17282
17283 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
17284
17285 else
17286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17287 $as_echo "no" >&6; }
17288 fi
17289
17290 # Check whether --enable-ubx was given.
17291 if test "${enable_ubx+set}" = set; then :
17292   enableval=$enable_ubx; ac_ubx=$enableval
17293 else
17294   ac_ubx=yes
17295 fi
17296
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UBX support" >&5
17298 $as_echo_n "checking for UBX support... " >&6; }
17299 if test x"$ac_ubx" = "xyes"; then
17300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17301 $as_echo "yes" >&6; }
17302
17303 $as_echo "#define UBX_ENABLE 1" >>confdefs.h
17304
17305 else
17306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17307 $as_echo "no" >&6; }
17308 fi
17309
17310 # Check whether --enable-evermore was given.
17311 if test "${enable_evermore+set}" = set; then :
17312   enableval=$enable_evermore; ac_evermore=$enableval
17313 else
17314   ac_evermore=yes
17315 fi
17316
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EverMore support" >&5
17318 $as_echo_n "checking for EverMore support... " >&6; }
17319 if test x"$ac_evermore" = "xyes"; then
17320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17321 $as_echo "yes" >&6; }
17322
17323 $as_echo "#define EVERMORE_ENABLE 1" >>confdefs.h
17324
17325 else
17326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17327 $as_echo "no" >&6; }
17328 fi
17329
17330 # Check whether --enable-mtk3301 was given.
17331 if test "${enable_mtk3301+set}" = set; then :
17332   enableval=$enable_mtk3301; ac_mtk3301=$enableval
17333 else
17334   ac_mtk3301=yes
17335 fi
17336
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTK-3301 support" >&5
17338 $as_echo_n "checking for MTK-3301 support... " >&6; }
17339 if test x"$ac_mtk3301" = "xyes"; then
17340     ac_nmea=yes
17341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17342 $as_echo "yes" >&6; }
17343
17344 $as_echo "#define MTK3301_ENABLE 1" >>confdefs.h
17345
17346
17347 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
17348
17349 else
17350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17351 $as_echo "no" >&6; }
17352 fi
17353
17354 # Check whether --enable-gpsclock was given.
17355 if test "${enable_gpsclock+set}" = set; then :
17356   enableval=$enable_gpsclock; ac_gpsclock=$enableval
17357 else
17358   ac_gpsclock=yes
17359 fi
17360
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSClock support" >&5
17362 $as_echo_n "checking for GPSClock support... " >&6; }
17363 if test x"$ac_gpsclock" = "xyes"; then
17364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17365 $as_echo "yes" >&6; }
17366
17367 $as_echo "#define GPSCLOCK_ENABLE 1" >>confdefs.h
17368
17369 else
17370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17371 $as_echo "no" >&6; }
17372 fi
17373
17374 # Check whether --enable-rtcm104v2 was given.
17375 if test "${enable_rtcm104v2+set}" = set; then :
17376   enableval=$enable_rtcm104v2; ac_rtcm104v2=$enableval
17377 else
17378   ac_rtcm104v2=yes
17379 fi
17380
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rtcm104v2 support" >&5
17382 $as_echo_n "checking for rtcm104v2 support... " >&6; }
17383 if test x"$ac_earthmate" = "xno" -a x"$ac_evermore" = "xno" -a x"$ac_garmin" = "xno" -a x"$ac_itrax" = "xno" -a x"$ac_sirf" = "xno" -a x"$ac_superstar2" = "xno" -a x"$ac_tsip" = "xno" -a x"$ac_navcom" = "xno"; then
17384     ac_rtcm104v2=no
17385 fi
17386 if test x"$ac_rtcm104v2" = "xyes"; then
17387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17388 $as_echo "yes" >&6; }
17389
17390 $as_echo "#define RTCM104V2_ENABLE 1" >>confdefs.h
17391
17392 else
17393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17394 $as_echo "no" >&6; }
17395 fi
17396
17397  if test "$ac_rtcm104v2" = "yes"; then
17398   HAVE_RTCM104V2_TRUE=
17399   HAVE_RTCM104V2_FALSE='#'
17400 else
17401   HAVE_RTCM104V2_TRUE='#'
17402   HAVE_RTCM104V2_FALSE=
17403 fi
17404
17405
17406 # Check whether --enable-rtcm104v3 was given.
17407 if test "${enable_rtcm104v3+set}" = set; then :
17408   enableval=$enable_rtcm104v3; ac_rtcm104v3=$enableval
17409 else
17410   ac_rtcm104v3=yes
17411 fi
17412
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rtcm104v3 support" >&5
17414 $as_echo_n "checking for rtcm104v3 support... " >&6; }
17415 if test x"$ac_earthmate" = "xno" -a x"$ac_evermore" = "xno" -a x"$ac_garmin" = "xno" -a x"$ac_itrax" = "xno" -a x"$ac_sirf" = "xno" -a x"$ac_tsip" = "xno" -a x"$ac_navcom" = "xno"; then
17416     ac_rtcm104v3=no
17417 fi
17418 if test x"$ac_rtcm104v3" = "xyes"; then
17419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17420 $as_echo "yes" >&6; }
17421
17422 $as_echo "#define RTCM104V3_ENABLE 1" >>confdefs.h
17423
17424 else
17425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17426 $as_echo "no" >&6; }
17427 fi
17428
17429  if test "$ac_rtcm104v3" = "yes"; then
17430   HAVE_RTCM104V3_TRUE=
17431   HAVE_RTCM104V3_FALSE='#'
17432 else
17433   HAVE_RTCM104V3_TRUE='#'
17434   HAVE_RTCM104V3_FALSE=
17435 fi
17436
17437
17438 # Check whether --enable-ntrip was given.
17439 if test "${enable_ntrip+set}" = set; then :
17440   enableval=$enable_ntrip; ac_ntrip=$enableval
17441 else
17442   ac_ntrip=yes
17443 fi
17444
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTRIP support" >&5
17446 $as_echo_n "checking for NTRIP support... " >&6; }
17447 if test x"$ac_ntrip" = "xyes"; then
17448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17449 $as_echo "yes" >&6; }
17450
17451 $as_echo "#define NTRIP_ENABLE 1" >>confdefs.h
17452
17453 else
17454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455 $as_echo "no" >&6; }
17456 fi
17457
17458  if test "$ac_ntrip" = "yes"; then
17459   HAVE_NTRIP_TRUE=
17460   HAVE_NTRIP_FALSE='#'
17461 else
17462   HAVE_NTRIP_TRUE='#'
17463   HAVE_NTRIP_FALSE=
17464 fi
17465
17466
17467 # Check whether --enable-aivdm was given.
17468 if test "${enable_aivdm+set}" = set; then :
17469   enableval=$enable_aivdm; ac_aivdm=$enableval
17470 else
17471   ac_aivdm=yes
17472 fi
17473
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIVDM support" >&5
17475 $as_echo_n "checking for AIVDM support... " >&6; }
17476 if test x"$ac_aivdm" = "xyes"; then
17477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17478 $as_echo "yes" >&6; }
17479
17480 $as_echo "#define AIVDM_ENABLE 1" >>confdefs.h
17481
17482 else
17483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484 $as_echo "no" >&6; }
17485 fi
17486  if test "$ac_aivdm" = "yes"; then
17487   HAVE_AIVDM_TRUE=
17488   HAVE_AIVDM_FALSE='#'
17489 else
17490   HAVE_AIVDM_TRUE='#'
17491   HAVE_AIVDM_FALSE=
17492 fi
17493
17494
17495 # Check whether --enable-timing was given.
17496 if test "${enable_timing+set}" = set; then :
17497   enableval=$enable_timing; ac_timing=$enableval
17498 else
17499   ac_timing=yes
17500 fi
17501
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for latency timing support" >&5
17503 $as_echo_n "checking for latency timing support... " >&6; }
17504 if test x"$ac_timing" = "xyes"; then
17505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17506 $as_echo "yes" >&6; }
17507
17508 $as_echo "#define TIMING_ENABLE 1" >>confdefs.h
17509
17510 else
17511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17512 $as_echo "no" >&6; }
17513 fi
17514
17515 # Check whether --enable-clientdebug was given.
17516 if test "${enable_clientdebug+set}" = set; then :
17517   enableval=$enable_clientdebug; ac_clientdebug=$enableval
17518 else
17519   ac_clientdebug=yes
17520 fi
17521
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for client debugging support" >&5
17523 $as_echo_n "checking for client debugging support... " >&6; }
17524 if test x"$ac_clientdebug" = "xyes"; then
17525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17526 $as_echo "yes" >&6; }
17527
17528 $as_echo "#define CLIENTDEBUG_ENABLE 1" >>confdefs.h
17529
17530 else
17531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532 $as_echo "no" >&6; }
17533 fi
17534
17535  if test x"$ac_clientdebug" = x"yes"; then
17536   CLIENTDEBUG_ENABLE_TRUE=
17537   CLIENTDEBUG_ENABLE_FALSE='#'
17538 else
17539   CLIENTDEBUG_ENABLE_TRUE='#'
17540   CLIENTDEBUG_ENABLE_FALSE=
17541 fi
17542
17543
17544 # Check whether --enable-oldstyle was given.
17545 if test "${enable_oldstyle+set}" = set; then :
17546   enableval=$enable_oldstyle; ac_oldstyle=$enableval
17547 else
17548   ac_oldstyle=yes
17549 fi
17550
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oldstyle support" >&5
17552 $as_echo_n "checking for oldstyle support... " >&6; }
17553 if test x"$ac_oldstyle" = "xyes"; then
17554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17555 $as_echo "yes" >&6; }
17556
17557 $as_echo "#define OLDSTYLE_ENABLE 1" >>confdefs.h
17558
17559 else
17560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561 $as_echo "no" >&6; }
17562 fi
17563
17564 # Check whether --enable-profiling was given.
17565 if test "${enable_profiling+set}" = set; then :
17566   enableval=$enable_profiling; ac_profiling=$enableval
17567 else
17568   ac_profiling=no
17569 fi
17570
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling support" >&5
17572 $as_echo_n "checking for profiling support... " >&6; }
17573 if test x"$ac_profiling" = "xyes"; then
17574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17575 $as_echo "yes" >&6; }
17576
17577 $as_echo "#define PROFILING 1" >>confdefs.h
17578
17579 else
17580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17581 $as_echo "no" >&6; }
17582 fi
17583
17584 # Check whether --enable-ntpshm was given.
17585 if test "${enable_ntpshm+set}" = set; then :
17586   enableval=$enable_ntpshm; ac_ntpshm=$enableval
17587 else
17588   ac_ntpshm=yes
17589 fi
17590
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTP time hinting support" >&5
17592 $as_echo_n "checking for NTP time hinting support... " >&6; }
17593 if test x"$ac_ntpshm" = "xyes"; then
17594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17595 $as_echo "yes" >&6; }
17596
17597 $as_echo "#define NTPSHM_ENABLE 1" >>confdefs.h
17598
17599 else
17600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17601 $as_echo "no" >&6; }
17602 fi
17603
17604 # Check whether --enable-pps was given.
17605 if test "${enable_pps+set}" = set; then :
17606   enableval=$enable_pps; ac_pps=$enableval
17607 else
17608   ac_pps=yes
17609 fi
17610
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PPS time syncing support" >&5
17612 $as_echo_n "checking for PPS time syncing support... " >&6; }
17613 if test x"$ac_pps" = "xyes"; then
17614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17615 $as_echo "yes" >&6; }
17616
17617 $as_echo "#define PPS_ENABLE 1" >>confdefs.h
17618
17619 else
17620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17621 $as_echo "no" >&6; }
17622 fi
17623
17624 # Check whether --enable-pps-on-cts was given.
17625 if test "${enable_pps_on_cts+set}" = set; then :
17626   enableval=$enable_pps_on_cts; ac_ppsoncts=$enableval
17627 else
17628   ac_ppsoncts=no
17629 fi
17630
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PPS pulse on CTS rather than DCD" >&5
17632 $as_echo_n "checking for PPS pulse on CTS rather than DCD... " >&6; }
17633 if test x"$ac_ppsoncts" = "xyes"; then
17634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17635 $as_echo "yes" >&6; }
17636
17637 $as_echo "#define PPS_ON_CTS 1" >>confdefs.h
17638
17639 else
17640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17641 $as_echo "no" >&6; }
17642 fi
17643
17644 # Check whether --enable-gpsd-user was given.
17645 if test "${enable_gpsd_user+set}" = set; then :
17646   enableval=$enable_gpsd_user; ac_user=$enableval
17647 else
17648   ac_user=nobody
17649 fi
17650
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking privilege revocation user" >&5
17652 $as_echo_n "checking privilege revocation user... " >&6; }
17653 if test x"$ac_user" != "xnobody"; then
17654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_user" >&5
17655 $as_echo "$ac_user" >&6; }
17656
17657 cat >>confdefs.h <<_ACEOF
17658 #define GPSD_USER "$ac_user"
17659 _ACEOF
17660
17661 else
17662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: nobody" >&5
17663 $as_echo "nobody" >&6; }
17664 fi
17665
17666 # Check whether --enable-gpsd-group was given.
17667 if test "${enable_gpsd_group+set}" = set; then :
17668   enableval=$enable_gpsd_group; ac_group=$enableval
17669 fi
17670
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking privilege revokation group" >&5
17672 $as_echo_n "checking privilege revokation group... " >&6; }
17673 if test x"$ac_user" != "xnobody"; then
17674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_group" >&5
17675 $as_echo "$ac_group" >&6; }
17676
17677 cat >>confdefs.h <<_ACEOF
17678 #define GPSD_GROUP "$ac_group"
17679 _ACEOF
17680
17681 fi
17682
17683 # Check whether --enable-fixed-port-speed was given.
17684 if test "${enable_fixed_port_speed+set}" = set; then :
17685   enableval=$enable_fixed_port_speed; ac_baud=$enableval
17686 else
17687   ac_baud=no
17688 fi
17689
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fixed port speed" >&5
17691 $as_echo_n "checking for fixed port speed... " >&6; }
17692 if test x"$ac_baud" != "xno"; then
17693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_baud" >&5
17694 $as_echo "$ac_baud" >&6; }
17695
17696 cat >>confdefs.h <<_ACEOF
17697 #define FIXED_PORT_SPEED $ac_baud
17698 _ACEOF
17699
17700         FIXED_PORT_SPEED="-DSPEEDFLAGS=$ac_baud"
17701 else
17702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 $as_echo "no" >&6; }
17704 fi
17705
17706 # Check whether --enable-bluetooth was given.
17707 if test "${enable_bluetooth+set}" = set; then :
17708   enableval=$enable_bluetooth; ac_bluetooth=$enableval
17709 else
17710   ac_bluetooth=no
17711 fi
17712
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BlueZ support" >&5
17714 $as_echo_n "checking for BlueZ support... " >&6; }
17715 if test x"$ac_bluetooth" = x"yes"; then
17716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17717 $as_echo "yes" >&6; }
17718
17719 $as_echo "#define HAVE_BLUEZ 1" >>confdefs.h
17720
17721     # Older versions of autotools barf and die on this.
17722     #PKG_CHECK_MODULES(BLUEZ, bluez )
17723     BLUEZ_CFLAGS=`pkg-config --cflags bluez`
17724     BLUEZ_LIBS=`pkg-config --libs bluez`
17725
17726
17727 else
17728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17729 $as_echo "no" >&6; }
17730 fi
17731
17732
17733
17734 # Check whether --enable-dbus was given.
17735 if test "${enable_dbus+set}" = set; then :
17736   enableval=$enable_dbus; ac_dbus=$enableval
17737 else
17738   ac_dbus=no
17739 fi
17740
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS support" >&5
17742 $as_echo_n "checking for DBUS support... " >&6; }
17743 if test x"$ac_dbus" = "xyes"; then
17744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17745 $as_echo "yes" >&6; }
17746
17747 $as_echo "#define DBUS_ENABLE 1" >>confdefs.h
17748
17749     # Older versions of autotools barf and die on this.
17750     #PKG_CHECK_MODULES(DBUS, dbus-1 >= 0.23.4 )
17751     DBUS_CFLAGS=`pkg-config --cflags dbus-glib-1`
17752     DBUS_LIBS=`pkg-config --libs dbus-1`
17753
17754
17755     #PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= 0.22 )
17756     DBUS_GLIB_LIBS=`pkg-config --libs dbus-glib-1`
17757
17758
17759 else
17760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17761 $as_echo "no" >&6; }
17762 fi
17763
17764 # Check whether --enable-max-clients was given.
17765 if test "${enable_max_clients+set}" = set; then :
17766   enableval=$enable_max_clients; ac_maxclients=$enableval
17767 else
17768   ac_maxclients=no
17769 fi
17770
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for limited max clients" >&5
17772 $as_echo_n "checking for limited max clients... " >&6; }
17773 if test x"$ac_maxclients" != "xno"; then
17774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_maxclients" >&5
17775 $as_echo "$ac_maxclients" >&6; }
17776
17777 cat >>confdefs.h <<_ACEOF
17778 #define LIMITED_MAX_CLIENTS $ac_maxclients
17779 _ACEOF
17780
17781         LIMITED_MAX_CLIENTS="-DLIMITED_MAX_CLIENTS=$ac_maxclients"
17782 else
17783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784 $as_echo "no" >&6; }
17785 fi
17786
17787 # Check whether --enable-max-devices was given.
17788 if test "${enable_max_devices+set}" = set; then :
17789   enableval=$enable_max_devices; ac_maxdevices=$enableval
17790 else
17791   ac_maxdevices=no
17792 fi
17793
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max devices" >&5
17795 $as_echo_n "checking for max devices... " >&6; }
17796 if test x"$ac_maxdevices" != "xno"; then
17797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_maxdevices" >&5
17798 $as_echo "$ac_maxdevices" >&6; }
17799
17800 cat >>confdefs.h <<_ACEOF
17801 #define LIMITED_MAX_DEVICES $ac_maxdevices
17802 _ACEOF
17803
17804         LIMITED_MAX_DEVICES="-DLIMITED_MAX_DEVICES=$ac_maxdevices"
17805 else
17806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17807 $as_echo "no" >&6; }
17808 fi
17809
17810 # Check whether --enable-reconfigure was given.
17811 if test "${enable_reconfigure+set}" = set; then :
17812   enableval=$enable_reconfigure; ac_reconfigure=$enableval
17813 else
17814   ac_reconfigure=yes
17815 fi
17816
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if device reconfiguration is allowed" >&5
17818 $as_echo_n "checking if device reconfiguration is allowed... " >&6; }
17819 if test x"$ac_reconfigure" != "xno"; then
17820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_reconfigure" >&5
17821 $as_echo "$ac_reconfigure" >&6; }
17822
17823 $as_echo "#define ALLOW_RECONFIGURE 1" >>confdefs.h
17824
17825 else
17826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17827 $as_echo "no" >&6; }
17828 fi
17829
17830 # Check whether --enable-controlsend was given.
17831 if test "${enable_controlsend+set}" = set; then :
17832   enableval=$enable_controlsend; ac_controlsend=$enableval
17833 else
17834   ac_controlsend=yes
17835 fi
17836
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if control sending is allowed" >&5
17838 $as_echo_n "checking if control sending is allowed... " >&6; }
17839 if test x"$ac_controlsend" != "xno"; then
17840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_controlsend" >&5
17841 $as_echo "$ac_controlsend" >&6; }
17842
17843 $as_echo "#define ALLOW_CONTROLSEND 1" >>confdefs.h
17844
17845 else
17846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17847 $as_echo "no" >&6; }
17848 fi
17849
17850 # Check whether --enable-raw was given.
17851 if test "${enable_raw+set}" = set; then :
17852   enableval=$enable_raw; ac_raw=$enableval
17853 else
17854   ac_raw=yes
17855 fi
17856
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raw Measurement support" >&5
17858 $as_echo_n "checking for Raw Measurement support... " >&6; }
17859 if test x"$ac_raw" = "xyes"; then
17860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17861 $as_echo "yes" >&6; }
17862
17863 $as_echo "#define RAW_ENABLE 1" >>confdefs.h
17864
17865 else
17866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867 $as_echo "no" >&6; }
17868 fi
17869
17870  if test x"$ac_dbus" = x"yes"; then
17871   HAVE_DBUS_TRUE=
17872   HAVE_DBUS_FALSE='#'
17873 else
17874   HAVE_DBUS_TRUE='#'
17875   HAVE_DBUS_FALSE=
17876 fi
17877
17878  if test x"$ac_bluetooth" = x"yes"; then
17879   HAVE_BLUEZ_TRUE=
17880   HAVE_BLUEZ_FALSE='#'
17881 else
17882   HAVE_BLUEZ_TRUE='#'
17883   HAVE_BLUEZ_FALSE=
17884 fi
17885
17886
17887 # Check whether --enable-squelch was given.
17888 if test "${enable_squelch+set}" = set; then :
17889   enableval=$enable_squelch; ac_squelch=$enableval
17890 else
17891   ac_squelch=no
17892 fi
17893
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for disabled logging" >&5
17895 $as_echo_n "checking for disabled logging... " >&6; }
17896 if test x"$ac_squelch" = "xyes"; then
17897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17898 $as_echo "yes" >&6; }
17899
17900 $as_echo "#define SQUELCH_ENABLE 1" >>confdefs.h
17901
17902 else
17903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17904 $as_echo "no" >&6; }
17905 fi
17906
17907 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17908     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17909     (test "X$CXX" != "Xg++"))) ; then
17910   ISCXX="yes"
17911 else
17912   ISCXX="no"
17913 fi
17914
17915 # Check whether --enable-libgpsmm was given.
17916 if test "${enable_libgpsmm+set}" = set; then :
17917   enableval=$enable_libgpsmm; ac_libgpsmm=$enableval
17918 else
17919   ac_libgpsmm=$ISCXX
17920 fi
17921
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ support" >&5
17923 $as_echo_n "checking for C++ support... " >&6; }
17924 if test x"$ac_libgpsmm" = "xyes"; then
17925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17926 $as_echo "yes" >&6; }
17927
17928 $as_echo "#define LIBGPSMM_ENABLE 1" >>confdefs.h
17929
17930 else
17931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17932 $as_echo "no" >&6; }
17933 fi
17934
17935  if test x"$ac_libgpsmm" = x"yes"; then
17936   LIBGPSMM_ENABLE_TRUE=
17937   LIBGPSMM_ENABLE_FALSE='#'
17938 else
17939   LIBGPSMM_ENABLE_TRUE='#'
17940   LIBGPSMM_ENABLE_FALSE=
17941 fi
17942
17943
17944
17945
17946 # Check whether --enable-libQgpsmm was given.
17947 if test "${enable_libQgpsmm+set}" = set; then :
17948   enableval=$enable_libQgpsmm; ac_libQgpsmm=$enableval
17949 else
17950   ac_libQgpsmm=$ISCXX
17951 fi
17952
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT support" >&5
17954 $as_echo_n "checking for QT support... " >&6; }
17955 if test x"$ac_libQgpsmm" = "xyes"; then
17956
17957 pkg_failed=no
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtNetwork" >&5
17959 $as_echo_n "checking for QtNetwork... " >&6; }
17960
17961 if test -n "$QtNetwork_CFLAGS"; then
17962     pkg_cv_QtNetwork_CFLAGS="$QtNetwork_CFLAGS"
17963  elif test -n "$PKG_CONFIG"; then
17964     if test -n "$PKG_CONFIG" && \
17965     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtNetwork >= 4.4\""; } >&5
17966   ($PKG_CONFIG --exists --print-errors "QtNetwork >= 4.4") 2>&5
17967   ac_status=$?
17968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969   test $ac_status = 0; }; then
17970   pkg_cv_QtNetwork_CFLAGS=`$PKG_CONFIG --cflags "QtNetwork >= 4.4" 2>/dev/null`
17971 else
17972   pkg_failed=yes
17973 fi
17974  else
17975     pkg_failed=untried
17976 fi
17977 if test -n "$QtNetwork_LIBS"; then
17978     pkg_cv_QtNetwork_LIBS="$QtNetwork_LIBS"
17979  elif test -n "$PKG_CONFIG"; then
17980     if test -n "$PKG_CONFIG" && \
17981     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtNetwork >= 4.4\""; } >&5
17982   ($PKG_CONFIG --exists --print-errors "QtNetwork >= 4.4") 2>&5
17983   ac_status=$?
17984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17985   test $ac_status = 0; }; then
17986   pkg_cv_QtNetwork_LIBS=`$PKG_CONFIG --libs "QtNetwork >= 4.4" 2>/dev/null`
17987 else
17988   pkg_failed=yes
17989 fi
17990  else
17991     pkg_failed=untried
17992 fi
17993
17994
17995
17996 if test $pkg_failed = yes; then
17997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17998 $as_echo "no" >&6; }
17999
18000 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18001         _pkg_short_errors_supported=yes
18002 else
18003         _pkg_short_errors_supported=no
18004 fi
18005         if test $_pkg_short_errors_supported = yes; then
18006                 QtNetwork_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtNetwork >= 4.4" 2>&1`
18007         else
18008                 QtNetwork_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtNetwork >= 4.4" 2>&1`
18009         fi
18010         # Put the nasty error message in config.log where it belongs
18011         echo "$QtNetwork_PKG_ERRORS" >&5
18012
18013         ac_qt="no"
18014 elif test $pkg_failed = untried; then
18015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18016 $as_echo "no" >&6; }
18017         ac_qt="no"
18018 else
18019         QtNetwork_CFLAGS=$pkg_cv_QtNetwork_CFLAGS
18020         QtNetwork_LIBS=$pkg_cv_QtNetwork_LIBS
18021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18022 $as_echo "yes" >&6; }
18023         ac_qt="yes"
18024 fi
18025   if test x"$ac_qt" != "xyes"; then
18026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QtNetwork library not found. Not including QT support" >&5
18027 $as_echo "$as_me: WARNING: QtNetwork library not found. Not including QT support" >&2;}
18028     ac_libQgpsmm="no"
18029      if false; then
18030   LIB_Q_GPSMM_ENABLE_TRUE=
18031   LIB_Q_GPSMM_ENABLE_FALSE='#'
18032 else
18033   LIB_Q_GPSMM_ENABLE_TRUE='#'
18034   LIB_Q_GPSMM_ENABLE_FALSE=
18035 fi
18036
18037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18038 $as_echo "no" >&6; }
18039   else
18040     for ac_prog in qmake-qt4 qmake
18041 do
18042   # Extract the first word of "$ac_prog", so it can be a program name with args.
18043 set dummy $ac_prog; ac_word=$2
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18045 $as_echo_n "checking for $ac_word... " >&6; }
18046 if test "${ac_cv_prog_QMAKE+set}" = set; then :
18047   $as_echo_n "(cached) " >&6
18048 else
18049   if test -n "$QMAKE"; then
18050   ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
18051 else
18052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18053 for as_dir in $PATH
18054 do
18055   IFS=$as_save_IFS
18056   test -z "$as_dir" && as_dir=.
18057     for ac_exec_ext in '' $ac_executable_extensions; do
18058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18059     ac_cv_prog_QMAKE="$ac_prog"
18060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18061     break 2
18062   fi
18063 done
18064   done
18065 IFS=$as_save_IFS
18066
18067 fi
18068 fi
18069 QMAKE=$ac_cv_prog_QMAKE
18070 if test -n "$QMAKE"; then
18071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
18072 $as_echo "$QMAKE" >&6; }
18073 else
18074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18075 $as_echo "no" >&6; }
18076 fi
18077
18078
18079   test -n "$QMAKE" && break
18080 done
18081 test -n "$QMAKE" || QMAKE="no"
18082
18083     if test x"$QMAKE" != "xno"; then
18084        if true; then
18085   LIB_Q_GPSMM_ENABLE_TRUE=
18086   LIB_Q_GPSMM_ENABLE_FALSE='#'
18087 else
18088   LIB_Q_GPSMM_ENABLE_TRUE='#'
18089   LIB_Q_GPSMM_ENABLE_FALSE=
18090 fi
18091
18092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18093 $as_echo "yes" >&6; }
18094     else
18095       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: qmake not found. Not including QT support" >&5
18096 $as_echo "$as_me: WARNING: qmake not found. Not including QT support" >&2;}
18097       ac_libQgpsmm="no"
18098        if false; then
18099   LIB_Q_GPSMM_ENABLE_TRUE=
18100   LIB_Q_GPSMM_ENABLE_FALSE='#'
18101 else
18102   LIB_Q_GPSMM_ENABLE_TRUE='#'
18103   LIB_Q_GPSMM_ENABLE_FALSE=
18104 fi
18105
18106       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18108     fi
18109   fi
18110 else
18111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18112 $as_echo "no" >&6; }
18113    if false; then
18114   LIB_Q_GPSMM_ENABLE_TRUE=
18115   LIB_Q_GPSMM_ENABLE_FALSE='#'
18116 else
18117   LIB_Q_GPSMM_ENABLE_TRUE='#'
18118   LIB_Q_GPSMM_ENABLE_FALSE=
18119 fi
18120
18121 fi
18122
18123
18124
18125 # Check whether --enable-ipv6 was given.
18126 if test "${enable_ipv6+set}" = set; then :
18127   enableval=$enable_ipv6; ac_ipv6=$enableval
18128 else
18129   ac_ipv6=$ISCXX
18130 fi
18131
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
18133 $as_echo_n "checking for IPv6 support... " >&6; }
18134 if test x"$ac_ipv6" = "xyes"; then
18135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18136 $as_echo "yes" >&6; }
18137
18138 $as_echo "#define IPV6_ENABLE 1" >>confdefs.h
18139
18140 else
18141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18142 $as_echo "no" >&6; }
18143 fi
18144
18145  if test x"$ac_ipv6" = x"yes"; then
18146   IPV6_ENABLE_TRUE=
18147   IPV6_ENABLE_FALSE='#'
18148 else
18149   IPV6_ENABLE_TRUE='#'
18150   IPV6_ENABLE_FALSE=
18151 fi
18152
18153
18154 # Extract the first word of "xsltproc", so it can be a program name with args.
18155 set dummy xsltproc; ac_word=$2
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18157 $as_echo_n "checking for $ac_word... " >&6; }
18158 if test "${ac_cv_prog_WITH_XSLTPROC+set}" = set; then :
18159   $as_echo_n "(cached) " >&6
18160 else
18161   if test -n "$WITH_XSLTPROC"; then
18162   ac_cv_prog_WITH_XSLTPROC="$WITH_XSLTPROC" # Let the user override the test.
18163 else
18164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18165 for as_dir in $PATH
18166 do
18167   IFS=$as_save_IFS
18168   test -z "$as_dir" && as_dir=.
18169     for ac_exec_ext in '' $ac_executable_extensions; do
18170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18171     ac_cv_prog_WITH_XSLTPROC="yes"
18172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18173     break 2
18174   fi
18175 done
18176   done
18177 IFS=$as_save_IFS
18178
18179   test -z "$ac_cv_prog_WITH_XSLTPROC" && ac_cv_prog_WITH_XSLTPROC="no"
18180 fi
18181 fi
18182 WITH_XSLTPROC=$ac_cv_prog_WITH_XSLTPROC
18183 if test -n "$WITH_XSLTPROC"; then
18184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_XSLTPROC" >&5
18185 $as_echo "$WITH_XSLTPROC" >&6; }
18186 else
18187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18189 fi
18190
18191
18192 XMLPROC=
18193 MANTARGET=
18194 XMLPROCFLAGS=
18195 if test "x$WITH_XSLTPROC" = "xyes"; then
18196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xsltproc knows about docbook xsl" >&5
18197 $as_echo_n "checking whether xsltproc knows about docbook xsl... " >&6; }
18198     DOCBOOK_MAN_URI='http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
18199     DOCBOOK_HTML_URI='http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl'
18200     cat >conftest.xml <<_EOF
18201        <refentry id="foo.1">
18202           <refmeta>
18203             <refentrytitle>foo</refentrytitle>
18204             <manvolnum>1</manvolnum>
18205             <refmiscinfo class='date'>9 Aug 2004</refmiscinfo>
18206           </refmeta>
18207           <refnamediv id='name'>
18208             <refname>foo</refname>
18209             <refpurpose>check man page generation from docbook source</refpurpose>
18210           </refnamediv>
18211         </refentry>
18212 _EOF
18213     if xsltproc --nonet --noout "$DOCBOOK_MAN_URI" conftest.xml >/dev/null 2>&1; then
18214         XMLPROC=xsltproc
18215         MANTARGET="$DOCBOOK_MAN_URI"
18216         HTMLTARGET="$DOCBOOK_HTML_URI"
18217         XMLPROCFLAGS="--nonet"
18218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18219 $as_echo "yes" >&6; }
18220     else
18221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18222 $as_echo "no" >&6; }
18223     fi
18224     rm -f conftest.xml foo.1
18225 fi
18226 if test x"$XMLPROC" = x; then
18227     # Extract the first word of "xmlto", so it can be a program name with args.
18228 set dummy xmlto; ac_word=$2
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18230 $as_echo_n "checking for $ac_word... " >&6; }
18231 if test "${ac_cv_prog_WITH_XMLTO+set}" = set; then :
18232   $as_echo_n "(cached) " >&6
18233 else
18234   if test -n "$WITH_XMLTO"; then
18235   ac_cv_prog_WITH_XMLTO="$WITH_XMLTO" # Let the user override the test.
18236 else
18237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18238 for as_dir in $PATH
18239 do
18240   IFS=$as_save_IFS
18241   test -z "$as_dir" && as_dir=.
18242     for ac_exec_ext in '' $ac_executable_extensions; do
18243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18244     ac_cv_prog_WITH_XMLTO="yes"
18245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18246     break 2
18247   fi
18248 done
18249   done
18250 IFS=$as_save_IFS
18251
18252   test -z "$ac_cv_prog_WITH_XMLTO" && ac_cv_prog_WITH_XMLTO="no"
18253 fi
18254 fi
18255 WITH_XMLTO=$ac_cv_prog_WITH_XMLTO
18256 if test -n "$WITH_XMLTO"; then
18257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_XMLTO" >&5
18258 $as_echo "$WITH_XMLTO" >&6; }
18259 else
18260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261 $as_echo "no" >&6; }
18262 fi
18263
18264
18265     if test "x$WITH_XMLTO" = "xyes"; then
18266         XMLPROC=xmlto
18267         MANTARGET=man
18268         HTMLTARGET=xhtml-nochunks
18269         XMLPROCFLAGS=
18270     else
18271         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Neither xsltproc nor xmlto works: I will not build man pages." >&5
18272 $as_echo "$as_me: WARNING: Neither xsltproc nor xmlto works: I will not build man pages." >&2;}
18273         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: To build man pages, install xsltproc/xsltlib or xmlto and run autogen.sh again." >&5
18274 $as_echo "$as_me: WARNING: To build man pages, install xsltproc/xsltlib or xmlto and run autogen.sh again." >&2;}
18275     fi
18276 fi
18277  if test x"$XMLPROC" != x; then
18278   HAVE_XSLT_PROCESSOR_TRUE=
18279   HAVE_XSLT_PROCESSOR_FALSE='#'
18280 else
18281   HAVE_XSLT_PROCESSOR_TRUE='#'
18282   HAVE_XSLT_PROCESSOR_FALSE=
18283 fi
18284
18285  if test x"$XMLPROC" = x"xsltproc"; then
18286   XMLTOSTDOUT_TRUE=
18287   XMLTOSTDOUT_FALSE='#'
18288 else
18289   XMLTOSTDOUT_TRUE='#'
18290   XMLTOSTDOUT_FALSE=
18291 fi
18292
18293
18294
18295
18296
18297
18298 if test -e /etc/gentoo-release; then
18299     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a Gentoo system." >&5
18300 $as_echo "$as_me: WARNING: This is a Gentoo system." >&2;}
18301     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Adjust your PYTHONPATH to see library directories under /usr/local/lib" >&5
18302 $as_echo "$as_me: WARNING: Adjust your PYTHONPATH to see library directories under /usr/local/lib" >&2;}
18303 fi
18304
18305 echo ""
18306 echo "=========================================="
18307 echo "$PACKAGE $VERSION"
18308 echo "------------------------------------------"
18309 echo "  Protocols"
18310 echo "  ---------"
18311 echo "Ashtech                 : $ac_ashtech"
18312 echo "Earthmate               : $ac_earthmate"
18313 echo "EverMore                : $ac_evermore"
18314 echo "FV-18                   : $ac_fv18"
18315 echo "Garmin                  : $ac_garmin"
18316 echo "Garmin Simple Text      : $ac_garmintxt"
18317 echo "iTrax                   : $ac_itrax"
18318 echo "NMEA                    : $ac_nmea"
18319 echo "NTRIP                   : $ac_ntrip"
18320 echo "Navcom                  : $ac_navcom"
18321 echo "OnCore                  : $ac_oncore"
18322 echo "RTCM104V2               : $ac_rtcm104v2"
18323 echo "RTCM104V3               : $ac_rtcm104v3"
18324 echo "SiRF                    : $ac_sirf"
18325 echo "SuperStarII             : $ac_superstar2"
18326 echo "Trimble TSIP            : $ac_tsip"
18327 echo "Tripmate                : $ac_tripmate"
18328 echo "True North              : $ac_tnt"
18329 echo "OceanServer             : $ac_oceanserver"
18330 echo "UBX                     : $ac_ubx"
18331 echo "GPSclock                : $ac_gpsclock"
18332 echo "AIVDM support           : $ac_aivdm"
18333 echo "Timing support          : $ac_timing"
18334 echo "Client debugging support: $ac_clientdebug"
18335 echo "MTK-3301                : $ac_mtk3301"
18336 echo "  Daemon Features"
18337 echo "  ---------------"
18338 echo "NTP SHM                 : $ac_ntpshm"
18339 echo "NTP PPS                 : $ac_pps"
18340 echo -n "PPS input on            : " ; case $ac_ppsoncts in yes) echo "CTS" ;; no) echo "DCD" ;; *) echo "Not defined" ;; esac
18341 echo "Fixed port speed        : $ac_baud"
18342 echo "Priv-drop user          : $ac_user"
18343 echo "Enable shared libraries : $enable_shared"
18344 echo "Enable DBUS support     : $ac_dbus"
18345 echo "Enable BlueZ support    : $ac_bluetooth"
18346 echo "Enable IPv6 support     : $ac_ipv6"
18347 echo "Limited max clients     : $ac_maxclients"
18348 echo "Limited max devices     : $ac_maxdevices"
18349 echo "Allow device reconfig   : $ac_reconfigure"
18350 echo "Allow control send      : $ac_controlsend"
18351 echo "Squelch logging/hexdump : $ac_squelch"
18352 echo "Raw Measurements        : $ac_raw"
18353 echo "libusb device discovery : $ac_libusb"
18354 echo "  Client Features"
18355 echo "  ---------------"
18356 echo "Old protocol in libgps  : $ac_oldstyle"
18357 echo "Build ncurses programs  : $ac_ncurses"
18358 echo "Enable Python support   : $ac_python"
18359 echo "Enable C++ support      : $ac_libgpsmm"
18360 echo "Enable Qt support       : $ac_libQgpsmm"
18361 echo "------------------------------------------"
18362 echo ""
18363
18364 if test "xdummy" = "xdummy" -a \
18365     x"$ac_earthmate" = "xno" -a \
18366     x"$ac_evermore" = "xno" -a \
18367     x"$ac_fv18" = "xno" -a \
18368     x"$ac_garmin" = "xno" -a \
18369     x"$ac_garmintxt" = "xno" -a \
18370     x"$ac_itrax" = "xno" -a \
18371     x"$ac_navcom" = "xno" -a \
18372     x"$ac_nmea" = "xno" -a \
18373     x"$ac_ntrip" = "xno" -a \
18374     x"$ac_oncore" = "xno" -a \
18375     x"$ac_rtcm104v2" = "xno" -a \
18376     x"$ac_sirf" = "xno" -a \
18377     x"$ac_superstar2" = "xno" -a \
18378     x"$ac_tnt" = "xno" -a \
18379     x"$ac_oceanserver" = "xno" -a \
18380     x"$ac_tripmate" = "xno" -a \
18381     x"$ac_tsip" = "xno" -a \
18382     x"$ac_ubx" = "xno"; then
18383     as_fn_error $? "Can't build gpsd with no protocols enabled" "$LINENO" 5
18384 fi
18385 ac_config_files="$ac_config_files Makefile packaging/rpm/gpsd.spec libgps.pc libgpsd.pc jsongen.py maskaudit.py valgrind-audit"
18386
18387 ac_config_commands="$ac_config_commands default"
18388
18389 cat >confcache <<\_ACEOF
18390 # This file is a shell script that caches the results of configure
18391 # tests run on this system so they can be shared between configure
18392 # scripts and configure runs, see configure's option --config-cache.
18393 # It is not useful on other systems.  If it contains results you don't
18394 # want to keep, you may remove or edit it.
18395 #
18396 # config.status only pays attention to the cache file if you give it
18397 # the --recheck option to rerun configure.
18398 #
18399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18401 # following values.
18402
18403 _ACEOF
18404
18405 # The following way of writing the cache mishandles newlines in values,
18406 # but we know of no workaround that is simple, portable, and efficient.
18407 # So, we kill variables containing newlines.
18408 # Ultrix sh set writes to stderr and can't be redirected directly,
18409 # and sets the high bit in the cache file unless we assign to the vars.
18410 (
18411   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18412     eval ac_val=\$$ac_var
18413     case $ac_val in #(
18414     *${as_nl}*)
18415       case $ac_var in #(
18416       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18418       esac
18419       case $ac_var in #(
18420       _ | IFS | as_nl) ;; #(
18421       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18422       *) { eval $ac_var=; unset $ac_var;} ;;
18423       esac ;;
18424     esac
18425   done
18426
18427   (set) 2>&1 |
18428     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18429     *${as_nl}ac_space=\ *)
18430       # `set' does not quote correctly, so add quotes: double-quote
18431       # substitution turns \\\\ into \\, and sed turns \\ into \.
18432       sed -n \
18433         "s/'/'\\\\''/g;
18434           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18435       ;; #(
18436     *)
18437       # `set' quotes correctly as required by POSIX, so do not add quotes.
18438       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18439       ;;
18440     esac |
18441     sort
18442 ) |
18443   sed '
18444      /^ac_cv_env_/b end
18445      t clear
18446      :clear
18447      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18448      t end
18449      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18450      :end' >>confcache
18451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18452   if test -w "$cache_file"; then
18453     test "x$cache_file" != "x/dev/null" &&
18454       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18455 $as_echo "$as_me: updating cache $cache_file" >&6;}
18456     cat confcache >$cache_file
18457   else
18458     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18459 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18460   fi
18461 fi
18462 rm -f confcache
18463
18464 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18465 # Let make expand exec_prefix.
18466 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18467
18468 DEFS=-DHAVE_CONFIG_H
18469
18470 ac_libobjs=
18471 ac_ltlibobjs=
18472 U=
18473 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18474   # 1. Remove the extension, and $U if already installed.
18475   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18476   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18477   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18478   #    will be set to the directory where LIBOBJS objects are built.
18479   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18480   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18481 done
18482 LIBOBJS=$ac_libobjs
18483
18484 LTLIBOBJS=$ac_ltlibobjs
18485
18486
18487  if test -n "$EXEEXT"; then
18488   am__EXEEXT_TRUE=
18489   am__EXEEXT_FALSE='#'
18490 else
18491   am__EXEEXT_TRUE='#'
18492   am__EXEEXT_FALSE=
18493 fi
18494
18495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18496   as_fn_error $? "conditional \"AMDEP\" was never defined.
18497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18498 fi
18499 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18500   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18502 fi
18503 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
18504   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
18505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18506 fi
18507 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18508   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18510 fi
18511 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18512   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18514 fi
18515
18516 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18517   as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18519 fi
18520 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18521   as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18523 fi
18524 if test -z "${HAVE_RTCM104V2_TRUE}" && test -z "${HAVE_RTCM104V2_FALSE}"; then
18525   as_fn_error $? "conditional \"HAVE_RTCM104V2\" was never defined.
18526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18527 fi
18528 if test -z "${HAVE_RTCM104V3_TRUE}" && test -z "${HAVE_RTCM104V3_FALSE}"; then
18529   as_fn_error $? "conditional \"HAVE_RTCM104V3\" was never defined.
18530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18531 fi
18532 if test -z "${HAVE_NTRIP_TRUE}" && test -z "${HAVE_NTRIP_FALSE}"; then
18533   as_fn_error $? "conditional \"HAVE_NTRIP\" was never defined.
18534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18535 fi
18536 if test -z "${HAVE_AIVDM_TRUE}" && test -z "${HAVE_AIVDM_FALSE}"; then
18537   as_fn_error $? "conditional \"HAVE_AIVDM\" was never defined.
18538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18539 fi
18540 if test -z "${CLIENTDEBUG_ENABLE_TRUE}" && test -z "${CLIENTDEBUG_ENABLE_FALSE}"; then
18541   as_fn_error $? "conditional \"CLIENTDEBUG_ENABLE\" was never defined.
18542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18543 fi
18544 if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
18545   as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
18546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18547 fi
18548 if test -z "${HAVE_BLUEZ_TRUE}" && test -z "${HAVE_BLUEZ_FALSE}"; then
18549   as_fn_error $? "conditional \"HAVE_BLUEZ\" was never defined.
18550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18551 fi
18552 if test -z "${LIBGPSMM_ENABLE_TRUE}" && test -z "${LIBGPSMM_ENABLE_FALSE}"; then
18553   as_fn_error $? "conditional \"LIBGPSMM_ENABLE\" was never defined.
18554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18555 fi
18556 if test -z "${LIB_Q_GPSMM_ENABLE_TRUE}" && test -z "${LIB_Q_GPSMM_ENABLE_FALSE}"; then
18557   as_fn_error $? "conditional \"LIB_Q_GPSMM_ENABLE\" was never defined.
18558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18559 fi
18560 if test -z "${LIB_Q_GPSMM_ENABLE_TRUE}" && test -z "${LIB_Q_GPSMM_ENABLE_FALSE}"; then
18561   as_fn_error $? "conditional \"LIB_Q_GPSMM_ENABLE\" was never defined.
18562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18563 fi
18564 if test -z "${LIB_Q_GPSMM_ENABLE_TRUE}" && test -z "${LIB_Q_GPSMM_ENABLE_FALSE}"; then
18565   as_fn_error $? "conditional \"LIB_Q_GPSMM_ENABLE\" was never defined.
18566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18567 fi
18568 if test -z "${LIB_Q_GPSMM_ENABLE_TRUE}" && test -z "${LIB_Q_GPSMM_ENABLE_FALSE}"; then
18569   as_fn_error $? "conditional \"LIB_Q_GPSMM_ENABLE\" was never defined.
18570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18571 fi
18572 if test -z "${IPV6_ENABLE_TRUE}" && test -z "${IPV6_ENABLE_FALSE}"; then
18573   as_fn_error $? "conditional \"IPV6_ENABLE\" was never defined.
18574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18575 fi
18576 if test -z "${HAVE_XSLT_PROCESSOR_TRUE}" && test -z "${HAVE_XSLT_PROCESSOR_FALSE}"; then
18577   as_fn_error $? "conditional \"HAVE_XSLT_PROCESSOR\" was never defined.
18578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18579 fi
18580 if test -z "${XMLTOSTDOUT_TRUE}" && test -z "${XMLTOSTDOUT_FALSE}"; then
18581   as_fn_error $? "conditional \"XMLTOSTDOUT\" was never defined.
18582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18583 fi
18584
18585 : ${CONFIG_STATUS=./config.status}
18586 ac_write_fail=0
18587 ac_clean_files_save=$ac_clean_files
18588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18591 as_write_fail=0
18592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18593 #! $SHELL
18594 # Generated by $as_me.
18595 # Run this file to recreate the current configuration.
18596 # Compiler output produced by configure, useful for debugging
18597 # configure, is in config.log if it exists.
18598
18599 debug=false
18600 ac_cs_recheck=false
18601 ac_cs_silent=false
18602
18603 SHELL=\${CONFIG_SHELL-$SHELL}
18604 export SHELL
18605 _ASEOF
18606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18607 ## -------------------- ##
18608 ## M4sh Initialization. ##
18609 ## -------------------- ##
18610
18611 # Be more Bourne compatible
18612 DUALCASE=1; export DUALCASE # for MKS sh
18613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18614   emulate sh
18615   NULLCMD=:
18616   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18617   # is contrary to our usage.  Disable this feature.
18618   alias -g '${1+"$@"}'='"$@"'
18619   setopt NO_GLOB_SUBST
18620 else
18621   case `(set -o) 2>/dev/null` in #(
18622   *posix*) :
18623     set -o posix ;; #(
18624   *) :
18625      ;;
18626 esac
18627 fi
18628
18629
18630 as_nl='
18631 '
18632 export as_nl
18633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18637 # Prefer a ksh shell builtin over an external printf program on Solaris,
18638 # but without wasting forks for bash or zsh.
18639 if test -z "$BASH_VERSION$ZSH_VERSION" \
18640     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18641   as_echo='print -r --'
18642   as_echo_n='print -rn --'
18643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18644   as_echo='printf %s\n'
18645   as_echo_n='printf %s'
18646 else
18647   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18648     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18649     as_echo_n='/usr/ucb/echo -n'
18650   else
18651     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18652     as_echo_n_body='eval
18653       arg=$1;
18654       case $arg in #(
18655       *"$as_nl"*)
18656         expr "X$arg" : "X\\(.*\\)$as_nl";
18657         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18658       esac;
18659       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18660     '
18661     export as_echo_n_body
18662     as_echo_n='sh -c $as_echo_n_body as_echo'
18663   fi
18664   export as_echo_body
18665   as_echo='sh -c $as_echo_body as_echo'
18666 fi
18667
18668 # The user is always right.
18669 if test "${PATH_SEPARATOR+set}" != set; then
18670   PATH_SEPARATOR=:
18671   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18672     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18673       PATH_SEPARATOR=';'
18674   }
18675 fi
18676
18677
18678 # IFS
18679 # We need space, tab and new line, in precisely that order.  Quoting is
18680 # there to prevent editors from complaining about space-tab.
18681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18682 # splitting by setting IFS to empty value.)
18683 IFS=" ""        $as_nl"
18684
18685 # Find who we are.  Look in the path if we contain no directory separator.
18686 case $0 in #((
18687   *[\\/]* ) as_myself=$0 ;;
18688   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18689 for as_dir in $PATH
18690 do
18691   IFS=$as_save_IFS
18692   test -z "$as_dir" && as_dir=.
18693     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18694   done
18695 IFS=$as_save_IFS
18696
18697      ;;
18698 esac
18699 # We did not find ourselves, most probably we were run as `sh COMMAND'
18700 # in which case we are not to be found in the path.
18701 if test "x$as_myself" = x; then
18702   as_myself=$0
18703 fi
18704 if test ! -f "$as_myself"; then
18705   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18706   exit 1
18707 fi
18708
18709 # Unset variables that we do not need and which cause bugs (e.g. in
18710 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18711 # suppresses any "Segmentation fault" message there.  '((' could
18712 # trigger a bug in pdksh 5.2.14.
18713 for as_var in BASH_ENV ENV MAIL MAILPATH
18714 do eval test x\${$as_var+set} = xset \
18715   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18716 done
18717 PS1='$ '
18718 PS2='> '
18719 PS4='+ '
18720
18721 # NLS nuisances.
18722 LC_ALL=C
18723 export LC_ALL
18724 LANGUAGE=C
18725 export LANGUAGE
18726
18727 # CDPATH.
18728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18729
18730
18731 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18732 # ----------------------------------------
18733 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18734 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18735 # script with STATUS, using 1 if that was 0.
18736 as_fn_error ()
18737 {
18738   as_status=$1; test $as_status -eq 0 && as_status=1
18739   if test "$4"; then
18740     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18741     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18742   fi
18743   $as_echo "$as_me: error: $2" >&2
18744   as_fn_exit $as_status
18745 } # as_fn_error
18746
18747
18748 # as_fn_set_status STATUS
18749 # -----------------------
18750 # Set $? to STATUS, without forking.
18751 as_fn_set_status ()
18752 {
18753   return $1
18754 } # as_fn_set_status
18755
18756 # as_fn_exit STATUS
18757 # -----------------
18758 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18759 as_fn_exit ()
18760 {
18761   set +e
18762   as_fn_set_status $1
18763   exit $1
18764 } # as_fn_exit
18765
18766 # as_fn_unset VAR
18767 # ---------------
18768 # Portably unset VAR.
18769 as_fn_unset ()
18770 {
18771   { eval $1=; unset $1;}
18772 }
18773 as_unset=as_fn_unset
18774 # as_fn_append VAR VALUE
18775 # ----------------------
18776 # Append the text in VALUE to the end of the definition contained in VAR. Take
18777 # advantage of any shell optimizations that allow amortized linear growth over
18778 # repeated appends, instead of the typical quadratic growth present in naive
18779 # implementations.
18780 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18781   eval 'as_fn_append ()
18782   {
18783     eval $1+=\$2
18784   }'
18785 else
18786   as_fn_append ()
18787   {
18788     eval $1=\$$1\$2
18789   }
18790 fi # as_fn_append
18791
18792 # as_fn_arith ARG...
18793 # ------------------
18794 # Perform arithmetic evaluation on the ARGs, and store the result in the
18795 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18796 # must be portable across $(()) and expr.
18797 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18798   eval 'as_fn_arith ()
18799   {
18800     as_val=$(( $* ))
18801   }'
18802 else
18803   as_fn_arith ()
18804   {
18805     as_val=`expr "$@" || test $? -eq 1`
18806   }
18807 fi # as_fn_arith
18808
18809
18810 if expr a : '\(a\)' >/dev/null 2>&1 &&
18811    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18812   as_expr=expr
18813 else
18814   as_expr=false
18815 fi
18816
18817 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18818   as_basename=basename
18819 else
18820   as_basename=false
18821 fi
18822
18823 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18824   as_dirname=dirname
18825 else
18826   as_dirname=false
18827 fi
18828
18829 as_me=`$as_basename -- "$0" ||
18830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18831          X"$0" : 'X\(//\)$' \| \
18832          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18833 $as_echo X/"$0" |
18834     sed '/^.*\/\([^/][^/]*\)\/*$/{
18835             s//\1/
18836             q
18837           }
18838           /^X\/\(\/\/\)$/{
18839             s//\1/
18840             q
18841           }
18842           /^X\/\(\/\).*/{
18843             s//\1/
18844             q
18845           }
18846           s/.*/./; q'`
18847
18848 # Avoid depending upon Character Ranges.
18849 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18850 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18851 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18852 as_cr_digits='0123456789'
18853 as_cr_alnum=$as_cr_Letters$as_cr_digits
18854
18855 ECHO_C= ECHO_N= ECHO_T=
18856 case `echo -n x` in #(((((
18857 -n*)
18858   case `echo 'xy\c'` in
18859   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18860   xy)  ECHO_C='\c';;
18861   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18862        ECHO_T=' ';;
18863   esac;;
18864 *)
18865   ECHO_N='-n';;
18866 esac
18867
18868 rm -f conf$$ conf$$.exe conf$$.file
18869 if test -d conf$$.dir; then
18870   rm -f conf$$.dir/conf$$.file
18871 else
18872   rm -f conf$$.dir
18873   mkdir conf$$.dir 2>/dev/null
18874 fi
18875 if (echo >conf$$.file) 2>/dev/null; then
18876   if ln -s conf$$.file conf$$ 2>/dev/null; then
18877     as_ln_s='ln -s'
18878     # ... but there are two gotchas:
18879     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18880     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18881     # In both cases, we have to default to `cp -p'.
18882     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18883       as_ln_s='cp -p'
18884   elif ln conf$$.file conf$$ 2>/dev/null; then
18885     as_ln_s=ln
18886   else
18887     as_ln_s='cp -p'
18888   fi
18889 else
18890   as_ln_s='cp -p'
18891 fi
18892 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18893 rmdir conf$$.dir 2>/dev/null
18894
18895
18896 # as_fn_mkdir_p
18897 # -------------
18898 # Create "$as_dir" as a directory, including parents if necessary.
18899 as_fn_mkdir_p ()
18900 {
18901
18902   case $as_dir in #(
18903   -*) as_dir=./$as_dir;;
18904   esac
18905   test -d "$as_dir" || eval $as_mkdir_p || {
18906     as_dirs=
18907     while :; do
18908       case $as_dir in #(
18909       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18910       *) as_qdir=$as_dir;;
18911       esac
18912       as_dirs="'$as_qdir' $as_dirs"
18913       as_dir=`$as_dirname -- "$as_dir" ||
18914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18915          X"$as_dir" : 'X\(//\)[^/]' \| \
18916          X"$as_dir" : 'X\(//\)$' \| \
18917          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18918 $as_echo X"$as_dir" |
18919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18920             s//\1/
18921             q
18922           }
18923           /^X\(\/\/\)[^/].*/{
18924             s//\1/
18925             q
18926           }
18927           /^X\(\/\/\)$/{
18928             s//\1/
18929             q
18930           }
18931           /^X\(\/\).*/{
18932             s//\1/
18933             q
18934           }
18935           s/.*/./; q'`
18936       test -d "$as_dir" && break
18937     done
18938     test -z "$as_dirs" || eval "mkdir $as_dirs"
18939   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18940
18941
18942 } # as_fn_mkdir_p
18943 if mkdir -p . 2>/dev/null; then
18944   as_mkdir_p='mkdir -p "$as_dir"'
18945 else
18946   test -d ./-p && rmdir ./-p
18947   as_mkdir_p=false
18948 fi
18949
18950 if test -x / >/dev/null 2>&1; then
18951   as_test_x='test -x'
18952 else
18953   if ls -dL / >/dev/null 2>&1; then
18954     as_ls_L_option=L
18955   else
18956     as_ls_L_option=
18957   fi
18958   as_test_x='
18959     eval sh -c '\''
18960       if test -d "$1"; then
18961         test -d "$1/.";
18962       else
18963         case $1 in #(
18964         -*)set "./$1";;
18965         esac;
18966         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18967         ???[sx]*):;;*)false;;esac;fi
18968     '\'' sh
18969   '
18970 fi
18971 as_executable_p=$as_test_x
18972
18973 # Sed expression to map a string onto a valid CPP name.
18974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18975
18976 # Sed expression to map a string onto a valid variable name.
18977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18978
18979
18980 exec 6>&1
18981 ## ----------------------------------- ##
18982 ## Main body of $CONFIG_STATUS script. ##
18983 ## ----------------------------------- ##
18984 _ASEOF
18985 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18986
18987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18988 # Save the log message, to keep $0 and so on meaningful, and to
18989 # report actual input values of CONFIG_FILES etc. instead of their
18990 # values after options handling.
18991 ac_log="
18992 This file was extended by $as_me, which was
18993 generated by GNU Autoconf 2.67.  Invocation command line was
18994
18995   CONFIG_FILES    = $CONFIG_FILES
18996   CONFIG_HEADERS  = $CONFIG_HEADERS
18997   CONFIG_LINKS    = $CONFIG_LINKS
18998   CONFIG_COMMANDS = $CONFIG_COMMANDS
18999   $ $0 $@
19000
19001 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19002 "
19003
19004 _ACEOF
19005
19006 case $ac_config_files in *"
19007 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19008 esac
19009
19010 case $ac_config_headers in *"
19011 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19012 esac
19013
19014
19015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19016 # Files that config.status was made for.
19017 config_files="$ac_config_files"
19018 config_headers="$ac_config_headers"
19019 config_commands="$ac_config_commands"
19020
19021 _ACEOF
19022
19023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19024 ac_cs_usage="\
19025 \`$as_me' instantiates files and other configuration actions
19026 from templates according to the current configuration.  Unless the files
19027 and actions are specified as TAGs, all are instantiated by default.
19028
19029 Usage: $0 [OPTION]... [TAG]...
19030
19031   -h, --help       print this help, then exit
19032   -V, --version    print version number and configuration settings, then exit
19033       --config     print configuration, then exit
19034   -q, --quiet, --silent
19035                    do not print progress messages
19036   -d, --debug      don't remove temporary files
19037       --recheck    update $as_me by reconfiguring in the same conditions
19038       --file=FILE[:TEMPLATE]
19039                    instantiate the configuration file FILE
19040       --header=FILE[:TEMPLATE]
19041                    instantiate the configuration header FILE
19042
19043 Configuration files:
19044 $config_files
19045
19046 Configuration headers:
19047 $config_headers
19048
19049 Configuration commands:
19050 $config_commands
19051
19052 Report bugs to the package provider."
19053
19054 _ACEOF
19055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19056 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19057 ac_cs_version="\\
19058 config.status
19059 configured by $0, generated by GNU Autoconf 2.67,
19060   with options \\"\$ac_cs_config\\"
19061
19062 Copyright (C) 2010 Free Software Foundation, Inc.
19063 This config.status script is free software; the Free Software Foundation
19064 gives unlimited permission to copy, distribute and modify it."
19065
19066 ac_pwd='$ac_pwd'
19067 srcdir='$srcdir'
19068 INSTALL='$INSTALL'
19069 MKDIR_P='$MKDIR_P'
19070 AWK='$AWK'
19071 test -n "\$AWK" || AWK=awk
19072 _ACEOF
19073
19074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19075 # The default lists apply if the user does not specify any file.
19076 ac_need_defaults=:
19077 while test $# != 0
19078 do
19079   case $1 in
19080   --*=?*)
19081     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19082     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19083     ac_shift=:
19084     ;;
19085   --*=)
19086     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19087     ac_optarg=
19088     ac_shift=:
19089     ;;
19090   *)
19091     ac_option=$1
19092     ac_optarg=$2
19093     ac_shift=shift
19094     ;;
19095   esac
19096
19097   case $ac_option in
19098   # Handling of the options.
19099   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19100     ac_cs_recheck=: ;;
19101   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19102     $as_echo "$ac_cs_version"; exit ;;
19103   --config | --confi | --conf | --con | --co | --c )
19104     $as_echo "$ac_cs_config"; exit ;;
19105   --debug | --debu | --deb | --de | --d | -d )
19106     debug=: ;;
19107   --file | --fil | --fi | --f )
19108     $ac_shift
19109     case $ac_optarg in
19110     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19111     '') as_fn_error $? "missing file argument" ;;
19112     esac
19113     as_fn_append CONFIG_FILES " '$ac_optarg'"
19114     ac_need_defaults=false;;
19115   --header | --heade | --head | --hea )
19116     $ac_shift
19117     case $ac_optarg in
19118     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19119     esac
19120     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19121     ac_need_defaults=false;;
19122   --he | --h)
19123     # Conflict between --help and --header
19124     as_fn_error $? "ambiguous option: \`$1'
19125 Try \`$0 --help' for more information.";;
19126   --help | --hel | -h )
19127     $as_echo "$ac_cs_usage"; exit ;;
19128   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19129   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19130     ac_cs_silent=: ;;
19131
19132   # This is an error.
19133   -*) as_fn_error $? "unrecognized option: \`$1'
19134 Try \`$0 --help' for more information." ;;
19135
19136   *) as_fn_append ac_config_targets " $1"
19137      ac_need_defaults=false ;;
19138
19139   esac
19140   shift
19141 done
19142
19143 ac_configure_extra_args=
19144
19145 if $ac_cs_silent; then
19146   exec 6>/dev/null
19147   ac_configure_extra_args="$ac_configure_extra_args --silent"
19148 fi
19149
19150 _ACEOF
19151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19152 if \$ac_cs_recheck; then
19153   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19154   shift
19155   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19156   CONFIG_SHELL='$SHELL'
19157   export CONFIG_SHELL
19158   exec "\$@"
19159 fi
19160
19161 _ACEOF
19162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19163 exec 5>>config.log
19164 {
19165   echo
19166   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19167 ## Running $as_me. ##
19168 _ASBOX
19169   $as_echo "$ac_log"
19170 } >&5
19171
19172 _ACEOF
19173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19174 #
19175 # INIT-COMMANDS
19176 #
19177 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19178
19179
19180 # The HP-UX ksh and POSIX shell print the target directory to stdout
19181 # if CDPATH is set.
19182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19183
19184 sed_quote_subst='$sed_quote_subst'
19185 double_quote_subst='$double_quote_subst'
19186 delay_variable_subst='$delay_variable_subst'
19187 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19188 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19189 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19190 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19191 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19192 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19193 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19194 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19195 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19196 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19197 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19198 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19199 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19200 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19201 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19202 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19203 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19204 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19205 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19206 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19207 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19208 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19209 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19210 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19211 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19212 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19213 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19214 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19215 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19216 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19217 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19218 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19219 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19220 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19221 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19222 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19223 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19224 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19225 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19226 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19227 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19228 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19229 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19230 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19231 lt_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"`'
19232 lt_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"`'
19233 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19234 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19235 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19236 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19237 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19238 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19239 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19240 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19241 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19242 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19243 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19244 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19245 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19246 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19247 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19248 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19249 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19250 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19251 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19252 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19253 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19254 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19255 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19256 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19257 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19258 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19259 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19260 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19261 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19262 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19263 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19264 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19265 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19266 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19267 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19268 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19269 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19270 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19271 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19272 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19273 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19274 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19275 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19276 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19277 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19278 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19279 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19280 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19281 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19282 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19283 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19284 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19285 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19286 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19287 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19288 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19289 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19290 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19291 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19292 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19293 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19294 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19295 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19296 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19297 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19298 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19299 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19300 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19301 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19302 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19303 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19304 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19305 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19306 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19307 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19308 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19309 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19310 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19311 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19312 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19313 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19314 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19315 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19316 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19317 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19318 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19319 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19320 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19321 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19322 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19323 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19324 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19325 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19326 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19327 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19328 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19329 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19330 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19331 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19332 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19333 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19334 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19335 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19336 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19337 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19338 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19339 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19340 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19341 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19342 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19343 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19344 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19345 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19346 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19347 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19348 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19349 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19350 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19351 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19352 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19353 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19354 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19355 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19356 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19357 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19358
19359 LTCC='$LTCC'
19360 LTCFLAGS='$LTCFLAGS'
19361 compiler='$compiler_DEFAULT'
19362
19363 # Quote evaled strings.
19364 for var in SED \
19365 GREP \
19366 EGREP \
19367 FGREP \
19368 LD \
19369 NM \
19370 LN_S \
19371 lt_SP2NL \
19372 lt_NL2SP \
19373 reload_flag \
19374 OBJDUMP \
19375 deplibs_check_method \
19376 file_magic_cmd \
19377 AR \
19378 AR_FLAGS \
19379 STRIP \
19380 RANLIB \
19381 CC \
19382 CFLAGS \
19383 compiler \
19384 lt_cv_sys_global_symbol_pipe \
19385 lt_cv_sys_global_symbol_to_cdecl \
19386 lt_cv_sys_global_symbol_to_c_name_address \
19387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19388 SHELL \
19389 ECHO \
19390 lt_prog_compiler_no_builtin_flag \
19391 lt_prog_compiler_wl \
19392 lt_prog_compiler_pic \
19393 lt_prog_compiler_static \
19394 lt_cv_prog_compiler_c_o \
19395 need_locks \
19396 DSYMUTIL \
19397 NMEDIT \
19398 LIPO \
19399 OTOOL \
19400 OTOOL64 \
19401 shrext_cmds \
19402 export_dynamic_flag_spec \
19403 whole_archive_flag_spec \
19404 compiler_needs_object \
19405 with_gnu_ld \
19406 allow_undefined_flag \
19407 no_undefined_flag \
19408 hardcode_libdir_flag_spec \
19409 hardcode_libdir_flag_spec_ld \
19410 hardcode_libdir_separator \
19411 fix_srcfile_path \
19412 exclude_expsyms \
19413 include_expsyms \
19414 file_list_spec \
19415 variables_saved_for_relink \
19416 libname_spec \
19417 library_names_spec \
19418 soname_spec \
19419 finish_eval \
19420 old_striplib \
19421 striplib \
19422 compiler_lib_search_dirs \
19423 predep_objects \
19424 postdep_objects \
19425 predeps \
19426 postdeps \
19427 compiler_lib_search_path \
19428 LD_CXX \
19429 compiler_CXX \
19430 lt_prog_compiler_no_builtin_flag_CXX \
19431 lt_prog_compiler_wl_CXX \
19432 lt_prog_compiler_pic_CXX \
19433 lt_prog_compiler_static_CXX \
19434 lt_cv_prog_compiler_c_o_CXX \
19435 export_dynamic_flag_spec_CXX \
19436 whole_archive_flag_spec_CXX \
19437 compiler_needs_object_CXX \
19438 with_gnu_ld_CXX \
19439 allow_undefined_flag_CXX \
19440 no_undefined_flag_CXX \
19441 hardcode_libdir_flag_spec_CXX \
19442 hardcode_libdir_flag_spec_ld_CXX \
19443 hardcode_libdir_separator_CXX \
19444 fix_srcfile_path_CXX \
19445 exclude_expsyms_CXX \
19446 include_expsyms_CXX \
19447 file_list_spec_CXX \
19448 compiler_lib_search_dirs_CXX \
19449 predep_objects_CXX \
19450 postdep_objects_CXX \
19451 predeps_CXX \
19452 postdeps_CXX \
19453 compiler_lib_search_path_CXX; do
19454     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19455     *[\\\\\\\`\\"\\\$]*)
19456       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19457       ;;
19458     *)
19459       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19460       ;;
19461     esac
19462 done
19463
19464 # Double-quote double-evaled strings.
19465 for var in reload_cmds \
19466 old_postinstall_cmds \
19467 old_postuninstall_cmds \
19468 old_archive_cmds \
19469 extract_expsyms_cmds \
19470 old_archive_from_new_cmds \
19471 old_archive_from_expsyms_cmds \
19472 archive_cmds \
19473 archive_expsym_cmds \
19474 module_cmds \
19475 module_expsym_cmds \
19476 export_symbols_cmds \
19477 prelink_cmds \
19478 postinstall_cmds \
19479 postuninstall_cmds \
19480 finish_cmds \
19481 sys_lib_search_path_spec \
19482 sys_lib_dlsearch_path_spec \
19483 old_archive_cmds_CXX \
19484 old_archive_from_new_cmds_CXX \
19485 old_archive_from_expsyms_cmds_CXX \
19486 archive_cmds_CXX \
19487 archive_expsym_cmds_CXX \
19488 module_cmds_CXX \
19489 module_expsym_cmds_CXX \
19490 export_symbols_cmds_CXX \
19491 prelink_cmds_CXX; do
19492     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19493     *[\\\\\\\`\\"\\\$]*)
19494       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19495       ;;
19496     *)
19497       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19498       ;;
19499     esac
19500 done
19501
19502 # Fix-up fallback echo if it was mangled by the above quoting rules.
19503 case \$lt_ECHO in
19504 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19505   ;;
19506 esac
19507
19508 ac_aux_dir='$ac_aux_dir'
19509 xsi_shell='$xsi_shell'
19510 lt_shell_append='$lt_shell_append'
19511
19512 # See if we are running on zsh, and set the options which allow our
19513 # commands through without removal of \ escapes INIT.
19514 if test -n "\${ZSH_VERSION+set}" ; then
19515    setopt NO_GLOB_SUBST
19516 fi
19517
19518
19519     PACKAGE='$PACKAGE'
19520     VERSION='$VERSION'
19521     TIMESTAMP='$TIMESTAMP'
19522     RM='$RM'
19523     ofile='$ofile'
19524
19525
19526
19527
19528
19529
19530 _ACEOF
19531
19532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19533
19534 # Handling of arguments.
19535 for ac_config_target in $ac_config_targets
19536 do
19537   case $ac_config_target in
19538     "gpsd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS gpsd_config.h" ;;
19539     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19540     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19541     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19542     "packaging/rpm/gpsd.spec") CONFIG_FILES="$CONFIG_FILES packaging/rpm/gpsd.spec" ;;
19543     "libgps.pc") CONFIG_FILES="$CONFIG_FILES libgps.pc" ;;
19544     "libgpsd.pc") CONFIG_FILES="$CONFIG_FILES libgpsd.pc" ;;
19545     "jsongen.py") CONFIG_FILES="$CONFIG_FILES jsongen.py" ;;
19546     "maskaudit.py") CONFIG_FILES="$CONFIG_FILES maskaudit.py" ;;
19547     "valgrind-audit") CONFIG_FILES="$CONFIG_FILES valgrind-audit" ;;
19548     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19549
19550   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19551   esac
19552 done
19553
19554
19555 # If the user did not use the arguments to specify the items to instantiate,
19556 # then the envvar interface is used.  Set only those that are not.
19557 # We use the long form for the default assignment because of an extremely
19558 # bizarre bug on SunOS 4.1.3.
19559 if $ac_need_defaults; then
19560   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19561   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19562   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19563 fi
19564
19565 # Have a temporary directory for convenience.  Make it in the build tree
19566 # simply because there is no reason against having it here, and in addition,
19567 # creating and moving files from /tmp can sometimes cause problems.
19568 # Hook for its removal unless debugging.
19569 # Note that there is a small window in which the directory will not be cleaned:
19570 # after its creation but before its name has been assigned to `$tmp'.
19571 $debug ||
19572 {
19573   tmp=
19574   trap 'exit_status=$?
19575   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19576 ' 0
19577   trap 'as_fn_exit 1' 1 2 13 15
19578 }
19579 # Create a (secure) tmp directory for tmp files.
19580
19581 {
19582   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19583   test -n "$tmp" && test -d "$tmp"
19584 }  ||
19585 {
19586   tmp=./conf$$-$RANDOM
19587   (umask 077 && mkdir "$tmp")
19588 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19589
19590 # Set up the scripts for CONFIG_FILES section.
19591 # No need to generate them if there are no CONFIG_FILES.
19592 # This happens for instance with `./config.status config.h'.
19593 if test -n "$CONFIG_FILES"; then
19594
19595
19596 ac_cr=`echo X | tr X '\015'`
19597 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19598 # But we know of no other shell where ac_cr would be empty at this
19599 # point, so we can use a bashism as a fallback.
19600 if test "x$ac_cr" = x; then
19601   eval ac_cr=\$\'\\r\'
19602 fi
19603 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19604 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19605   ac_cs_awk_cr='\\r'
19606 else
19607   ac_cs_awk_cr=$ac_cr
19608 fi
19609
19610 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19611 _ACEOF
19612
19613
19614 {
19615   echo "cat >conf$$subs.awk <<_ACEOF" &&
19616   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19617   echo "_ACEOF"
19618 } >conf$$subs.sh ||
19619   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19621 ac_delim='%!_!# '
19622 for ac_last_try in false false false false false :; do
19623   . ./conf$$subs.sh ||
19624     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19625
19626   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19627   if test $ac_delim_n = $ac_delim_num; then
19628     break
19629   elif $ac_last_try; then
19630     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19631   else
19632     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19633   fi
19634 done
19635 rm -f conf$$subs.sh
19636
19637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19638 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19639 _ACEOF
19640 sed -n '
19641 h
19642 s/^/S["/; s/!.*/"]=/
19643 p
19644 g
19645 s/^[^!]*!//
19646 :repl
19647 t repl
19648 s/'"$ac_delim"'$//
19649 t delim
19650 :nl
19651 h
19652 s/\(.\{148\}\)..*/\1/
19653 t more1
19654 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19655 p
19656 n
19657 b repl
19658 :more1
19659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19660 p
19661 g
19662 s/.\{148\}//
19663 t nl
19664 :delim
19665 h
19666 s/\(.\{148\}\)..*/\1/
19667 t more2
19668 s/["\\]/\\&/g; s/^/"/; s/$/"/
19669 p
19670 b
19671 :more2
19672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19673 p
19674 g
19675 s/.\{148\}//
19676 t delim
19677 ' <conf$$subs.awk | sed '
19678 /^[^""]/{
19679   N
19680   s/\n//
19681 }
19682 ' >>$CONFIG_STATUS || ac_write_fail=1
19683 rm -f conf$$subs.awk
19684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19685 _ACAWK
19686 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19687   for (key in S) S_is_set[key] = 1
19688   FS = "\a"
19689
19690 }
19691 {
19692   line = $ 0
19693   nfields = split(line, field, "@")
19694   substed = 0
19695   len = length(field[1])
19696   for (i = 2; i < nfields; i++) {
19697     key = field[i]
19698     keylen = length(key)
19699     if (S_is_set[key]) {
19700       value = S[key]
19701       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19702       len += length(value) + length(field[++i])
19703       substed = 1
19704     } else
19705       len += 1 + keylen
19706   }
19707
19708   print line
19709 }
19710
19711 _ACAWK
19712 _ACEOF
19713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19714 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19715   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19716 else
19717   cat
19718 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19719   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19720 _ACEOF
19721
19722 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19723 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19724 # trailing colons and then remove the whole line if VPATH becomes empty
19725 # (actually we leave an empty line to preserve line numbers).
19726 if test "x$srcdir" = x.; then
19727   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19728 h
19729 s///
19730 s/^/:/
19731 s/[      ]*$/:/
19732 s/:\$(srcdir):/:/g
19733 s/:\${srcdir}:/:/g
19734 s/:@srcdir@:/:/g
19735 s/^:*//
19736 s/:*$//
19737 x
19738 s/\(=[   ]*\).*/\1/
19739 G
19740 s/\n//
19741 s/^[^=]*=[       ]*$//
19742 }'
19743 fi
19744
19745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19746 fi # test -n "$CONFIG_FILES"
19747
19748 # Set up the scripts for CONFIG_HEADERS section.
19749 # No need to generate them if there are no CONFIG_HEADERS.
19750 # This happens for instance with `./config.status Makefile'.
19751 if test -n "$CONFIG_HEADERS"; then
19752 cat >"$tmp/defines.awk" <<\_ACAWK ||
19753 BEGIN {
19754 _ACEOF
19755
19756 # Transform confdefs.h into an awk script `defines.awk', embedded as
19757 # here-document in config.status, that substitutes the proper values into
19758 # config.h.in to produce config.h.
19759
19760 # Create a delimiter string that does not exist in confdefs.h, to ease
19761 # handling of long lines.
19762 ac_delim='%!_!# '
19763 for ac_last_try in false false :; do
19764   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19765   if test -z "$ac_t"; then
19766     break
19767   elif $ac_last_try; then
19768     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19769   else
19770     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19771   fi
19772 done
19773
19774 # For the awk script, D is an array of macro values keyed by name,
19775 # likewise P contains macro parameters if any.  Preserve backslash
19776 # newline sequences.
19777
19778 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19779 sed -n '
19780 s/.\{148\}/&'"$ac_delim"'/g
19781 t rset
19782 :rset
19783 s/^[     ]*#[    ]*define[       ][      ]*/ /
19784 t def
19785 d
19786 :def
19787 s/\\$//
19788 t bsnl
19789 s/["\\]/\\&/g
19790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19791 D["\1"]=" \3"/p
19792 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19793 d
19794 :bsnl
19795 s/["\\]/\\&/g
19796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19797 D["\1"]=" \3\\\\\\n"\\/p
19798 t cont
19799 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19800 t cont
19801 d
19802 :cont
19803 n
19804 s/.\{148\}/&'"$ac_delim"'/g
19805 t clear
19806 :clear
19807 s/\\$//
19808 t bsnlc
19809 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19810 d
19811 :bsnlc
19812 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19813 b cont
19814 ' <confdefs.h | sed '
19815 s/'"$ac_delim"'/"\\\
19816 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19817
19818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19819   for (key in D) D_is_set[key] = 1
19820   FS = "\a"
19821 }
19822 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19823   line = \$ 0
19824   split(line, arg, " ")
19825   if (arg[1] == "#") {
19826     defundef = arg[2]
19827     mac1 = arg[3]
19828   } else {
19829     defundef = substr(arg[1], 2)
19830     mac1 = arg[2]
19831   }
19832   split(mac1, mac2, "(") #)
19833   macro = mac2[1]
19834   prefix = substr(line, 1, index(line, defundef) - 1)
19835   if (D_is_set[macro]) {
19836     # Preserve the white space surrounding the "#".
19837     print prefix "define", macro P[macro] D[macro]
19838     next
19839   } else {
19840     # Replace #undef with comments.  This is necessary, for example,
19841     # in the case of _POSIX_SOURCE, which is predefined and required
19842     # on some systems where configure will not decide to define it.
19843     if (defundef == "undef") {
19844       print "/*", prefix defundef, macro, "*/"
19845       next
19846     }
19847   }
19848 }
19849 { print }
19850 _ACAWK
19851 _ACEOF
19852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19853   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19854 fi # test -n "$CONFIG_HEADERS"
19855
19856
19857 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19858 shift
19859 for ac_tag
19860 do
19861   case $ac_tag in
19862   :[FHLC]) ac_mode=$ac_tag; continue;;
19863   esac
19864   case $ac_mode$ac_tag in
19865   :[FHL]*:*);;
19866   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
19867   :[FH]-) ac_tag=-:-;;
19868   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19869   esac
19870   ac_save_IFS=$IFS
19871   IFS=:
19872   set x $ac_tag
19873   IFS=$ac_save_IFS
19874   shift
19875   ac_file=$1
19876   shift
19877
19878   case $ac_mode in
19879   :L) ac_source=$1;;
19880   :[FH])
19881     ac_file_inputs=
19882     for ac_f
19883     do
19884       case $ac_f in
19885       -) ac_f="$tmp/stdin";;
19886       *) # Look for the file first in the build tree, then in the source tree
19887          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19888          # because $ac_f cannot contain `:'.
19889          test -f "$ac_f" ||
19890            case $ac_f in
19891            [\\/$]*) false;;
19892            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19893            esac ||
19894            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
19895       esac
19896       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19897       as_fn_append ac_file_inputs " '$ac_f'"
19898     done
19899
19900     # Let's still pretend it is `configure' which instantiates (i.e., don't
19901     # use $as_me), people would be surprised to read:
19902     #    /* config.h.  Generated by config.status.  */
19903     configure_input='Generated from '`
19904           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19905         `' by configure.'
19906     if test x"$ac_file" != x-; then
19907       configure_input="$ac_file.  $configure_input"
19908       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19909 $as_echo "$as_me: creating $ac_file" >&6;}
19910     fi
19911     # Neutralize special characters interpreted by sed in replacement strings.
19912     case $configure_input in #(
19913     *\&* | *\|* | *\\* )
19914        ac_sed_conf_input=`$as_echo "$configure_input" |
19915        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19916     *) ac_sed_conf_input=$configure_input;;
19917     esac
19918
19919     case $ac_tag in
19920     *:-:* | *:-) cat >"$tmp/stdin" \
19921       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
19922     esac
19923     ;;
19924   esac
19925
19926   ac_dir=`$as_dirname -- "$ac_file" ||
19927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19928          X"$ac_file" : 'X\(//\)[^/]' \| \
19929          X"$ac_file" : 'X\(//\)$' \| \
19930          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19931 $as_echo X"$ac_file" |
19932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19933             s//\1/
19934             q
19935           }
19936           /^X\(\/\/\)[^/].*/{
19937             s//\1/
19938             q
19939           }
19940           /^X\(\/\/\)$/{
19941             s//\1/
19942             q
19943           }
19944           /^X\(\/\).*/{
19945             s//\1/
19946             q
19947           }
19948           s/.*/./; q'`
19949   as_dir="$ac_dir"; as_fn_mkdir_p
19950   ac_builddir=.
19951
19952 case "$ac_dir" in
19953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19954 *)
19955   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19956   # A ".." for each directory in $ac_dir_suffix.
19957   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19958   case $ac_top_builddir_sub in
19959   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19960   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19961   esac ;;
19962 esac
19963 ac_abs_top_builddir=$ac_pwd
19964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19965 # for backward compatibility:
19966 ac_top_builddir=$ac_top_build_prefix
19967
19968 case $srcdir in
19969   .)  # We are building in place.
19970     ac_srcdir=.
19971     ac_top_srcdir=$ac_top_builddir_sub
19972     ac_abs_top_srcdir=$ac_pwd ;;
19973   [\\/]* | ?:[\\/]* )  # Absolute name.
19974     ac_srcdir=$srcdir$ac_dir_suffix;
19975     ac_top_srcdir=$srcdir
19976     ac_abs_top_srcdir=$srcdir ;;
19977   *) # Relative name.
19978     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19979     ac_top_srcdir=$ac_top_build_prefix$srcdir
19980     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19981 esac
19982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19983
19984
19985   case $ac_mode in
19986   :F)
19987   #
19988   # CONFIG_FILE
19989   #
19990
19991   case $INSTALL in
19992   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19993   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19994   esac
19995   ac_MKDIR_P=$MKDIR_P
19996   case $MKDIR_P in
19997   [\\/$]* | ?:[\\/]* ) ;;
19998   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19999   esac
20000 _ACEOF
20001
20002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20003 # If the template does not know about datarootdir, expand it.
20004 # FIXME: This hack should be removed a few years after 2.60.
20005 ac_datarootdir_hack=; ac_datarootdir_seen=
20006 ac_sed_dataroot='
20007 /datarootdir/ {
20008   p
20009   q
20010 }
20011 /@datadir@/p
20012 /@docdir@/p
20013 /@infodir@/p
20014 /@localedir@/p
20015 /@mandir@/p'
20016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20017 *datarootdir*) ac_datarootdir_seen=yes;;
20018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20021 _ACEOF
20022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20023   ac_datarootdir_hack='
20024   s&@datadir@&$datadir&g
20025   s&@docdir@&$docdir&g
20026   s&@infodir@&$infodir&g
20027   s&@localedir@&$localedir&g
20028   s&@mandir@&$mandir&g
20029   s&\\\${datarootdir}&$datarootdir&g' ;;
20030 esac
20031 _ACEOF
20032
20033 # Neutralize VPATH when `$srcdir' = `.'.
20034 # Shell code in configure.ac might set extrasub.
20035 # FIXME: do we really want to maintain this feature?
20036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20037 ac_sed_extra="$ac_vpsub
20038 $extrasub
20039 _ACEOF
20040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20041 :t
20042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20043 s|@configure_input@|$ac_sed_conf_input|;t t
20044 s&@top_builddir@&$ac_top_builddir_sub&;t t
20045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20046 s&@srcdir@&$ac_srcdir&;t t
20047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20048 s&@top_srcdir@&$ac_top_srcdir&;t t
20049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20050 s&@builddir@&$ac_builddir&;t t
20051 s&@abs_builddir@&$ac_abs_builddir&;t t
20052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20053 s&@INSTALL@&$ac_INSTALL&;t t
20054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20055 $ac_datarootdir_hack
20056 "
20057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20058   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20059
20060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20061   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20062   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20063   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20064 which seems to be undefined.  Please make sure it is defined" >&5
20065 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20066 which seems to be undefined.  Please make sure it is defined" >&2;}
20067
20068   rm -f "$tmp/stdin"
20069   case $ac_file in
20070   -) cat "$tmp/out" && rm -f "$tmp/out";;
20071   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20072   esac \
20073   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20074  ;;
20075   :H)
20076   #
20077   # CONFIG_HEADER
20078   #
20079   if test x"$ac_file" != x-; then
20080     {
20081       $as_echo "/* $configure_input  */" \
20082       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20083     } >"$tmp/config.h" \
20084       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20085     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20086       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20087 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20088     else
20089       rm -f "$ac_file"
20090       mv "$tmp/config.h" "$ac_file" \
20091         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20092     fi
20093   else
20094     $as_echo "/* $configure_input  */" \
20095       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20096       || as_fn_error $? "could not create -" "$LINENO" 5
20097   fi
20098 # Compute "$ac_file"'s index in $config_headers.
20099 _am_arg="$ac_file"
20100 _am_stamp_count=1
20101 for _am_header in $config_headers :; do
20102   case $_am_header in
20103     $_am_arg | $_am_arg:* )
20104       break ;;
20105     * )
20106       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20107   esac
20108 done
20109 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20110 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20111          X"$_am_arg" : 'X\(//\)[^/]' \| \
20112          X"$_am_arg" : 'X\(//\)$' \| \
20113          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20114 $as_echo X"$_am_arg" |
20115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20116             s//\1/
20117             q
20118           }
20119           /^X\(\/\/\)[^/].*/{
20120             s//\1/
20121             q
20122           }
20123           /^X\(\/\/\)$/{
20124             s//\1/
20125             q
20126           }
20127           /^X\(\/\).*/{
20128             s//\1/
20129             q
20130           }
20131           s/.*/./; q'`/stamp-h$_am_stamp_count
20132  ;;
20133
20134   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20135 $as_echo "$as_me: executing $ac_file commands" >&6;}
20136  ;;
20137   esac
20138
20139
20140   case $ac_file$ac_mode in
20141     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20142   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20143   # are listed without --file.  Let's play safe and only enable the eval
20144   # if we detect the quoting.
20145   case $CONFIG_FILES in
20146   *\'*) eval set x "$CONFIG_FILES" ;;
20147   *)   set x $CONFIG_FILES ;;
20148   esac
20149   shift
20150   for mf
20151   do
20152     # Strip MF so we end up with the name of the file.
20153     mf=`echo "$mf" | sed -e 's/:.*$//'`
20154     # Check whether this is an Automake generated Makefile or not.
20155     # We used to match only the files named `Makefile.in', but
20156     # some people rename them; so instead we look at the file content.
20157     # Grep'ing the first line is not enough: some people post-process
20158     # each Makefile.in and add a new line on top of each file to say so.
20159     # Grep'ing the whole file is not good either: AIX grep has a line
20160     # limit of 2048, but all sed's we know have understand at least 4000.
20161     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20162       dirpart=`$as_dirname -- "$mf" ||
20163 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20164          X"$mf" : 'X\(//\)[^/]' \| \
20165          X"$mf" : 'X\(//\)$' \| \
20166          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20167 $as_echo X"$mf" |
20168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20169             s//\1/
20170             q
20171           }
20172           /^X\(\/\/\)[^/].*/{
20173             s//\1/
20174             q
20175           }
20176           /^X\(\/\/\)$/{
20177             s//\1/
20178             q
20179           }
20180           /^X\(\/\).*/{
20181             s//\1/
20182             q
20183           }
20184           s/.*/./; q'`
20185     else
20186       continue
20187     fi
20188     # Extract the definition of DEPDIR, am__include, and am__quote
20189     # from the Makefile without running `make'.
20190     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20191     test -z "$DEPDIR" && continue
20192     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20193     test -z "am__include" && continue
20194     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20195     # When using ansi2knr, U may be empty or an underscore; expand it
20196     U=`sed -n 's/^U = //p' < "$mf"`
20197     # Find all dependency output files, they are included files with
20198     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20199     # simplest approach to changing $(DEPDIR) to its actual value in the
20200     # expansion.
20201     for file in `sed -n "
20202       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20203          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20204       # Make sure the directory exists.
20205       test -f "$dirpart/$file" && continue
20206       fdir=`$as_dirname -- "$file" ||
20207 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20208          X"$file" : 'X\(//\)[^/]' \| \
20209          X"$file" : 'X\(//\)$' \| \
20210          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20211 $as_echo X"$file" |
20212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20213             s//\1/
20214             q
20215           }
20216           /^X\(\/\/\)[^/].*/{
20217             s//\1/
20218             q
20219           }
20220           /^X\(\/\/\)$/{
20221             s//\1/
20222             q
20223           }
20224           /^X\(\/\).*/{
20225             s//\1/
20226             q
20227           }
20228           s/.*/./; q'`
20229       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20230       # echo "creating $dirpart/$file"
20231       echo '# dummy' > "$dirpart/$file"
20232     done
20233   done
20234 }
20235  ;;
20236     "libtool":C)
20237
20238     # See if we are running on zsh, and set the options which allow our
20239     # commands through without removal of \ escapes.
20240     if test -n "${ZSH_VERSION+set}" ; then
20241       setopt NO_GLOB_SUBST
20242     fi
20243
20244     cfgfile="${ofile}T"
20245     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20246     $RM "$cfgfile"
20247
20248     cat <<_LT_EOF >> "$cfgfile"
20249 #! $SHELL
20250
20251 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20252 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20254 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20255 #
20256 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20257 #                 2006, 2007, 2008 Free Software Foundation, Inc.
20258 #   Written by Gordon Matzigkeit, 1996
20259 #
20260 #   This file is part of GNU Libtool.
20261 #
20262 # GNU Libtool is free software; you can redistribute it and/or
20263 # modify it under the terms of the GNU General Public License as
20264 # published by the Free Software Foundation; either version 2 of
20265 # the License, or (at your option) any later version.
20266 #
20267 # As a special exception to the GNU General Public License,
20268 # if you distribute this file as part of a program or library that
20269 # is built using GNU Libtool, you may include this file under the
20270 # same distribution terms that you use for the rest of that program.
20271 #
20272 # GNU Libtool is distributed in the hope that it will be useful,
20273 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20275 # GNU General Public License for more details.
20276 #
20277 # You should have received a copy of the GNU General Public License
20278 # along with GNU Libtool; see the file COPYING.  If not, a copy
20279 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20280 # obtained by writing to the Free Software Foundation, Inc.,
20281 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20282
20283
20284 # The names of the tagged configurations supported by this script.
20285 available_tags="CXX "
20286
20287 # ### BEGIN LIBTOOL CONFIG
20288
20289 # Which release of libtool.m4 was used?
20290 macro_version=$macro_version
20291 macro_revision=$macro_revision
20292
20293 # Whether or not to build shared libraries.
20294 build_libtool_libs=$enable_shared
20295
20296 # Whether or not to build static libraries.
20297 build_old_libs=$enable_static
20298
20299 # What type of objects to build.
20300 pic_mode=$pic_mode
20301
20302 # Whether or not to optimize for fast installation.
20303 fast_install=$enable_fast_install
20304
20305 # The host system.
20306 host_alias=$host_alias
20307 host=$host
20308 host_os=$host_os
20309
20310 # The build system.
20311 build_alias=$build_alias
20312 build=$build
20313 build_os=$build_os
20314
20315 # A sed program that does not truncate output.
20316 SED=$lt_SED
20317
20318 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20319 Xsed="\$SED -e 1s/^X//"
20320
20321 # A grep program that handles long lines.
20322 GREP=$lt_GREP
20323
20324 # An ERE matcher.
20325 EGREP=$lt_EGREP
20326
20327 # A literal string matcher.
20328 FGREP=$lt_FGREP
20329
20330 # A BSD- or MS-compatible name lister.
20331 NM=$lt_NM
20332
20333 # Whether we need soft or hard links.
20334 LN_S=$lt_LN_S
20335
20336 # What is the maximum length of a command?
20337 max_cmd_len=$max_cmd_len
20338
20339 # Object file suffix (normally "o").
20340 objext=$ac_objext
20341
20342 # Executable file suffix (normally "").
20343 exeext=$exeext
20344
20345 # whether the shell understands "unset".
20346 lt_unset=$lt_unset
20347
20348 # turn spaces into newlines.
20349 SP2NL=$lt_lt_SP2NL
20350
20351 # turn newlines into spaces.
20352 NL2SP=$lt_lt_NL2SP
20353
20354 # How to create reloadable object files.
20355 reload_flag=$lt_reload_flag
20356 reload_cmds=$lt_reload_cmds
20357
20358 # An object symbol dumper.
20359 OBJDUMP=$lt_OBJDUMP
20360
20361 # Method to check whether dependent libraries are shared objects.
20362 deplibs_check_method=$lt_deplibs_check_method
20363
20364 # Command to use when deplibs_check_method == "file_magic".
20365 file_magic_cmd=$lt_file_magic_cmd
20366
20367 # The archiver.
20368 AR=$lt_AR
20369 AR_FLAGS=$lt_AR_FLAGS
20370
20371 # A symbol stripping program.
20372 STRIP=$lt_STRIP
20373
20374 # Commands used to install an old-style archive.
20375 RANLIB=$lt_RANLIB
20376 old_postinstall_cmds=$lt_old_postinstall_cmds
20377 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20378
20379 # A C compiler.
20380 LTCC=$lt_CC
20381
20382 # LTCC compiler flags.
20383 LTCFLAGS=$lt_CFLAGS
20384
20385 # Take the output of nm and produce a listing of raw symbols and C names.
20386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20387
20388 # Transform the output of nm in a proper C declaration.
20389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20390
20391 # Transform the output of nm in a C name address pair.
20392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20393
20394 # Transform the output of nm in a C name address pair when lib prefix is needed.
20395 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20396
20397 # The name of the directory that contains temporary libtool files.
20398 objdir=$objdir
20399
20400 # Shell to use when invoking shell scripts.
20401 SHELL=$lt_SHELL
20402
20403 # An echo program that does not interpret backslashes.
20404 ECHO=$lt_ECHO
20405
20406 # Used to examine libraries when file_magic_cmd begins with "file".
20407 MAGIC_CMD=$MAGIC_CMD
20408
20409 # Must we lock files when doing compilation?
20410 need_locks=$lt_need_locks
20411
20412 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20413 DSYMUTIL=$lt_DSYMUTIL
20414
20415 # Tool to change global to local symbols on Mac OS X.
20416 NMEDIT=$lt_NMEDIT
20417
20418 # Tool to manipulate fat objects and archives on Mac OS X.
20419 LIPO=$lt_LIPO
20420
20421 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20422 OTOOL=$lt_OTOOL
20423
20424 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20425 OTOOL64=$lt_OTOOL64
20426
20427 # Old archive suffix (normally "a").
20428 libext=$libext
20429
20430 # Shared library suffix (normally ".so").
20431 shrext_cmds=$lt_shrext_cmds
20432
20433 # The commands to extract the exported symbol list from a shared archive.
20434 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20435
20436 # Variables whose values should be saved in libtool wrapper scripts and
20437 # restored at link time.
20438 variables_saved_for_relink=$lt_variables_saved_for_relink
20439
20440 # Do we need the "lib" prefix for modules?
20441 need_lib_prefix=$need_lib_prefix
20442
20443 # Do we need a version for libraries?
20444 need_version=$need_version
20445
20446 # Library versioning type.
20447 version_type=$version_type
20448
20449 # Shared library runtime path variable.
20450 runpath_var=$runpath_var
20451
20452 # Shared library path variable.
20453 shlibpath_var=$shlibpath_var
20454
20455 # Is shlibpath searched before the hard-coded library search path?
20456 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20457
20458 # Format of library name prefix.
20459 libname_spec=$lt_libname_spec
20460
20461 # List of archive names.  First name is the real one, the rest are links.
20462 # The last name is the one that the linker finds with -lNAME
20463 library_names_spec=$lt_library_names_spec
20464
20465 # The coded name of the library, if different from the real name.
20466 soname_spec=$lt_soname_spec
20467
20468 # Command to use after installation of a shared archive.
20469 postinstall_cmds=$lt_postinstall_cmds
20470
20471 # Command to use after uninstallation of a shared archive.
20472 postuninstall_cmds=$lt_postuninstall_cmds
20473
20474 # Commands used to finish a libtool library installation in a directory.
20475 finish_cmds=$lt_finish_cmds
20476
20477 # As "finish_cmds", except a single script fragment to be evaled but
20478 # not shown.
20479 finish_eval=$lt_finish_eval
20480
20481 # Whether we should hardcode library paths into libraries.
20482 hardcode_into_libs=$hardcode_into_libs
20483
20484 # Compile-time system search path for libraries.
20485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20486
20487 # Run-time system search path for libraries.
20488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20489
20490 # Whether dlopen is supported.
20491 dlopen_support=$enable_dlopen
20492
20493 # Whether dlopen of programs is supported.
20494 dlopen_self=$enable_dlopen_self
20495
20496 # Whether dlopen of statically linked programs is supported.
20497 dlopen_self_static=$enable_dlopen_self_static
20498
20499 # Commands to strip libraries.
20500 old_striplib=$lt_old_striplib
20501 striplib=$lt_striplib
20502
20503
20504 # The linker used to build libraries.
20505 LD=$lt_LD
20506
20507 # Commands used to build an old-style archive.
20508 old_archive_cmds=$lt_old_archive_cmds
20509
20510 # A language specific compiler.
20511 CC=$lt_compiler
20512
20513 # Is the compiler the GNU compiler?
20514 with_gcc=$GCC
20515
20516 # Compiler flag to turn off builtin functions.
20517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20518
20519 # How to pass a linker flag through the compiler.
20520 wl=$lt_lt_prog_compiler_wl
20521
20522 # Additional compiler flags for building library objects.
20523 pic_flag=$lt_lt_prog_compiler_pic
20524
20525 # Compiler flag to prevent dynamic linking.
20526 link_static_flag=$lt_lt_prog_compiler_static
20527
20528 # Does compiler simultaneously support -c and -o options?
20529 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20530
20531 # Whether or not to add -lc for building shared libraries.
20532 build_libtool_need_lc=$archive_cmds_need_lc
20533
20534 # Whether or not to disallow shared libs when runtime libs are static.
20535 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20536
20537 # Compiler flag to allow reflexive dlopens.
20538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20539
20540 # Compiler flag to generate shared objects directly from archives.
20541 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20542
20543 # Whether the compiler copes with passing no objects directly.
20544 compiler_needs_object=$lt_compiler_needs_object
20545
20546 # Create an old-style archive from a shared archive.
20547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20548
20549 # Create a temporary old-style archive to link instead of a shared archive.
20550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20551
20552 # Commands used to build a shared archive.
20553 archive_cmds=$lt_archive_cmds
20554 archive_expsym_cmds=$lt_archive_expsym_cmds
20555
20556 # Commands used to build a loadable module if different from building
20557 # a shared archive.
20558 module_cmds=$lt_module_cmds
20559 module_expsym_cmds=$lt_module_expsym_cmds
20560
20561 # Whether we are building with GNU ld or not.
20562 with_gnu_ld=$lt_with_gnu_ld
20563
20564 # Flag that allows shared libraries with undefined symbols to be built.
20565 allow_undefined_flag=$lt_allow_undefined_flag
20566
20567 # Flag that enforces no undefined symbols.
20568 no_undefined_flag=$lt_no_undefined_flag
20569
20570 # Flag to hardcode \$libdir into a binary during linking.
20571 # This must work even if \$libdir does not exist
20572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20573
20574 # If ld is used when linking, flag to hardcode \$libdir into a binary
20575 # during linking.  This must work even if \$libdir does not exist.
20576 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20577
20578 # Whether we need a single "-rpath" flag with a separated argument.
20579 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20580
20581 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20582 # DIR into the resulting binary.
20583 hardcode_direct=$hardcode_direct
20584
20585 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20586 # DIR into the resulting binary and the resulting library dependency is
20587 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20588 # library is relocated.
20589 hardcode_direct_absolute=$hardcode_direct_absolute
20590
20591 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20592 # into the resulting binary.
20593 hardcode_minus_L=$hardcode_minus_L
20594
20595 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20596 # into the resulting binary.
20597 hardcode_shlibpath_var=$hardcode_shlibpath_var
20598
20599 # Set to "yes" if building a shared library automatically hardcodes DIR
20600 # into the library and all subsequent libraries and executables linked
20601 # against it.
20602 hardcode_automatic=$hardcode_automatic
20603
20604 # Set to yes if linker adds runtime paths of dependent libraries
20605 # to runtime path list.
20606 inherit_rpath=$inherit_rpath
20607
20608 # Whether libtool must link a program against all its dependency libraries.
20609 link_all_deplibs=$link_all_deplibs
20610
20611 # Fix the shell variable \$srcfile for the compiler.
20612 fix_srcfile_path=$lt_fix_srcfile_path
20613
20614 # Set to "yes" if exported symbols are required.
20615 always_export_symbols=$always_export_symbols
20616
20617 # The commands to list exported symbols.
20618 export_symbols_cmds=$lt_export_symbols_cmds
20619
20620 # Symbols that should not be listed in the preloaded symbols.
20621 exclude_expsyms=$lt_exclude_expsyms
20622
20623 # Symbols that must always be exported.
20624 include_expsyms=$lt_include_expsyms
20625
20626 # Commands necessary for linking programs (against libraries) with templates.
20627 prelink_cmds=$lt_prelink_cmds
20628
20629 # Specify filename containing input files.
20630 file_list_spec=$lt_file_list_spec
20631
20632 # How to hardcode a shared library path into an executable.
20633 hardcode_action=$hardcode_action
20634
20635 # The directories searched by this compiler when creating a shared library.
20636 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20637
20638 # Dependencies to place before and after the objects being linked to
20639 # create a shared library.
20640 predep_objects=$lt_predep_objects
20641 postdep_objects=$lt_postdep_objects
20642 predeps=$lt_predeps
20643 postdeps=$lt_postdeps
20644
20645 # The library search path used internally by the compiler when linking
20646 # a shared library.
20647 compiler_lib_search_path=$lt_compiler_lib_search_path
20648
20649 # ### END LIBTOOL CONFIG
20650
20651 _LT_EOF
20652
20653   case $host_os in
20654   aix3*)
20655     cat <<\_LT_EOF >> "$cfgfile"
20656 # AIX sometimes has problems with the GCC collect2 program.  For some
20657 # reason, if we set the COLLECT_NAMES environment variable, the problems
20658 # vanish in a puff of smoke.
20659 if test "X${COLLECT_NAMES+set}" != Xset; then
20660   COLLECT_NAMES=
20661   export COLLECT_NAMES
20662 fi
20663 _LT_EOF
20664     ;;
20665   esac
20666
20667
20668 ltmain="$ac_aux_dir/ltmain.sh"
20669
20670
20671   # We use sed instead of cat because bash on DJGPP gets confused if
20672   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20673   # text mode, it properly converts lines to CR/LF.  This bash problem
20674   # is reportedly fixed, but why not run on old versions too?
20675   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20676     || (rm -f "$cfgfile"; exit 1)
20677
20678   case $xsi_shell in
20679   yes)
20680     cat << \_LT_EOF >> "$cfgfile"
20681
20682 # func_dirname file append nondir_replacement
20683 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20684 # otherwise set result to NONDIR_REPLACEMENT.
20685 func_dirname ()
20686 {
20687   case ${1} in
20688     */*) func_dirname_result="${1%/*}${2}" ;;
20689     *  ) func_dirname_result="${3}" ;;
20690   esac
20691 }
20692
20693 # func_basename file
20694 func_basename ()
20695 {
20696   func_basename_result="${1##*/}"
20697 }
20698
20699 # func_dirname_and_basename file append nondir_replacement
20700 # perform func_basename and func_dirname in a single function
20701 # call:
20702 #   dirname:  Compute the dirname of FILE.  If nonempty,
20703 #             add APPEND to the result, otherwise set result
20704 #             to NONDIR_REPLACEMENT.
20705 #             value returned in "$func_dirname_result"
20706 #   basename: Compute filename of FILE.
20707 #             value retuned in "$func_basename_result"
20708 # Implementation must be kept synchronized with func_dirname
20709 # and func_basename. For efficiency, we do not delegate to
20710 # those functions but instead duplicate the functionality here.
20711 func_dirname_and_basename ()
20712 {
20713   case ${1} in
20714     */*) func_dirname_result="${1%/*}${2}" ;;
20715     *  ) func_dirname_result="${3}" ;;
20716   esac
20717   func_basename_result="${1##*/}"
20718 }
20719
20720 # func_stripname prefix suffix name
20721 # strip PREFIX and SUFFIX off of NAME.
20722 # PREFIX and SUFFIX must not contain globbing or regex special
20723 # characters, hashes, percent signs, but SUFFIX may contain a leading
20724 # dot (in which case that matches only a dot).
20725 func_stripname ()
20726 {
20727   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20728   # positional parameters, so assign one to ordinary parameter first.
20729   func_stripname_result=${3}
20730   func_stripname_result=${func_stripname_result#"${1}"}
20731   func_stripname_result=${func_stripname_result%"${2}"}
20732 }
20733
20734 # func_opt_split
20735 func_opt_split ()
20736 {
20737   func_opt_split_opt=${1%%=*}
20738   func_opt_split_arg=${1#*=}
20739 }
20740
20741 # func_lo2o object
20742 func_lo2o ()
20743 {
20744   case ${1} in
20745     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20746     *)    func_lo2o_result=${1} ;;
20747   esac
20748 }
20749
20750 # func_xform libobj-or-source
20751 func_xform ()
20752 {
20753   func_xform_result=${1%.*}.lo
20754 }
20755
20756 # func_arith arithmetic-term...
20757 func_arith ()
20758 {
20759   func_arith_result=$(( $* ))
20760 }
20761
20762 # func_len string
20763 # STRING may not start with a hyphen.
20764 func_len ()
20765 {
20766   func_len_result=${#1}
20767 }
20768
20769 _LT_EOF
20770     ;;
20771   *) # Bourne compatible functions.
20772     cat << \_LT_EOF >> "$cfgfile"
20773
20774 # func_dirname file append nondir_replacement
20775 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20776 # otherwise set result to NONDIR_REPLACEMENT.
20777 func_dirname ()
20778 {
20779   # Extract subdirectory from the argument.
20780   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20781   if test "X$func_dirname_result" = "X${1}"; then
20782     func_dirname_result="${3}"
20783   else
20784     func_dirname_result="$func_dirname_result${2}"
20785   fi
20786 }
20787
20788 # func_basename file
20789 func_basename ()
20790 {
20791   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20792 }
20793
20794
20795 # func_stripname prefix suffix name
20796 # strip PREFIX and SUFFIX off of NAME.
20797 # PREFIX and SUFFIX must not contain globbing or regex special
20798 # characters, hashes, percent signs, but SUFFIX may contain a leading
20799 # dot (in which case that matches only a dot).
20800 # func_strip_suffix prefix name
20801 func_stripname ()
20802 {
20803   case ${2} in
20804     .*) func_stripname_result=`$ECHO "X${3}" \
20805            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20806     *)  func_stripname_result=`$ECHO "X${3}" \
20807            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20808   esac
20809 }
20810
20811 # sed scripts:
20812 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20813 my_sed_long_arg='1s/^-[^=]*=//'
20814
20815 # func_opt_split
20816 func_opt_split ()
20817 {
20818   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20819   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20820 }
20821
20822 # func_lo2o object
20823 func_lo2o ()
20824 {
20825   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20826 }
20827
20828 # func_xform libobj-or-source
20829 func_xform ()
20830 {
20831   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20832 }
20833
20834 # func_arith arithmetic-term...
20835 func_arith ()
20836 {
20837   func_arith_result=`expr "$@"`
20838 }
20839
20840 # func_len string
20841 # STRING may not start with a hyphen.
20842 func_len ()
20843 {
20844   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20845 }
20846
20847 _LT_EOF
20848 esac
20849
20850 case $lt_shell_append in
20851   yes)
20852     cat << \_LT_EOF >> "$cfgfile"
20853
20854 # func_append var value
20855 # Append VALUE to the end of shell variable VAR.
20856 func_append ()
20857 {
20858   eval "$1+=\$2"
20859 }
20860 _LT_EOF
20861     ;;
20862   *)
20863     cat << \_LT_EOF >> "$cfgfile"
20864
20865 # func_append var value
20866 # Append VALUE to the end of shell variable VAR.
20867 func_append ()
20868 {
20869   eval "$1=\$$1\$2"
20870 }
20871
20872 _LT_EOF
20873     ;;
20874   esac
20875
20876
20877   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20878     || (rm -f "$cfgfile"; exit 1)
20879
20880   mv -f "$cfgfile" "$ofile" ||
20881     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20882   chmod +x "$ofile"
20883
20884
20885     cat <<_LT_EOF >> "$ofile"
20886
20887 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20888
20889 # The linker used to build libraries.
20890 LD=$lt_LD_CXX
20891
20892 # Commands used to build an old-style archive.
20893 old_archive_cmds=$lt_old_archive_cmds_CXX
20894
20895 # A language specific compiler.
20896 CC=$lt_compiler_CXX
20897
20898 # Is the compiler the GNU compiler?
20899 with_gcc=$GCC_CXX
20900
20901 # Compiler flag to turn off builtin functions.
20902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20903
20904 # How to pass a linker flag through the compiler.
20905 wl=$lt_lt_prog_compiler_wl_CXX
20906
20907 # Additional compiler flags for building library objects.
20908 pic_flag=$lt_lt_prog_compiler_pic_CXX
20909
20910 # Compiler flag to prevent dynamic linking.
20911 link_static_flag=$lt_lt_prog_compiler_static_CXX
20912
20913 # Does compiler simultaneously support -c and -o options?
20914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20915
20916 # Whether or not to add -lc for building shared libraries.
20917 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20918
20919 # Whether or not to disallow shared libs when runtime libs are static.
20920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20921
20922 # Compiler flag to allow reflexive dlopens.
20923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20924
20925 # Compiler flag to generate shared objects directly from archives.
20926 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20927
20928 # Whether the compiler copes with passing no objects directly.
20929 compiler_needs_object=$lt_compiler_needs_object_CXX
20930
20931 # Create an old-style archive from a shared archive.
20932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20933
20934 # Create a temporary old-style archive to link instead of a shared archive.
20935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20936
20937 # Commands used to build a shared archive.
20938 archive_cmds=$lt_archive_cmds_CXX
20939 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20940
20941 # Commands used to build a loadable module if different from building
20942 # a shared archive.
20943 module_cmds=$lt_module_cmds_CXX
20944 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20945
20946 # Whether we are building with GNU ld or not.
20947 with_gnu_ld=$lt_with_gnu_ld_CXX
20948
20949 # Flag that allows shared libraries with undefined symbols to be built.
20950 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20951
20952 # Flag that enforces no undefined symbols.
20953 no_undefined_flag=$lt_no_undefined_flag_CXX
20954
20955 # Flag to hardcode \$libdir into a binary during linking.
20956 # This must work even if \$libdir does not exist
20957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20958
20959 # If ld is used when linking, flag to hardcode \$libdir into a binary
20960 # during linking.  This must work even if \$libdir does not exist.
20961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20962
20963 # Whether we need a single "-rpath" flag with a separated argument.
20964 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20965
20966 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20967 # DIR into the resulting binary.
20968 hardcode_direct=$hardcode_direct_CXX
20969
20970 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20971 # DIR into the resulting binary and the resulting library dependency is
20972 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20973 # library is relocated.
20974 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20975
20976 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20977 # into the resulting binary.
20978 hardcode_minus_L=$hardcode_minus_L_CXX
20979
20980 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20981 # into the resulting binary.
20982 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20983
20984 # Set to "yes" if building a shared library automatically hardcodes DIR
20985 # into the library and all subsequent libraries and executables linked
20986 # against it.
20987 hardcode_automatic=$hardcode_automatic_CXX
20988
20989 # Set to yes if linker adds runtime paths of dependent libraries
20990 # to runtime path list.
20991 inherit_rpath=$inherit_rpath_CXX
20992
20993 # Whether libtool must link a program against all its dependency libraries.
20994 link_all_deplibs=$link_all_deplibs_CXX
20995
20996 # Fix the shell variable \$srcfile for the compiler.
20997 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20998
20999 # Set to "yes" if exported symbols are required.
21000 always_export_symbols=$always_export_symbols_CXX
21001
21002 # The commands to list exported symbols.
21003 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21004
21005 # Symbols that should not be listed in the preloaded symbols.
21006 exclude_expsyms=$lt_exclude_expsyms_CXX
21007
21008 # Symbols that must always be exported.
21009 include_expsyms=$lt_include_expsyms_CXX
21010
21011 # Commands necessary for linking programs (against libraries) with templates.
21012 prelink_cmds=$lt_prelink_cmds_CXX
21013
21014 # Specify filename containing input files.
21015 file_list_spec=$lt_file_list_spec_CXX
21016
21017 # How to hardcode a shared library path into an executable.
21018 hardcode_action=$hardcode_action_CXX
21019
21020 # The directories searched by this compiler when creating a shared library.
21021 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21022
21023 # Dependencies to place before and after the objects being linked to
21024 # create a shared library.
21025 predep_objects=$lt_predep_objects_CXX
21026 postdep_objects=$lt_postdep_objects_CXX
21027 predeps=$lt_predeps_CXX
21028 postdeps=$lt_postdeps_CXX
21029
21030 # The library search path used internally by the compiler when linking
21031 # a shared library.
21032 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21033
21034 # ### END LIBTOOL TAG CONFIG: CXX
21035 _LT_EOF
21036
21037  ;;
21038     "default":C) chmod +x jsongen.py maskaudit.py gpscat gpsfake gpsprof xgps valgrind-audit ;;
21039
21040   esac
21041 done # for ac_tag
21042
21043
21044 as_fn_exit 0
21045 _ACEOF
21046 ac_clean_files=$ac_clean_files_save
21047
21048 test $ac_write_fail = 0 ||
21049   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21050
21051
21052 # configure is writing to config.log, and then calls config.status.
21053 # config.status does its own redirection, appending to config.log.
21054 # Unfortunately, on DOS this fails, as config.log is still kept open
21055 # by configure, so config.status won't be able to write to it; its
21056 # output is simply discarded.  So we exec the FD to /dev/null,
21057 # effectively closing config.log, so it can be properly (re)opened and
21058 # appended to by config.status.  When coming back to configure, we
21059 # need to make the FD available again.
21060 if test "$no_create" != yes; then
21061   ac_cs_success=:
21062   ac_config_status_args=
21063   test "$silent" = yes &&
21064     ac_config_status_args="$ac_config_status_args --quiet"
21065   exec 5>/dev/null
21066   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21067   exec 5>>config.log
21068   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21069   # would make configure fail if this is the last instruction.
21070   $ac_cs_success || as_fn_exit 1
21071 fi
21072 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21073   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21074 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21075 fi
21076
21077 echo "Configure finished, type 'make' to build."
21078