Add delayed login logic
[platform/core/system/tlm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for tlm 1.0.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='tlm'
589 PACKAGE_TARNAME='tlm'
590 PACKAGE_VERSION='1.0.3'
591 PACKAGE_STRING='tlm 1.0.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/daemon/tlm-main.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 ACCOUNT_PLUGIN_NAME
637 HAVE_LIBGUM_FALSE
638 HAVE_LIBGUM_TRUE
639 LIBGUM_LIBS
640 LIBGUM_CFLAGS
641 ELEMENTARY_LIBS
642 ELEMENTARY_CFLAGS
643 ENABLE_EXAMPLES_FALSE
644 ENABLE_EXAMPLES_TRUE
645 ENABLE_TESTS_FALSE
646 ENABLE_TESTS_TRUE
647 CHECK_LIBS
648 CHECK_CFLAGS
649 TLM_LIBS
650 TLM_CFLAGS
651 GMODULE_LIBS
652 GMODULE_CFLAGS
653 GIO_LIBS
654 GIO_CFLAGS
655 GLIB_LIBS
656 GLIB_CFLAGS
657 GLIB_MKENUMS
658 GTK_DOC_USE_REBASE_FALSE
659 GTK_DOC_USE_REBASE_TRUE
660 GTK_DOC_USE_LIBTOOL_FALSE
661 GTK_DOC_USE_LIBTOOL_TRUE
662 GTK_DOC_BUILD_PDF_FALSE
663 GTK_DOC_BUILD_PDF_TRUE
664 GTK_DOC_BUILD_HTML_FALSE
665 GTK_DOC_BUILD_HTML_TRUE
666 ENABLE_GTK_DOC_FALSE
667 ENABLE_GTK_DOC_TRUE
668 HAVE_GTK_DOC_FALSE
669 HAVE_GTK_DOC_TRUE
670 GTKDOC_DEPS_LIBS
671 GTKDOC_DEPS_CFLAGS
672 HTML_DIR
673 GTKDOC_MKPDF
674 GTKDOC_REBASE
675 GTKDOC_CHECK_PATH
676 GTKDOC_CHECK
677 PKG_CONFIG_LIBDIR
678 PKG_CONFIG_PATH
679 PKG_CONFIG
680 CPP
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 MANIFEST_TOOL
687 RANLIB
688 ac_ct_AR
689 AR
690 DLLTOOL
691 OBJDUMP
692 LN_S
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 EGREP
699 GREP
700 SED
701 am__fastdepCC_FALSE
702 am__fastdepCC_TRUE
703 CCDEPMODE
704 am__nodep
705 AMDEPBACKSLASH
706 AMDEP_FALSE
707 AMDEP_TRUE
708 am__quote
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 host_os
719 host_vendor
720 host_cpu
721 host
722 build_os
723 build_vendor
724 build_cpu
725 build
726 LIBTOOL
727 AM_BACKSLASH
728 AM_DEFAULT_VERBOSITY
729 AM_DEFAULT_V
730 AM_V
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_silent_rules
796 enable_static
797 enable_shared
798 with_pic
799 enable_fast_install
800 enable_dependency_tracking
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_html_dir
805 enable_gtk_doc
806 enable_gtk_doc_html
807 enable_gtk_doc_pdf
808 enable_debug
809 enable_tests
810 enable_examples
811 enable_sockets_path
812 enable_gum
813 '
814       ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CPP
823 PKG_CONFIG
824 PKG_CONFIG_PATH
825 PKG_CONFIG_LIBDIR
826 GTKDOC_DEPS_CFLAGS
827 GTKDOC_DEPS_LIBS
828 GLIB_CFLAGS
829 GLIB_LIBS
830 GIO_CFLAGS
831 GIO_LIBS
832 GMODULE_CFLAGS
833 GMODULE_LIBS
834 CHECK_CFLAGS
835 CHECK_LIBS
836 ELEMENTARY_CFLAGS
837 ELEMENTARY_LIBS
838 LIBGUM_CFLAGS
839 LIBGUM_LIBS'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894   # If the previous option needs an argument, assign it.
895   if test -n "$ac_prev"; then
896     eval $ac_prev=\$ac_option
897     ac_prev=
898     continue
899   fi
900
901   case $ac_option in
902   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903   *=)   ac_optarg= ;;
904   *)    ac_optarg=yes ;;
905   esac
906
907   # Accept the important Cygnus configure options, so we can diagnose typos.
908
909   case $ac_dashdash$ac_option in
910   --)
911     ac_dashdash=yes ;;
912
913   -bindir | --bindir | --bindi | --bind | --bin | --bi)
914     ac_prev=bindir ;;
915   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916     bindir=$ac_optarg ;;
917
918   -build | --build | --buil | --bui | --bu)
919     ac_prev=build_alias ;;
920   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921     build_alias=$ac_optarg ;;
922
923   -cache-file | --cache-file | --cache-fil | --cache-fi \
924   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925     ac_prev=cache_file ;;
926   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928     cache_file=$ac_optarg ;;
929
930   --config-cache | -C)
931     cache_file=config.cache ;;
932
933   -datadir | --datadir | --datadi | --datad)
934     ac_prev=datadir ;;
935   -datadir=* | --datadir=* | --datadi=* | --datad=*)
936     datadir=$ac_optarg ;;
937
938   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939   | --dataroo | --dataro | --datar)
940     ac_prev=datarootdir ;;
941   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943     datarootdir=$ac_optarg ;;
944
945   -disable-* | --disable-*)
946     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947     # Reject names that are not valid shell variable names.
948     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949       as_fn_error $? "invalid feature name: $ac_useropt"
950     ac_useropt_orig=$ac_useropt
951     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952     case $ac_user_opts in
953       *"
954 "enable_$ac_useropt"
955 "*) ;;
956       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957          ac_unrecognized_sep=', ';;
958     esac
959     eval enable_$ac_useropt=no ;;
960
961   -docdir | --docdir | --docdi | --doc | --do)
962     ac_prev=docdir ;;
963   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964     docdir=$ac_optarg ;;
965
966   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967     ac_prev=dvidir ;;
968   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969     dvidir=$ac_optarg ;;
970
971   -enable-* | --enable-*)
972     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973     # Reject names that are not valid shell variable names.
974     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975       as_fn_error $? "invalid feature name: $ac_useropt"
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=\$ac_optarg ;;
986
987   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989   | --exec | --exe | --ex)
990     ac_prev=exec_prefix ;;
991   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993   | --exec=* | --exe=* | --ex=*)
994     exec_prefix=$ac_optarg ;;
995
996   -gas | --gas | --ga | --g)
997     # Obsolete; use --with-gas.
998     with_gas=yes ;;
999
1000   -help | --help | --hel | --he | -h)
1001     ac_init_help=long ;;
1002   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003     ac_init_help=recursive ;;
1004   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005     ac_init_help=short ;;
1006
1007   -host | --host | --hos | --ho)
1008     ac_prev=host_alias ;;
1009   -host=* | --host=* | --hos=* | --ho=*)
1010     host_alias=$ac_optarg ;;
1011
1012   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013     ac_prev=htmldir ;;
1014   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015   | --ht=*)
1016     htmldir=$ac_optarg ;;
1017
1018   -includedir | --includedir | --includedi | --included | --include \
1019   | --includ | --inclu | --incl | --inc)
1020     ac_prev=includedir ;;
1021   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022   | --includ=* | --inclu=* | --incl=* | --inc=*)
1023     includedir=$ac_optarg ;;
1024
1025   -infodir | --infodir | --infodi | --infod | --info | --inf)
1026     ac_prev=infodir ;;
1027   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028     infodir=$ac_optarg ;;
1029
1030   -libdir | --libdir | --libdi | --libd)
1031     ac_prev=libdir ;;
1032   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033     libdir=$ac_optarg ;;
1034
1035   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036   | --libexe | --libex | --libe)
1037     ac_prev=libexecdir ;;
1038   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039   | --libexe=* | --libex=* | --libe=*)
1040     libexecdir=$ac_optarg ;;
1041
1042   -localedir | --localedir | --localedi | --localed | --locale)
1043     ac_prev=localedir ;;
1044   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045     localedir=$ac_optarg ;;
1046
1047   -localstatedir | --localstatedir | --localstatedi | --localstated \
1048   | --localstate | --localstat | --localsta | --localst | --locals)
1049     ac_prev=localstatedir ;;
1050   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052     localstatedir=$ac_optarg ;;
1053
1054   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055     ac_prev=mandir ;;
1056   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057     mandir=$ac_optarg ;;
1058
1059   -nfp | --nfp | --nf)
1060     # Obsolete; use --without-fp.
1061     with_fp=no ;;
1062
1063   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064   | --no-cr | --no-c | -n)
1065     no_create=yes ;;
1066
1067   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069     no_recursion=yes ;;
1070
1071   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073   | --oldin | --oldi | --old | --ol | --o)
1074     ac_prev=oldincludedir ;;
1075   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078     oldincludedir=$ac_optarg ;;
1079
1080   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081     ac_prev=prefix ;;
1082   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083     prefix=$ac_optarg ;;
1084
1085   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086   | --program-pre | --program-pr | --program-p)
1087     ac_prev=program_prefix ;;
1088   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090     program_prefix=$ac_optarg ;;
1091
1092   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093   | --program-suf | --program-su | --program-s)
1094     ac_prev=program_suffix ;;
1095   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097     program_suffix=$ac_optarg ;;
1098
1099   -program-transform-name | --program-transform-name \
1100   | --program-transform-nam | --program-transform-na \
1101   | --program-transform-n | --program-transform- \
1102   | --program-transform | --program-transfor \
1103   | --program-transfo | --program-transf \
1104   | --program-trans | --program-tran \
1105   | --progr-tra | --program-tr | --program-t)
1106     ac_prev=program_transform_name ;;
1107   -program-transform-name=* | --program-transform-name=* \
1108   | --program-transform-nam=* | --program-transform-na=* \
1109   | --program-transform-n=* | --program-transform-=* \
1110   | --program-transform=* | --program-transfor=* \
1111   | --program-transfo=* | --program-transf=* \
1112   | --program-trans=* | --program-tran=* \
1113   | --progr-tra=* | --program-tr=* | --program-t=*)
1114     program_transform_name=$ac_optarg ;;
1115
1116   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117     ac_prev=pdfdir ;;
1118   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119     pdfdir=$ac_optarg ;;
1120
1121   -psdir | --psdir | --psdi | --psd | --ps)
1122     ac_prev=psdir ;;
1123   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124     psdir=$ac_optarg ;;
1125
1126   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127   | -silent | --silent | --silen | --sile | --sil)
1128     silent=yes ;;
1129
1130   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131     ac_prev=sbindir ;;
1132   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133   | --sbi=* | --sb=*)
1134     sbindir=$ac_optarg ;;
1135
1136   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138   | --sharedst | --shareds | --shared | --share | --shar \
1139   | --sha | --sh)
1140     ac_prev=sharedstatedir ;;
1141   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144   | --sha=* | --sh=*)
1145     sharedstatedir=$ac_optarg ;;
1146
1147   -site | --site | --sit)
1148     ac_prev=site ;;
1149   -site=* | --site=* | --sit=*)
1150     site=$ac_optarg ;;
1151
1152   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153     ac_prev=srcdir ;;
1154   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155     srcdir=$ac_optarg ;;
1156
1157   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158   | --syscon | --sysco | --sysc | --sys | --sy)
1159     ac_prev=sysconfdir ;;
1160   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162     sysconfdir=$ac_optarg ;;
1163
1164   -target | --target | --targe | --targ | --tar | --ta | --t)
1165     ac_prev=target_alias ;;
1166   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167     target_alias=$ac_optarg ;;
1168
1169   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170     verbose=yes ;;
1171
1172   -version | --version | --versio | --versi | --vers | -V)
1173     ac_init_version=: ;;
1174
1175   -with-* | --with-*)
1176     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179       as_fn_error $? "invalid package name: $ac_useropt"
1180     ac_useropt_orig=$ac_useropt
1181     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182     case $ac_user_opts in
1183       *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187          ac_unrecognized_sep=', ';;
1188     esac
1189     eval with_$ac_useropt=\$ac_optarg ;;
1190
1191   -without-* | --without-*)
1192     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195       as_fn_error $? "invalid package name: $ac_useropt"
1196     ac_useropt_orig=$ac_useropt
1197     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198     case $ac_user_opts in
1199       *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203          ac_unrecognized_sep=', ';;
1204     esac
1205     eval with_$ac_useropt=no ;;
1206
1207   --x)
1208     # Obsolete; use --with-x.
1209     with_x=yes ;;
1210
1211   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212   | --x-incl | --x-inc | --x-in | --x-i)
1213     ac_prev=x_includes ;;
1214   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216     x_includes=$ac_optarg ;;
1217
1218   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220     ac_prev=x_libraries ;;
1221   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223     x_libraries=$ac_optarg ;;
1224
1225   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1227     ;;
1228
1229   *=*)
1230     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231     # Reject names that are not valid shell variable names.
1232     case $ac_envvar in #(
1233       '' | [0-9]* | *[!_$as_cr_alnum]* )
1234       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235     esac
1236     eval $ac_envvar=\$ac_optarg
1237     export $ac_envvar ;;
1238
1239   *)
1240     # FIXME: should be removed in autoconf 3.0.
1241     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245     ;;
1246
1247   esac
1248 done
1249
1250 if test -n "$ac_prev"; then
1251   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252   as_fn_error $? "missing argument to $ac_option"
1253 fi
1254
1255 if test -n "$ac_unrecognized_opts"; then
1256   case $enable_option_checking in
1257     no) ;;
1258     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260   esac
1261 fi
1262
1263 # Check all directory arguments for consistency.
1264 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265                 datadir sysconfdir sharedstatedir localstatedir includedir \
1266                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267                 libdir localedir mandir
1268 do
1269   eval ac_val=\$$ac_var
1270   # Remove trailing slashes.
1271   case $ac_val in
1272     */ )
1273       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274       eval $ac_var=\$ac_val;;
1275   esac
1276   # Be sure to have absolute directory names.
1277   case $ac_val in
1278     [\\/$]* | ?:[\\/]* )  continue;;
1279     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280   esac
1281   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1283
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1290
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293   if test "x$build_alias" = x; then
1294     cross_compiling=maybe
1295   elif test "x$build_alias" != "x$host_alias"; then
1296     cross_compiling=yes
1297   fi
1298 fi
1299
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303 test "$silent" = yes && exec 6>/dev/null
1304
1305
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309   as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   as_fn_error $? "pwd does not report name of working directory"
1312
1313
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316   ac_srcdir_defaulted=yes
1317   # Try the directory containing this script, then the parent directory.
1318   ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320          X"$as_myself" : 'X\(//\)[^/]' \| \
1321          X"$as_myself" : 'X\(//\)$' \| \
1322          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)[^/].*/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)$/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\).*/{
1337             s//\1/
1338             q
1339           }
1340           s/.*/./; q'`
1341   srcdir=$ac_confdir
1342   if test ! -r "$srcdir/$ac_unique_file"; then
1343     srcdir=..
1344   fi
1345 else
1346   ac_srcdir_defaulted=no
1347 fi
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355         pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358   srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_env_${ac_var}_value=\$${ac_var}
1369   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1372
1373 #
1374 # Report the --help message.
1375 #
1376 if test "$ac_init_help" = "long"; then
1377   # Omit some internal or obsolete options to make the list less imposing.
1378   # This message is too long to be a string in the A/UX 3.1 sh.
1379   cat <<_ACEOF
1380 \`configure' configures tlm 1.0.3 to adapt to many kinds of systems.
1381
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE.  See below for descriptions of some of the useful variables.
1386
1387 Defaults for the options are specified in brackets.
1388
1389 Configuration:
1390   -h, --help              display this help and exit
1391       --help=short        display options specific to this package
1392       --help=recursive    display the short help of all the included packages
1393   -V, --version           display version information and exit
1394   -q, --quiet, --silent   do not print \`checking ...' messages
1395       --cache-file=FILE   cache test results in FILE [disabled]
1396   -C, --config-cache      alias for \`--cache-file=config.cache'
1397   -n, --no-create         do not create output files
1398       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399
1400 Installation directories:
1401   --prefix=PREFIX         install architecture-independent files in PREFIX
1402                           [$ac_default_prefix]
1403   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1404                           [PREFIX]
1405
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1410
1411 For better control, use the options below.
1412
1413 Fine tuning of the installation directories:
1414   --bindir=DIR            user executables [EPREFIX/bin]
1415   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1416   --libexecdir=DIR        program executables [EPREFIX/libexec]
1417   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1418   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1419   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1420   --libdir=DIR            object code libraries [EPREFIX/lib]
1421   --includedir=DIR        C header files [PREFIX/include]
1422   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1423   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1424   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1425   --infodir=DIR           info documentation [DATAROOTDIR/info]
1426   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1427   --mandir=DIR            man documentation [DATAROOTDIR/man]
1428   --docdir=DIR            documentation root [DATAROOTDIR/doc/tlm]
1429   --htmldir=DIR           html documentation [DOCDIR]
1430   --dvidir=DIR            dvi documentation [DOCDIR]
1431   --pdfdir=DIR            pdf documentation [DOCDIR]
1432   --psdir=DIR             ps documentation [DOCDIR]
1433 _ACEOF
1434
1435   cat <<\_ACEOF
1436
1437 Program names:
1438   --program-prefix=PREFIX            prepend PREFIX to installed program names
1439   --program-suffix=SUFFIX            append SUFFIX to installed program names
1440   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1441
1442 System types:
1443   --build=BUILD     configure for building on BUILD [guessed]
1444   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449   case $ac_init_help in
1450      short | recursive ) echo "Configuration of tlm 1.0.3:";;
1451    esac
1452   cat <<\_ACEOF
1453
1454 Optional Features:
1455   --disable-option-checking  ignore unrecognized --enable/--with options
1456   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1457   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1458   --enable-silent-rules   less verbose build output (undo: "make V=1")
1459   --disable-silent-rules  verbose build output (undo: "make V=0")
1460   --enable-static[=PKGS]  build static libraries [default=no]
1461   --enable-shared[=PKGS]  build shared libraries [default=yes]
1462   --enable-fast-install[=PKGS]
1463                           optimize for fast installation [default=yes]
1464   --enable-dependency-tracking
1465                           do not reject slow dependency extractors
1466   --disable-dependency-tracking
1467                           speeds up one-time build
1468   --disable-libtool-lock  avoid locking (might break parallel builds)
1469   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1470   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1471   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1472  --enable-debug enable debug features
1473  --enable-tests build unit tests
1474  --enable-examples enable examples
1475   --enable-sockets-path=path  enable dbus sockets path at location
1476            "path" instead of default "/var/run/tlm"
1477   --enable-gum build for gumd plugin
1478
1479 Optional Packages:
1480   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1483                           both]
1484   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1485   --with-sysroot=DIR Search for dependent libraries within DIR
1486                         (or the compiler's sysroot if not specified).
1487   --with-html-dir=PATH    path to installed docs
1488
1489 Some influential environment variables:
1490   CC          C compiler command
1491   CFLAGS      C compiler flags
1492   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1493               nonstandard directory <lib dir>
1494   LIBS        libraries to pass to the linker, e.g. -l<library>
1495   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496               you have headers in a nonstandard directory <include dir>
1497   CPP         C preprocessor
1498   PKG_CONFIG  path to pkg-config utility
1499   PKG_CONFIG_PATH
1500               directories to add to pkg-config's search path
1501   PKG_CONFIG_LIBDIR
1502               path overriding pkg-config's built-in search path
1503   GTKDOC_DEPS_CFLAGS
1504               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1505   GTKDOC_DEPS_LIBS
1506               linker flags for GTKDOC_DEPS, overriding pkg-config
1507   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1508   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1509   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1510   GIO_LIBS    linker flags for GIO, overriding pkg-config
1511   GMODULE_CFLAGS
1512               C compiler flags for GMODULE, overriding pkg-config
1513   GMODULE_LIBS
1514               linker flags for GMODULE, overriding pkg-config
1515   CHECK_CFLAGS
1516               C compiler flags for CHECK, overriding pkg-config
1517   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1518   ELEMENTARY_CFLAGS
1519               C compiler flags for ELEMENTARY, overriding pkg-config
1520   ELEMENTARY_LIBS
1521               linker flags for ELEMENTARY, overriding pkg-config
1522   LIBGUM_CFLAGS
1523               C compiler flags for LIBGUM, overriding pkg-config
1524   LIBGUM_LIBS linker flags for LIBGUM, overriding pkg-config
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to the package provider.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535   # If there are subdirs, report their specific --help.
1536   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537     test -d "$ac_dir" ||
1538       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539       continue
1540     ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546   # A ".." for each directory in $ac_dir_suffix.
1547   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548   case $ac_top_builddir_sub in
1549   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551   esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559   .)  # We are building in place.
1560     ac_srcdir=.
1561     ac_top_srcdir=$ac_top_builddir_sub
1562     ac_abs_top_srcdir=$ac_pwd ;;
1563   [\\/]* | ?:[\\/]* )  # Absolute name.
1564     ac_srcdir=$srcdir$ac_dir_suffix;
1565     ac_top_srcdir=$srcdir
1566     ac_abs_top_srcdir=$srcdir ;;
1567   *) # Relative name.
1568     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569     ac_top_srcdir=$ac_top_build_prefix$srcdir
1570     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574     cd "$ac_dir" || { ac_status=$?; continue; }
1575     # Check for guested configure.
1576     if test -f "$ac_srcdir/configure.gnu"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579     elif test -f "$ac_srcdir/configure"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure" --help=recursive
1582     else
1583       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584     fi || ac_status=$?
1585     cd "$ac_pwd" || { ac_status=$?; break; }
1586   done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591   cat <<\_ACEOF
1592 tlm configure 1.0.3
1593 generated by GNU Autoconf 2.69
1594
1595 Copyright (C) 2012 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599   exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612   rm -f conftest.$ac_objext
1613   if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_compile") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } && {
1629          test -z "$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        } && test -s conftest.$ac_objext; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637         ac_retval=1
1638 fi
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_compile
1643
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_link ()
1648 {
1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650   rm -f conftest.$ac_objext conftest$ac_exeext
1651   if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_link") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } && {
1667          test -z "$ac_c_werror_flag" ||
1668          test ! -s conftest.err
1669        } && test -s conftest$ac_exeext && {
1670          test "$cross_compiling" = yes ||
1671          test -x conftest$ac_exeext
1672        }; then :
1673   ac_retval=0
1674 else
1675   $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678         ac_retval=1
1679 fi
1680   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1681   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1682   # interfere with the next link command; also delete a directory that is
1683   # left behind by Apple's compiler.  We do this before executing the actions.
1684   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686   as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_link
1689
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700   $as_echo_n "(cached) " >&6
1701 else
1702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h.  */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708   eval "$3=yes"
1709 else
1710   eval "$3=no"
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 fi
1714 eval ac_res=\$$3
1715                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_compile
1720
1721 # ac_fn_c_try_cpp LINENO
1722 # ----------------------
1723 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_cpp ()
1725 {
1726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727   if { { ac_try="$ac_cpp conftest.$ac_ext"
1728 case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1735   ac_status=$?
1736   if test -s conftest.err; then
1737     grep -v '^ *+' conftest.err >conftest.er1
1738     cat conftest.er1 >&5
1739     mv -f conftest.er1 conftest.err
1740   fi
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; } > conftest.i && {
1743          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1744          test ! -s conftest.err
1745        }; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751     ac_retval=1
1752 fi
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_cpp
1757
1758 # ac_fn_c_try_run LINENO
1759 # ----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1761 # that executables *can* be run.
1762 ac_fn_c_try_run ()
1763 {
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_link") 2>&5
1773   ac_status=$?
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776   { { case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_try") 2>&5
1783   ac_status=$?
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; }; }; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: program exited with status $ac_status" >&5
1789        $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792        ac_retval=$ac_status
1793 fi
1794   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_run
1799
1800 # ac_fn_c_check_func LINENO FUNC VAR
1801 # ----------------------------------
1802 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1803 ac_fn_c_check_func ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809   $as_echo_n "(cached) " >&6
1810 else
1811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h.  */
1813 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1815 #define $2 innocuous_$2
1816
1817 /* System header to define __stub macros and hopefully few prototypes,
1818     which can conflict with char $2 (); below.
1819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1820     <limits.h> exists even on freestanding compilers.  */
1821
1822 #ifdef __STDC__
1823 # include <limits.h>
1824 #else
1825 # include <assert.h>
1826 #endif
1827
1828 #undef $2
1829
1830 /* Override any GCC internal prototype to avoid an error.
1831    Use char because int might match the return type of a GCC
1832    builtin and then its argument prototype would still apply.  */
1833 #ifdef __cplusplus
1834 extern "C"
1835 #endif
1836 char $2 ();
1837 /* The GNU C library defines this for functions which it implements
1838     to always fail with ENOSYS.  Some functions are actually named
1839     something starting with __ and the normal name is an alias.  */
1840 #if defined __stub_$2 || defined __stub___$2
1841 choke me
1842 #endif
1843
1844 int
1845 main ()
1846 {
1847 return $2 ();
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_link "$LINENO"; then :
1853   eval "$3=yes"
1854 else
1855   eval "$3=no"
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext \
1858     conftest$ac_exeext conftest.$ac_ext
1859 fi
1860 eval ac_res=\$$3
1861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_func
1866
1867 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868 # -------------------------------------------------------
1869 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870 # the include files in INCLUDES and setting the cache variable VAR
1871 # accordingly.
1872 ac_fn_c_check_header_mongrel ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   if eval \${$3+:} false; then :
1876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879   $as_echo_n "(cached) " >&6
1880 fi
1881 eval ac_res=\$$3
1882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 else
1885   # Is the header compilable?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887 $as_echo_n "checking $2 usability... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894   ac_header_compiler=yes
1895 else
1896   ac_header_compiler=no
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900 $as_echo "$ac_header_compiler" >&6; }
1901
1902 # Is the header present?
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904 $as_echo_n "checking $2 presence... " >&6; }
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 #include <$2>
1908 _ACEOF
1909 if ac_fn_c_try_cpp "$LINENO"; then :
1910   ac_header_preproc=yes
1911 else
1912   ac_header_preproc=no
1913 fi
1914 rm -f conftest.err conftest.i conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916 $as_echo "$ac_header_preproc" >&6; }
1917
1918 # So?  What about this header?
1919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920   yes:no: )
1921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925     ;;
1926   no:yes:* )
1927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1930 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1934 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937     ;;
1938 esac
1939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942   $as_echo_n "(cached) " >&6
1943 else
1944   eval "$3=\$ac_header_compiler"
1945 fi
1946 eval ac_res=\$$3
1947                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 fi
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_c_check_header_mongrel
1953 cat >config.log <<_ACEOF
1954 This file contains any messages produced by compilers while
1955 running configure, to aid debugging if configure makes a mistake.
1956
1957 It was created by tlm $as_me 1.0.3, which was
1958 generated by GNU Autoconf 2.69.  Invocation command line was
1959
1960   $ $0 $@
1961
1962 _ACEOF
1963 exec 5>>config.log
1964 {
1965 cat <<_ASUNAME
1966 ## --------- ##
1967 ## Platform. ##
1968 ## --------- ##
1969
1970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975
1976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1977 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1978
1979 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1980 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1982 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1983 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1984 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1985 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1986
1987 _ASUNAME
1988
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994     $as_echo "PATH: $as_dir"
1995   done
1996 IFS=$as_save_IFS
1997
1998 } >&5
1999
2000 cat >&5 <<_ACEOF
2001
2002
2003 ## ----------- ##
2004 ## Core tests. ##
2005 ## ----------- ##
2006
2007 _ACEOF
2008
2009
2010 # Keep a trace of the command line.
2011 # Strip out --no-create and --no-recursion so they do not pile up.
2012 # Strip out --silent because we don't want to record it for future runs.
2013 # Also quote any args containing shell meta-characters.
2014 # Make two passes to allow for proper duplicate-argument suppression.
2015 ac_configure_args=
2016 ac_configure_args0=
2017 ac_configure_args1=
2018 ac_must_keep_next=false
2019 for ac_pass in 1 2
2020 do
2021   for ac_arg
2022   do
2023     case $ac_arg in
2024     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026     | -silent | --silent | --silen | --sile | --sil)
2027       continue ;;
2028     *\'*)
2029       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030     esac
2031     case $ac_pass in
2032     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033     2)
2034       as_fn_append ac_configure_args1 " '$ac_arg'"
2035       if test $ac_must_keep_next = true; then
2036         ac_must_keep_next=false # Got value, back to normal.
2037       else
2038         case $ac_arg in
2039           *=* | --config-cache | -C | -disable-* | --disable-* \
2040           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042           | -with-* | --with-* | -without-* | --without-* | --x)
2043             case "$ac_configure_args0 " in
2044               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045             esac
2046             ;;
2047           -* ) ac_must_keep_next=true ;;
2048         esac
2049       fi
2050       as_fn_append ac_configure_args " '$ac_arg'"
2051       ;;
2052     esac
2053   done
2054 done
2055 { ac_configure_args0=; unset ac_configure_args0;}
2056 { ac_configure_args1=; unset ac_configure_args1;}
2057
2058 # When interrupted or exit'd, cleanup temporary files, and complete
2059 # config.log.  We remove comments because anyway the quotes in there
2060 # would cause problems or look ugly.
2061 # WARNING: Use '\'' to represent an apostrophe within the trap.
2062 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063 trap 'exit_status=$?
2064   # Save into config.log some information that might help in debugging.
2065   {
2066     echo
2067
2068     $as_echo "## ---------------- ##
2069 ## Cache variables. ##
2070 ## ---------------- ##"
2071     echo
2072     # The following way of writing the cache mishandles newlines in values,
2073 (
2074   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2075     eval ac_val=\$$ac_var
2076     case $ac_val in #(
2077     *${as_nl}*)
2078       case $ac_var in #(
2079       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2081       esac
2082       case $ac_var in #(
2083       _ | IFS | as_nl) ;; #(
2084       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2085       *) { eval $ac_var=; unset $ac_var;} ;;
2086       esac ;;
2087     esac
2088   done
2089   (set) 2>&1 |
2090     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2091     *${as_nl}ac_space=\ *)
2092       sed -n \
2093         "s/'\''/'\''\\\\'\'''\''/g;
2094           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2095       ;; #(
2096     *)
2097       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2098       ;;
2099     esac |
2100     sort
2101 )
2102     echo
2103
2104     $as_echo "## ----------------- ##
2105 ## Output variables. ##
2106 ## ----------------- ##"
2107     echo
2108     for ac_var in $ac_subst_vars
2109     do
2110       eval ac_val=\$$ac_var
2111       case $ac_val in
2112       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113       esac
2114       $as_echo "$ac_var='\''$ac_val'\''"
2115     done | sort
2116     echo
2117
2118     if test -n "$ac_subst_files"; then
2119       $as_echo "## ------------------- ##
2120 ## File substitutions. ##
2121 ## ------------------- ##"
2122       echo
2123       for ac_var in $ac_subst_files
2124       do
2125         eval ac_val=\$$ac_var
2126         case $ac_val in
2127         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128         esac
2129         $as_echo "$ac_var='\''$ac_val'\''"
2130       done | sort
2131       echo
2132     fi
2133
2134     if test -s confdefs.h; then
2135       $as_echo "## ----------- ##
2136 ## confdefs.h. ##
2137 ## ----------- ##"
2138       echo
2139       cat confdefs.h
2140       echo
2141     fi
2142     test "$ac_signal" != 0 &&
2143       $as_echo "$as_me: caught signal $ac_signal"
2144     $as_echo "$as_me: exit $exit_status"
2145   } >&5
2146   rm -f core *.core core.conftest.* &&
2147     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2148     exit $exit_status
2149 ' 0
2150 for ac_signal in 1 2 13 15; do
2151   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2152 done
2153 ac_signal=0
2154
2155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2156 rm -f -r conftest* confdefs.h
2157
2158 $as_echo "/* confdefs.h */" > confdefs.h
2159
2160 # Predefined preprocessor variables.
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_NAME "$PACKAGE_NAME"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_STRING "$PACKAGE_STRING"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_URL "$PACKAGE_URL"
2184 _ACEOF
2185
2186
2187 # Let the site file select an alternate cache file if it wants to.
2188 # Prefer an explicitly selected file to automatically selected ones.
2189 ac_site_file1=NONE
2190 ac_site_file2=NONE
2191 if test -n "$CONFIG_SITE"; then
2192   # We do not want a PATH search for config.site.
2193   case $CONFIG_SITE in #((
2194     -*)  ac_site_file1=./$CONFIG_SITE;;
2195     */*) ac_site_file1=$CONFIG_SITE;;
2196     *)   ac_site_file1=./$CONFIG_SITE;;
2197   esac
2198 elif test "x$prefix" != xNONE; then
2199   ac_site_file1=$prefix/share/config.site
2200   ac_site_file2=$prefix/etc/config.site
2201 else
2202   ac_site_file1=$ac_default_prefix/share/config.site
2203   ac_site_file2=$ac_default_prefix/etc/config.site
2204 fi
2205 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2206 do
2207   test "x$ac_site_file" = xNONE && continue
2208   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2210 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2211     sed 's/^/| /' "$ac_site_file" >&5
2212     . "$ac_site_file" \
2213       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 as_fn_error $? "failed to load site script $ac_site_file
2216 See \`config.log' for more details" "$LINENO" 5; }
2217   fi
2218 done
2219
2220 if test -r "$cache_file"; then
2221   # Some versions of bash will fail to source /dev/null (special files
2222   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2223   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2224     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2225 $as_echo "$as_me: loading cache $cache_file" >&6;}
2226     case $cache_file in
2227       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2228       *)                      . "./$cache_file";;
2229     esac
2230   fi
2231 else
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2233 $as_echo "$as_me: creating cache $cache_file" >&6;}
2234   >$cache_file
2235 fi
2236
2237 # Check that the precious variables saved in the cache have kept the same
2238 # value.
2239 ac_cache_corrupted=false
2240 for ac_var in $ac_precious_vars; do
2241   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242   eval ac_new_set=\$ac_env_${ac_var}_set
2243   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244   eval ac_new_val=\$ac_env_${ac_var}_value
2245   case $ac_old_set,$ac_new_set in
2246     set,)
2247       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249       ac_cache_corrupted=: ;;
2250     ,set)
2251       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253       ac_cache_corrupted=: ;;
2254     ,);;
2255     *)
2256       if test "x$ac_old_val" != "x$ac_new_val"; then
2257         # differences in whitespace do not lead to failure.
2258         ac_old_val_w=`echo x $ac_old_val`
2259         ac_new_val_w=`echo x $ac_new_val`
2260         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263           ac_cache_corrupted=:
2264         else
2265           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267           eval $ac_var=\$ac_old_val
2268         fi
2269         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2270 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2271         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2272 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2273       fi;;
2274   esac
2275   # Pass precious variables to config.status.
2276   if test "$ac_new_set" = set; then
2277     case $ac_new_val in
2278     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279     *) ac_arg=$ac_var=$ac_new_val ;;
2280     esac
2281     case " $ac_configure_args " in
2282       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2283       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2284     esac
2285   fi
2286 done
2287 if $ac_cache_corrupted; then
2288   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293 fi
2294 ## -------------------- ##
2295 ## Main body of script. ##
2296 ## -------------------- ##
2297
2298 ac_ext=c
2299 ac_cpp='$CPP $CPPFLAGS'
2300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
2304
2305
2306 ac_config_headers="$ac_config_headers config.h"
2307
2308
2309
2310 am__api_version='1.14'
2311
2312 ac_aux_dir=
2313 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2314   if test -f "$ac_dir/install-sh"; then
2315     ac_aux_dir=$ac_dir
2316     ac_install_sh="$ac_aux_dir/install-sh -c"
2317     break
2318   elif test -f "$ac_dir/install.sh"; then
2319     ac_aux_dir=$ac_dir
2320     ac_install_sh="$ac_aux_dir/install.sh -c"
2321     break
2322   elif test -f "$ac_dir/shtool"; then
2323     ac_aux_dir=$ac_dir
2324     ac_install_sh="$ac_aux_dir/shtool install -c"
2325     break
2326   fi
2327 done
2328 if test -z "$ac_aux_dir"; then
2329   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2330 fi
2331
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2339
2340
2341 # Find a good install program.  We prefer a C program (faster),
2342 # so one script is as good as another.  But avoid the broken or
2343 # incompatible versions:
2344 # SysV /etc/install, /usr/sbin/install
2345 # SunOS /usr/etc/install
2346 # IRIX /sbin/install
2347 # AIX /bin/install
2348 # AmigaOS /C/install, which installs bootblocks on floppy discs
2349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2352 # OS/2's system install, which has a completely different semantic
2353 # ./install, which can be erroneously created by make from ./install.sh.
2354 # Reject install programs that cannot install multiple files.
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2356 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2357 if test -z "$INSTALL"; then
2358 if ${ac_cv_path_install+:} false; then :
2359   $as_echo_n "(cached) " >&6
2360 else
2361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2363 do
2364   IFS=$as_save_IFS
2365   test -z "$as_dir" && as_dir=.
2366     # Account for people who put trailing slashes in PATH elements.
2367 case $as_dir/ in #((
2368   ./ | .// | /[cC]/* | \
2369   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2370   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2371   /usr/ucb/* ) ;;
2372   *)
2373     # OSF1 and SCO ODT 3.0 have their own names for install.
2374     # Don't use installbsd from OSF since it installs stuff as root
2375     # by default.
2376     for ac_prog in ginstall scoinst install; do
2377       for ac_exec_ext in '' $ac_executable_extensions; do
2378         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2379           if test $ac_prog = install &&
2380             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381             # AIX install.  It has an incompatible calling convention.
2382             :
2383           elif test $ac_prog = install &&
2384             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2385             # program-specific install script used by HP pwplus--don't use.
2386             :
2387           else
2388             rm -rf conftest.one conftest.two conftest.dir
2389             echo one > conftest.one
2390             echo two > conftest.two
2391             mkdir conftest.dir
2392             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2393               test -s conftest.one && test -s conftest.two &&
2394               test -s conftest.dir/conftest.one &&
2395               test -s conftest.dir/conftest.two
2396             then
2397               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2398               break 3
2399             fi
2400           fi
2401         fi
2402       done
2403     done
2404     ;;
2405 esac
2406
2407   done
2408 IFS=$as_save_IFS
2409
2410 rm -rf conftest.one conftest.two conftest.dir
2411
2412 fi
2413   if test "${ac_cv_path_install+set}" = set; then
2414     INSTALL=$ac_cv_path_install
2415   else
2416     # As a last resort, use the slow shell script.  Don't cache a
2417     # value for INSTALL within a source directory, because that will
2418     # break other packages using the cache if that directory is
2419     # removed, or if the value is a relative name.
2420     INSTALL=$ac_install_sh
2421   fi
2422 fi
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2424 $as_echo "$INSTALL" >&6; }
2425
2426 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2427 # It thinks the first close brace ends the variable substitution.
2428 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2429
2430 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2431
2432 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2433
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2435 $as_echo_n "checking whether build environment is sane... " >&6; }
2436 # Reject unsafe characters in $srcdir or the absolute working directory
2437 # name.  Accept space and tab only in the latter.
2438 am_lf='
2439 '
2440 case `pwd` in
2441   *[\\\"\#\$\&\'\`$am_lf]*)
2442     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2443 esac
2444 case $srcdir in
2445   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2446     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2447 esac
2448
2449 # Do 'set' in a subshell so we don't clobber the current shell's
2450 # arguments.  Must try -L first in case configure is actually a
2451 # symlink; some systems play weird games with the mod time of symlinks
2452 # (eg FreeBSD returns the mod time of the symlink's containing
2453 # directory).
2454 if (
2455    am_has_slept=no
2456    for am_try in 1 2; do
2457      echo "timestamp, slept: $am_has_slept" > conftest.file
2458      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2459      if test "$*" = "X"; then
2460         # -L didn't work.
2461         set X `ls -t "$srcdir/configure" conftest.file`
2462      fi
2463      if test "$*" != "X $srcdir/configure conftest.file" \
2464         && test "$*" != "X conftest.file $srcdir/configure"; then
2465
2466         # If neither matched, then we have a broken ls.  This can happen
2467         # if, for instance, CONFIG_SHELL is bash and it inherits a
2468         # broken ls alias from the environment.  This has actually
2469         # happened.  Such a system could not be considered "sane".
2470         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2471   alias in your environment" "$LINENO" 5
2472      fi
2473      if test "$2" = conftest.file || test $am_try -eq 2; then
2474        break
2475      fi
2476      # Just in case.
2477      sleep 1
2478      am_has_slept=yes
2479    done
2480    test "$2" = conftest.file
2481    )
2482 then
2483    # Ok.
2484    :
2485 else
2486    as_fn_error $? "newly created file is older than distributed files!
2487 Check your system clock" "$LINENO" 5
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2490 $as_echo "yes" >&6; }
2491 # If we didn't sleep, we still need to ensure time stamps of config.status and
2492 # generated files are strictly newer.
2493 am_sleep_pid=
2494 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2495   ( sleep 1 ) &
2496   am_sleep_pid=$!
2497 fi
2498
2499 rm -f conftest.file
2500
2501 test "$program_prefix" != NONE &&
2502   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2503 # Use a double $ so make ignores it.
2504 test "$program_suffix" != NONE &&
2505   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2506 # Double any \ or $.
2507 # By default was `s,x,x', remove it if useless.
2508 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2509 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2510
2511 # expand $ac_aux_dir to an absolute path
2512 am_aux_dir=`cd $ac_aux_dir && pwd`
2513
2514 if test x"${MISSING+set}" != xset; then
2515   case $am_aux_dir in
2516   *\ * | *\     *)
2517     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2518   *)
2519     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2520   esac
2521 fi
2522 # Use eval to expand $SHELL
2523 if eval "$MISSING --is-lightweight"; then
2524   am_missing_run="$MISSING "
2525 else
2526   am_missing_run=
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2528 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2529 fi
2530
2531 if test x"${install_sh}" != xset; then
2532   case $am_aux_dir in
2533   *\ * | *\     *)
2534     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2535   *)
2536     install_sh="\${SHELL} $am_aux_dir/install-sh"
2537   esac
2538 fi
2539
2540 # Installed binaries are usually stripped using 'strip' when the user
2541 # run "make install-strip".  However 'strip' might not be the right
2542 # tool to use in cross-compilation environments, therefore Automake
2543 # will honor the 'STRIP' environment variable to overrule this program.
2544 if test "$cross_compiling" != no; then
2545   if test -n "$ac_tool_prefix"; then
2546   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2547 set dummy ${ac_tool_prefix}strip; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_STRIP+:} false; then :
2551   $as_echo_n "(cached) " >&6
2552 else
2553   if test -n "$STRIP"; then
2554   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559   IFS=$as_save_IFS
2560   test -z "$as_dir" && as_dir=.
2561     for ac_exec_ext in '' $ac_executable_extensions; do
2562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2563     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565     break 2
2566   fi
2567 done
2568   done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 STRIP=$ac_cv_prog_STRIP
2574 if test -n "$STRIP"; then
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2576 $as_echo "$STRIP" >&6; }
2577 else
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582
2583 fi
2584 if test -z "$ac_cv_prog_STRIP"; then
2585   ac_ct_STRIP=$STRIP
2586   # Extract the first word of "strip", so it can be a program name with args.
2587 set dummy strip; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2591   $as_echo_n "(cached) " >&6
2592 else
2593   if test -n "$ac_ct_STRIP"; then
2594   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     for ac_exec_ext in '' $ac_executable_extensions; do
2602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603     ac_cv_prog_ac_ct_STRIP="strip"
2604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608   done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2614 if test -n "$ac_ct_STRIP"; then
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2616 $as_echo "$ac_ct_STRIP" >&6; }
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622   if test "x$ac_ct_STRIP" = x; then
2623     STRIP=":"
2624   else
2625     case $cross_compiling:$ac_tool_warned in
2626 yes:)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2629 ac_tool_warned=yes ;;
2630 esac
2631     STRIP=$ac_ct_STRIP
2632   fi
2633 else
2634   STRIP="$ac_cv_prog_STRIP"
2635 fi
2636
2637 fi
2638 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2641 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2642 if test -z "$MKDIR_P"; then
2643   if ${ac_cv_path_mkdir+:} false; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2648 do
2649   IFS=$as_save_IFS
2650   test -z "$as_dir" && as_dir=.
2651     for ac_prog in mkdir gmkdir; do
2652          for ac_exec_ext in '' $ac_executable_extensions; do
2653            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2654            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2655              'mkdir (GNU coreutils) '* | \
2656              'mkdir (coreutils) '* | \
2657              'mkdir (fileutils) '4.1*)
2658                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2659                break 3;;
2660            esac
2661          done
2662        done
2663   done
2664 IFS=$as_save_IFS
2665
2666 fi
2667
2668   test -d ./--version && rmdir ./--version
2669   if test "${ac_cv_path_mkdir+set}" = set; then
2670     MKDIR_P="$ac_cv_path_mkdir -p"
2671   else
2672     # As a last resort, use the slow shell script.  Don't cache a
2673     # value for MKDIR_P within a source directory, because that will
2674     # break other packages using the cache if that directory is
2675     # removed, or if the value is a relative name.
2676     MKDIR_P="$ac_install_sh -d"
2677   fi
2678 fi
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2680 $as_echo "$MKDIR_P" >&6; }
2681
2682 for ac_prog in gawk mawk nawk awk
2683 do
2684   # Extract the first word of "$ac_prog", so it can be a program name with args.
2685 set dummy $ac_prog; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if ${ac_cv_prog_AWK+:} false; then :
2689   $as_echo_n "(cached) " >&6
2690 else
2691   if test -n "$AWK"; then
2692   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699     for ac_exec_ext in '' $ac_executable_extensions; do
2700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701     ac_cv_prog_AWK="$ac_prog"
2702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706   done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 AWK=$ac_cv_prog_AWK
2712 if test -n "$AWK"; then
2713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2714 $as_echo "$AWK" >&6; }
2715 else
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720
2721   test -n "$AWK" && break
2722 done
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2725 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2726 set x ${MAKE-make}
2727 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2728 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2729   $as_echo_n "(cached) " >&6
2730 else
2731   cat >conftest.make <<\_ACEOF
2732 SHELL = /bin/sh
2733 all:
2734         @echo '@@@%%%=$(MAKE)=@@@%%%'
2735 _ACEOF
2736 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2737 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2738   *@@@%%%=?*=@@@%%%*)
2739     eval ac_cv_prog_make_${ac_make}_set=yes;;
2740   *)
2741     eval ac_cv_prog_make_${ac_make}_set=no;;
2742 esac
2743 rm -f conftest.make
2744 fi
2745 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2747 $as_echo "yes" >&6; }
2748   SET_MAKE=
2749 else
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752   SET_MAKE="MAKE=${MAKE-make}"
2753 fi
2754
2755 rm -rf .tst 2>/dev/null
2756 mkdir .tst 2>/dev/null
2757 if test -d .tst; then
2758   am__leading_dot=.
2759 else
2760   am__leading_dot=_
2761 fi
2762 rmdir .tst 2>/dev/null
2763
2764 # Check whether --enable-silent-rules was given.
2765 if test "${enable_silent_rules+set}" = set; then :
2766   enableval=$enable_silent_rules;
2767 fi
2768
2769 case $enable_silent_rules in # (((
2770   yes) AM_DEFAULT_VERBOSITY=0;;
2771    no) AM_DEFAULT_VERBOSITY=1;;
2772     *) AM_DEFAULT_VERBOSITY=1;;
2773 esac
2774 am_make=${MAKE-make}
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2776 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2777 if ${am_cv_make_support_nested_variables+:} false; then :
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if $as_echo 'TRUE=$(BAR$(V))
2781 BAR0=false
2782 BAR1=true
2783 V=1
2784 am__doit:
2785         @$(TRUE)
2786 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2787   am_cv_make_support_nested_variables=yes
2788 else
2789   am_cv_make_support_nested_variables=no
2790 fi
2791 fi
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2793 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2794 if test $am_cv_make_support_nested_variables = yes; then
2795     AM_V='$(V)'
2796   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2797 else
2798   AM_V=$AM_DEFAULT_VERBOSITY
2799   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2800 fi
2801 AM_BACKSLASH='\'
2802
2803 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2804   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2805   # is not polluted with repeated "-I."
2806   am__isrc=' -I$(srcdir)'
2807   # test to see if srcdir already configured
2808   if test -f $srcdir/config.status; then
2809     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2810   fi
2811 fi
2812
2813 # test whether we have cygpath
2814 if test -z "$CYGPATH_W"; then
2815   if (cygpath --version) >/dev/null 2>/dev/null; then
2816     CYGPATH_W='cygpath -w'
2817   else
2818     CYGPATH_W=echo
2819   fi
2820 fi
2821
2822
2823 # Define the identity of the package.
2824  PACKAGE='tlm'
2825  VERSION='1.0.3'
2826
2827
2828 cat >>confdefs.h <<_ACEOF
2829 #define PACKAGE "$PACKAGE"
2830 _ACEOF
2831
2832
2833 cat >>confdefs.h <<_ACEOF
2834 #define VERSION "$VERSION"
2835 _ACEOF
2836
2837 # Some tools Automake needs.
2838
2839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2840
2841
2842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2843
2844
2845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2846
2847
2848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2849
2850
2851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2852
2853 # For better backward compatibility.  To be removed once Automake 1.9.x
2854 # dies out for good.  For more background, see:
2855 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2856 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2857 mkdir_p='$(MKDIR_P)'
2858
2859 # We need awk for the "check" target.  The system "awk" is bad on
2860 # some platforms.
2861 # Always define AMTAR for backward compatibility.  Yes, it's still used
2862 # in the wild :-(  We should find a proper way to deprecate it ...
2863 AMTAR='$${TAR-tar}'
2864
2865
2866 # We'll loop over all known methods to create a tar archive until one works.
2867 _am_tools='gnutar  pax cpio none'
2868
2869
2870
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2872 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2873
2874   # Go ahead even if we have the value already cached.  We do so because we
2875   # need to set the values for the 'am__tar' and 'am__untar' variables.
2876   _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2877
2878   for _am_tool in $_am_tools; do
2879     case $_am_tool in
2880     gnutar)
2881       for _am_tar in tar gnutar gtar; do
2882         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2883    ($_am_tar --version) >&5 2>&5
2884    ac_status=$?
2885    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886    (exit $ac_status); } && break
2887       done
2888       am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2889       am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2890       am__untar="$_am_tar -xf -"
2891       ;;
2892     plaintar)
2893       # Must skip GNU tar: if it does not support --format= it doesn't create
2894       # ustar tarball either.
2895       (tar --version) >/dev/null 2>&1 && continue
2896       am__tar='tar chf - "$$tardir"'
2897       am__tar_='tar chf - "$tardir"'
2898       am__untar='tar xf -'
2899       ;;
2900     pax)
2901       am__tar='pax -L -x pax -w "$$tardir"'
2902       am__tar_='pax -L -x pax -w "$tardir"'
2903       am__untar='pax -r'
2904       ;;
2905     cpio)
2906       am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2907       am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2908       am__untar='cpio -i -H pax -d'
2909       ;;
2910     none)
2911       am__tar=false
2912       am__tar_=false
2913       am__untar=false
2914       ;;
2915     esac
2916
2917     # If the value was cached, stop now.  We just wanted to have am__tar
2918     # and am__untar set.
2919     test -n "${am_cv_prog_tar_pax}" && break
2920
2921     # tar/untar a dummy directory, and stop if the command works.
2922     rm -rf conftest.dir
2923     mkdir conftest.dir
2924     echo GrepMe > conftest.dir/file
2925     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2926    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2927    ac_status=$?
2928    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929    (exit $ac_status); }
2930     rm -rf conftest.dir
2931     if test -s conftest.tar; then
2932       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2933    ($am__untar <conftest.tar) >&5 2>&5
2934    ac_status=$?
2935    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936    (exit $ac_status); }
2937       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2938    (cat conftest.dir/file) >&5 2>&5
2939    ac_status=$?
2940    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941    (exit $ac_status); }
2942       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2943     fi
2944   done
2945   rm -rf conftest.dir
2946
2947   if ${am_cv_prog_tar_pax+:} false; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   am_cv_prog_tar_pax=$_am_tool
2951 fi
2952
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2954 $as_echo "$am_cv_prog_tar_pax" >&6; }
2955
2956
2957
2958
2959
2960
2961 # POSIX will say in a future version that running "rm -f" with no argument
2962 # is OK; and we want to be able to make that assumption in our Makefile
2963 # recipes.  So use an aggressive probe to check that the usage we want is
2964 # actually supported "in the wild" to an acceptable degree.
2965 # See automake bug#10828.
2966 # To make any issue more visible, cause the running configure to be aborted
2967 # by default if the 'rm' program in use doesn't match our expectations; the
2968 # user can still override this though.
2969 if rm -f && rm -fr && rm -rf; then : OK; else
2970   cat >&2 <<'END'
2971 Oops!
2972
2973 Your 'rm' program seems unable to run without file operands specified
2974 on the command line, even when the '-f' option is present.  This is contrary
2975 to the behaviour of most rm programs out there, and not conforming with
2976 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2977
2978 Please tell bug-automake@gnu.org about your system, including the value
2979 of your $PATH and any error possibly output before this message.  This
2980 can help us improve future automake versions.
2981
2982 END
2983   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2984     echo 'Configuration will proceed anyway, since you have set the' >&2
2985     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2986     echo >&2
2987   else
2988     cat >&2 <<'END'
2989 Aborting the configuration process, to ensure you take notice of the issue.
2990
2991 You can download and install GNU coreutils to get an 'rm' implementation
2992 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2993
2994 If you want to complete the configuration process using your problematic
2995 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2996 to "yes", and re-run configure.
2997
2998 END
2999     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3000   fi
3001 fi
3002
3003 #libtool
3004
3005 case `pwd` in
3006   *\ * | *\     *)
3007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3008 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3009 esac
3010
3011
3012
3013 macro_version='2.4.2'
3014 macro_revision='1.3337'
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028 ltmain="$ac_aux_dir/ltmain.sh"
3029
3030 # Make sure we can run config.sub.
3031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3032   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3033
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3035 $as_echo_n "checking build system type... " >&6; }
3036 if ${ac_cv_build+:} false; then :
3037   $as_echo_n "(cached) " >&6
3038 else
3039   ac_build_alias=$build_alias
3040 test "x$ac_build_alias" = x &&
3041   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3042 test "x$ac_build_alias" = x &&
3043   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3044 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3045   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3046
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3049 $as_echo "$ac_cv_build" >&6; }
3050 case $ac_cv_build in
3051 *-*-*) ;;
3052 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3053 esac
3054 build=$ac_cv_build
3055 ac_save_IFS=$IFS; IFS='-'
3056 set x $ac_cv_build
3057 shift
3058 build_cpu=$1
3059 build_vendor=$2
3060 shift; shift
3061 # Remember, the first character of IFS is used to create $*,
3062 # except with old shells:
3063 build_os=$*
3064 IFS=$ac_save_IFS
3065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3066
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3069 $as_echo_n "checking host system type... " >&6; }
3070 if ${ac_cv_host+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test "x$host_alias" = x; then
3074   ac_cv_host=$ac_cv_build
3075 else
3076   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3077     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3078 fi
3079
3080 fi
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3082 $as_echo "$ac_cv_host" >&6; }
3083 case $ac_cv_host in
3084 *-*-*) ;;
3085 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3086 esac
3087 host=$ac_cv_host
3088 ac_save_IFS=$IFS; IFS='-'
3089 set x $ac_cv_host
3090 shift
3091 host_cpu=$1
3092 host_vendor=$2
3093 shift; shift
3094 # Remember, the first character of IFS is used to create $*,
3095 # except with old shells:
3096 host_os=$*
3097 IFS=$ac_save_IFS
3098 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3099
3100
3101 # Backslashify metacharacters that are still active within
3102 # double-quoted strings.
3103 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3104
3105 # Same as above, but do not quote variable references.
3106 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3107
3108 # Sed substitution to delay expansion of an escaped shell variable in a
3109 # double_quote_subst'ed string.
3110 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3111
3112 # Sed substitution to delay expansion of an escaped single quote.
3113 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3114
3115 # Sed substitution to avoid accidental globbing in evaled expressions
3116 no_glob_subst='s/\*/\\\*/g'
3117
3118 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3121
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3123 $as_echo_n "checking how to print strings... " >&6; }
3124 # Test print first, because it will be a builtin if present.
3125 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3126    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3127   ECHO='print -r --'
3128 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3129   ECHO='printf %s\n'
3130 else
3131   # Use this function as a fallback that always works.
3132   func_fallback_echo ()
3133   {
3134     eval 'cat <<_LTECHO_EOF
3135 $1
3136 _LTECHO_EOF'
3137   }
3138   ECHO='func_fallback_echo'
3139 fi
3140
3141 # func_echo_all arg...
3142 # Invoke $ECHO with all args, space-separated.
3143 func_echo_all ()
3144 {
3145     $ECHO ""
3146 }
3147
3148 case "$ECHO" in
3149   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3150 $as_echo "printf" >&6; } ;;
3151   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3152 $as_echo "print -r" >&6; } ;;
3153   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3154 $as_echo "cat" >&6; } ;;
3155 esac
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170 DEPDIR="${am__leading_dot}deps"
3171
3172 ac_config_commands="$ac_config_commands depfiles"
3173
3174
3175 am_make=${MAKE-make}
3176 cat > confinc << 'END'
3177 am__doit:
3178         @echo this is the am__doit target
3179 .PHONY: am__doit
3180 END
3181 # If we don't find an include directive, just comment out the code.
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3183 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3184 am__include="#"
3185 am__quote=
3186 _am_result=none
3187 # First try GNU make style include.
3188 echo "include confinc" > confmf
3189 # Ignore all kinds of additional output from 'make'.
3190 case `$am_make -s -f confmf 2> /dev/null` in #(
3191 *the\ am__doit\ target*)
3192   am__include=include
3193   am__quote=
3194   _am_result=GNU
3195   ;;
3196 esac
3197 # Now try BSD make style include.
3198 if test "$am__include" = "#"; then
3199    echo '.include "confinc"' > confmf
3200    case `$am_make -s -f confmf 2> /dev/null` in #(
3201    *the\ am__doit\ target*)
3202      am__include=.include
3203      am__quote="\""
3204      _am_result=BSD
3205      ;;
3206    esac
3207 fi
3208
3209
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3211 $as_echo "$_am_result" >&6; }
3212 rm -f confinc confmf
3213
3214 # Check whether --enable-dependency-tracking was given.
3215 if test "${enable_dependency_tracking+set}" = set; then :
3216   enableval=$enable_dependency_tracking;
3217 fi
3218
3219 if test "x$enable_dependency_tracking" != xno; then
3220   am_depcomp="$ac_aux_dir/depcomp"
3221   AMDEPBACKSLASH='\'
3222   am__nodep='_no'
3223 fi
3224  if test "x$enable_dependency_tracking" != xno; then
3225   AMDEP_TRUE=
3226   AMDEP_FALSE='#'
3227 else
3228   AMDEP_TRUE='#'
3229   AMDEP_FALSE=
3230 fi
3231
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 if test -n "$ac_tool_prefix"; then
3239   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_CC+:} false; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   if test -n "$CC"; then
3247   ac_cv_prog_CC="$CC" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252   IFS=$as_save_IFS
3253   test -z "$as_dir" && as_dir=.
3254     for ac_exec_ext in '' $ac_executable_extensions; do
3255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258     break 2
3259   fi
3260 done
3261   done
3262 IFS=$as_save_IFS
3263
3264 fi
3265 fi
3266 CC=$ac_cv_prog_CC
3267 if test -n "$CC"; then
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269 $as_echo "$CC" >&6; }
3270 else
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 fi
3274
3275
3276 fi
3277 if test -z "$ac_cv_prog_CC"; then
3278   ac_ct_CC=$CC
3279   # Extract the first word of "gcc", so it can be a program name with args.
3280 set dummy gcc; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3284   $as_echo_n "(cached) " >&6
3285 else
3286   if test -n "$ac_ct_CC"; then
3287   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294     for ac_exec_ext in '' $ac_executable_extensions; do
3295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296     ac_cv_prog_ac_ct_CC="gcc"
3297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298     break 2
3299   fi
3300 done
3301   done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3307 if test -n "$ac_ct_CC"; then
3308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3309 $as_echo "$ac_ct_CC" >&6; }
3310 else
3311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 fi
3314
3315   if test "x$ac_ct_CC" = x; then
3316     CC=""
3317   else
3318     case $cross_compiling:$ac_tool_warned in
3319 yes:)
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3322 ac_tool_warned=yes ;;
3323 esac
3324     CC=$ac_ct_CC
3325   fi
3326 else
3327   CC="$ac_cv_prog_CC"
3328 fi
3329
3330 if test -z "$CC"; then
3331           if test -n "$ac_tool_prefix"; then
3332     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3333 set dummy ${ac_tool_prefix}cc; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337   $as_echo_n "(cached) " >&6
3338 else
3339   if test -n "$CC"; then
3340   ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347     for ac_exec_ext in '' $ac_executable_extensions; do
3348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349     ac_cv_prog_CC="${ac_tool_prefix}cc"
3350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354   done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369   fi
3370 fi
3371 if test -z "$CC"; then
3372   # Extract the first word of "cc", so it can be a program name with args.
3373 set dummy cc; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_prog_CC+:} false; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   if test -n "$CC"; then
3380   ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382   ac_prog_rejected=no
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388     for ac_exec_ext in '' $ac_executable_extensions; do
3389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3391        ac_prog_rejected=yes
3392        continue
3393      fi
3394     ac_cv_prog_CC="cc"
3395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399   done
3400 IFS=$as_save_IFS
3401
3402 if test $ac_prog_rejected = yes; then
3403   # We found a bogon in the path, so make sure we never use it.
3404   set dummy $ac_cv_prog_CC
3405   shift
3406   if test $# != 0; then
3407     # We chose a different compiler from the bogus one.
3408     # However, it has the same basename, so the bogon will be chosen
3409     # first if we set CC to just the basename; use the full file name.
3410     shift
3411     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3412   fi
3413 fi
3414 fi
3415 fi
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419 $as_echo "$CC" >&6; }
3420 else
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 fi
3424
3425
3426 fi
3427 if test -z "$CC"; then
3428   if test -n "$ac_tool_prefix"; then
3429   for ac_prog in cl.exe
3430   do
3431     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_CC+:} false; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   if test -n "$CC"; then
3439   ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446     for ac_exec_ext in '' $ac_executable_extensions; do
3447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453   done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 CC=$ac_cv_prog_CC
3459 if test -n "$CC"; then
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3462 else
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467
3468     test -n "$CC" && break
3469   done
3470 fi
3471 if test -z "$CC"; then
3472   ac_ct_CC=$CC
3473   for ac_prog in cl.exe
3474 do
3475   # Extract the first word of "$ac_prog", so it can be a program name with args.
3476 set dummy $ac_prog; ac_word=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3480   $as_echo_n "(cached) " >&6
3481 else
3482   if test -n "$ac_ct_CC"; then
3483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3484 else
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488   IFS=$as_save_IFS
3489   test -z "$as_dir" && as_dir=.
3490     for ac_exec_ext in '' $ac_executable_extensions; do
3491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492     ac_cv_prog_ac_ct_CC="$ac_prog"
3493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494     break 2
3495   fi
3496 done
3497   done
3498 IFS=$as_save_IFS
3499
3500 fi
3501 fi
3502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3503 if test -n "$ac_ct_CC"; then
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3505 $as_echo "$ac_ct_CC" >&6; }
3506 else
3507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3509 fi
3510
3511
3512   test -n "$ac_ct_CC" && break
3513 done
3514
3515   if test "x$ac_ct_CC" = x; then
3516     CC=""
3517   else
3518     case $cross_compiling:$ac_tool_warned in
3519 yes:)
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned=yes ;;
3523 esac
3524     CC=$ac_ct_CC
3525   fi
3526 fi
3527
3528 fi
3529
3530
3531 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "no acceptable C compiler found in \$PATH
3534 See \`config.log' for more details" "$LINENO" 5; }
3535
3536 # Provide some information about the compiler.
3537 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3538 set X $ac_compile
3539 ac_compiler=$2
3540 for ac_option in --version -v -V -qversion; do
3541   { { ac_try="$ac_compiler $ac_option >&5"
3542 case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3549   ac_status=$?
3550   if test -s conftest.err; then
3551     sed '10a\
3552 ... rest of stderr output deleted ...
3553          10q' conftest.err >conftest.er1
3554     cat conftest.er1 >&5
3555   fi
3556   rm -f conftest.er1 conftest.err
3557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558   test $ac_status = 0; }
3559 done
3560
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h.  */
3563
3564 int
3565 main ()
3566 {
3567
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 ac_clean_files_save=$ac_clean_files
3573 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3574 # Try to create an executable without -o first, disregard a.out.
3575 # It will help us diagnose broken compilers, and finding out an intuition
3576 # of exeext.
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3578 $as_echo_n "checking whether the C compiler works... " >&6; }
3579 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3580
3581 # The possible output files:
3582 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3583
3584 ac_rmfiles=
3585 for ac_file in $ac_files
3586 do
3587   case $ac_file in
3588     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3589     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3590   esac
3591 done
3592 rm -f $ac_rmfiles
3593
3594 if { { ac_try="$ac_link_default"
3595 case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601   (eval "$ac_link_default") 2>&5
3602   ac_status=$?
3603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604   test $ac_status = 0; }; then :
3605   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3606 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3607 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3608 # so that the user can short-circuit this test for compilers unknown to
3609 # Autoconf.
3610 for ac_file in $ac_files ''
3611 do
3612   test -f "$ac_file" || continue
3613   case $ac_file in
3614     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3615         ;;
3616     [ab].out )
3617         # We found the default executable, but exeext='' is most
3618         # certainly right.
3619         break;;
3620     *.* )
3621         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3622         then :; else
3623            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3624         fi
3625         # We set ac_cv_exeext here because the later test for it is not
3626         # safe: cross compilers may not add the suffix if given an `-o'
3627         # argument, so we may need to know it at that point already.
3628         # Even if this section looks crufty: it has the advantage of
3629         # actually working.
3630         break;;
3631     * )
3632         break;;
3633   esac
3634 done
3635 test "$ac_cv_exeext" = no && ac_cv_exeext=
3636
3637 else
3638   ac_file=''
3639 fi
3640 if test -z "$ac_file"; then :
3641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 $as_echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error 77 "C compiler cannot create executables
3649 See \`config.log' for more details" "$LINENO" 5; }
3650 else
3651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3652 $as_echo "yes" >&6; }
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3655 $as_echo_n "checking for C compiler default output file name... " >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3657 $as_echo "$ac_file" >&6; }
3658 ac_exeext=$ac_cv_exeext
3659
3660 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3661 ac_clean_files=$ac_clean_files_save
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3663 $as_echo_n "checking for suffix of executables... " >&6; }
3664 if { { ac_try="$ac_link"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671   (eval "$ac_link") 2>&5
3672   ac_status=$?
3673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674   test $ac_status = 0; }; then :
3675   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3676 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3677 # work properly (i.e., refer to `conftest.exe'), while it won't with
3678 # `rm'.
3679 for ac_file in conftest.exe conftest conftest.*; do
3680   test -f "$ac_file" || continue
3681   case $ac_file in
3682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3683     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684           break;;
3685     * ) break;;
3686   esac
3687 done
3688 else
3689   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3692 See \`config.log' for more details" "$LINENO" 5; }
3693 fi
3694 rm -f conftest conftest$ac_cv_exeext
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3696 $as_echo "$ac_cv_exeext" >&6; }
3697
3698 rm -f conftest.$ac_ext
3699 EXEEXT=$ac_cv_exeext
3700 ac_exeext=$EXEEXT
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h.  */
3703 #include <stdio.h>
3704 int
3705 main ()
3706 {
3707 FILE *f = fopen ("conftest.out", "w");
3708  return ferror (f) || fclose (f) != 0;
3709
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 ac_clean_files="$ac_clean_files conftest.out"
3715 # Check that the compiler produces executables we can run.  If not, either
3716 # the compiler is broken, or we cross compile.
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3718 $as_echo_n "checking whether we are cross compiling... " >&6; }
3719 if test "$cross_compiling" != yes; then
3720   { { ac_try="$ac_link"
3721 case "(($ac_try" in
3722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723   *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727   (eval "$ac_link") 2>&5
3728   ac_status=$?
3729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730   test $ac_status = 0; }
3731   if { ac_try='./conftest$ac_cv_exeext'
3732   { { case "(($ac_try" in
3733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734   *) ac_try_echo=$ac_try;;
3735 esac
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 $as_echo "$ac_try_echo"; } >&5
3738   (eval "$ac_try") 2>&5
3739   ac_status=$?
3740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741   test $ac_status = 0; }; }; then
3742     cross_compiling=no
3743   else
3744     if test "$cross_compiling" = maybe; then
3745         cross_compiling=yes
3746     else
3747         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error $? "cannot run C compiled programs.
3750 If you meant to cross compile, use \`--host'.
3751 See \`config.log' for more details" "$LINENO" 5; }
3752     fi
3753   fi
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3756 $as_echo "$cross_compiling" >&6; }
3757
3758 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3759 ac_clean_files=$ac_clean_files_save
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3761 $as_echo_n "checking for suffix of object files... " >&6; }
3762 if ${ac_cv_objext+:} false; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h.  */
3767
3768 int
3769 main ()
3770 {
3771
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 rm -f conftest.o conftest.obj
3777 if { { ac_try="$ac_compile"
3778 case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784   (eval "$ac_compile") 2>&5
3785   ac_status=$?
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }; then :
3788   for ac_file in conftest.o conftest.obj conftest.*; do
3789   test -f "$ac_file" || continue;
3790   case $ac_file in
3791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3792     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3793        break;;
3794   esac
3795 done
3796 else
3797   $as_echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error $? "cannot compute suffix of object files: cannot compile
3803 See \`config.log' for more details" "$LINENO" 5; }
3804 fi
3805 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3808 $as_echo "$ac_cv_objext" >&6; }
3809 OBJEXT=$ac_cv_objext
3810 ac_objext=$OBJEXT
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3812 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3813 if ${ac_cv_c_compiler_gnu+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818
3819 int
3820 main ()
3821 {
3822 #ifndef __GNUC__
3823        choke me
3824 #endif
3825
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831   ac_compiler_gnu=yes
3832 else
3833   ac_compiler_gnu=no
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3837
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3840 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3841 if test $ac_compiler_gnu = yes; then
3842   GCC=yes
3843 else
3844   GCC=
3845 fi
3846 ac_test_CFLAGS=${CFLAGS+set}
3847 ac_save_CFLAGS=$CFLAGS
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3849 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3850 if ${ac_cv_prog_cc_g+:} false; then :
3851   $as_echo_n "(cached) " >&6
3852 else
3853   ac_save_c_werror_flag=$ac_c_werror_flag
3854    ac_c_werror_flag=yes
3855    ac_cv_prog_cc_g=no
3856    CFLAGS="-g"
3857    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h.  */
3859
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868 if ac_fn_c_try_compile "$LINENO"; then :
3869   ac_cv_prog_cc_g=yes
3870 else
3871   CFLAGS=""
3872       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884
3885 else
3886   ac_c_werror_flag=$ac_save_c_werror_flag
3887          CFLAGS="-g"
3888          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h.  */
3890
3891 int
3892 main ()
3893 {
3894
3895   ;
3896   return 0;
3897 }
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900   ac_cv_prog_cc_g=yes
3901 fi
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907    ac_c_werror_flag=$ac_save_c_werror_flag
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3910 $as_echo "$ac_cv_prog_cc_g" >&6; }
3911 if test "$ac_test_CFLAGS" = set; then
3912   CFLAGS=$ac_save_CFLAGS
3913 elif test $ac_cv_prog_cc_g = yes; then
3914   if test "$GCC" = yes; then
3915     CFLAGS="-g -O2"
3916   else
3917     CFLAGS="-g"
3918   fi
3919 else
3920   if test "$GCC" = yes; then
3921     CFLAGS="-O2"
3922   else
3923     CFLAGS=
3924   fi
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3927 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3928 if ${ac_cv_prog_cc_c89+:} false; then :
3929   $as_echo_n "(cached) " >&6
3930 else
3931   ac_cv_prog_cc_c89=no
3932 ac_save_CC=$CC
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h.  */
3935 #include <stdarg.h>
3936 #include <stdio.h>
3937 struct stat;
3938 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3939 struct buf { int x; };
3940 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3941 static char *e (p, i)
3942      char **p;
3943      int i;
3944 {
3945   return p[i];
3946 }
3947 static char *f (char * (*g) (char **, int), char **p, ...)
3948 {
3949   char *s;
3950   va_list v;
3951   va_start (v,p);
3952   s = g (p, va_arg (v,int));
3953   va_end (v);
3954   return s;
3955 }
3956
3957 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3958    function prototypes and stuff, but not '\xHH' hex character constants.
3959    These don't provoke an error unfortunately, instead are silently treated
3960    as 'x'.  The following induces an error, until -std is added to get
3961    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3962    array size at least.  It's necessary to write '\x00'==0 to get something
3963    that's true only with -std.  */
3964 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3965
3966 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3967    inside strings and character constants.  */
3968 #define FOO(x) 'x'
3969 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3970
3971 int test (int i, double x);
3972 struct s1 {int (*f) (int a);};
3973 struct s2 {int (*f) (double a);};
3974 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3975 int argc;
3976 char **argv;
3977 int
3978 main ()
3979 {
3980 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3981   ;
3982   return 0;
3983 }
3984 _ACEOF
3985 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3986         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3987 do
3988   CC="$ac_save_CC $ac_arg"
3989   if ac_fn_c_try_compile "$LINENO"; then :
3990   ac_cv_prog_cc_c89=$ac_arg
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext
3993   test "x$ac_cv_prog_cc_c89" != "xno" && break
3994 done
3995 rm -f conftest.$ac_ext
3996 CC=$ac_save_CC
3997
3998 fi
3999 # AC_CACHE_VAL
4000 case "x$ac_cv_prog_cc_c89" in
4001   x)
4002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4003 $as_echo "none needed" >&6; } ;;
4004   xno)
4005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4006 $as_echo "unsupported" >&6; } ;;
4007   *)
4008     CC="$CC $ac_cv_prog_cc_c89"
4009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4010 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4011 esac
4012 if test "x$ac_cv_prog_cc_c89" != xno; then :
4013
4014 fi
4015
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
4022 ac_ext=c
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4028 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4029 if ${am_cv_prog_cc_c_o+:} false; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h.  */
4034
4035 int
4036 main ()
4037 {
4038
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043   # Make sure it works both with $CC and with simple cc.
4044   # Following AC_PROG_CC_C_O, we do the test twice because some
4045   # compilers refuse to overwrite an existing .o file with -o,
4046   # though they will create one.
4047   am_cv_prog_cc_c_o=yes
4048   for am_i in 1 2; do
4049     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4050    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4051    ac_status=$?
4052    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053    (exit $ac_status); } \
4054          && test -f conftest2.$ac_objext; then
4055       : OK
4056     else
4057       am_cv_prog_cc_c_o=no
4058       break
4059     fi
4060   done
4061   rm -f core conftest*
4062   unset am_i
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4065 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4066 if test "$am_cv_prog_cc_c_o" != yes; then
4067    # Losing compiler, so override with the script.
4068    # FIXME: It is wrong to rewrite CC.
4069    # But if we don't then we get into trouble of one sort or another.
4070    # A longer-term fix would be to have automake use am__CC in this case,
4071    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4072    CC="$am_aux_dir/compile $CC"
4073 fi
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079
4080
4081 depcc="$CC"   am_compiler_list=
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4084 $as_echo_n "checking dependency style of $depcc... " >&6; }
4085 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4089   # We make a subdir and do the tests there.  Otherwise we can end up
4090   # making bogus files that we don't know about and never remove.  For
4091   # instance it was reported that on HP-UX the gcc test will end up
4092   # making a dummy file named 'D' -- because '-MD' means "put the output
4093   # in D".
4094   rm -rf conftest.dir
4095   mkdir conftest.dir
4096   # Copy depcomp to subdir because otherwise we won't find it if we're
4097   # using a relative directory.
4098   cp "$am_depcomp" conftest.dir
4099   cd conftest.dir
4100   # We will build objects and dependencies in a subdirectory because
4101   # it helps to detect inapplicable dependency modes.  For instance
4102   # both Tru64's cc and ICC support -MD to output dependencies as a
4103   # side effect of compilation, but ICC will put the dependencies in
4104   # the current directory while Tru64 will put them in the object
4105   # directory.
4106   mkdir sub
4107
4108   am_cv_CC_dependencies_compiler_type=none
4109   if test "$am_compiler_list" = ""; then
4110      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4111   fi
4112   am__universal=false
4113   case " $depcc " in #(
4114      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4115      esac
4116
4117   for depmode in $am_compiler_list; do
4118     # Setup a source with many dependencies, because some compilers
4119     # like to wrap large dependency lists on column 80 (with \), and
4120     # we should not choose a depcomp mode which is confused by this.
4121     #
4122     # We need to recreate these files for each test, as the compiler may
4123     # overwrite some of them when testing with obscure command lines.
4124     # This happens at least with the AIX C compiler.
4125     : > sub/conftest.c
4126     for i in 1 2 3 4 5 6; do
4127       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4128       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4129       # Solaris 10 /bin/sh.
4130       echo '/* dummy */' > sub/conftst$i.h
4131     done
4132     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4133
4134     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4135     # mode.  It turns out that the SunPro C++ compiler does not properly
4136     # handle '-M -o', and we need to detect this.  Also, some Intel
4137     # versions had trouble with output in subdirs.
4138     am__obj=sub/conftest.${OBJEXT-o}
4139     am__minus_obj="-o $am__obj"
4140     case $depmode in
4141     gcc)
4142       # This depmode causes a compiler race in universal mode.
4143       test "$am__universal" = false || continue
4144       ;;
4145     nosideeffect)
4146       # After this tag, mechanisms are not by side-effect, so they'll
4147       # only be used when explicitly requested.
4148       if test "x$enable_dependency_tracking" = xyes; then
4149         continue
4150       else
4151         break
4152       fi
4153       ;;
4154     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4155       # This compiler won't grok '-c -o', but also, the minuso test has
4156       # not run yet.  These depmodes are late enough in the game, and
4157       # so weak that their functioning should not be impacted.
4158       am__obj=conftest.${OBJEXT-o}
4159       am__minus_obj=
4160       ;;
4161     none) break ;;
4162     esac
4163     if depmode=$depmode \
4164        source=sub/conftest.c object=$am__obj \
4165        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4166        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4167          >/dev/null 2>conftest.err &&
4168        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4169        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4170        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4171        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4172       # icc doesn't choke on unknown options, it will just issue warnings
4173       # or remarks (even with -Werror).  So we grep stderr for any message
4174       # that says an option was ignored or not supported.
4175       # When given -MP, icc 7.0 and 7.1 complain thusly:
4176       #   icc: Command line warning: ignoring option '-M'; no argument required
4177       # The diagnosis changed in icc 8.0:
4178       #   icc: Command line remark: option '-MP' not supported
4179       if (grep 'ignoring option' conftest.err ||
4180           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4181         am_cv_CC_dependencies_compiler_type=$depmode
4182         break
4183       fi
4184     fi
4185   done
4186
4187   cd ..
4188   rm -rf conftest.dir
4189 else
4190   am_cv_CC_dependencies_compiler_type=none
4191 fi
4192
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4195 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4197
4198  if
4199   test "x$enable_dependency_tracking" != xno \
4200   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4201   am__fastdepCC_TRUE=
4202   am__fastdepCC_FALSE='#'
4203 else
4204   am__fastdepCC_TRUE='#'
4205   am__fastdepCC_FALSE=
4206 fi
4207
4208
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4210 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4211 if ${ac_cv_path_SED+:} false; then :
4212   $as_echo_n "(cached) " >&6
4213 else
4214             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4215      for ac_i in 1 2 3 4 5 6 7; do
4216        ac_script="$ac_script$as_nl$ac_script"
4217      done
4218      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4219      { ac_script=; unset ac_script;}
4220      if test -z "$SED"; then
4221   ac_path_SED_found=false
4222   # Loop through the user's path and test for each of PROGNAME-LIST
4223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226   IFS=$as_save_IFS
4227   test -z "$as_dir" && as_dir=.
4228     for ac_prog in sed gsed; do
4229     for ac_exec_ext in '' $ac_executable_extensions; do
4230       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4231       as_fn_executable_p "$ac_path_SED" || continue
4232 # Check for GNU ac_path_SED and select it if it is found.
4233   # Check for GNU $ac_path_SED
4234 case `"$ac_path_SED" --version 2>&1` in
4235 *GNU*)
4236   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4237 *)
4238   ac_count=0
4239   $as_echo_n 0123456789 >"conftest.in"
4240   while :
4241   do
4242     cat "conftest.in" "conftest.in" >"conftest.tmp"
4243     mv "conftest.tmp" "conftest.in"
4244     cp "conftest.in" "conftest.nl"
4245     $as_echo '' >> "conftest.nl"
4246     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4247     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4248     as_fn_arith $ac_count + 1 && ac_count=$as_val
4249     if test $ac_count -gt ${ac_path_SED_max-0}; then
4250       # Best one so far, save it but keep looking for a better one
4251       ac_cv_path_SED="$ac_path_SED"
4252       ac_path_SED_max=$ac_count
4253     fi
4254     # 10*(2^10) chars as input seems more than enough
4255     test $ac_count -gt 10 && break
4256   done
4257   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4258 esac
4259
4260       $ac_path_SED_found && break 3
4261     done
4262   done
4263   done
4264 IFS=$as_save_IFS
4265   if test -z "$ac_cv_path_SED"; then
4266     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4267   fi
4268 else
4269   ac_cv_path_SED=$SED
4270 fi
4271
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4274 $as_echo "$ac_cv_path_SED" >&6; }
4275  SED="$ac_cv_path_SED"
4276   rm -f conftest.sed
4277
4278 test -z "$SED" && SED=sed
4279 Xsed="$SED -e 1s/^X//"
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4292 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4293 if ${ac_cv_path_GREP+:} false; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   if test -z "$GREP"; then
4297   ac_path_GREP_found=false
4298   # Loop through the user's path and test for each of PROGNAME-LIST
4299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304     for ac_prog in grep ggrep; do
4305     for ac_exec_ext in '' $ac_executable_extensions; do
4306       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4307       as_fn_executable_p "$ac_path_GREP" || continue
4308 # Check for GNU ac_path_GREP and select it if it is found.
4309   # Check for GNU $ac_path_GREP
4310 case `"$ac_path_GREP" --version 2>&1` in
4311 *GNU*)
4312   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4313 *)
4314   ac_count=0
4315   $as_echo_n 0123456789 >"conftest.in"
4316   while :
4317   do
4318     cat "conftest.in" "conftest.in" >"conftest.tmp"
4319     mv "conftest.tmp" "conftest.in"
4320     cp "conftest.in" "conftest.nl"
4321     $as_echo 'GREP' >> "conftest.nl"
4322     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324     as_fn_arith $ac_count + 1 && ac_count=$as_val
4325     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4326       # Best one so far, save it but keep looking for a better one
4327       ac_cv_path_GREP="$ac_path_GREP"
4328       ac_path_GREP_max=$ac_count
4329     fi
4330     # 10*(2^10) chars as input seems more than enough
4331     test $ac_count -gt 10 && break
4332   done
4333   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334 esac
4335
4336       $ac_path_GREP_found && break 3
4337     done
4338   done
4339   done
4340 IFS=$as_save_IFS
4341   if test -z "$ac_cv_path_GREP"; then
4342     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4343   fi
4344 else
4345   ac_cv_path_GREP=$GREP
4346 fi
4347
4348 fi
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4350 $as_echo "$ac_cv_path_GREP" >&6; }
4351  GREP="$ac_cv_path_GREP"
4352
4353
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4355 $as_echo_n "checking for egrep... " >&6; }
4356 if ${ac_cv_path_EGREP+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4360    then ac_cv_path_EGREP="$GREP -E"
4361    else
4362      if test -z "$EGREP"; then
4363   ac_path_EGREP_found=false
4364   # Loop through the user's path and test for each of PROGNAME-LIST
4365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370     for ac_prog in egrep; do
4371     for ac_exec_ext in '' $ac_executable_extensions; do
4372       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4373       as_fn_executable_p "$ac_path_EGREP" || continue
4374 # Check for GNU ac_path_EGREP and select it if it is found.
4375   # Check for GNU $ac_path_EGREP
4376 case `"$ac_path_EGREP" --version 2>&1` in
4377 *GNU*)
4378   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4379 *)
4380   ac_count=0
4381   $as_echo_n 0123456789 >"conftest.in"
4382   while :
4383   do
4384     cat "conftest.in" "conftest.in" >"conftest.tmp"
4385     mv "conftest.tmp" "conftest.in"
4386     cp "conftest.in" "conftest.nl"
4387     $as_echo 'EGREP' >> "conftest.nl"
4388     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390     as_fn_arith $ac_count + 1 && ac_count=$as_val
4391     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4392       # Best one so far, save it but keep looking for a better one
4393       ac_cv_path_EGREP="$ac_path_EGREP"
4394       ac_path_EGREP_max=$ac_count
4395     fi
4396     # 10*(2^10) chars as input seems more than enough
4397     test $ac_count -gt 10 && break
4398   done
4399   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 esac
4401
4402       $ac_path_EGREP_found && break 3
4403     done
4404   done
4405   done
4406 IFS=$as_save_IFS
4407   if test -z "$ac_cv_path_EGREP"; then
4408     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4409   fi
4410 else
4411   ac_cv_path_EGREP=$EGREP
4412 fi
4413
4414    fi
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4417 $as_echo "$ac_cv_path_EGREP" >&6; }
4418  EGREP="$ac_cv_path_EGREP"
4419
4420
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4422 $as_echo_n "checking for fgrep... " >&6; }
4423 if ${ac_cv_path_FGREP+:} false; then :
4424   $as_echo_n "(cached) " >&6
4425 else
4426   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4427    then ac_cv_path_FGREP="$GREP -F"
4428    else
4429      if test -z "$FGREP"; then
4430   ac_path_FGREP_found=false
4431   # Loop through the user's path and test for each of PROGNAME-LIST
4432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437     for ac_prog in fgrep; do
4438     for ac_exec_ext in '' $ac_executable_extensions; do
4439       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4440       as_fn_executable_p "$ac_path_FGREP" || continue
4441 # Check for GNU ac_path_FGREP and select it if it is found.
4442   # Check for GNU $ac_path_FGREP
4443 case `"$ac_path_FGREP" --version 2>&1` in
4444 *GNU*)
4445   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4446 *)
4447   ac_count=0
4448   $as_echo_n 0123456789 >"conftest.in"
4449   while :
4450   do
4451     cat "conftest.in" "conftest.in" >"conftest.tmp"
4452     mv "conftest.tmp" "conftest.in"
4453     cp "conftest.in" "conftest.nl"
4454     $as_echo 'FGREP' >> "conftest.nl"
4455     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4456     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4457     as_fn_arith $ac_count + 1 && ac_count=$as_val
4458     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4459       # Best one so far, save it but keep looking for a better one
4460       ac_cv_path_FGREP="$ac_path_FGREP"
4461       ac_path_FGREP_max=$ac_count
4462     fi
4463     # 10*(2^10) chars as input seems more than enough
4464     test $ac_count -gt 10 && break
4465   done
4466   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467 esac
4468
4469       $ac_path_FGREP_found && break 3
4470     done
4471   done
4472   done
4473 IFS=$as_save_IFS
4474   if test -z "$ac_cv_path_FGREP"; then
4475     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4476   fi
4477 else
4478   ac_cv_path_FGREP=$FGREP
4479 fi
4480
4481    fi
4482 fi
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4484 $as_echo "$ac_cv_path_FGREP" >&6; }
4485  FGREP="$ac_cv_path_FGREP"
4486
4487
4488 test -z "$GREP" && GREP=grep
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508 # Check whether --with-gnu-ld was given.
4509 if test "${with_gnu_ld+set}" = set; then :
4510   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4511 else
4512   with_gnu_ld=no
4513 fi
4514
4515 ac_prog=ld
4516 if test "$GCC" = yes; then
4517   # Check if gcc -print-prog-name=ld gives a path.
4518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4519 $as_echo_n "checking for ld used by $CC... " >&6; }
4520   case $host in
4521   *-*-mingw*)
4522     # gcc leaves a trailing carriage return which upsets mingw
4523     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4524   *)
4525     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4526   esac
4527   case $ac_prog in
4528     # Accept absolute paths.
4529     [\\/]* | ?:[\\/]*)
4530       re_direlt='/[^/][^/]*/\.\./'
4531       # Canonicalize the pathname of ld
4532       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4533       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4534         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4535       done
4536       test -z "$LD" && LD="$ac_prog"
4537       ;;
4538   "")
4539     # If it fails, then pretend we aren't using GCC.
4540     ac_prog=ld
4541     ;;
4542   *)
4543     # If it is relative, then search for the first ld in PATH.
4544     with_gnu_ld=unknown
4545     ;;
4546   esac
4547 elif test "$with_gnu_ld" = yes; then
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4549 $as_echo_n "checking for GNU ld... " >&6; }
4550 else
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4552 $as_echo_n "checking for non-GNU ld... " >&6; }
4553 fi
4554 if ${lt_cv_path_LD+:} false; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557   if test -z "$LD"; then
4558   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4559   for ac_dir in $PATH; do
4560     IFS="$lt_save_ifs"
4561     test -z "$ac_dir" && ac_dir=.
4562     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4563       lt_cv_path_LD="$ac_dir/$ac_prog"
4564       # Check to see if the program is GNU ld.  I'd rather use --version,
4565       # but apparently some variants of GNU ld only accept -v.
4566       # Break only if it was the GNU/non-GNU ld that we prefer.
4567       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4568       *GNU* | *'with BFD'*)
4569         test "$with_gnu_ld" != no && break
4570         ;;
4571       *)
4572         test "$with_gnu_ld" != yes && break
4573         ;;
4574       esac
4575     fi
4576   done
4577   IFS="$lt_save_ifs"
4578 else
4579   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4580 fi
4581 fi
4582
4583 LD="$lt_cv_path_LD"
4584 if test -n "$LD"; then
4585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4586 $as_echo "$LD" >&6; }
4587 else
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4590 fi
4591 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4593 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4594 if ${lt_cv_prog_gnu_ld+:} false; then :
4595   $as_echo_n "(cached) " >&6
4596 else
4597   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4598 case `$LD -v 2>&1 </dev/null` in
4599 *GNU* | *'with BFD'*)
4600   lt_cv_prog_gnu_ld=yes
4601   ;;
4602 *)
4603   lt_cv_prog_gnu_ld=no
4604   ;;
4605 esac
4606 fi
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4608 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4609 with_gnu_ld=$lt_cv_prog_gnu_ld
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4620 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4621 if ${lt_cv_path_NM+:} false; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624   if test -n "$NM"; then
4625   # Let the user override the test.
4626   lt_cv_path_NM="$NM"
4627 else
4628   lt_nm_to_check="${ac_tool_prefix}nm"
4629   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4630     lt_nm_to_check="$lt_nm_to_check nm"
4631   fi
4632   for lt_tmp_nm in $lt_nm_to_check; do
4633     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4634     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4635       IFS="$lt_save_ifs"
4636       test -z "$ac_dir" && ac_dir=.
4637       tmp_nm="$ac_dir/$lt_tmp_nm"
4638       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4639         # Check to see if the nm accepts a BSD-compat flag.
4640         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4641         #   nm: unknown option "B" ignored
4642         # Tru64's nm complains that /dev/null is an invalid object file
4643         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4644         */dev/null* | *'Invalid file or object type'*)
4645           lt_cv_path_NM="$tmp_nm -B"
4646           break
4647           ;;
4648         *)
4649           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4650           */dev/null*)
4651             lt_cv_path_NM="$tmp_nm -p"
4652             break
4653             ;;
4654           *)
4655             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4656             continue # so that we can try to find one that supports BSD flags
4657             ;;
4658           esac
4659           ;;
4660         esac
4661       fi
4662     done
4663     IFS="$lt_save_ifs"
4664   done
4665   : ${lt_cv_path_NM=no}
4666 fi
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4669 $as_echo "$lt_cv_path_NM" >&6; }
4670 if test "$lt_cv_path_NM" != "no"; then
4671   NM="$lt_cv_path_NM"
4672 else
4673   # Didn't find any BSD compatible name lister, look for dumpbin.
4674   if test -n "$DUMPBIN"; then :
4675     # Let the user override the test.
4676   else
4677     if test -n "$ac_tool_prefix"; then
4678   for ac_prog in dumpbin "link -dump"
4679   do
4680     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_DUMPBIN+:} false; then :
4685   $as_echo_n "(cached) " >&6
4686 else
4687   if test -n "$DUMPBIN"; then
4688   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695     for ac_exec_ext in '' $ac_executable_extensions; do
4696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702   done
4703 IFS=$as_save_IFS
4704
4705 fi
4706 fi
4707 DUMPBIN=$ac_cv_prog_DUMPBIN
4708 if test -n "$DUMPBIN"; then
4709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4710 $as_echo "$DUMPBIN" >&6; }
4711 else
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4714 fi
4715
4716
4717     test -n "$DUMPBIN" && break
4718   done
4719 fi
4720 if test -z "$DUMPBIN"; then
4721   ac_ct_DUMPBIN=$DUMPBIN
4722   for ac_prog in dumpbin "link -dump"
4723 do
4724   # Extract the first word of "$ac_prog", so it can be a program name with args.
4725 set dummy $ac_prog; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -n "$ac_ct_DUMPBIN"; then
4732   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_exec_ext in '' $ac_executable_extensions; do
4740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746   done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4752 if test -n "$ac_ct_DUMPBIN"; then
4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4754 $as_echo "$ac_ct_DUMPBIN" >&6; }
4755 else
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760
4761   test -n "$ac_ct_DUMPBIN" && break
4762 done
4763
4764   if test "x$ac_ct_DUMPBIN" = x; then
4765     DUMPBIN=":"
4766   else
4767     case $cross_compiling:$ac_tool_warned in
4768 yes:)
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771 ac_tool_warned=yes ;;
4772 esac
4773     DUMPBIN=$ac_ct_DUMPBIN
4774   fi
4775 fi
4776
4777     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4778     *COFF*)
4779       DUMPBIN="$DUMPBIN -symbols"
4780       ;;
4781     *)
4782       DUMPBIN=:
4783       ;;
4784     esac
4785   fi
4786
4787   if test "$DUMPBIN" != ":"; then
4788     NM="$DUMPBIN"
4789   fi
4790 fi
4791 test -z "$NM" && NM=nm
4792
4793
4794
4795
4796
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4799 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4800 if ${lt_cv_nm_interface+:} false; then :
4801   $as_echo_n "(cached) " >&6
4802 else
4803   lt_cv_nm_interface="BSD nm"
4804   echo "int some_variable = 0;" > conftest.$ac_ext
4805   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4806   (eval "$ac_compile" 2>conftest.err)
4807   cat conftest.err >&5
4808   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4809   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4810   cat conftest.err >&5
4811   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4812   cat conftest.out >&5
4813   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4814     lt_cv_nm_interface="MS dumpbin"
4815   fi
4816   rm -f conftest*
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4819 $as_echo "$lt_cv_nm_interface" >&6; }
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4822 $as_echo_n "checking whether ln -s works... " >&6; }
4823 LN_S=$as_ln_s
4824 if test "$LN_S" = "ln -s"; then
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826 $as_echo "yes" >&6; }
4827 else
4828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4829 $as_echo "no, using $LN_S" >&6; }
4830 fi
4831
4832 # find the maximum length of command line arguments
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4834 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4835 if ${lt_cv_sys_max_cmd_len+:} false; then :
4836   $as_echo_n "(cached) " >&6
4837 else
4838     i=0
4839   teststring="ABCD"
4840
4841   case $build_os in
4842   msdosdjgpp*)
4843     # On DJGPP, this test can blow up pretty badly due to problems in libc
4844     # (any single argument exceeding 2000 bytes causes a buffer overrun
4845     # during glob expansion).  Even if it were fixed, the result of this
4846     # check would be larger than it should be.
4847     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4848     ;;
4849
4850   gnu*)
4851     # Under GNU Hurd, this test is not required because there is
4852     # no limit to the length of command line arguments.
4853     # Libtool will interpret -1 as no limit whatsoever
4854     lt_cv_sys_max_cmd_len=-1;
4855     ;;
4856
4857   cygwin* | mingw* | cegcc*)
4858     # On Win9x/ME, this test blows up -- it succeeds, but takes
4859     # about 5 minutes as the teststring grows exponentially.
4860     # Worse, since 9x/ME are not pre-emptively multitasking,
4861     # you end up with a "frozen" computer, even though with patience
4862     # the test eventually succeeds (with a max line length of 256k).
4863     # Instead, let's just punt: use the minimum linelength reported by
4864     # all of the supported platforms: 8192 (on NT/2K/XP).
4865     lt_cv_sys_max_cmd_len=8192;
4866     ;;
4867
4868   mint*)
4869     # On MiNT this can take a long time and run out of memory.
4870     lt_cv_sys_max_cmd_len=8192;
4871     ;;
4872
4873   amigaos*)
4874     # On AmigaOS with pdksh, this test takes hours, literally.
4875     # So we just punt and use a minimum line length of 8192.
4876     lt_cv_sys_max_cmd_len=8192;
4877     ;;
4878
4879   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4880     # This has been around since 386BSD, at least.  Likely further.
4881     if test -x /sbin/sysctl; then
4882       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4883     elif test -x /usr/sbin/sysctl; then
4884       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4885     else
4886       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4887     fi
4888     # And add a safety zone
4889     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4890     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4891     ;;
4892
4893   interix*)
4894     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4895     lt_cv_sys_max_cmd_len=196608
4896     ;;
4897
4898   os2*)
4899     # The test takes a long time on OS/2.
4900     lt_cv_sys_max_cmd_len=8192
4901     ;;
4902
4903   osf*)
4904     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4905     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4906     # nice to cause kernel panics so lets avoid the loop below.
4907     # First set a reasonable default.
4908     lt_cv_sys_max_cmd_len=16384
4909     #
4910     if test -x /sbin/sysconfig; then
4911       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4912         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4913       esac
4914     fi
4915     ;;
4916   sco3.2v5*)
4917     lt_cv_sys_max_cmd_len=102400
4918     ;;
4919   sysv5* | sco5v6* | sysv4.2uw2*)
4920     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4921     if test -n "$kargmax"; then
4922       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4923     else
4924       lt_cv_sys_max_cmd_len=32768
4925     fi
4926     ;;
4927   *)
4928     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4929     if test -n "$lt_cv_sys_max_cmd_len"; then
4930       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4931       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4932     else
4933       # Make teststring a little bigger before we do anything with it.
4934       # a 1K string should be a reasonable start.
4935       for i in 1 2 3 4 5 6 7 8 ; do
4936         teststring=$teststring$teststring
4937       done
4938       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4939       # If test is not a shell built-in, we'll probably end up computing a
4940       # maximum length that is only half of the actual maximum length, but
4941       # we can't tell.
4942       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4943                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4944               test $i != 17 # 1/2 MB should be enough
4945       do
4946         i=`expr $i + 1`
4947         teststring=$teststring$teststring
4948       done
4949       # Only check the string length outside the loop.
4950       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4951       teststring=
4952       # Add a significant safety factor because C++ compilers can tack on
4953       # massive amounts of additional arguments before passing them to the
4954       # linker.  It appears as though 1/2 is a usable value.
4955       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4956     fi
4957     ;;
4958   esac
4959
4960 fi
4961
4962 if test -n $lt_cv_sys_max_cmd_len ; then
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4964 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4965 else
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4967 $as_echo "none" >&6; }
4968 fi
4969 max_cmd_len=$lt_cv_sys_max_cmd_len
4970
4971
4972
4973
4974
4975
4976 : ${CP="cp -f"}
4977 : ${MV="mv -f"}
4978 : ${RM="rm -f"}
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4981 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4982 # Try some XSI features
4983 xsi_shell=no
4984 ( _lt_dummy="a/b/c"
4985   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4986       = c,a/b,b/c, \
4987     && eval 'test $(( 1 + 1 )) -eq 2 \
4988     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4989   && xsi_shell=yes
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4991 $as_echo "$xsi_shell" >&6; }
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4995 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4996 lt_shell_append=no
4997 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4998     >/dev/null 2>&1 \
4999   && lt_shell_append=yes
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5001 $as_echo "$lt_shell_append" >&6; }
5002
5003
5004 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5005   lt_unset=unset
5006 else
5007   lt_unset=false
5008 fi
5009
5010
5011
5012
5013
5014 # test EBCDIC or ASCII
5015 case `echo X|tr X '\101'` in
5016  A) # ASCII based system
5017     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5018   lt_SP2NL='tr \040 \012'
5019   lt_NL2SP='tr \015\012 \040\040'
5020   ;;
5021  *) # EBCDIC based system
5022   lt_SP2NL='tr \100 \n'
5023   lt_NL2SP='tr \r\n \100\100'
5024   ;;
5025 esac
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5036 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5037 if ${lt_cv_to_host_file_cmd+:} false; then :
5038   $as_echo_n "(cached) " >&6
5039 else
5040   case $host in
5041   *-*-mingw* )
5042     case $build in
5043       *-*-mingw* ) # actually msys
5044         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5045         ;;
5046       *-*-cygwin* )
5047         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5048         ;;
5049       * ) # otherwise, assume *nix
5050         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5051         ;;
5052     esac
5053     ;;
5054   *-*-cygwin* )
5055     case $build in
5056       *-*-mingw* ) # actually msys
5057         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5058         ;;
5059       *-*-cygwin* )
5060         lt_cv_to_host_file_cmd=func_convert_file_noop
5061         ;;
5062       * ) # otherwise, assume *nix
5063         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5064         ;;
5065     esac
5066     ;;
5067   * ) # unhandled hosts (and "normal" native builds)
5068     lt_cv_to_host_file_cmd=func_convert_file_noop
5069     ;;
5070 esac
5071
5072 fi
5073
5074 to_host_file_cmd=$lt_cv_to_host_file_cmd
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5076 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5077
5078
5079
5080
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5083 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5084 if ${lt_cv_to_tool_file_cmd+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   #assume ordinary cross tools, or native build.
5088 lt_cv_to_tool_file_cmd=func_convert_file_noop
5089 case $host in
5090   *-*-mingw* )
5091     case $build in
5092       *-*-mingw* ) # actually msys
5093         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5094         ;;
5095     esac
5096     ;;
5097 esac
5098
5099 fi
5100
5101 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5103 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5104
5105
5106
5107
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5110 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5111 if ${lt_cv_ld_reload_flag+:} false; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   lt_cv_ld_reload_flag='-r'
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5117 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5118 reload_flag=$lt_cv_ld_reload_flag
5119 case $reload_flag in
5120 "" | " "*) ;;
5121 *) reload_flag=" $reload_flag" ;;
5122 esac
5123 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5124 case $host_os in
5125   cygwin* | mingw* | pw32* | cegcc*)
5126     if test "$GCC" != yes; then
5127       reload_cmds=false
5128     fi
5129     ;;
5130   darwin*)
5131     if test "$GCC" = yes; then
5132       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5133     else
5134       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5135     fi
5136     ;;
5137 esac
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147 if test -n "$ac_tool_prefix"; then
5148   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5149 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_OBJDUMP+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   if test -n "$OBJDUMP"; then
5156   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161   IFS=$as_save_IFS
5162   test -z "$as_dir" && as_dir=.
5163     for ac_exec_ext in '' $ac_executable_extensions; do
5164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167     break 2
5168   fi
5169 done
5170   done
5171 IFS=$as_save_IFS
5172
5173 fi
5174 fi
5175 OBJDUMP=$ac_cv_prog_OBJDUMP
5176 if test -n "$OBJDUMP"; then
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5178 $as_echo "$OBJDUMP" >&6; }
5179 else
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184
5185 fi
5186 if test -z "$ac_cv_prog_OBJDUMP"; then
5187   ac_ct_OBJDUMP=$OBJDUMP
5188   # Extract the first word of "objdump", so it can be a program name with args.
5189 set dummy objdump; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   if test -n "$ac_ct_OBJDUMP"; then
5196   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203     for ac_exec_ext in '' $ac_executable_extensions; do
5204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210   done
5211 IFS=$as_save_IFS
5212
5213 fi
5214 fi
5215 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5216 if test -n "$ac_ct_OBJDUMP"; then
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5218 $as_echo "$ac_ct_OBJDUMP" >&6; }
5219 else
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 fi
5223
5224   if test "x$ac_ct_OBJDUMP" = x; then
5225     OBJDUMP="false"
5226   else
5227     case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233     OBJDUMP=$ac_ct_OBJDUMP
5234   fi
5235 else
5236   OBJDUMP="$ac_cv_prog_OBJDUMP"
5237 fi
5238
5239 test -z "$OBJDUMP" && OBJDUMP=objdump
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5250 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5251 if ${lt_cv_deplibs_check_method+:} false; then :
5252   $as_echo_n "(cached) " >&6
5253 else
5254   lt_cv_file_magic_cmd='$MAGIC_CMD'
5255 lt_cv_file_magic_test_file=
5256 lt_cv_deplibs_check_method='unknown'
5257 # Need to set the preceding variable on all platforms that support
5258 # interlibrary dependencies.
5259 # 'none' -- dependencies not supported.
5260 # `unknown' -- same as none, but documents that we really don't know.
5261 # 'pass_all' -- all dependencies passed with no checks.
5262 # 'test_compile' -- check by making test program.
5263 # 'file_magic [[regex]]' -- check by looking for files in library path
5264 # which responds to the $file_magic_cmd with a given extended regex.
5265 # If you have `file' or equivalent on your system and you're not sure
5266 # whether `pass_all' will *always* work, you probably want this one.
5267
5268 case $host_os in
5269 aix[4-9]*)
5270   lt_cv_deplibs_check_method=pass_all
5271   ;;
5272
5273 beos*)
5274   lt_cv_deplibs_check_method=pass_all
5275   ;;
5276
5277 bsdi[45]*)
5278   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5279   lt_cv_file_magic_cmd='/usr/bin/file -L'
5280   lt_cv_file_magic_test_file=/shlib/libc.so
5281   ;;
5282
5283 cygwin*)
5284   # func_win32_libid is a shell function defined in ltmain.sh
5285   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5286   lt_cv_file_magic_cmd='func_win32_libid'
5287   ;;
5288
5289 mingw* | pw32*)
5290   # Base MSYS/MinGW do not provide the 'file' command needed by
5291   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5292   # unless we find 'file', for example because we are cross-compiling.
5293   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5294   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5295     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5296     lt_cv_file_magic_cmd='func_win32_libid'
5297   else
5298     # Keep this pattern in sync with the one in func_win32_libid.
5299     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5300     lt_cv_file_magic_cmd='$OBJDUMP -f'
5301   fi
5302   ;;
5303
5304 cegcc*)
5305   # use the weaker test based on 'objdump'. See mingw*.
5306   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5307   lt_cv_file_magic_cmd='$OBJDUMP -f'
5308   ;;
5309
5310 darwin* | rhapsody*)
5311   lt_cv_deplibs_check_method=pass_all
5312   ;;
5313
5314 freebsd* | dragonfly*)
5315   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5316     case $host_cpu in
5317     i*86 )
5318       # Not sure whether the presence of OpenBSD here was a mistake.
5319       # Let's accept both of them until this is cleared up.
5320       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5321       lt_cv_file_magic_cmd=/usr/bin/file
5322       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5323       ;;
5324     esac
5325   else
5326     lt_cv_deplibs_check_method=pass_all
5327   fi
5328   ;;
5329
5330 gnu*)
5331   lt_cv_deplibs_check_method=pass_all
5332   ;;
5333
5334 haiku*)
5335   lt_cv_deplibs_check_method=pass_all
5336   ;;
5337
5338 hpux10.20* | hpux11*)
5339   lt_cv_file_magic_cmd=/usr/bin/file
5340   case $host_cpu in
5341   ia64*)
5342     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5343     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5344     ;;
5345   hppa*64*)
5346     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5347     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5348     ;;
5349   *)
5350     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5351     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5352     ;;
5353   esac
5354   ;;
5355
5356 interix[3-9]*)
5357   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5358   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5359   ;;
5360
5361 irix5* | irix6* | nonstopux*)
5362   case $LD in
5363   *-32|*"-32 ") libmagic=32-bit;;
5364   *-n32|*"-n32 ") libmagic=N32;;
5365   *-64|*"-64 ") libmagic=64-bit;;
5366   *) libmagic=never-match;;
5367   esac
5368   lt_cv_deplibs_check_method=pass_all
5369   ;;
5370
5371 # This must be glibc/ELF.
5372 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5373   lt_cv_deplibs_check_method=pass_all
5374   ;;
5375
5376 netbsd*)
5377   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5378     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5379   else
5380     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5381   fi
5382   ;;
5383
5384 newos6*)
5385   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5386   lt_cv_file_magic_cmd=/usr/bin/file
5387   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5388   ;;
5389
5390 *nto* | *qnx*)
5391   lt_cv_deplibs_check_method=pass_all
5392   ;;
5393
5394 openbsd*)
5395   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5396     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5397   else
5398     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5399   fi
5400   ;;
5401
5402 osf3* | osf4* | osf5*)
5403   lt_cv_deplibs_check_method=pass_all
5404   ;;
5405
5406 rdos*)
5407   lt_cv_deplibs_check_method=pass_all
5408   ;;
5409
5410 solaris*)
5411   lt_cv_deplibs_check_method=pass_all
5412   ;;
5413
5414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5415   lt_cv_deplibs_check_method=pass_all
5416   ;;
5417
5418 sysv4 | sysv4.3*)
5419   case $host_vendor in
5420   motorola)
5421     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]'
5422     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5423     ;;
5424   ncr)
5425     lt_cv_deplibs_check_method=pass_all
5426     ;;
5427   sequent)
5428     lt_cv_file_magic_cmd='/bin/file'
5429     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5430     ;;
5431   sni)
5432     lt_cv_file_magic_cmd='/bin/file'
5433     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5434     lt_cv_file_magic_test_file=/lib/libc.so
5435     ;;
5436   siemens)
5437     lt_cv_deplibs_check_method=pass_all
5438     ;;
5439   pc)
5440     lt_cv_deplibs_check_method=pass_all
5441     ;;
5442   esac
5443   ;;
5444
5445 tpf*)
5446   lt_cv_deplibs_check_method=pass_all
5447   ;;
5448 esac
5449
5450 fi
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5452 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5453
5454 file_magic_glob=
5455 want_nocaseglob=no
5456 if test "$build" = "$host"; then
5457   case $host_os in
5458   mingw* | pw32*)
5459     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5460       want_nocaseglob=yes
5461     else
5462       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5463     fi
5464     ;;
5465   esac
5466 fi
5467
5468 file_magic_cmd=$lt_cv_file_magic_cmd
5469 deplibs_check_method=$lt_cv_deplibs_check_method
5470 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493 if test -n "$ac_tool_prefix"; then
5494   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_DLLTOOL+:} false; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if test -n "$DLLTOOL"; then
5502   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 DLLTOOL=$ac_cv_prog_DLLTOOL
5522 if test -n "$DLLTOOL"; then
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5524 $as_echo "$DLLTOOL" >&6; }
5525 else
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531 fi
5532 if test -z "$ac_cv_prog_DLLTOOL"; then
5533   ac_ct_DLLTOOL=$DLLTOOL
5534   # Extract the first word of "dlltool", so it can be a program name with args.
5535 set dummy dlltool; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5539   $as_echo_n "(cached) " >&6
5540 else
5541   if test -n "$ac_ct_DLLTOOL"; then
5542   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549     for ac_exec_ext in '' $ac_executable_extensions; do
5550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556   done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5562 if test -n "$ac_ct_DLLTOOL"; then
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5564 $as_echo "$ac_ct_DLLTOOL" >&6; }
5565 else
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570   if test "x$ac_ct_DLLTOOL" = x; then
5571     DLLTOOL="false"
5572   else
5573     case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579     DLLTOOL=$ac_ct_DLLTOOL
5580   fi
5581 else
5582   DLLTOOL="$ac_cv_prog_DLLTOOL"
5583 fi
5584
5585 test -z "$DLLTOOL" && DLLTOOL=dlltool
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5597 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5598 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   lt_cv_sharedlib_from_linklib_cmd='unknown'
5602
5603 case $host_os in
5604 cygwin* | mingw* | pw32* | cegcc*)
5605   # two different shell functions defined in ltmain.sh
5606   # decide which to use based on capabilities of $DLLTOOL
5607   case `$DLLTOOL --help 2>&1` in
5608   *--identify-strict*)
5609     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5610     ;;
5611   *)
5612     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5613     ;;
5614   esac
5615   ;;
5616 *)
5617   # fallback: assume linklib IS sharedlib
5618   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5619   ;;
5620 esac
5621
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5624 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5625 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5626 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5627
5628
5629
5630
5631
5632
5633
5634
5635 if test -n "$ac_tool_prefix"; then
5636   for ac_prog in ar
5637   do
5638     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_AR+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   if test -n "$AR"; then
5646   ac_cv_prog_AR="$AR" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653     for ac_exec_ext in '' $ac_executable_extensions; do
5654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660   done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 AR=$ac_cv_prog_AR
5666 if test -n "$AR"; then
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5668 $as_echo "$AR" >&6; }
5669 else
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674
5675     test -n "$AR" && break
5676   done
5677 fi
5678 if test -z "$AR"; then
5679   ac_ct_AR=$AR
5680   for ac_prog in ar
5681 do
5682   # Extract the first word of "$ac_prog", so it can be a program name with args.
5683 set dummy $ac_prog; ac_word=$2
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   if test -n "$ac_ct_AR"; then
5690   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695   IFS=$as_save_IFS
5696   test -z "$as_dir" && as_dir=.
5697     for ac_exec_ext in '' $ac_executable_extensions; do
5698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699     ac_cv_prog_ac_ct_AR="$ac_prog"
5700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701     break 2
5702   fi
5703 done
5704   done
5705 IFS=$as_save_IFS
5706
5707 fi
5708 fi
5709 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5710 if test -n "$ac_ct_AR"; then
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5712 $as_echo "$ac_ct_AR" >&6; }
5713 else
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716 fi
5717
5718
5719   test -n "$ac_ct_AR" && break
5720 done
5721
5722   if test "x$ac_ct_AR" = x; then
5723     AR="false"
5724   else
5725     case $cross_compiling:$ac_tool_warned in
5726 yes:)
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5729 ac_tool_warned=yes ;;
5730 esac
5731     AR=$ac_ct_AR
5732   fi
5733 fi
5734
5735 : ${AR=ar}
5736 : ${AR_FLAGS=cru}
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5749 $as_echo_n "checking for archiver @FILE support... " >&6; }
5750 if ${lt_cv_ar_at_file+:} false; then :
5751   $as_echo_n "(cached) " >&6
5752 else
5753   lt_cv_ar_at_file=no
5754    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h.  */
5756
5757 int
5758 main ()
5759 {
5760
5761   ;
5762   return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766   echo conftest.$ac_objext > conftest.lst
5767       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5768       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5769   (eval $lt_ar_try) 2>&5
5770   ac_status=$?
5771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5772   test $ac_status = 0; }
5773       if test "$ac_status" -eq 0; then
5774         # Ensure the archiver fails upon bogus file names.
5775         rm -f conftest.$ac_objext libconftest.a
5776         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5777   (eval $lt_ar_try) 2>&5
5778   ac_status=$?
5779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5780   test $ac_status = 0; }
5781         if test "$ac_status" -ne 0; then
5782           lt_cv_ar_at_file=@
5783         fi
5784       fi
5785       rm -f conftest.* libconftest.a
5786
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5792 $as_echo "$lt_cv_ar_at_file" >&6; }
5793
5794 if test "x$lt_cv_ar_at_file" = xno; then
5795   archiver_list_spec=
5796 else
5797   archiver_list_spec=$lt_cv_ar_at_file
5798 fi
5799
5800
5801
5802
5803
5804
5805
5806 if test -n "$ac_tool_prefix"; then
5807   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}strip; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_STRIP+:} false; then :
5812   $as_echo_n "(cached) " >&6
5813 else
5814   if test -n "$STRIP"; then
5815   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822     for ac_exec_ext in '' $ac_executable_extensions; do
5823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829   done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 STRIP=$ac_cv_prog_STRIP
5835 if test -n "$STRIP"; then
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5837 $as_echo "$STRIP" >&6; }
5838 else
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843
5844 fi
5845 if test -z "$ac_cv_prog_STRIP"; then
5846   ac_ct_STRIP=$STRIP
5847   # Extract the first word of "strip", so it can be a program name with args.
5848 set dummy strip; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5852   $as_echo_n "(cached) " >&6
5853 else
5854   if test -n "$ac_ct_STRIP"; then
5855   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862     for ac_exec_ext in '' $ac_executable_extensions; do
5863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864     ac_cv_prog_ac_ct_STRIP="strip"
5865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869   done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5875 if test -n "$ac_ct_STRIP"; then
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5877 $as_echo "$ac_ct_STRIP" >&6; }
5878 else
5879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883   if test "x$ac_ct_STRIP" = x; then
5884     STRIP=":"
5885   else
5886     case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892     STRIP=$ac_ct_STRIP
5893   fi
5894 else
5895   STRIP="$ac_cv_prog_STRIP"
5896 fi
5897
5898 test -z "$STRIP" && STRIP=:
5899
5900
5901
5902
5903
5904
5905 if test -n "$ac_tool_prefix"; then
5906   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_RANLIB+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   if test -n "$RANLIB"; then
5914   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921     for ac_exec_ext in '' $ac_executable_extensions; do
5922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928   done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 RANLIB=$ac_cv_prog_RANLIB
5934 if test -n "$RANLIB"; then
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5936 $as_echo "$RANLIB" >&6; }
5937 else
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941
5942
5943 fi
5944 if test -z "$ac_cv_prog_RANLIB"; then
5945   ac_ct_RANLIB=$RANLIB
5946   # Extract the first word of "ranlib", so it can be a program name with args.
5947 set dummy ranlib; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5951   $as_echo_n "(cached) " >&6
5952 else
5953   if test -n "$ac_ct_RANLIB"; then
5954   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959   IFS=$as_save_IFS
5960   test -z "$as_dir" && as_dir=.
5961     for ac_exec_ext in '' $ac_executable_extensions; do
5962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963     ac_cv_prog_ac_ct_RANLIB="ranlib"
5964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965     break 2
5966   fi
5967 done
5968   done
5969 IFS=$as_save_IFS
5970
5971 fi
5972 fi
5973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5974 if test -n "$ac_ct_RANLIB"; then
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5976 $as_echo "$ac_ct_RANLIB" >&6; }
5977 else
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981
5982   if test "x$ac_ct_RANLIB" = x; then
5983     RANLIB=":"
5984   else
5985     case $cross_compiling:$ac_tool_warned in
5986 yes:)
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989 ac_tool_warned=yes ;;
5990 esac
5991     RANLIB=$ac_ct_RANLIB
5992   fi
5993 else
5994   RANLIB="$ac_cv_prog_RANLIB"
5995 fi
5996
5997 test -z "$RANLIB" && RANLIB=:
5998
5999
6000
6001
6002
6003
6004 # Determine commands to create old-style static archives.
6005 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6006 old_postinstall_cmds='chmod 644 $oldlib'
6007 old_postuninstall_cmds=
6008
6009 if test -n "$RANLIB"; then
6010   case $host_os in
6011   openbsd*)
6012     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6013     ;;
6014   *)
6015     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6016     ;;
6017   esac
6018   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6019 fi
6020
6021 case $host_os in
6022   darwin*)
6023     lock_old_archive_extraction=yes ;;
6024   *)
6025     lock_old_archive_extraction=no ;;
6026 esac
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 # If no C compiler was specified, use CC.
6067 LTCC=${LTCC-"$CC"}
6068
6069 # If no C compiler flags were specified, use CFLAGS.
6070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6071
6072 # Allow CC to be a program name with arguments.
6073 compiler=$CC
6074
6075
6076 # Check for command to grab the raw symbol name followed by C symbol from nm.
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6078 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6079 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082
6083 # These are sane defaults that work on at least a few old systems.
6084 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6085
6086 # Character class describing NM global symbol codes.
6087 symcode='[BCDEGRST]'
6088
6089 # Regexp to match symbols that can be accessed directly from C.
6090 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6091
6092 # Define system-specific variables.
6093 case $host_os in
6094 aix*)
6095   symcode='[BCDT]'
6096   ;;
6097 cygwin* | mingw* | pw32* | cegcc*)
6098   symcode='[ABCDGISTW]'
6099   ;;
6100 hpux*)
6101   if test "$host_cpu" = ia64; then
6102     symcode='[ABCDEGRST]'
6103   fi
6104   ;;
6105 irix* | nonstopux*)
6106   symcode='[BCDEGRST]'
6107   ;;
6108 osf*)
6109   symcode='[BCDEGQRST]'
6110   ;;
6111 solaris*)
6112   symcode='[BDRT]'
6113   ;;
6114 sco3.2v5*)
6115   symcode='[DT]'
6116   ;;
6117 sysv4.2uw2*)
6118   symcode='[DT]'
6119   ;;
6120 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6121   symcode='[ABDT]'
6122   ;;
6123 sysv4)
6124   symcode='[DFNSTU]'
6125   ;;
6126 esac
6127
6128 # If we're using GNU nm, then use its standard symbol codes.
6129 case `$NM -V 2>&1` in
6130 *GNU* | *'with BFD'*)
6131   symcode='[ABCDGIRSTW]' ;;
6132 esac
6133
6134 # Transform an extracted symbol line into a proper C declaration.
6135 # Some systems (esp. on ia64) link data and code symbols differently,
6136 # so use this general approach.
6137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6138
6139 # Transform an extracted symbol line into symbol name and symbol address
6140 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6141 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'"
6142
6143 # Handle CRLF in mingw tool chain
6144 opt_cr=
6145 case $build_os in
6146 mingw*)
6147   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6148   ;;
6149 esac
6150
6151 # Try without a prefix underscore, then with it.
6152 for ac_symprfx in "" "_"; do
6153
6154   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6155   symxfrm="\\1 $ac_symprfx\\2 \\2"
6156
6157   # Write the raw and C identifiers.
6158   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6159     # Fake it for dumpbin and say T for any non-static function
6160     # and D for any global variable.
6161     # Also find C++ and __fastcall symbols from MSVC++,
6162     # which start with @ or ?.
6163     lt_cv_sys_global_symbol_pipe="$AWK '"\
6164 "     {last_section=section; section=\$ 3};"\
6165 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6166 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6167 "     \$ 0!~/External *\|/{next};"\
6168 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6169 "     {if(hide[section]) next};"\
6170 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6171 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6172 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6173 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6174 "     ' prfx=^$ac_symprfx"
6175   else
6176     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6177   fi
6178   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6179
6180   # Check to see that the pipe works correctly.
6181   pipe_works=no
6182
6183   rm -f conftest*
6184   cat > conftest.$ac_ext <<_LT_EOF
6185 #ifdef __cplusplus
6186 extern "C" {
6187 #endif
6188 char nm_test_var;
6189 void nm_test_func(void);
6190 void nm_test_func(void){}
6191 #ifdef __cplusplus
6192 }
6193 #endif
6194 int main(){nm_test_var='a';nm_test_func();return(0);}
6195 _LT_EOF
6196
6197   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198   (eval $ac_compile) 2>&5
6199   ac_status=$?
6200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201   test $ac_status = 0; }; then
6202     # Now try to grab the symbols.
6203     nlist=conftest.nm
6204     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6205   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6206   ac_status=$?
6207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208   test $ac_status = 0; } && test -s "$nlist"; then
6209       # Try sorting and uniquifying the output.
6210       if sort "$nlist" | uniq > "$nlist"T; then
6211         mv -f "$nlist"T "$nlist"
6212       else
6213         rm -f "$nlist"T
6214       fi
6215
6216       # Make sure that we snagged all the symbols we need.
6217       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6218         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6219           cat <<_LT_EOF > conftest.$ac_ext
6220 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6221 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6222 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6223    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6224 # define LT_DLSYM_CONST
6225 #elif defined(__osf__)
6226 /* This system does not cope well with relocations in const data.  */
6227 # define LT_DLSYM_CONST
6228 #else
6229 # define LT_DLSYM_CONST const
6230 #endif
6231
6232 #ifdef __cplusplus
6233 extern "C" {
6234 #endif
6235
6236 _LT_EOF
6237           # Now generate the symbol file.
6238           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6239
6240           cat <<_LT_EOF >> conftest.$ac_ext
6241
6242 /* The mapping between symbol names and symbols.  */
6243 LT_DLSYM_CONST struct {
6244   const char *name;
6245   void       *address;
6246 }
6247 lt__PROGRAM__LTX_preloaded_symbols[] =
6248 {
6249   { "@PROGRAM@", (void *) 0 },
6250 _LT_EOF
6251           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6252           cat <<\_LT_EOF >> conftest.$ac_ext
6253   {0, (void *) 0}
6254 };
6255
6256 /* This works around a problem in FreeBSD linker */
6257 #ifdef FREEBSD_WORKAROUND
6258 static const void *lt_preloaded_setup() {
6259   return lt__PROGRAM__LTX_preloaded_symbols;
6260 }
6261 #endif
6262
6263 #ifdef __cplusplus
6264 }
6265 #endif
6266 _LT_EOF
6267           # Now try linking the two files.
6268           mv conftest.$ac_objext conftstm.$ac_objext
6269           lt_globsym_save_LIBS=$LIBS
6270           lt_globsym_save_CFLAGS=$CFLAGS
6271           LIBS="conftstm.$ac_objext"
6272           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6273           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6274   (eval $ac_link) 2>&5
6275   ac_status=$?
6276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6278             pipe_works=yes
6279           fi
6280           LIBS=$lt_globsym_save_LIBS
6281           CFLAGS=$lt_globsym_save_CFLAGS
6282         else
6283           echo "cannot find nm_test_func in $nlist" >&5
6284         fi
6285       else
6286         echo "cannot find nm_test_var in $nlist" >&5
6287       fi
6288     else
6289       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6290     fi
6291   else
6292     echo "$progname: failed program was:" >&5
6293     cat conftest.$ac_ext >&5
6294   fi
6295   rm -rf conftest* conftst*
6296
6297   # Do not use the global_symbol_pipe unless it works.
6298   if test "$pipe_works" = yes; then
6299     break
6300   else
6301     lt_cv_sys_global_symbol_pipe=
6302   fi
6303 done
6304
6305 fi
6306
6307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6308   lt_cv_sys_global_symbol_to_cdecl=
6309 fi
6310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6312 $as_echo "failed" >&6; }
6313 else
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6315 $as_echo "ok" >&6; }
6316 fi
6317
6318 # Response file support.
6319 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6320   nm_file_list_spec='@'
6321 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6322   nm_file_list_spec='@'
6323 fi
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6352 $as_echo_n "checking for sysroot... " >&6; }
6353
6354 # Check whether --with-sysroot was given.
6355 if test "${with_sysroot+set}" = set; then :
6356   withval=$with_sysroot;
6357 else
6358   with_sysroot=no
6359 fi
6360
6361
6362 lt_sysroot=
6363 case ${with_sysroot} in #(
6364  yes)
6365    if test "$GCC" = yes; then
6366      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6367    fi
6368    ;; #(
6369  /*)
6370    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6371    ;; #(
6372  no|'')
6373    ;; #(
6374  *)
6375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6376 $as_echo "${with_sysroot}" >&6; }
6377    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6378    ;;
6379 esac
6380
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6382 $as_echo "${lt_sysroot:-no}" >&6; }
6383
6384
6385
6386
6387
6388 # Check whether --enable-libtool-lock was given.
6389 if test "${enable_libtool_lock+set}" = set; then :
6390   enableval=$enable_libtool_lock;
6391 fi
6392
6393 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6394
6395 # Some flags need to be propagated to the compiler or linker for good
6396 # libtool support.
6397 case $host in
6398 ia64-*-hpux*)
6399   # Find out which ABI we are using.
6400   echo 'int i;' > conftest.$ac_ext
6401   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6402   (eval $ac_compile) 2>&5
6403   ac_status=$?
6404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405   test $ac_status = 0; }; then
6406     case `/usr/bin/file conftest.$ac_objext` in
6407       *ELF-32*)
6408         HPUX_IA64_MODE="32"
6409         ;;
6410       *ELF-64*)
6411         HPUX_IA64_MODE="64"
6412         ;;
6413     esac
6414   fi
6415   rm -rf conftest*
6416   ;;
6417 *-*-irix6*)
6418   # Find out which ABI we are using.
6419   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6420   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6421   (eval $ac_compile) 2>&5
6422   ac_status=$?
6423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424   test $ac_status = 0; }; then
6425     if test "$lt_cv_prog_gnu_ld" = yes; then
6426       case `/usr/bin/file conftest.$ac_objext` in
6427         *32-bit*)
6428           LD="${LD-ld} -melf32bsmip"
6429           ;;
6430         *N32*)
6431           LD="${LD-ld} -melf32bmipn32"
6432           ;;
6433         *64-bit*)
6434           LD="${LD-ld} -melf64bmip"
6435         ;;
6436       esac
6437     else
6438       case `/usr/bin/file conftest.$ac_objext` in
6439         *32-bit*)
6440           LD="${LD-ld} -32"
6441           ;;
6442         *N32*)
6443           LD="${LD-ld} -n32"
6444           ;;
6445         *64-bit*)
6446           LD="${LD-ld} -64"
6447           ;;
6448       esac
6449     fi
6450   fi
6451   rm -rf conftest*
6452   ;;
6453
6454 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6455 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6456   # Find out which ABI we are using.
6457   echo 'int i;' > conftest.$ac_ext
6458   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6459   (eval $ac_compile) 2>&5
6460   ac_status=$?
6461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462   test $ac_status = 0; }; then
6463     case `/usr/bin/file conftest.o` in
6464       *32-bit*)
6465         case $host in
6466           x86_64-*kfreebsd*-gnu)
6467             LD="${LD-ld} -m elf_i386_fbsd"
6468             ;;
6469           x86_64-*linux*)
6470             LD="${LD-ld} -m elf_i386"
6471             ;;
6472           ppc64-*linux*|powerpc64-*linux*)
6473             LD="${LD-ld} -m elf32ppclinux"
6474             ;;
6475           s390x-*linux*)
6476             LD="${LD-ld} -m elf_s390"
6477             ;;
6478           sparc64-*linux*)
6479             LD="${LD-ld} -m elf32_sparc"
6480             ;;
6481         esac
6482         ;;
6483       *64-bit*)
6484         case $host in
6485           x86_64-*kfreebsd*-gnu)
6486             LD="${LD-ld} -m elf_x86_64_fbsd"
6487             ;;
6488           x86_64-*linux*)
6489             LD="${LD-ld} -m elf_x86_64"
6490             ;;
6491           ppc*-*linux*|powerpc*-*linux*)
6492             LD="${LD-ld} -m elf64ppc"
6493             ;;
6494           s390*-*linux*|s390*-*tpf*)
6495             LD="${LD-ld} -m elf64_s390"
6496             ;;
6497           sparc*-*linux*)
6498             LD="${LD-ld} -m elf64_sparc"
6499             ;;
6500         esac
6501         ;;
6502     esac
6503   fi
6504   rm -rf conftest*
6505   ;;
6506
6507 *-*-sco3.2v5*)
6508   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6509   SAVE_CFLAGS="$CFLAGS"
6510   CFLAGS="$CFLAGS -belf"
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6512 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6513 if ${lt_cv_cc_needs_belf+:} false; then :
6514   $as_echo_n "(cached) " >&6
6515 else
6516   ac_ext=c
6517 ac_cpp='$CPP $CPPFLAGS'
6518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
6522      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h.  */
6524
6525 int
6526 main ()
6527 {
6528
6529   ;
6530   return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_c_try_link "$LINENO"; then :
6534   lt_cv_cc_needs_belf=yes
6535 else
6536   lt_cv_cc_needs_belf=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext \
6539     conftest$ac_exeext conftest.$ac_ext
6540      ac_ext=c
6541 ac_cpp='$CPP $CPPFLAGS'
6542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6548 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6549   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6550     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6551     CFLAGS="$SAVE_CFLAGS"
6552   fi
6553   ;;
6554 *-*solaris*)
6555   # Find out which ABI we are using.
6556   echo 'int i;' > conftest.$ac_ext
6557   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6558   (eval $ac_compile) 2>&5
6559   ac_status=$?
6560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6561   test $ac_status = 0; }; then
6562     case `/usr/bin/file conftest.o` in
6563     *64-bit*)
6564       case $lt_cv_prog_gnu_ld in
6565       yes*)
6566         case $host in
6567         i?86-*-solaris*)
6568           LD="${LD-ld} -m elf_x86_64"
6569           ;;
6570         sparc*-*-solaris*)
6571           LD="${LD-ld} -m elf64_sparc"
6572           ;;
6573         esac
6574         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6575         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6576           LD="${LD-ld}_sol2"
6577         fi
6578         ;;
6579       *)
6580         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6581           LD="${LD-ld} -64"
6582         fi
6583         ;;
6584       esac
6585       ;;
6586     esac
6587   fi
6588   rm -rf conftest*
6589   ;;
6590 esac
6591
6592 need_locks="$enable_libtool_lock"
6593
6594 if test -n "$ac_tool_prefix"; then
6595   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}mt; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6600   $as_echo_n "(cached) " >&6
6601 else
6602   if test -n "$MANIFEST_TOOL"; then
6603   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610     for ac_exec_ext in '' $ac_executable_extensions; do
6611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617   done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6623 if test -n "$MANIFEST_TOOL"; then
6624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6625 $as_echo "$MANIFEST_TOOL" >&6; }
6626 else
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631
6632 fi
6633 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6634   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6635   # Extract the first word of "mt", so it can be a program name with args.
6636 set dummy mt; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6640   $as_echo_n "(cached) " >&6
6641 else
6642   if test -n "$ac_ct_MANIFEST_TOOL"; then
6643   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648   IFS=$as_save_IFS
6649   test -z "$as_dir" && as_dir=.
6650     for ac_exec_ext in '' $ac_executable_extensions; do
6651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654     break 2
6655   fi
6656 done
6657   done
6658 IFS=$as_save_IFS
6659
6660 fi
6661 fi
6662 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6663 if test -n "$ac_ct_MANIFEST_TOOL"; then
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6665 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6666 else
6667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6669 fi
6670
6671   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6672     MANIFEST_TOOL=":"
6673   else
6674     case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6681   fi
6682 else
6683   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6684 fi
6685
6686 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6688 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6689 if ${lt_cv_path_mainfest_tool+:} false; then :
6690   $as_echo_n "(cached) " >&6
6691 else
6692   lt_cv_path_mainfest_tool=no
6693   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6694   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6695   cat conftest.err >&5
6696   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6697     lt_cv_path_mainfest_tool=yes
6698   fi
6699   rm -f conftest*
6700 fi
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6702 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6703 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6704   MANIFEST_TOOL=:
6705 fi
6706
6707
6708
6709
6710
6711
6712   case $host_os in
6713     rhapsody* | darwin*)
6714     if test -n "$ac_tool_prefix"; then
6715   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722   if test -n "$DSYMUTIL"; then
6723   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730     for ac_exec_ext in '' $ac_executable_extensions; do
6731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737   done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6743 if test -n "$DSYMUTIL"; then
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6745 $as_echo "$DSYMUTIL" >&6; }
6746 else
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751
6752 fi
6753 if test -z "$ac_cv_prog_DSYMUTIL"; then
6754   ac_ct_DSYMUTIL=$DSYMUTIL
6755   # Extract the first word of "dsymutil", so it can be a program name with args.
6756 set dummy dsymutil; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762   if test -n "$ac_ct_DSYMUTIL"; then
6763   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770     for ac_exec_ext in '' $ac_executable_extensions; do
6771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777   done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6783 if test -n "$ac_ct_DSYMUTIL"; then
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6785 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6786 else
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791   if test "x$ac_ct_DSYMUTIL" = x; then
6792     DSYMUTIL=":"
6793   else
6794     case $cross_compiling:$ac_tool_warned in
6795 yes:)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800     DSYMUTIL=$ac_ct_DSYMUTIL
6801   fi
6802 else
6803   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6804 fi
6805
6806     if test -n "$ac_tool_prefix"; then
6807   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_NMEDIT+:} false; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   if test -n "$NMEDIT"; then
6815   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822     for ac_exec_ext in '' $ac_executable_extensions; do
6823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829   done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 NMEDIT=$ac_cv_prog_NMEDIT
6835 if test -n "$NMEDIT"; then
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6837 $as_echo "$NMEDIT" >&6; }
6838 else
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843
6844 fi
6845 if test -z "$ac_cv_prog_NMEDIT"; then
6846   ac_ct_NMEDIT=$NMEDIT
6847   # Extract the first word of "nmedit", so it can be a program name with args.
6848 set dummy nmedit; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6852   $as_echo_n "(cached) " >&6
6853 else
6854   if test -n "$ac_ct_NMEDIT"; then
6855   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862     for ac_exec_ext in '' $ac_executable_extensions; do
6863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866     break 2
6867   fi
6868 done
6869   done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6875 if test -n "$ac_ct_NMEDIT"; then
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6877 $as_echo "$ac_ct_NMEDIT" >&6; }
6878 else
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883   if test "x$ac_ct_NMEDIT" = x; then
6884     NMEDIT=":"
6885   else
6886     case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892     NMEDIT=$ac_ct_NMEDIT
6893   fi
6894 else
6895   NMEDIT="$ac_cv_prog_NMEDIT"
6896 fi
6897
6898     if test -n "$ac_tool_prefix"; then
6899   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_LIPO+:} false; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   if test -n "$LIPO"; then
6907   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914     for ac_exec_ext in '' $ac_executable_extensions; do
6915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921   done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 LIPO=$ac_cv_prog_LIPO
6927 if test -n "$LIPO"; then
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6929 $as_echo "$LIPO" >&6; }
6930 else
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935
6936 fi
6937 if test -z "$ac_cv_prog_LIPO"; then
6938   ac_ct_LIPO=$LIPO
6939   # Extract the first word of "lipo", so it can be a program name with args.
6940 set dummy lipo; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6944   $as_echo_n "(cached) " >&6
6945 else
6946   if test -n "$ac_ct_LIPO"; then
6947   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954     for ac_exec_ext in '' $ac_executable_extensions; do
6955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956     ac_cv_prog_ac_ct_LIPO="lipo"
6957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961   done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6967 if test -n "$ac_ct_LIPO"; then
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6969 $as_echo "$ac_ct_LIPO" >&6; }
6970 else
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975   if test "x$ac_ct_LIPO" = x; then
6976     LIPO=":"
6977   else
6978     case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984     LIPO=$ac_ct_LIPO
6985   fi
6986 else
6987   LIPO="$ac_cv_prog_LIPO"
6988 fi
6989
6990     if test -n "$ac_tool_prefix"; then
6991   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}otool; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_OTOOL+:} false; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998   if test -n "$OTOOL"; then
6999   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006     for ac_exec_ext in '' $ac_executable_extensions; do
7007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013   done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 OTOOL=$ac_cv_prog_OTOOL
7019 if test -n "$OTOOL"; then
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7021 $as_echo "$OTOOL" >&6; }
7022 else
7023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027
7028 fi
7029 if test -z "$ac_cv_prog_OTOOL"; then
7030   ac_ct_OTOOL=$OTOOL
7031   # Extract the first word of "otool", so it can be a program name with args.
7032 set dummy otool; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7036   $as_echo_n "(cached) " >&6
7037 else
7038   if test -n "$ac_ct_OTOOL"; then
7039   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046     for ac_exec_ext in '' $ac_executable_extensions; do
7047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7048     ac_cv_prog_ac_ct_OTOOL="otool"
7049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053   done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7059 if test -n "$ac_ct_OTOOL"; then
7060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7061 $as_echo "$ac_ct_OTOOL" >&6; }
7062 else
7063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7065 fi
7066
7067   if test "x$ac_ct_OTOOL" = x; then
7068     OTOOL=":"
7069   else
7070     case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076     OTOOL=$ac_ct_OTOOL
7077   fi
7078 else
7079   OTOOL="$ac_cv_prog_OTOOL"
7080 fi
7081
7082     if test -n "$ac_tool_prefix"; then
7083   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_OTOOL64+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   if test -n "$OTOOL64"; then
7091   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098     for ac_exec_ext in '' $ac_executable_extensions; do
7099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105   done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 OTOOL64=$ac_cv_prog_OTOOL64
7111 if test -n "$OTOOL64"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7113 $as_echo "$OTOOL64" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119
7120 fi
7121 if test -z "$ac_cv_prog_OTOOL64"; then
7122   ac_ct_OTOOL64=$OTOOL64
7123   # Extract the first word of "otool64", so it can be a program name with args.
7124 set dummy otool64; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7128   $as_echo_n "(cached) " >&6
7129 else
7130   if test -n "$ac_ct_OTOOL64"; then
7131   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138     for ac_exec_ext in '' $ac_executable_extensions; do
7139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140     ac_cv_prog_ac_ct_OTOOL64="otool64"
7141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145   done
7146 IFS=$as_save_IFS
7147
7148 fi
7149 fi
7150 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7151 if test -n "$ac_ct_OTOOL64"; then
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7153 $as_echo "$ac_ct_OTOOL64" >&6; }
7154 else
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7157 fi
7158
7159   if test "x$ac_ct_OTOOL64" = x; then
7160     OTOOL64=":"
7161   else
7162     case $cross_compiling:$ac_tool_warned in
7163 yes:)
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7166 ac_tool_warned=yes ;;
7167 esac
7168     OTOOL64=$ac_ct_OTOOL64
7169   fi
7170 else
7171   OTOOL64="$ac_cv_prog_OTOOL64"
7172 fi
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7201 $as_echo_n "checking for -single_module linker flag... " >&6; }
7202 if ${lt_cv_apple_cc_single_mod+:} false; then :
7203   $as_echo_n "(cached) " >&6
7204 else
7205   lt_cv_apple_cc_single_mod=no
7206       if test -z "${LT_MULTI_MODULE}"; then
7207         # By default we will add the -single_module flag. You can override
7208         # by either setting the environment variable LT_MULTI_MODULE
7209         # non-empty at configure time, or by adding -multi_module to the
7210         # link flags.
7211         rm -rf libconftest.dylib*
7212         echo "int foo(void){return 1;}" > conftest.c
7213         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7214 -dynamiclib -Wl,-single_module conftest.c" >&5
7215         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7216           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7217         _lt_result=$?
7218         # If there is a non-empty error log, and "single_module"
7219         # appears in it, assume the flag caused a linker warning
7220         if test -s conftest.err && $GREP single_module conftest.err; then
7221           cat conftest.err >&5
7222         # Otherwise, if the output was created with a 0 exit code from
7223         # the compiler, it worked.
7224         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7225           lt_cv_apple_cc_single_mod=yes
7226         else
7227           cat conftest.err >&5
7228         fi
7229         rm -rf libconftest.dylib*
7230         rm -f conftest.*
7231       fi
7232 fi
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7234 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7235
7236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7237 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7238 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7239   $as_echo_n "(cached) " >&6
7240 else
7241   lt_cv_ld_exported_symbols_list=no
7242       save_LDFLAGS=$LDFLAGS
7243       echo "_main" > conftest.sym
7244       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h.  */
7247
7248 int
7249 main ()
7250 {
7251
7252   ;
7253   return 0;
7254 }
7255 _ACEOF
7256 if ac_fn_c_try_link "$LINENO"; then :
7257   lt_cv_ld_exported_symbols_list=yes
7258 else
7259   lt_cv_ld_exported_symbols_list=no
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext \
7262     conftest$ac_exeext conftest.$ac_ext
7263         LDFLAGS="$save_LDFLAGS"
7264
7265 fi
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7267 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7268
7269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7270 $as_echo_n "checking for -force_load linker flag... " >&6; }
7271 if ${lt_cv_ld_force_load+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   lt_cv_ld_force_load=no
7275       cat > conftest.c << _LT_EOF
7276 int forced_loaded() { return 2;}
7277 _LT_EOF
7278       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7279       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7280       echo "$AR cru libconftest.a conftest.o" >&5
7281       $AR cru libconftest.a conftest.o 2>&5
7282       echo "$RANLIB libconftest.a" >&5
7283       $RANLIB libconftest.a 2>&5
7284       cat > conftest.c << _LT_EOF
7285 int main() { return 0;}
7286 _LT_EOF
7287       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7288       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7289       _lt_result=$?
7290       if test -s conftest.err && $GREP force_load conftest.err; then
7291         cat conftest.err >&5
7292       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7293         lt_cv_ld_force_load=yes
7294       else
7295         cat conftest.err >&5
7296       fi
7297         rm -f conftest.err libconftest.a conftest conftest.c
7298         rm -rf conftest.dSYM
7299
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7302 $as_echo "$lt_cv_ld_force_load" >&6; }
7303     case $host_os in
7304     rhapsody* | darwin1.[012])
7305       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7306     darwin1.*)
7307       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308     darwin*) # darwin 5.x on
7309       # if running on 10.5 or later, the deployment target defaults
7310       # to the OS version, if on x86, and 10.4, the deployment
7311       # target defaults to 10.4. Don't you love it?
7312       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7313         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7314           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7315         10.[012]*)
7316           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7317         10.*)
7318           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7319       esac
7320     ;;
7321   esac
7322     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7323       _lt_dar_single_mod='$single_module'
7324     fi
7325     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7326       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7327     else
7328       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7329     fi
7330     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7331       _lt_dsymutil='~$DSYMUTIL $lib || :'
7332     else
7333       _lt_dsymutil=
7334     fi
7335     ;;
7336   esac
7337
7338 ac_ext=c
7339 ac_cpp='$CPP $CPPFLAGS'
7340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7345 # On Suns, sometimes $CPP names a directory.
7346 if test -n "$CPP" && test -d "$CPP"; then
7347   CPP=
7348 fi
7349 if test -z "$CPP"; then
7350   if ${ac_cv_prog_CPP+:} false; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353       # Double quotes because CPP needs to be expanded
7354     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7355     do
7356       ac_preproc_ok=false
7357 for ac_c_preproc_warn_flag in '' yes
7358 do
7359   # Use a header file that comes with gcc, so configuring glibc
7360   # with a fresh cross-compiler works.
7361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7362   # <limits.h> exists even on freestanding compilers.
7363   # On the NeXT, cc -E runs the code through the compiler's parser,
7364   # not just through cpp. "Syntax error" is here to catch this case.
7365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h.  */
7367 #ifdef __STDC__
7368 # include <limits.h>
7369 #else
7370 # include <assert.h>
7371 #endif
7372                      Syntax error
7373 _ACEOF
7374 if ac_fn_c_try_cpp "$LINENO"; then :
7375
7376 else
7377   # Broken: fails on valid input.
7378 continue
7379 fi
7380 rm -f conftest.err conftest.i conftest.$ac_ext
7381
7382   # OK, works on sane cases.  Now check whether nonexistent headers
7383   # can be detected and how.
7384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h.  */
7386 #include <ac_nonexistent.h>
7387 _ACEOF
7388 if ac_fn_c_try_cpp "$LINENO"; then :
7389   # Broken: success on invalid input.
7390 continue
7391 else
7392   # Passes both tests.
7393 ac_preproc_ok=:
7394 break
7395 fi
7396 rm -f conftest.err conftest.i conftest.$ac_ext
7397
7398 done
7399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7400 rm -f conftest.i conftest.err conftest.$ac_ext
7401 if $ac_preproc_ok; then :
7402   break
7403 fi
7404
7405     done
7406     ac_cv_prog_CPP=$CPP
7407
7408 fi
7409   CPP=$ac_cv_prog_CPP
7410 else
7411   ac_cv_prog_CPP=$CPP
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7414 $as_echo "$CPP" >&6; }
7415 ac_preproc_ok=false
7416 for ac_c_preproc_warn_flag in '' yes
7417 do
7418   # Use a header file that comes with gcc, so configuring glibc
7419   # with a fresh cross-compiler works.
7420   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7421   # <limits.h> exists even on freestanding compilers.
7422   # On the NeXT, cc -E runs the code through the compiler's parser,
7423   # not just through cpp. "Syntax error" is here to catch this case.
7424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h.  */
7426 #ifdef __STDC__
7427 # include <limits.h>
7428 #else
7429 # include <assert.h>
7430 #endif
7431                      Syntax error
7432 _ACEOF
7433 if ac_fn_c_try_cpp "$LINENO"; then :
7434
7435 else
7436   # Broken: fails on valid input.
7437 continue
7438 fi
7439 rm -f conftest.err conftest.i conftest.$ac_ext
7440
7441   # OK, works on sane cases.  Now check whether nonexistent headers
7442   # can be detected and how.
7443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h.  */
7445 #include <ac_nonexistent.h>
7446 _ACEOF
7447 if ac_fn_c_try_cpp "$LINENO"; then :
7448   # Broken: success on invalid input.
7449 continue
7450 else
7451   # Passes both tests.
7452 ac_preproc_ok=:
7453 break
7454 fi
7455 rm -f conftest.err conftest.i conftest.$ac_ext
7456
7457 done
7458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7459 rm -f conftest.i conftest.err conftest.$ac_ext
7460 if $ac_preproc_ok; then :
7461
7462 else
7463   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7465 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7466 See \`config.log' for more details" "$LINENO" 5; }
7467 fi
7468
7469 ac_ext=c
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474
7475
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7477 $as_echo_n "checking for ANSI C header files... " >&6; }
7478 if ${ac_cv_header_stdc+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h.  */
7483 #include <stdlib.h>
7484 #include <stdarg.h>
7485 #include <string.h>
7486 #include <float.h>
7487
7488 int
7489 main ()
7490 {
7491
7492   ;
7493   return 0;
7494 }
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497   ac_cv_header_stdc=yes
7498 else
7499   ac_cv_header_stdc=no
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502
7503 if test $ac_cv_header_stdc = yes; then
7504   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h.  */
7507 #include <string.h>
7508
7509 _ACEOF
7510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7511   $EGREP "memchr" >/dev/null 2>&1; then :
7512
7513 else
7514   ac_cv_header_stdc=no
7515 fi
7516 rm -f conftest*
7517
7518 fi
7519
7520 if test $ac_cv_header_stdc = yes; then
7521   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h.  */
7524 #include <stdlib.h>
7525
7526 _ACEOF
7527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7528   $EGREP "free" >/dev/null 2>&1; then :
7529
7530 else
7531   ac_cv_header_stdc=no
7532 fi
7533 rm -f conftest*
7534
7535 fi
7536
7537 if test $ac_cv_header_stdc = yes; then
7538   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7539   if test "$cross_compiling" = yes; then :
7540   :
7541 else
7542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h.  */
7544 #include <ctype.h>
7545 #include <stdlib.h>
7546 #if ((' ' & 0x0FF) == 0x020)
7547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7549 #else
7550 # define ISLOWER(c) \
7551                    (('a' <= (c) && (c) <= 'i') \
7552                      || ('j' <= (c) && (c) <= 'r') \
7553                      || ('s' <= (c) && (c) <= 'z'))
7554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7555 #endif
7556
7557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7558 int
7559 main ()
7560 {
7561   int i;
7562   for (i = 0; i < 256; i++)
7563     if (XOR (islower (i), ISLOWER (i))
7564         || toupper (i) != TOUPPER (i))
7565       return 2;
7566   return 0;
7567 }
7568 _ACEOF
7569 if ac_fn_c_try_run "$LINENO"; then :
7570
7571 else
7572   ac_cv_header_stdc=no
7573 fi
7574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7575   conftest.$ac_objext conftest.beam conftest.$ac_ext
7576 fi
7577
7578 fi
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7581 $as_echo "$ac_cv_header_stdc" >&6; }
7582 if test $ac_cv_header_stdc = yes; then
7583
7584 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7585
7586 fi
7587
7588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7590                   inttypes.h stdint.h unistd.h
7591 do :
7592   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7593 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7594 "
7595 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7596   cat >>confdefs.h <<_ACEOF
7597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7598 _ACEOF
7599
7600 fi
7601
7602 done
7603
7604
7605 for ac_header in dlfcn.h
7606 do :
7607   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7608 "
7609 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7610   cat >>confdefs.h <<_ACEOF
7611 #define HAVE_DLFCN_H 1
7612 _ACEOF
7613
7614 fi
7615
7616 done
7617
7618
7619
7620
7621
7622 # Set options
7623 # Check whether --enable-static was given.
7624 if test "${enable_static+set}" = set; then :
7625   enableval=$enable_static; p=${PACKAGE-default}
7626     case $enableval in
7627     yes) enable_static=yes ;;
7628     no) enable_static=no ;;
7629     *)
7630      enable_static=no
7631       # Look at the argument we got.  We use all the common list separators.
7632       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7633       for pkg in $enableval; do
7634         IFS="$lt_save_ifs"
7635         if test "X$pkg" = "X$p"; then
7636           enable_static=yes
7637         fi
7638       done
7639       IFS="$lt_save_ifs"
7640       ;;
7641     esac
7642 else
7643   enable_static=no
7644 fi
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655         enable_dlopen=no
7656
7657
7658   enable_win32_dll=no
7659
7660
7661             # Check whether --enable-shared was given.
7662 if test "${enable_shared+set}" = set; then :
7663   enableval=$enable_shared; p=${PACKAGE-default}
7664     case $enableval in
7665     yes) enable_shared=yes ;;
7666     no) enable_shared=no ;;
7667     *)
7668       enable_shared=no
7669       # Look at the argument we got.  We use all the common list separators.
7670       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7671       for pkg in $enableval; do
7672         IFS="$lt_save_ifs"
7673         if test "X$pkg" = "X$p"; then
7674           enable_shared=yes
7675         fi
7676       done
7677       IFS="$lt_save_ifs"
7678       ;;
7679     esac
7680 else
7681   enable_shared=yes
7682 fi
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694 # Check whether --with-pic was given.
7695 if test "${with_pic+set}" = set; then :
7696   withval=$with_pic; lt_p=${PACKAGE-default}
7697     case $withval in
7698     yes|no) pic_mode=$withval ;;
7699     *)
7700       pic_mode=default
7701       # Look at the argument we got.  We use all the common list separators.
7702       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7703       for lt_pkg in $withval; do
7704         IFS="$lt_save_ifs"
7705         if test "X$lt_pkg" = "X$lt_p"; then
7706           pic_mode=yes
7707         fi
7708       done
7709       IFS="$lt_save_ifs"
7710       ;;
7711     esac
7712 else
7713   pic_mode=default
7714 fi
7715
7716
7717 test -z "$pic_mode" && pic_mode=default
7718
7719
7720
7721
7722
7723
7724
7725   # Check whether --enable-fast-install was given.
7726 if test "${enable_fast_install+set}" = set; then :
7727   enableval=$enable_fast_install; p=${PACKAGE-default}
7728     case $enableval in
7729     yes) enable_fast_install=yes ;;
7730     no) enable_fast_install=no ;;
7731     *)
7732       enable_fast_install=no
7733       # Look at the argument we got.  We use all the common list separators.
7734       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7735       for pkg in $enableval; do
7736         IFS="$lt_save_ifs"
7737         if test "X$pkg" = "X$p"; then
7738           enable_fast_install=yes
7739         fi
7740       done
7741       IFS="$lt_save_ifs"
7742       ;;
7743     esac
7744 else
7745   enable_fast_install=yes
7746 fi
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758 # This can be used to rebuild libtool when needed
7759 LIBTOOL_DEPS="$ltmain"
7760
7761 # Always use our own libtool.
7762 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793 test -z "$LN_S" && LN_S="ln -s"
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 if test -n "${ZSH_VERSION+set}" ; then
7809    setopt NO_GLOB_SUBST
7810 fi
7811
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7813 $as_echo_n "checking for objdir... " >&6; }
7814 if ${lt_cv_objdir+:} false; then :
7815   $as_echo_n "(cached) " >&6
7816 else
7817   rm -f .libs 2>/dev/null
7818 mkdir .libs 2>/dev/null
7819 if test -d .libs; then
7820   lt_cv_objdir=.libs
7821 else
7822   # MS-DOS does not allow filenames that begin with a dot.
7823   lt_cv_objdir=_libs
7824 fi
7825 rmdir .libs 2>/dev/null
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7828 $as_echo "$lt_cv_objdir" >&6; }
7829 objdir=$lt_cv_objdir
7830
7831
7832
7833
7834
7835 cat >>confdefs.h <<_ACEOF
7836 #define LT_OBJDIR "$lt_cv_objdir/"
7837 _ACEOF
7838
7839
7840
7841
7842 case $host_os in
7843 aix3*)
7844   # AIX sometimes has problems with the GCC collect2 program.  For some
7845   # reason, if we set the COLLECT_NAMES environment variable, the problems
7846   # vanish in a puff of smoke.
7847   if test "X${COLLECT_NAMES+set}" != Xset; then
7848     COLLECT_NAMES=
7849     export COLLECT_NAMES
7850   fi
7851   ;;
7852 esac
7853
7854 # Global variables:
7855 ofile=libtool
7856 can_build_shared=yes
7857
7858 # All known linkers require a `.a' archive for static linking (except MSVC,
7859 # which needs '.lib').
7860 libext=a
7861
7862 with_gnu_ld="$lt_cv_prog_gnu_ld"
7863
7864 old_CC="$CC"
7865 old_CFLAGS="$CFLAGS"
7866
7867 # Set sane defaults for various variables
7868 test -z "$CC" && CC=cc
7869 test -z "$LTCC" && LTCC=$CC
7870 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7871 test -z "$LD" && LD=ld
7872 test -z "$ac_objext" && ac_objext=o
7873
7874 for cc_temp in $compiler""; do
7875   case $cc_temp in
7876     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7877     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7878     \-*) ;;
7879     *) break;;
7880   esac
7881 done
7882 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7883
7884
7885 # Only perform the check for file, if the check method requires it
7886 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7887 case $deplibs_check_method in
7888 file_magic*)
7889   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7891 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7892 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895   case $MAGIC_CMD in
7896 [\\/*] |  ?:[\\/]*)
7897   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7898   ;;
7899 *)
7900   lt_save_MAGIC_CMD="$MAGIC_CMD"
7901   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7902   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7903   for ac_dir in $ac_dummy; do
7904     IFS="$lt_save_ifs"
7905     test -z "$ac_dir" && ac_dir=.
7906     if test -f $ac_dir/${ac_tool_prefix}file; then
7907       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7908       if test -n "$file_magic_test_file"; then
7909         case $deplibs_check_method in
7910         "file_magic "*)
7911           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7912           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7914             $EGREP "$file_magic_regex" > /dev/null; then
7915             :
7916           else
7917             cat <<_LT_EOF 1>&2
7918
7919 *** Warning: the command libtool uses to detect shared libraries,
7920 *** $file_magic_cmd, produces output that libtool cannot recognize.
7921 *** The result is that libtool may fail to recognize shared libraries
7922 *** as such.  This will affect the creation of libtool libraries that
7923 *** depend on shared libraries, but programs linked with such libtool
7924 *** libraries will work regardless of this problem.  Nevertheless, you
7925 *** may want to report the problem to your system manager and/or to
7926 *** bug-libtool@gnu.org
7927
7928 _LT_EOF
7929           fi ;;
7930         esac
7931       fi
7932       break
7933     fi
7934   done
7935   IFS="$lt_save_ifs"
7936   MAGIC_CMD="$lt_save_MAGIC_CMD"
7937   ;;
7938 esac
7939 fi
7940
7941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7942 if test -n "$MAGIC_CMD"; then
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7944 $as_echo "$MAGIC_CMD" >&6; }
7945 else
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950
7951
7952
7953
7954 if test -z "$lt_cv_path_MAGIC_CMD"; then
7955   if test -n "$ac_tool_prefix"; then
7956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7957 $as_echo_n "checking for file... " >&6; }
7958 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7959   $as_echo_n "(cached) " >&6
7960 else
7961   case $MAGIC_CMD in
7962 [\\/*] |  ?:[\\/]*)
7963   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7964   ;;
7965 *)
7966   lt_save_MAGIC_CMD="$MAGIC_CMD"
7967   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7968   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7969   for ac_dir in $ac_dummy; do
7970     IFS="$lt_save_ifs"
7971     test -z "$ac_dir" && ac_dir=.
7972     if test -f $ac_dir/file; then
7973       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7974       if test -n "$file_magic_test_file"; then
7975         case $deplibs_check_method in
7976         "file_magic "*)
7977           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7978           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7980             $EGREP "$file_magic_regex" > /dev/null; then
7981             :
7982           else
7983             cat <<_LT_EOF 1>&2
7984
7985 *** Warning: the command libtool uses to detect shared libraries,
7986 *** $file_magic_cmd, produces output that libtool cannot recognize.
7987 *** The result is that libtool may fail to recognize shared libraries
7988 *** as such.  This will affect the creation of libtool libraries that
7989 *** depend on shared libraries, but programs linked with such libtool
7990 *** libraries will work regardless of this problem.  Nevertheless, you
7991 *** may want to report the problem to your system manager and/or to
7992 *** bug-libtool@gnu.org
7993
7994 _LT_EOF
7995           fi ;;
7996         esac
7997       fi
7998       break
7999     fi
8000   done
8001   IFS="$lt_save_ifs"
8002   MAGIC_CMD="$lt_save_MAGIC_CMD"
8003   ;;
8004 esac
8005 fi
8006
8007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8008 if test -n "$MAGIC_CMD"; then
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8010 $as_echo "$MAGIC_CMD" >&6; }
8011 else
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016
8017   else
8018     MAGIC_CMD=:
8019   fi
8020 fi
8021
8022   fi
8023   ;;
8024 esac
8025
8026 # Use C for the default configuration in the libtool script
8027
8028 lt_save_CC="$CC"
8029 ac_ext=c
8030 ac_cpp='$CPP $CPPFLAGS'
8031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034
8035
8036 # Source file extension for C test sources.
8037 ac_ext=c
8038
8039 # Object file extension for compiled C test sources.
8040 objext=o
8041 objext=$objext
8042
8043 # Code to be used in simple compile tests
8044 lt_simple_compile_test_code="int some_variable = 0;"
8045
8046 # Code to be used in simple link tests
8047 lt_simple_link_test_code='int main(){return(0);}'
8048
8049
8050
8051
8052
8053
8054
8055 # If no C compiler was specified, use CC.
8056 LTCC=${LTCC-"$CC"}
8057
8058 # If no C compiler flags were specified, use CFLAGS.
8059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8060
8061 # Allow CC to be a program name with arguments.
8062 compiler=$CC
8063
8064 # Save the default compiler, since it gets overwritten when the other
8065 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8066 compiler_DEFAULT=$CC
8067
8068 # save warnings/boilerplate of simple test code
8069 ac_outfile=conftest.$ac_objext
8070 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8071 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8072 _lt_compiler_boilerplate=`cat conftest.err`
8073 $RM conftest*
8074
8075 ac_outfile=conftest.$ac_objext
8076 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8077 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8078 _lt_linker_boilerplate=`cat conftest.err`
8079 $RM -r conftest*
8080
8081
8082 ## CAVEAT EMPTOR:
8083 ## There is no encapsulation within the following macros, do not change
8084 ## the running order or otherwise move them around unless you know exactly
8085 ## what you are doing...
8086 if test -n "$compiler"; then
8087
8088 lt_prog_compiler_no_builtin_flag=
8089
8090 if test "$GCC" = yes; then
8091   case $cc_basename in
8092   nvcc*)
8093     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8094   *)
8095     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8096   esac
8097
8098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8099 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8100 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8101   $as_echo_n "(cached) " >&6
8102 else
8103   lt_cv_prog_compiler_rtti_exceptions=no
8104    ac_outfile=conftest.$ac_objext
8105    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106    lt_compiler_flag="-fno-rtti -fno-exceptions"
8107    # Insert the option either (1) after the last *FLAGS variable, or
8108    # (2) before a word containing "conftest.", or (3) at the end.
8109    # Note that $ac_compile itself does not contain backslashes and begins
8110    # with a dollar sign (not a hyphen), so the echo should work correctly.
8111    # The option is referenced via a variable to avoid confusing sed.
8112    lt_compile=`echo "$ac_compile" | $SED \
8113    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115    -e 's:$: $lt_compiler_flag:'`
8116    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8117    (eval "$lt_compile" 2>conftest.err)
8118    ac_status=$?
8119    cat conftest.err >&5
8120    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121    if (exit $ac_status) && test -s "$ac_outfile"; then
8122      # The compiler can only warn and ignore the option if not recognized
8123      # So say no if there are warnings other than the usual output.
8124      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8125      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8126      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8127        lt_cv_prog_compiler_rtti_exceptions=yes
8128      fi
8129    fi
8130    $RM conftest*
8131
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8134 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8135
8136 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8137     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8138 else
8139     :
8140 fi
8141
8142 fi
8143
8144
8145
8146
8147
8148
8149   lt_prog_compiler_wl=
8150 lt_prog_compiler_pic=
8151 lt_prog_compiler_static=
8152
8153
8154   if test "$GCC" = yes; then
8155     lt_prog_compiler_wl='-Wl,'
8156     lt_prog_compiler_static='-static'
8157
8158     case $host_os in
8159       aix*)
8160       # All AIX code is PIC.
8161       if test "$host_cpu" = ia64; then
8162         # AIX 5 now supports IA64 processor
8163         lt_prog_compiler_static='-Bstatic'
8164       fi
8165       ;;
8166
8167     amigaos*)
8168       case $host_cpu in
8169       powerpc)
8170             # see comment about AmigaOS4 .so support
8171             lt_prog_compiler_pic='-fPIC'
8172         ;;
8173       m68k)
8174             # FIXME: we need at least 68020 code to build shared libraries, but
8175             # adding the `-m68020' flag to GCC prevents building anything better,
8176             # like `-m68040'.
8177             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8178         ;;
8179       esac
8180       ;;
8181
8182     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8183       # PIC is the default for these OSes.
8184       ;;
8185
8186     mingw* | cygwin* | pw32* | os2* | cegcc*)
8187       # This hack is so that the source file can tell whether it is being
8188       # built for inclusion in a dll (and should export symbols for example).
8189       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8190       # (--disable-auto-import) libraries
8191       lt_prog_compiler_pic='-DDLL_EXPORT'
8192       ;;
8193
8194     darwin* | rhapsody*)
8195       # PIC is the default on this platform
8196       # Common symbols not allowed in MH_DYLIB files
8197       lt_prog_compiler_pic='-fno-common'
8198       ;;
8199
8200     haiku*)
8201       # PIC is the default for Haiku.
8202       # The "-static" flag exists, but is broken.
8203       lt_prog_compiler_static=
8204       ;;
8205
8206     hpux*)
8207       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8208       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8209       # sets the default TLS model and affects inlining.
8210       case $host_cpu in
8211       hppa*64*)
8212         # +Z the default
8213         ;;
8214       *)
8215         lt_prog_compiler_pic='-fPIC'
8216         ;;
8217       esac
8218       ;;
8219
8220     interix[3-9]*)
8221       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8222       # Instead, we relocate shared libraries at runtime.
8223       ;;
8224
8225     msdosdjgpp*)
8226       # Just because we use GCC doesn't mean we suddenly get shared libraries
8227       # on systems that don't support them.
8228       lt_prog_compiler_can_build_shared=no
8229       enable_shared=no
8230       ;;
8231
8232     *nto* | *qnx*)
8233       # QNX uses GNU C++, but need to define -shared option too, otherwise
8234       # it will coredump.
8235       lt_prog_compiler_pic='-fPIC -shared'
8236       ;;
8237
8238     sysv4*MP*)
8239       if test -d /usr/nec; then
8240         lt_prog_compiler_pic=-Kconform_pic
8241       fi
8242       ;;
8243
8244     *)
8245       lt_prog_compiler_pic='-fPIC'
8246       ;;
8247     esac
8248
8249     case $cc_basename in
8250     nvcc*) # Cuda Compiler Driver 2.2
8251       lt_prog_compiler_wl='-Xlinker '
8252       if test -n "$lt_prog_compiler_pic"; then
8253         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8254       fi
8255       ;;
8256     esac
8257   else
8258     # PORTME Check for flag to pass linker flags through the system compiler.
8259     case $host_os in
8260     aix*)
8261       lt_prog_compiler_wl='-Wl,'
8262       if test "$host_cpu" = ia64; then
8263         # AIX 5 now supports IA64 processor
8264         lt_prog_compiler_static='-Bstatic'
8265       else
8266         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8267       fi
8268       ;;
8269
8270     mingw* | cygwin* | pw32* | os2* | cegcc*)
8271       # This hack is so that the source file can tell whether it is being
8272       # built for inclusion in a dll (and should export symbols for example).
8273       lt_prog_compiler_pic='-DDLL_EXPORT'
8274       ;;
8275
8276     hpux9* | hpux10* | hpux11*)
8277       lt_prog_compiler_wl='-Wl,'
8278       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8279       # not for PA HP-UX.
8280       case $host_cpu in
8281       hppa*64*|ia64*)
8282         # +Z the default
8283         ;;
8284       *)
8285         lt_prog_compiler_pic='+Z'
8286         ;;
8287       esac
8288       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8289       lt_prog_compiler_static='${wl}-a ${wl}archive'
8290       ;;
8291
8292     irix5* | irix6* | nonstopux*)
8293       lt_prog_compiler_wl='-Wl,'
8294       # PIC (with -KPIC) is the default.
8295       lt_prog_compiler_static='-non_shared'
8296       ;;
8297
8298     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8299       case $cc_basename in
8300       # old Intel for x86_64 which still supported -KPIC.
8301       ecc*)
8302         lt_prog_compiler_wl='-Wl,'
8303         lt_prog_compiler_pic='-KPIC'
8304         lt_prog_compiler_static='-static'
8305         ;;
8306       # icc used to be incompatible with GCC.
8307       # ICC 10 doesn't accept -KPIC any more.
8308       icc* | ifort*)
8309         lt_prog_compiler_wl='-Wl,'
8310         lt_prog_compiler_pic='-fPIC'
8311         lt_prog_compiler_static='-static'
8312         ;;
8313       # Lahey Fortran 8.1.
8314       lf95*)
8315         lt_prog_compiler_wl='-Wl,'
8316         lt_prog_compiler_pic='--shared'
8317         lt_prog_compiler_static='--static'
8318         ;;
8319       nagfor*)
8320         # NAG Fortran compiler
8321         lt_prog_compiler_wl='-Wl,-Wl,,'
8322         lt_prog_compiler_pic='-PIC'
8323         lt_prog_compiler_static='-Bstatic'
8324         ;;
8325       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8326         # Portland Group compilers (*not* the Pentium gcc compiler,
8327         # which looks to be a dead project)
8328         lt_prog_compiler_wl='-Wl,'
8329         lt_prog_compiler_pic='-fpic'
8330         lt_prog_compiler_static='-Bstatic'
8331         ;;
8332       ccc*)
8333         lt_prog_compiler_wl='-Wl,'
8334         # All Alpha code is PIC.
8335         lt_prog_compiler_static='-non_shared'
8336         ;;
8337       xl* | bgxl* | bgf* | mpixl*)
8338         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8339         lt_prog_compiler_wl='-Wl,'
8340         lt_prog_compiler_pic='-qpic'
8341         lt_prog_compiler_static='-qstaticlink'
8342         ;;
8343       *)
8344         case `$CC -V 2>&1 | sed 5q` in
8345         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8346           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8347           lt_prog_compiler_pic='-KPIC'
8348           lt_prog_compiler_static='-Bstatic'
8349           lt_prog_compiler_wl=''
8350           ;;
8351         *Sun\ F* | *Sun*Fortran*)
8352           lt_prog_compiler_pic='-KPIC'
8353           lt_prog_compiler_static='-Bstatic'
8354           lt_prog_compiler_wl='-Qoption ld '
8355           ;;
8356         *Sun\ C*)
8357           # Sun C 5.9
8358           lt_prog_compiler_pic='-KPIC'
8359           lt_prog_compiler_static='-Bstatic'
8360           lt_prog_compiler_wl='-Wl,'
8361           ;;
8362         *Intel*\ [CF]*Compiler*)
8363           lt_prog_compiler_wl='-Wl,'
8364           lt_prog_compiler_pic='-fPIC'
8365           lt_prog_compiler_static='-static'
8366           ;;
8367         *Portland\ Group*)
8368           lt_prog_compiler_wl='-Wl,'
8369           lt_prog_compiler_pic='-fpic'
8370           lt_prog_compiler_static='-Bstatic'
8371           ;;
8372         esac
8373         ;;
8374       esac
8375       ;;
8376
8377     newsos6)
8378       lt_prog_compiler_pic='-KPIC'
8379       lt_prog_compiler_static='-Bstatic'
8380       ;;
8381
8382     *nto* | *qnx*)
8383       # QNX uses GNU C++, but need to define -shared option too, otherwise
8384       # it will coredump.
8385       lt_prog_compiler_pic='-fPIC -shared'
8386       ;;
8387
8388     osf3* | osf4* | osf5*)
8389       lt_prog_compiler_wl='-Wl,'
8390       # All OSF/1 code is PIC.
8391       lt_prog_compiler_static='-non_shared'
8392       ;;
8393
8394     rdos*)
8395       lt_prog_compiler_static='-non_shared'
8396       ;;
8397
8398     solaris*)
8399       lt_prog_compiler_pic='-KPIC'
8400       lt_prog_compiler_static='-Bstatic'
8401       case $cc_basename in
8402       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8403         lt_prog_compiler_wl='-Qoption ld ';;
8404       *)
8405         lt_prog_compiler_wl='-Wl,';;
8406       esac
8407       ;;
8408
8409     sunos4*)
8410       lt_prog_compiler_wl='-Qoption ld '
8411       lt_prog_compiler_pic='-PIC'
8412       lt_prog_compiler_static='-Bstatic'
8413       ;;
8414
8415     sysv4 | sysv4.2uw2* | sysv4.3*)
8416       lt_prog_compiler_wl='-Wl,'
8417       lt_prog_compiler_pic='-KPIC'
8418       lt_prog_compiler_static='-Bstatic'
8419       ;;
8420
8421     sysv4*MP*)
8422       if test -d /usr/nec ;then
8423         lt_prog_compiler_pic='-Kconform_pic'
8424         lt_prog_compiler_static='-Bstatic'
8425       fi
8426       ;;
8427
8428     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8429       lt_prog_compiler_wl='-Wl,'
8430       lt_prog_compiler_pic='-KPIC'
8431       lt_prog_compiler_static='-Bstatic'
8432       ;;
8433
8434     unicos*)
8435       lt_prog_compiler_wl='-Wl,'
8436       lt_prog_compiler_can_build_shared=no
8437       ;;
8438
8439     uts4*)
8440       lt_prog_compiler_pic='-pic'
8441       lt_prog_compiler_static='-Bstatic'
8442       ;;
8443
8444     *)
8445       lt_prog_compiler_can_build_shared=no
8446       ;;
8447     esac
8448   fi
8449
8450 case $host_os in
8451   # For platforms which do not support PIC, -DPIC is meaningless:
8452   *djgpp*)
8453     lt_prog_compiler_pic=
8454     ;;
8455   *)
8456     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8457     ;;
8458 esac
8459
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8461 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8462 if ${lt_cv_prog_compiler_pic+:} false; then :
8463   $as_echo_n "(cached) " >&6
8464 else
8465   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8466 fi
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8468 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8469 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8470
8471 #
8472 # Check to make sure the PIC flag actually works.
8473 #
8474 if test -n "$lt_prog_compiler_pic"; then
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8476 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8477 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   lt_cv_prog_compiler_pic_works=no
8481    ac_outfile=conftest.$ac_objext
8482    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8483    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8484    # Insert the option either (1) after the last *FLAGS variable, or
8485    # (2) before a word containing "conftest.", or (3) at the end.
8486    # Note that $ac_compile itself does not contain backslashes and begins
8487    # with a dollar sign (not a hyphen), so the echo should work correctly.
8488    # The option is referenced via a variable to avoid confusing sed.
8489    lt_compile=`echo "$ac_compile" | $SED \
8490    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8491    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8492    -e 's:$: $lt_compiler_flag:'`
8493    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8494    (eval "$lt_compile" 2>conftest.err)
8495    ac_status=$?
8496    cat conftest.err >&5
8497    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498    if (exit $ac_status) && test -s "$ac_outfile"; then
8499      # The compiler can only warn and ignore the option if not recognized
8500      # So say no if there are warnings other than the usual output.
8501      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8502      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8503      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8504        lt_cv_prog_compiler_pic_works=yes
8505      fi
8506    fi
8507    $RM conftest*
8508
8509 fi
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8511 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8512
8513 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8514     case $lt_prog_compiler_pic in
8515      "" | " "*) ;;
8516      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8517      esac
8518 else
8519     lt_prog_compiler_pic=
8520      lt_prog_compiler_can_build_shared=no
8521 fi
8522
8523 fi
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535 #
8536 # Check to make sure the static flag actually works.
8537 #
8538 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8540 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8541 if ${lt_cv_prog_compiler_static_works+:} false; then :
8542   $as_echo_n "(cached) " >&6
8543 else
8544   lt_cv_prog_compiler_static_works=no
8545    save_LDFLAGS="$LDFLAGS"
8546    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8547    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8548    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8549      # The linker can only warn and ignore the option if not recognized
8550      # So say no if there are warnings
8551      if test -s conftest.err; then
8552        # Append any errors to the config.log.
8553        cat conftest.err 1>&5
8554        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8555        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8556        if diff conftest.exp conftest.er2 >/dev/null; then
8557          lt_cv_prog_compiler_static_works=yes
8558        fi
8559      else
8560        lt_cv_prog_compiler_static_works=yes
8561      fi
8562    fi
8563    $RM -r conftest*
8564    LDFLAGS="$save_LDFLAGS"
8565
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8568 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8569
8570 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8571     :
8572 else
8573     lt_prog_compiler_static=
8574 fi
8575
8576
8577
8578
8579
8580
8581
8582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8583 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8584 if ${lt_cv_prog_compiler_c_o+:} false; then :
8585   $as_echo_n "(cached) " >&6
8586 else
8587   lt_cv_prog_compiler_c_o=no
8588    $RM -r conftest 2>/dev/null
8589    mkdir conftest
8590    cd conftest
8591    mkdir out
8592    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8593
8594    lt_compiler_flag="-o out/conftest2.$ac_objext"
8595    # Insert the option either (1) after the last *FLAGS variable, or
8596    # (2) before a word containing "conftest.", or (3) at the end.
8597    # Note that $ac_compile itself does not contain backslashes and begins
8598    # with a dollar sign (not a hyphen), so the echo should work correctly.
8599    lt_compile=`echo "$ac_compile" | $SED \
8600    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8601    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8602    -e 's:$: $lt_compiler_flag:'`
8603    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8604    (eval "$lt_compile" 2>out/conftest.err)
8605    ac_status=$?
8606    cat out/conftest.err >&5
8607    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8609    then
8610      # The compiler can only warn and ignore the option if not recognized
8611      # So say no if there are warnings
8612      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8613      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8614      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8615        lt_cv_prog_compiler_c_o=yes
8616      fi
8617    fi
8618    chmod u+w . 2>&5
8619    $RM conftest*
8620    # SGI C++ compiler will create directory out/ii_files/ for
8621    # template instantiation
8622    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8623    $RM out/* && rmdir out
8624    cd ..
8625    $RM -r conftest
8626    $RM conftest*
8627
8628 fi
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8630 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8631
8632
8633
8634
8635
8636
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8639 if ${lt_cv_prog_compiler_c_o+:} false; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642   lt_cv_prog_compiler_c_o=no
8643    $RM -r conftest 2>/dev/null
8644    mkdir conftest
8645    cd conftest
8646    mkdir out
8647    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8648
8649    lt_compiler_flag="-o out/conftest2.$ac_objext"
8650    # Insert the option either (1) after the last *FLAGS variable, or
8651    # (2) before a word containing "conftest.", or (3) at the end.
8652    # Note that $ac_compile itself does not contain backslashes and begins
8653    # with a dollar sign (not a hyphen), so the echo should work correctly.
8654    lt_compile=`echo "$ac_compile" | $SED \
8655    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8657    -e 's:$: $lt_compiler_flag:'`
8658    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8659    (eval "$lt_compile" 2>out/conftest.err)
8660    ac_status=$?
8661    cat out/conftest.err >&5
8662    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8664    then
8665      # The compiler can only warn and ignore the option if not recognized
8666      # So say no if there are warnings
8667      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8668      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8669      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8670        lt_cv_prog_compiler_c_o=yes
8671      fi
8672    fi
8673    chmod u+w . 2>&5
8674    $RM conftest*
8675    # SGI C++ compiler will create directory out/ii_files/ for
8676    # template instantiation
8677    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8678    $RM out/* && rmdir out
8679    cd ..
8680    $RM -r conftest
8681    $RM conftest*
8682
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8685 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8686
8687
8688
8689
8690 hard_links="nottested"
8691 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8692   # do not overwrite the value of need_locks provided by the user
8693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8694 $as_echo_n "checking if we can lock with hard links... " >&6; }
8695   hard_links=yes
8696   $RM conftest*
8697   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8698   touch conftest.a
8699   ln conftest.a conftest.b 2>&5 || hard_links=no
8700   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8702 $as_echo "$hard_links" >&6; }
8703   if test "$hard_links" = no; then
8704     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8705 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8706     need_locks=warn
8707   fi
8708 else
8709   need_locks=no
8710 fi
8711
8712
8713
8714
8715
8716
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8719
8720   runpath_var=
8721   allow_undefined_flag=
8722   always_export_symbols=no
8723   archive_cmds=
8724   archive_expsym_cmds=
8725   compiler_needs_object=no
8726   enable_shared_with_static_runtimes=no
8727   export_dynamic_flag_spec=
8728   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8729   hardcode_automatic=no
8730   hardcode_direct=no
8731   hardcode_direct_absolute=no
8732   hardcode_libdir_flag_spec=
8733   hardcode_libdir_separator=
8734   hardcode_minus_L=no
8735   hardcode_shlibpath_var=unsupported
8736   inherit_rpath=no
8737   link_all_deplibs=unknown
8738   module_cmds=
8739   module_expsym_cmds=
8740   old_archive_from_new_cmds=
8741   old_archive_from_expsyms_cmds=
8742   thread_safe_flag_spec=
8743   whole_archive_flag_spec=
8744   # include_expsyms should be a list of space-separated symbols to be *always*
8745   # included in the symbol list
8746   include_expsyms=
8747   # exclude_expsyms can be an extended regexp of symbols to exclude
8748   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8749   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8750   # as well as any symbol that contains `d'.
8751   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8752   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8753   # platforms (ab)use it in PIC code, but their linkers get confused if
8754   # the symbol is explicitly referenced.  Since portable code cannot
8755   # rely on this symbol name, it's probably fine to never include it in
8756   # preloaded symbol tables.
8757   # Exclude shared library initialization/finalization symbols.
8758   extract_expsyms_cmds=
8759
8760   case $host_os in
8761   cygwin* | mingw* | pw32* | cegcc*)
8762     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8763     # When not using gcc, we currently assume that we are using
8764     # Microsoft Visual C++.
8765     if test "$GCC" != yes; then
8766       with_gnu_ld=no
8767     fi
8768     ;;
8769   interix*)
8770     # we just hope/assume this is gcc and not c89 (= MSVC++)
8771     with_gnu_ld=yes
8772     ;;
8773   openbsd*)
8774     with_gnu_ld=no
8775     ;;
8776   esac
8777
8778   ld_shlibs=yes
8779
8780   # On some targets, GNU ld is compatible enough with the native linker
8781   # that we're better off using the native interface for both.
8782   lt_use_gnu_ld_interface=no
8783   if test "$with_gnu_ld" = yes; then
8784     case $host_os in
8785       aix*)
8786         # The AIX port of GNU ld has always aspired to compatibility
8787         # with the native linker.  However, as the warning in the GNU ld
8788         # block says, versions before 2.19.5* couldn't really create working
8789         # shared libraries, regardless of the interface used.
8790         case `$LD -v 2>&1` in
8791           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8792           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8793           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8794           *)
8795             lt_use_gnu_ld_interface=yes
8796             ;;
8797         esac
8798         ;;
8799       *)
8800         lt_use_gnu_ld_interface=yes
8801         ;;
8802     esac
8803   fi
8804
8805   if test "$lt_use_gnu_ld_interface" = yes; then
8806     # If archive_cmds runs LD, not CC, wlarc should be empty
8807     wlarc='${wl}'
8808
8809     # Set some defaults for GNU ld with shared library support. These
8810     # are reset later if shared libraries are not supported. Putting them
8811     # here allows them to be overridden if necessary.
8812     runpath_var=LD_RUN_PATH
8813     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8814     export_dynamic_flag_spec='${wl}--export-dynamic'
8815     # ancient GNU ld didn't support --whole-archive et. al.
8816     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8817       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8818     else
8819       whole_archive_flag_spec=
8820     fi
8821     supports_anon_versioning=no
8822     case `$LD -v 2>&1` in
8823       *GNU\ gold*) supports_anon_versioning=yes ;;
8824       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8825       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8826       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8827       *\ 2.11.*) ;; # other 2.11 versions
8828       *) supports_anon_versioning=yes ;;
8829     esac
8830
8831     # See if GNU ld supports shared libraries.
8832     case $host_os in
8833     aix[3-9]*)
8834       # On AIX/PPC, the GNU linker is very broken
8835       if test "$host_cpu" != ia64; then
8836         ld_shlibs=no
8837         cat <<_LT_EOF 1>&2
8838
8839 *** Warning: the GNU linker, at least up to release 2.19, is reported
8840 *** to be unable to reliably create shared libraries on AIX.
8841 *** Therefore, libtool is disabling shared libraries support.  If you
8842 *** really care for shared libraries, you may want to install binutils
8843 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8844 *** You will then need to restart the configuration process.
8845
8846 _LT_EOF
8847       fi
8848       ;;
8849
8850     amigaos*)
8851       case $host_cpu in
8852       powerpc)
8853             # see comment about AmigaOS4 .so support
8854             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855             archive_expsym_cmds=''
8856         ;;
8857       m68k)
8858             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)'
8859             hardcode_libdir_flag_spec='-L$libdir'
8860             hardcode_minus_L=yes
8861         ;;
8862       esac
8863       ;;
8864
8865     beos*)
8866       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8867         allow_undefined_flag=unsupported
8868         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8869         # support --undefined.  This deserves some investigation.  FIXME
8870         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871       else
8872         ld_shlibs=no
8873       fi
8874       ;;
8875
8876     cygwin* | mingw* | pw32* | cegcc*)
8877       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8878       # as there is no search path for DLLs.
8879       hardcode_libdir_flag_spec='-L$libdir'
8880       export_dynamic_flag_spec='${wl}--export-all-symbols'
8881       allow_undefined_flag=unsupported
8882       always_export_symbols=no
8883       enable_shared_with_static_runtimes=yes
8884       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8885       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8886
8887       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8888         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8889         # If the export-symbols file already is a .def file (1st line
8890         # is EXPORTS), use it as is; otherwise, prepend...
8891         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8892           cp $export_symbols $output_objdir/$soname.def;
8893         else
8894           echo EXPORTS > $output_objdir/$soname.def;
8895           cat $export_symbols >> $output_objdir/$soname.def;
8896         fi~
8897         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8898       else
8899         ld_shlibs=no
8900       fi
8901       ;;
8902
8903     haiku*)
8904       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8905       link_all_deplibs=yes
8906       ;;
8907
8908     interix[3-9]*)
8909       hardcode_direct=no
8910       hardcode_shlibpath_var=no
8911       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8912       export_dynamic_flag_spec='${wl}-E'
8913       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8914       # Instead, shared libraries are loaded at an image base (0x10000000 by
8915       # default) and relocated if they conflict, which is a slow very memory
8916       # consuming and fragmenting process.  To avoid this, we pick a random,
8917       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8918       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8919       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8920       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'
8921       ;;
8922
8923     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8924       tmp_diet=no
8925       if test "$host_os" = linux-dietlibc; then
8926         case $cc_basename in
8927           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8928         esac
8929       fi
8930       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8931          && test "$tmp_diet" = no
8932       then
8933         tmp_addflag=' $pic_flag'
8934         tmp_sharedflag='-shared'
8935         case $cc_basename,$host_cpu in
8936         pgcc*)                          # Portland Group C compiler
8937           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8938           tmp_addflag=' $pic_flag'
8939           ;;
8940         pgf77* | pgf90* | pgf95* | pgfortran*)
8941                                         # Portland Group f77 and f90 compilers
8942           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8943           tmp_addflag=' $pic_flag -Mnomain' ;;
8944         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8945           tmp_addflag=' -i_dynamic' ;;
8946         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8947           tmp_addflag=' -i_dynamic -nofor_main' ;;
8948         ifc* | ifort*)                  # Intel Fortran compiler
8949           tmp_addflag=' -nofor_main' ;;
8950         lf95*)                          # Lahey Fortran 8.1
8951           whole_archive_flag_spec=
8952           tmp_sharedflag='--shared' ;;
8953         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8954           tmp_sharedflag='-qmkshrobj'
8955           tmp_addflag= ;;
8956         nvcc*)  # Cuda Compiler Driver 2.2
8957           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8958           compiler_needs_object=yes
8959           ;;
8960         esac
8961         case `$CC -V 2>&1 | sed 5q` in
8962         *Sun\ C*)                       # Sun C 5.9
8963           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8964           compiler_needs_object=yes
8965           tmp_sharedflag='-G' ;;
8966         *Sun\ F*)                       # Sun Fortran 8.3
8967           tmp_sharedflag='-G' ;;
8968         esac
8969         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970
8971         if test "x$supports_anon_versioning" = xyes; then
8972           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8973             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8974             echo "local: *; };" >> $output_objdir/$libname.ver~
8975             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8976         fi
8977
8978         case $cc_basename in
8979         xlf* | bgf* | bgxlf* | mpixlf*)
8980           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8981           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8982           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8983           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8984           if test "x$supports_anon_versioning" = xyes; then
8985             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8986               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8987               echo "local: *; };" >> $output_objdir/$libname.ver~
8988               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8989           fi
8990           ;;
8991         esac
8992       else
8993         ld_shlibs=no
8994       fi
8995       ;;
8996
8997     netbsd*)
8998       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8999         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9000         wlarc=
9001       else
9002         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004       fi
9005       ;;
9006
9007     solaris*)
9008       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9009         ld_shlibs=no
9010         cat <<_LT_EOF 1>&2
9011
9012 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9013 *** create shared libraries on Solaris systems.  Therefore, libtool
9014 *** is disabling shared libraries support.  We urge you to upgrade GNU
9015 *** binutils to release 2.9.1 or newer.  Another option is to modify
9016 *** your PATH or compiler configuration so that the native linker is
9017 *** used, and then restart.
9018
9019 _LT_EOF
9020       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9021         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9023       else
9024         ld_shlibs=no
9025       fi
9026       ;;
9027
9028     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9029       case `$LD -v 2>&1` in
9030         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9031         ld_shlibs=no
9032         cat <<_LT_EOF 1>&2
9033
9034 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9035 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9036 *** is disabling shared libraries support.  We urge you to upgrade GNU
9037 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9038 *** your PATH or compiler configuration so that the native linker is
9039 *** used, and then restart.
9040
9041 _LT_EOF
9042         ;;
9043         *)
9044           # For security reasons, it is highly recommended that you always
9045           # use absolute paths for naming shared libraries, and exclude the
9046           # DT_RUNPATH tag from executables and libraries.  But doing so
9047           # requires that you compile everything twice, which is a pain.
9048           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9049             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9050             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9052           else
9053             ld_shlibs=no
9054           fi
9055         ;;
9056       esac
9057       ;;
9058
9059     sunos4*)
9060       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9061       wlarc=
9062       hardcode_direct=yes
9063       hardcode_shlibpath_var=no
9064       ;;
9065
9066     *)
9067       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9070       else
9071         ld_shlibs=no
9072       fi
9073       ;;
9074     esac
9075
9076     if test "$ld_shlibs" = no; then
9077       runpath_var=
9078       hardcode_libdir_flag_spec=
9079       export_dynamic_flag_spec=
9080       whole_archive_flag_spec=
9081     fi
9082   else
9083     # PORTME fill in a description of your system's linker (not GNU ld)
9084     case $host_os in
9085     aix3*)
9086       allow_undefined_flag=unsupported
9087       always_export_symbols=yes
9088       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'
9089       # Note: this linker hardcodes the directories in LIBPATH if there
9090       # are no directories specified by -L.
9091       hardcode_minus_L=yes
9092       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9093         # Neither direct hardcoding nor static linking is supported with a
9094         # broken collect2.
9095         hardcode_direct=unsupported
9096       fi
9097       ;;
9098
9099     aix[4-9]*)
9100       if test "$host_cpu" = ia64; then
9101         # On IA64, the linker does run time linking by default, so we don't
9102         # have to do anything special.
9103         aix_use_runtimelinking=no
9104         exp_sym_flag='-Bexport'
9105         no_entry_flag=""
9106       else
9107         # If we're using GNU nm, then we don't want the "-C" option.
9108         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9109         # Also, AIX nm treats weak defined symbols like other global
9110         # defined symbols, whereas GNU nm marks them as "W".
9111         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9112           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9113         else
9114           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'
9115         fi
9116         aix_use_runtimelinking=no
9117
9118         # Test if we are trying to use run time linking or normal
9119         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9120         # need to do runtime linking.
9121         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9122           for ld_flag in $LDFLAGS; do
9123           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9124             aix_use_runtimelinking=yes
9125             break
9126           fi
9127           done
9128           ;;
9129         esac
9130
9131         exp_sym_flag='-bexport'
9132         no_entry_flag='-bnoentry'
9133       fi
9134
9135       # When large executables or shared objects are built, AIX ld can
9136       # have problems creating the table of contents.  If linking a library
9137       # or program results in "error TOC overflow" add -mminimal-toc to
9138       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9139       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9140
9141       archive_cmds=''
9142       hardcode_direct=yes
9143       hardcode_direct_absolute=yes
9144       hardcode_libdir_separator=':'
9145       link_all_deplibs=yes
9146       file_list_spec='${wl}-f,'
9147
9148       if test "$GCC" = yes; then
9149         case $host_os in aix4.[012]|aix4.[012].*)
9150         # We only want to do this on AIX 4.2 and lower, the check
9151         # below for broken collect2 doesn't work under 4.3+
9152           collect2name=`${CC} -print-prog-name=collect2`
9153           if test -f "$collect2name" &&
9154            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9155           then
9156           # We have reworked collect2
9157           :
9158           else
9159           # We have old collect2
9160           hardcode_direct=unsupported
9161           # It fails to find uninstalled libraries when the uninstalled
9162           # path is not listed in the libpath.  Setting hardcode_minus_L
9163           # to unsupported forces relinking
9164           hardcode_minus_L=yes
9165           hardcode_libdir_flag_spec='-L$libdir'
9166           hardcode_libdir_separator=
9167           fi
9168           ;;
9169         esac
9170         shared_flag='-shared'
9171         if test "$aix_use_runtimelinking" = yes; then
9172           shared_flag="$shared_flag "'${wl}-G'
9173         fi
9174       else
9175         # not using gcc
9176         if test "$host_cpu" = ia64; then
9177         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9178         # chokes on -Wl,-G. The following line is correct:
9179           shared_flag='-G'
9180         else
9181           if test "$aix_use_runtimelinking" = yes; then
9182             shared_flag='${wl}-G'
9183           else
9184             shared_flag='${wl}-bM:SRE'
9185           fi
9186         fi
9187       fi
9188
9189       export_dynamic_flag_spec='${wl}-bexpall'
9190       # It seems that -bexpall does not export symbols beginning with
9191       # underscore (_), so it is better to generate a list of symbols to export.
9192       always_export_symbols=yes
9193       if test "$aix_use_runtimelinking" = yes; then
9194         # Warning - without using the other runtime loading flags (-brtl),
9195         # -berok will link without error, but may produce a broken library.
9196         allow_undefined_flag='-berok'
9197         # Determine the default libpath from the value encoded in an
9198         # empty executable.
9199         if test "${lt_cv_aix_libpath+set}" = set; then
9200   aix_libpath=$lt_cv_aix_libpath
9201 else
9202   if ${lt_cv_aix_libpath_+:} false; then :
9203   $as_echo_n "(cached) " >&6
9204 else
9205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h.  */
9207
9208 int
9209 main ()
9210 {
9211
9212   ;
9213   return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217
9218   lt_aix_libpath_sed='
9219       /Import File Strings/,/^$/ {
9220           /^0/ {
9221               s/^0  *\([^ ]*\) *$/\1/
9222               p
9223           }
9224       }'
9225   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226   # Check for a 64-bit object if we didn't find anything.
9227   if test -z "$lt_cv_aix_libpath_"; then
9228     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229   fi
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext \
9232     conftest$ac_exeext conftest.$ac_ext
9233   if test -z "$lt_cv_aix_libpath_"; then
9234     lt_cv_aix_libpath_="/usr/lib:/lib"
9235   fi
9236
9237 fi
9238
9239   aix_libpath=$lt_cv_aix_libpath_
9240 fi
9241
9242         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9243         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9244       else
9245         if test "$host_cpu" = ia64; then
9246           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9247           allow_undefined_flag="-z nodefs"
9248           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"
9249         else
9250          # Determine the default libpath from the value encoded in an
9251          # empty executable.
9252          if test "${lt_cv_aix_libpath+set}" = set; then
9253   aix_libpath=$lt_cv_aix_libpath
9254 else
9255   if ${lt_cv_aix_libpath_+:} false; then :
9256   $as_echo_n "(cached) " >&6
9257 else
9258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h.  */
9260
9261 int
9262 main ()
9263 {
9264
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 if ac_fn_c_try_link "$LINENO"; then :
9270
9271   lt_aix_libpath_sed='
9272       /Import File Strings/,/^$/ {
9273           /^0/ {
9274               s/^0  *\([^ ]*\) *$/\1/
9275               p
9276           }
9277       }'
9278   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9279   # Check for a 64-bit object if we didn't find anything.
9280   if test -z "$lt_cv_aix_libpath_"; then
9281     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9282   fi
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext \
9285     conftest$ac_exeext conftest.$ac_ext
9286   if test -z "$lt_cv_aix_libpath_"; then
9287     lt_cv_aix_libpath_="/usr/lib:/lib"
9288   fi
9289
9290 fi
9291
9292   aix_libpath=$lt_cv_aix_libpath_
9293 fi
9294
9295          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9296           # Warning - without using the other run time loading flags,
9297           # -berok will link without error, but may produce a broken library.
9298           no_undefined_flag=' ${wl}-bernotok'
9299           allow_undefined_flag=' ${wl}-berok'
9300           if test "$with_gnu_ld" = yes; then
9301             # We only use this code for GNU lds that support --whole-archive.
9302             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9303           else
9304             # Exported symbols can be pulled into shared objects from archives
9305             whole_archive_flag_spec='$convenience'
9306           fi
9307           archive_cmds_need_lc=yes
9308           # This is similar to how AIX traditionally builds its shared libraries.
9309           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'
9310         fi
9311       fi
9312       ;;
9313
9314     amigaos*)
9315       case $host_cpu in
9316       powerpc)
9317             # see comment about AmigaOS4 .so support
9318             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319             archive_expsym_cmds=''
9320         ;;
9321       m68k)
9322             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)'
9323             hardcode_libdir_flag_spec='-L$libdir'
9324             hardcode_minus_L=yes
9325         ;;
9326       esac
9327       ;;
9328
9329     bsdi[45]*)
9330       export_dynamic_flag_spec=-rdynamic
9331       ;;
9332
9333     cygwin* | mingw* | pw32* | cegcc*)
9334       # When not using gcc, we currently assume that we are using
9335       # Microsoft Visual C++.
9336       # hardcode_libdir_flag_spec is actually meaningless, as there is
9337       # no search path for DLLs.
9338       case $cc_basename in
9339       cl*)
9340         # Native MSVC
9341         hardcode_libdir_flag_spec=' '
9342         allow_undefined_flag=unsupported
9343         always_export_symbols=yes
9344         file_list_spec='@'
9345         # Tell ltmain to make .lib files, not .a files.
9346         libext=lib
9347         # Tell ltmain to make .dll files, not .so files.
9348         shrext_cmds=".dll"
9349         # FIXME: Setting linknames here is a bad hack.
9350         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9351         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9352             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9353           else
9354             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9355           fi~
9356           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9357           linknames='
9358         # The linker will not automatically build a static lib if we build a DLL.
9359         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9360         enable_shared_with_static_runtimes=yes
9361         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9362         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9363         # Don't use ranlib
9364         old_postinstall_cmds='chmod 644 $oldlib'
9365         postlink_cmds='lt_outputfile="@OUTPUT@"~
9366           lt_tool_outputfile="@TOOL_OUTPUT@"~
9367           case $lt_outputfile in
9368             *.exe|*.EXE) ;;
9369             *)
9370               lt_outputfile="$lt_outputfile.exe"
9371               lt_tool_outputfile="$lt_tool_outputfile.exe"
9372               ;;
9373           esac~
9374           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9375             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9376             $RM "$lt_outputfile.manifest";
9377           fi'
9378         ;;
9379       *)
9380         # Assume MSVC wrapper
9381         hardcode_libdir_flag_spec=' '
9382         allow_undefined_flag=unsupported
9383         # Tell ltmain to make .lib files, not .a files.
9384         libext=lib
9385         # Tell ltmain to make .dll files, not .so files.
9386         shrext_cmds=".dll"
9387         # FIXME: Setting linknames here is a bad hack.
9388         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9389         # The linker will automatically build a .lib file if we build a DLL.
9390         old_archive_from_new_cmds='true'
9391         # FIXME: Should let the user specify the lib program.
9392         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9393         enable_shared_with_static_runtimes=yes
9394         ;;
9395       esac
9396       ;;
9397
9398     darwin* | rhapsody*)
9399
9400
9401   archive_cmds_need_lc=no
9402   hardcode_direct=no
9403   hardcode_automatic=yes
9404   hardcode_shlibpath_var=unsupported
9405   if test "$lt_cv_ld_force_load" = "yes"; then
9406     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9407
9408   else
9409     whole_archive_flag_spec=''
9410   fi
9411   link_all_deplibs=yes
9412   allow_undefined_flag="$_lt_dar_allow_undefined"
9413   case $cc_basename in
9414      ifort*) _lt_dar_can_shared=yes ;;
9415      *) _lt_dar_can_shared=$GCC ;;
9416   esac
9417   if test "$_lt_dar_can_shared" = "yes"; then
9418     output_verbose_link_cmd=func_echo_all
9419     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9420     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9421     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}"
9422     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}"
9423
9424   else
9425   ld_shlibs=no
9426   fi
9427
9428       ;;
9429
9430     dgux*)
9431       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9432       hardcode_libdir_flag_spec='-L$libdir'
9433       hardcode_shlibpath_var=no
9434       ;;
9435
9436     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9437     # support.  Future versions do this automatically, but an explicit c++rt0.o
9438     # does not break anything, and helps significantly (at the cost of a little
9439     # extra space).
9440     freebsd2.2*)
9441       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9442       hardcode_libdir_flag_spec='-R$libdir'
9443       hardcode_direct=yes
9444       hardcode_shlibpath_var=no
9445       ;;
9446
9447     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9448     freebsd2.*)
9449       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9450       hardcode_direct=yes
9451       hardcode_minus_L=yes
9452       hardcode_shlibpath_var=no
9453       ;;
9454
9455     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9456     freebsd* | dragonfly*)
9457       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9458       hardcode_libdir_flag_spec='-R$libdir'
9459       hardcode_direct=yes
9460       hardcode_shlibpath_var=no
9461       ;;
9462
9463     hpux9*)
9464       if test "$GCC" = yes; then
9465         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9466       else
9467         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'
9468       fi
9469       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9470       hardcode_libdir_separator=:
9471       hardcode_direct=yes
9472
9473       # hardcode_minus_L: Not really in the search PATH,
9474       # but as the default location of the library.
9475       hardcode_minus_L=yes
9476       export_dynamic_flag_spec='${wl}-E'
9477       ;;
9478
9479     hpux10*)
9480       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9481         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9482       else
9483         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9484       fi
9485       if test "$with_gnu_ld" = no; then
9486         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9487         hardcode_libdir_separator=:
9488         hardcode_direct=yes
9489         hardcode_direct_absolute=yes
9490         export_dynamic_flag_spec='${wl}-E'
9491         # hardcode_minus_L: Not really in the search PATH,
9492         # but as the default location of the library.
9493         hardcode_minus_L=yes
9494       fi
9495       ;;
9496
9497     hpux11*)
9498       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9499         case $host_cpu in
9500         hppa*64*)
9501           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9502           ;;
9503         ia64*)
9504           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9505           ;;
9506         *)
9507           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9508           ;;
9509         esac
9510       else
9511         case $host_cpu in
9512         hppa*64*)
9513           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9514           ;;
9515         ia64*)
9516           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9517           ;;
9518         *)
9519
9520           # Older versions of the 11.00 compiler do not understand -b yet
9521           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9522           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9523 $as_echo_n "checking if $CC understands -b... " >&6; }
9524 if ${lt_cv_prog_compiler__b+:} false; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   lt_cv_prog_compiler__b=no
9528    save_LDFLAGS="$LDFLAGS"
9529    LDFLAGS="$LDFLAGS -b"
9530    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9531    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9532      # The linker can only warn and ignore the option if not recognized
9533      # So say no if there are warnings
9534      if test -s conftest.err; then
9535        # Append any errors to the config.log.
9536        cat conftest.err 1>&5
9537        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9538        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9539        if diff conftest.exp conftest.er2 >/dev/null; then
9540          lt_cv_prog_compiler__b=yes
9541        fi
9542      else
9543        lt_cv_prog_compiler__b=yes
9544      fi
9545    fi
9546    $RM -r conftest*
9547    LDFLAGS="$save_LDFLAGS"
9548
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9551 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9552
9553 if test x"$lt_cv_prog_compiler__b" = xyes; then
9554     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9555 else
9556     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9557 fi
9558
9559           ;;
9560         esac
9561       fi
9562       if test "$with_gnu_ld" = no; then
9563         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9564         hardcode_libdir_separator=:
9565
9566         case $host_cpu in
9567         hppa*64*|ia64*)
9568           hardcode_direct=no
9569           hardcode_shlibpath_var=no
9570           ;;
9571         *)
9572           hardcode_direct=yes
9573           hardcode_direct_absolute=yes
9574           export_dynamic_flag_spec='${wl}-E'
9575
9576           # hardcode_minus_L: Not really in the search PATH,
9577           # but as the default location of the library.
9578           hardcode_minus_L=yes
9579           ;;
9580         esac
9581       fi
9582       ;;
9583
9584     irix5* | irix6* | nonstopux*)
9585       if test "$GCC" = yes; then
9586         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9587         # Try to use the -exported_symbol ld option, if it does not
9588         # work, assume that -exports_file does not work either and
9589         # implicitly export all symbols.
9590         # This should be the same for all languages, so no per-tag cache variable.
9591         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9592 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9593 if ${lt_cv_irix_exported_symbol+:} false; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   save_LDFLAGS="$LDFLAGS"
9597            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9598            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h.  */
9600 int foo (void) { return 0; }
9601 _ACEOF
9602 if ac_fn_c_try_link "$LINENO"; then :
9603   lt_cv_irix_exported_symbol=yes
9604 else
9605   lt_cv_irix_exported_symbol=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext \
9608     conftest$ac_exeext conftest.$ac_ext
9609            LDFLAGS="$save_LDFLAGS"
9610 fi
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9612 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9613         if test "$lt_cv_irix_exported_symbol" = yes; then
9614           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9615         fi
9616       else
9617         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9618         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9619       fi
9620       archive_cmds_need_lc='no'
9621       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9622       hardcode_libdir_separator=:
9623       inherit_rpath=yes
9624       link_all_deplibs=yes
9625       ;;
9626
9627     netbsd*)
9628       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9629         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9630       else
9631         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9632       fi
9633       hardcode_libdir_flag_spec='-R$libdir'
9634       hardcode_direct=yes
9635       hardcode_shlibpath_var=no
9636       ;;
9637
9638     newsos6)
9639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640       hardcode_direct=yes
9641       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9642       hardcode_libdir_separator=:
9643       hardcode_shlibpath_var=no
9644       ;;
9645
9646     *nto* | *qnx*)
9647       ;;
9648
9649     openbsd*)
9650       if test -f /usr/libexec/ld.so; then
9651         hardcode_direct=yes
9652         hardcode_shlibpath_var=no
9653         hardcode_direct_absolute=yes
9654         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9655           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9656           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9657           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9658           export_dynamic_flag_spec='${wl}-E'
9659         else
9660           case $host_os in
9661            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9662              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9663              hardcode_libdir_flag_spec='-R$libdir'
9664              ;;
9665            *)
9666              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9667              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9668              ;;
9669           esac
9670         fi
9671       else
9672         ld_shlibs=no
9673       fi
9674       ;;
9675
9676     os2*)
9677       hardcode_libdir_flag_spec='-L$libdir'
9678       hardcode_minus_L=yes
9679       allow_undefined_flag=unsupported
9680       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'
9681       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9682       ;;
9683
9684     osf3*)
9685       if test "$GCC" = yes; then
9686         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9687         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9688       else
9689         allow_undefined_flag=' -expect_unresolved \*'
9690         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9691       fi
9692       archive_cmds_need_lc='no'
9693       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9694       hardcode_libdir_separator=:
9695       ;;
9696
9697     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9698       if test "$GCC" = yes; then
9699         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9700         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9701         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9702       else
9703         allow_undefined_flag=' -expect_unresolved \*'
9704         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9705         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~
9706         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9707
9708         # Both c and cxx compiler support -rpath directly
9709         hardcode_libdir_flag_spec='-rpath $libdir'
9710       fi
9711       archive_cmds_need_lc='no'
9712       hardcode_libdir_separator=:
9713       ;;
9714
9715     solaris*)
9716       no_undefined_flag=' -z defs'
9717       if test "$GCC" = yes; then
9718         wlarc='${wl}'
9719         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9720         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9721           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9722       else
9723         case `$CC -V 2>&1` in
9724         *"Compilers 5.0"*)
9725           wlarc=''
9726           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9728           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9729           ;;
9730         *)
9731           wlarc='${wl}'
9732           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9733           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9734           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9735           ;;
9736         esac
9737       fi
9738       hardcode_libdir_flag_spec='-R$libdir'
9739       hardcode_shlibpath_var=no
9740       case $host_os in
9741       solaris2.[0-5] | solaris2.[0-5].*) ;;
9742       *)
9743         # The compiler driver will combine and reorder linker options,
9744         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9745         # but is careful enough not to reorder.
9746         # Supported since Solaris 2.6 (maybe 2.5.1?)
9747         if test "$GCC" = yes; then
9748           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9749         else
9750           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9751         fi
9752         ;;
9753       esac
9754       link_all_deplibs=yes
9755       ;;
9756
9757     sunos4*)
9758       if test "x$host_vendor" = xsequent; then
9759         # Use $CC to link under sequent, because it throws in some extra .o
9760         # files that make .init and .fini sections work.
9761         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9762       else
9763         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9764       fi
9765       hardcode_libdir_flag_spec='-L$libdir'
9766       hardcode_direct=yes
9767       hardcode_minus_L=yes
9768       hardcode_shlibpath_var=no
9769       ;;
9770
9771     sysv4)
9772       case $host_vendor in
9773         sni)
9774           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775           hardcode_direct=yes # is this really true???
9776         ;;
9777         siemens)
9778           ## LD is ld it makes a PLAMLIB
9779           ## CC just makes a GrossModule.
9780           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9781           reload_cmds='$CC -r -o $output$reload_objs'
9782           hardcode_direct=no
9783         ;;
9784         motorola)
9785           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9787         ;;
9788       esac
9789       runpath_var='LD_RUN_PATH'
9790       hardcode_shlibpath_var=no
9791       ;;
9792
9793     sysv4.3*)
9794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9795       hardcode_shlibpath_var=no
9796       export_dynamic_flag_spec='-Bexport'
9797       ;;
9798
9799     sysv4*MP*)
9800       if test -d /usr/nec; then
9801         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802         hardcode_shlibpath_var=no
9803         runpath_var=LD_RUN_PATH
9804         hardcode_runpath_var=yes
9805         ld_shlibs=yes
9806       fi
9807       ;;
9808
9809     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9810       no_undefined_flag='${wl}-z,text'
9811       archive_cmds_need_lc=no
9812       hardcode_shlibpath_var=no
9813       runpath_var='LD_RUN_PATH'
9814
9815       if test "$GCC" = yes; then
9816         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818       else
9819         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821       fi
9822       ;;
9823
9824     sysv5* | sco3.2v5* | sco5v6*)
9825       # Note: We can NOT use -z defs as we might desire, because we do not
9826       # link with -lc, and that would cause any symbols used from libc to
9827       # always be unresolved, which means just about no library would
9828       # ever link correctly.  If we're not using GNU ld we use -z text
9829       # though, which does catch some bad symbols but isn't as heavy-handed
9830       # as -z defs.
9831       no_undefined_flag='${wl}-z,text'
9832       allow_undefined_flag='${wl}-z,nodefs'
9833       archive_cmds_need_lc=no
9834       hardcode_shlibpath_var=no
9835       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9836       hardcode_libdir_separator=':'
9837       link_all_deplibs=yes
9838       export_dynamic_flag_spec='${wl}-Bexport'
9839       runpath_var='LD_RUN_PATH'
9840
9841       if test "$GCC" = yes; then
9842         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844       else
9845         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9846         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847       fi
9848       ;;
9849
9850     uts4*)
9851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852       hardcode_libdir_flag_spec='-L$libdir'
9853       hardcode_shlibpath_var=no
9854       ;;
9855
9856     *)
9857       ld_shlibs=no
9858       ;;
9859     esac
9860
9861     if test x$host_vendor = xsni; then
9862       case $host in
9863       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9864         export_dynamic_flag_spec='${wl}-Blargedynsym'
9865         ;;
9866       esac
9867     fi
9868   fi
9869
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9871 $as_echo "$ld_shlibs" >&6; }
9872 test "$ld_shlibs" = no && can_build_shared=no
9873
9874 with_gnu_ld=$with_gnu_ld
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890 #
9891 # Do we need to explicitly link libc?
9892 #
9893 case "x$archive_cmds_need_lc" in
9894 x|xyes)
9895   # Assume -lc should be added
9896   archive_cmds_need_lc=yes
9897
9898   if test "$enable_shared" = yes && test "$GCC" = yes; then
9899     case $archive_cmds in
9900     *'~'*)
9901       # FIXME: we may have to deal with multi-command sequences.
9902       ;;
9903     '$CC '*)
9904       # Test whether the compiler implicitly links with -lc since on some
9905       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9906       # to ld, don't add -lc before -lgcc.
9907       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9908 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9909 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9910   $as_echo_n "(cached) " >&6
9911 else
9912   $RM conftest*
9913         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9914
9915         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9916   (eval $ac_compile) 2>&5
9917   ac_status=$?
9918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9919   test $ac_status = 0; } 2>conftest.err; then
9920           soname=conftest
9921           lib=conftest
9922           libobjs=conftest.$ac_objext
9923           deplibs=
9924           wl=$lt_prog_compiler_wl
9925           pic_flag=$lt_prog_compiler_pic
9926           compiler_flags=-v
9927           linker_flags=-v
9928           verstring=
9929           output_objdir=.
9930           libname=conftest
9931           lt_save_allow_undefined_flag=$allow_undefined_flag
9932           allow_undefined_flag=
9933           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9934   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9935   ac_status=$?
9936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9937   test $ac_status = 0; }
9938           then
9939             lt_cv_archive_cmds_need_lc=no
9940           else
9941             lt_cv_archive_cmds_need_lc=yes
9942           fi
9943           allow_undefined_flag=$lt_save_allow_undefined_flag
9944         else
9945           cat conftest.err 1>&5
9946         fi
9947         $RM conftest*
9948
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9951 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9952       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9953       ;;
9954     esac
9955   fi
9956   ;;
9957 esac
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10111 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10112
10113 if test "$GCC" = yes; then
10114   case $host_os in
10115     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10116     *) lt_awk_arg="/^libraries:/" ;;
10117   esac
10118   case $host_os in
10119     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10120     *) lt_sed_strip_eq="s,=/,/,g" ;;
10121   esac
10122   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10123   case $lt_search_path_spec in
10124   *\;*)
10125     # if the path contains ";" then we assume it to be the separator
10126     # otherwise default to the standard path separator (i.e. ":") - it is
10127     # assumed that no part of a normal pathname contains ";" but that should
10128     # okay in the real world where ";" in dirpaths is itself problematic.
10129     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10130     ;;
10131   *)
10132     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10133     ;;
10134   esac
10135   # Ok, now we have the path, separated by spaces, we can step through it
10136   # and add multilib dir if necessary.
10137   lt_tmp_lt_search_path_spec=
10138   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10139   for lt_sys_path in $lt_search_path_spec; do
10140     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10141       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10142     else
10143       test -d "$lt_sys_path" && \
10144         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10145     fi
10146   done
10147   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10148 BEGIN {RS=" "; FS="/|\n";} {
10149   lt_foo="";
10150   lt_count=0;
10151   for (lt_i = NF; lt_i > 0; lt_i--) {
10152     if ($lt_i != "" && $lt_i != ".") {
10153       if ($lt_i == "..") {
10154         lt_count++;
10155       } else {
10156         if (lt_count == 0) {
10157           lt_foo="/" $lt_i lt_foo;
10158         } else {
10159           lt_count--;
10160         }
10161       }
10162     }
10163   }
10164   if (lt_foo != "") { lt_freq[lt_foo]++; }
10165   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10166 }'`
10167   # AWK program above erroneously prepends '/' to C:/dos/paths
10168   # for these hosts.
10169   case $host_os in
10170     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10171       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10172   esac
10173   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10174 else
10175   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10176 fi
10177 library_names_spec=
10178 libname_spec='lib$name'
10179 soname_spec=
10180 shrext_cmds=".so"
10181 postinstall_cmds=
10182 postuninstall_cmds=
10183 finish_cmds=
10184 finish_eval=
10185 shlibpath_var=
10186 shlibpath_overrides_runpath=unknown
10187 version_type=none
10188 dynamic_linker="$host_os ld.so"
10189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10190 need_lib_prefix=unknown
10191 hardcode_into_libs=no
10192
10193 # when you set need_version to no, make sure it does not cause -set_version
10194 # flags to be left without arguments
10195 need_version=unknown
10196
10197 case $host_os in
10198 aix3*)
10199   version_type=linux # correct to gnu/linux during the next big refactor
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10201   shlibpath_var=LIBPATH
10202
10203   # AIX 3 has no versioning support, so we append a major version to the name.
10204   soname_spec='${libname}${release}${shared_ext}$major'
10205   ;;
10206
10207 aix[4-9]*)
10208   version_type=linux # correct to gnu/linux during the next big refactor
10209   need_lib_prefix=no
10210   need_version=no
10211   hardcode_into_libs=yes
10212   if test "$host_cpu" = ia64; then
10213     # AIX 5 supports IA64
10214     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10215     shlibpath_var=LD_LIBRARY_PATH
10216   else
10217     # With GCC up to 2.95.x, collect2 would create an import file
10218     # for dependence libraries.  The import file would start with
10219     # the line `#! .'.  This would cause the generated library to
10220     # depend on `.', always an invalid library.  This was fixed in
10221     # development snapshots of GCC prior to 3.0.
10222     case $host_os in
10223       aix4 | aix4.[01] | aix4.[01].*)
10224       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10225            echo ' yes '
10226            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10227         :
10228       else
10229         can_build_shared=no
10230       fi
10231       ;;
10232     esac
10233     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10234     # soname into executable. Probably we can add versioning support to
10235     # collect2, so additional links can be useful in future.
10236     if test "$aix_use_runtimelinking" = yes; then
10237       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10238       # instead of lib<name>.a to let people know that these are not
10239       # typical AIX shared libraries.
10240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241     else
10242       # We preserve .a as extension for shared libraries through AIX4.2
10243       # and later when we are not doing run time linking.
10244       library_names_spec='${libname}${release}.a $libname.a'
10245       soname_spec='${libname}${release}${shared_ext}$major'
10246     fi
10247     shlibpath_var=LIBPATH
10248   fi
10249   ;;
10250
10251 amigaos*)
10252   case $host_cpu in
10253   powerpc)
10254     # Since July 2007 AmigaOS4 officially supports .so libraries.
10255     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257     ;;
10258   m68k)
10259     library_names_spec='$libname.ixlibrary $libname.a'
10260     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10261     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10262     ;;
10263   esac
10264   ;;
10265
10266 beos*)
10267   library_names_spec='${libname}${shared_ext}'
10268   dynamic_linker="$host_os ld.so"
10269   shlibpath_var=LIBRARY_PATH
10270   ;;
10271
10272 bsdi[45]*)
10273   version_type=linux # correct to gnu/linux during the next big refactor
10274   need_version=no
10275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276   soname_spec='${libname}${release}${shared_ext}$major'
10277   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10278   shlibpath_var=LD_LIBRARY_PATH
10279   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10280   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10281   # the default ld.so.conf also contains /usr/contrib/lib and
10282   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10283   # libtool to hard-code these into programs
10284   ;;
10285
10286 cygwin* | mingw* | pw32* | cegcc*)
10287   version_type=windows
10288   shrext_cmds=".dll"
10289   need_version=no
10290   need_lib_prefix=no
10291
10292   case $GCC,$cc_basename in
10293   yes,*)
10294     # gcc
10295     library_names_spec='$libname.dll.a'
10296     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10297     postinstall_cmds='base_file=`basename \${file}`~
10298       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10299       dldir=$destdir/`dirname \$dlpath`~
10300       test -d \$dldir || mkdir -p \$dldir~
10301       $install_prog $dir/$dlname \$dldir/$dlname~
10302       chmod a+x \$dldir/$dlname~
10303       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10304         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10305       fi'
10306     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10307       dlpath=$dir/\$dldll~
10308        $RM \$dlpath'
10309     shlibpath_overrides_runpath=yes
10310
10311     case $host_os in
10312     cygwin*)
10313       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10314       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10315
10316       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10317       ;;
10318     mingw* | cegcc*)
10319       # MinGW DLLs use traditional 'lib' prefix
10320       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10321       ;;
10322     pw32*)
10323       # pw32 DLLs use 'pw' prefix rather than 'lib'
10324       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10325       ;;
10326     esac
10327     dynamic_linker='Win32 ld.exe'
10328     ;;
10329
10330   *,cl*)
10331     # Native MSVC
10332     libname_spec='$name'
10333     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10334     library_names_spec='${libname}.dll.lib'
10335
10336     case $build_os in
10337     mingw*)
10338       sys_lib_search_path_spec=
10339       lt_save_ifs=$IFS
10340       IFS=';'
10341       for lt_path in $LIB
10342       do
10343         IFS=$lt_save_ifs
10344         # Let DOS variable expansion print the short 8.3 style file name.
10345         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10346         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10347       done
10348       IFS=$lt_save_ifs
10349       # Convert to MSYS style.
10350       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10351       ;;
10352     cygwin*)
10353       # Convert to unix form, then to dos form, then back to unix form
10354       # but this time dos style (no spaces!) so that the unix form looks
10355       # like /cygdrive/c/PROGRA~1:/cygdr...
10356       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10357       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10358       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10359       ;;
10360     *)
10361       sys_lib_search_path_spec="$LIB"
10362       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10363         # It is most probably a Windows format PATH.
10364         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10365       else
10366         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10367       fi
10368       # FIXME: find the short name or the path components, as spaces are
10369       # common. (e.g. "Program Files" -> "PROGRA~1")
10370       ;;
10371     esac
10372
10373     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10374     postinstall_cmds='base_file=`basename \${file}`~
10375       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10376       dldir=$destdir/`dirname \$dlpath`~
10377       test -d \$dldir || mkdir -p \$dldir~
10378       $install_prog $dir/$dlname \$dldir/$dlname'
10379     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10380       dlpath=$dir/\$dldll~
10381        $RM \$dlpath'
10382     shlibpath_overrides_runpath=yes
10383     dynamic_linker='Win32 link.exe'
10384     ;;
10385
10386   *)
10387     # Assume MSVC wrapper
10388     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10389     dynamic_linker='Win32 ld.exe'
10390     ;;
10391   esac
10392   # FIXME: first we should search . and the directory the executable is in
10393   shlibpath_var=PATH
10394   ;;
10395
10396 darwin* | rhapsody*)
10397   dynamic_linker="$host_os dyld"
10398   version_type=darwin
10399   need_lib_prefix=no
10400   need_version=no
10401   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10402   soname_spec='${libname}${release}${major}$shared_ext'
10403   shlibpath_overrides_runpath=yes
10404   shlibpath_var=DYLD_LIBRARY_PATH
10405   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10406
10407   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10408   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10409   ;;
10410
10411 dgux*)
10412   version_type=linux # correct to gnu/linux during the next big refactor
10413   need_lib_prefix=no
10414   need_version=no
10415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10416   soname_spec='${libname}${release}${shared_ext}$major'
10417   shlibpath_var=LD_LIBRARY_PATH
10418   ;;
10419
10420 freebsd* | dragonfly*)
10421   # DragonFly does not have aout.  When/if they implement a new
10422   # versioning mechanism, adjust this.
10423   if test -x /usr/bin/objformat; then
10424     objformat=`/usr/bin/objformat`
10425   else
10426     case $host_os in
10427     freebsd[23].*) objformat=aout ;;
10428     *) objformat=elf ;;
10429     esac
10430   fi
10431   version_type=freebsd-$objformat
10432   case $version_type in
10433     freebsd-elf*)
10434       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10435       need_version=no
10436       need_lib_prefix=no
10437       ;;
10438     freebsd-*)
10439       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10440       need_version=yes
10441       ;;
10442   esac
10443   shlibpath_var=LD_LIBRARY_PATH
10444   case $host_os in
10445   freebsd2.*)
10446     shlibpath_overrides_runpath=yes
10447     ;;
10448   freebsd3.[01]* | freebsdelf3.[01]*)
10449     shlibpath_overrides_runpath=yes
10450     hardcode_into_libs=yes
10451     ;;
10452   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10453   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10454     shlibpath_overrides_runpath=no
10455     hardcode_into_libs=yes
10456     ;;
10457   *) # from 4.6 on, and DragonFly
10458     shlibpath_overrides_runpath=yes
10459     hardcode_into_libs=yes
10460     ;;
10461   esac
10462   ;;
10463
10464 gnu*)
10465   version_type=linux # correct to gnu/linux during the next big refactor
10466   need_lib_prefix=no
10467   need_version=no
10468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10469   soname_spec='${libname}${release}${shared_ext}$major'
10470   shlibpath_var=LD_LIBRARY_PATH
10471   shlibpath_overrides_runpath=no
10472   hardcode_into_libs=yes
10473   ;;
10474
10475 haiku*)
10476   version_type=linux # correct to gnu/linux during the next big refactor
10477   need_lib_prefix=no
10478   need_version=no
10479   dynamic_linker="$host_os runtime_loader"
10480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10481   soname_spec='${libname}${release}${shared_ext}$major'
10482   shlibpath_var=LIBRARY_PATH
10483   shlibpath_overrides_runpath=yes
10484   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10485   hardcode_into_libs=yes
10486   ;;
10487
10488 hpux9* | hpux10* | hpux11*)
10489   # Give a soname corresponding to the major version so that dld.sl refuses to
10490   # link against other versions.
10491   version_type=sunos
10492   need_lib_prefix=no
10493   need_version=no
10494   case $host_cpu in
10495   ia64*)
10496     shrext_cmds='.so'
10497     hardcode_into_libs=yes
10498     dynamic_linker="$host_os dld.so"
10499     shlibpath_var=LD_LIBRARY_PATH
10500     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502     soname_spec='${libname}${release}${shared_ext}$major'
10503     if test "X$HPUX_IA64_MODE" = X32; then
10504       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10505     else
10506       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10507     fi
10508     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10509     ;;
10510   hppa*64*)
10511     shrext_cmds='.sl'
10512     hardcode_into_libs=yes
10513     dynamic_linker="$host_os dld.sl"
10514     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10515     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517     soname_spec='${libname}${release}${shared_ext}$major'
10518     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10519     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10520     ;;
10521   *)
10522     shrext_cmds='.sl'
10523     dynamic_linker="$host_os dld.sl"
10524     shlibpath_var=SHLIB_PATH
10525     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527     soname_spec='${libname}${release}${shared_ext}$major'
10528     ;;
10529   esac
10530   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10531   postinstall_cmds='chmod 555 $lib'
10532   # or fails outright, so override atomically:
10533   install_override_mode=555
10534   ;;
10535
10536 interix[3-9]*)
10537   version_type=linux # correct to gnu/linux during the next big refactor
10538   need_lib_prefix=no
10539   need_version=no
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10541   soname_spec='${libname}${release}${shared_ext}$major'
10542   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10543   shlibpath_var=LD_LIBRARY_PATH
10544   shlibpath_overrides_runpath=no
10545   hardcode_into_libs=yes
10546   ;;
10547
10548 irix5* | irix6* | nonstopux*)
10549   case $host_os in
10550     nonstopux*) version_type=nonstopux ;;
10551     *)
10552         if test "$lt_cv_prog_gnu_ld" = yes; then
10553                 version_type=linux # correct to gnu/linux during the next big refactor
10554         else
10555                 version_type=irix
10556         fi ;;
10557   esac
10558   need_lib_prefix=no
10559   need_version=no
10560   soname_spec='${libname}${release}${shared_ext}$major'
10561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10562   case $host_os in
10563   irix5* | nonstopux*)
10564     libsuff= shlibsuff=
10565     ;;
10566   *)
10567     case $LD in # libtool.m4 will add one of these switches to LD
10568     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10569       libsuff= shlibsuff= libmagic=32-bit;;
10570     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10571       libsuff=32 shlibsuff=N32 libmagic=N32;;
10572     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10573       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10574     *) libsuff= shlibsuff= libmagic=never-match;;
10575     esac
10576     ;;
10577   esac
10578   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10579   shlibpath_overrides_runpath=no
10580   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10581   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10582   hardcode_into_libs=yes
10583   ;;
10584
10585 # No shared lib support for Linux oldld, aout, or coff.
10586 linux*oldld* | linux*aout* | linux*coff*)
10587   dynamic_linker=no
10588   ;;
10589
10590 # This must be glibc/ELF.
10591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10592   version_type=linux # correct to gnu/linux during the next big refactor
10593   need_lib_prefix=no
10594   need_version=no
10595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596   soname_spec='${libname}${release}${shared_ext}$major'
10597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10598   shlibpath_var=LD_LIBRARY_PATH
10599   shlibpath_overrides_runpath=no
10600
10601   # Some binutils ld are patched to set DT_RUNPATH
10602   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10603   $as_echo_n "(cached) " >&6
10604 else
10605   lt_cv_shlibpath_overrides_runpath=no
10606     save_LDFLAGS=$LDFLAGS
10607     save_libdir=$libdir
10608     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10609          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10610     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h.  */
10612
10613 int
10614 main ()
10615 {
10616
10617   ;
10618   return 0;
10619 }
10620 _ACEOF
10621 if ac_fn_c_try_link "$LINENO"; then :
10622   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10623   lt_cv_shlibpath_overrides_runpath=yes
10624 fi
10625 fi
10626 rm -f core conftest.err conftest.$ac_objext \
10627     conftest$ac_exeext conftest.$ac_ext
10628     LDFLAGS=$save_LDFLAGS
10629     libdir=$save_libdir
10630
10631 fi
10632
10633   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10634
10635   # This implies no fast_install, which is unacceptable.
10636   # Some rework will be needed to allow for fast_install
10637   # before this can be enabled.
10638   hardcode_into_libs=yes
10639
10640   # Append ld.so.conf contents to the search path
10641   if test -f /etc/ld.so.conf; then
10642     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;s/"//g;/^$/d' | tr '\n' ' '`
10643     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10644   fi
10645
10646   # We used to test for /lib/ld.so.1 and disable shared libraries on
10647   # powerpc, because MkLinux only supported shared libraries with the
10648   # GNU dynamic linker.  Since this was broken with cross compilers,
10649   # most powerpc-linux boxes support dynamic linking these days and
10650   # people can always --disable-shared, the test was removed, and we
10651   # assume the GNU/Linux dynamic linker is in use.
10652   dynamic_linker='GNU/Linux ld.so'
10653   ;;
10654
10655 netbsd*)
10656   version_type=sunos
10657   need_lib_prefix=no
10658   need_version=no
10659   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10660     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10661     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10662     dynamic_linker='NetBSD (a.out) ld.so'
10663   else
10664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10665     soname_spec='${libname}${release}${shared_ext}$major'
10666     dynamic_linker='NetBSD ld.elf_so'
10667   fi
10668   shlibpath_var=LD_LIBRARY_PATH
10669   shlibpath_overrides_runpath=yes
10670   hardcode_into_libs=yes
10671   ;;
10672
10673 newsos6)
10674   version_type=linux # correct to gnu/linux during the next big refactor
10675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676   shlibpath_var=LD_LIBRARY_PATH
10677   shlibpath_overrides_runpath=yes
10678   ;;
10679
10680 *nto* | *qnx*)
10681   version_type=qnx
10682   need_lib_prefix=no
10683   need_version=no
10684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685   soname_spec='${libname}${release}${shared_ext}$major'
10686   shlibpath_var=LD_LIBRARY_PATH
10687   shlibpath_overrides_runpath=no
10688   hardcode_into_libs=yes
10689   dynamic_linker='ldqnx.so'
10690   ;;
10691
10692 openbsd*)
10693   version_type=sunos
10694   sys_lib_dlsearch_path_spec="/usr/lib"
10695   need_lib_prefix=no
10696   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10697   case $host_os in
10698     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10699     *)                          need_version=no  ;;
10700   esac
10701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10702   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10703   shlibpath_var=LD_LIBRARY_PATH
10704   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10705     case $host_os in
10706       openbsd2.[89] | openbsd2.[89].*)
10707         shlibpath_overrides_runpath=no
10708         ;;
10709       *)
10710         shlibpath_overrides_runpath=yes
10711         ;;
10712       esac
10713   else
10714     shlibpath_overrides_runpath=yes
10715   fi
10716   ;;
10717
10718 os2*)
10719   libname_spec='$name'
10720   shrext_cmds=".dll"
10721   need_lib_prefix=no
10722   library_names_spec='$libname${shared_ext} $libname.a'
10723   dynamic_linker='OS/2 ld.exe'
10724   shlibpath_var=LIBPATH
10725   ;;
10726
10727 osf3* | osf4* | osf5*)
10728   version_type=osf
10729   need_lib_prefix=no
10730   need_version=no
10731   soname_spec='${libname}${release}${shared_ext}$major'
10732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733   shlibpath_var=LD_LIBRARY_PATH
10734   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10735   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10736   ;;
10737
10738 rdos*)
10739   dynamic_linker=no
10740   ;;
10741
10742 solaris*)
10743   version_type=linux # correct to gnu/linux during the next big refactor
10744   need_lib_prefix=no
10745   need_version=no
10746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747   soname_spec='${libname}${release}${shared_ext}$major'
10748   shlibpath_var=LD_LIBRARY_PATH
10749   shlibpath_overrides_runpath=yes
10750   hardcode_into_libs=yes
10751   # ldd complains unless libraries are executable
10752   postinstall_cmds='chmod +x $lib'
10753   ;;
10754
10755 sunos4*)
10756   version_type=sunos
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10758   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10759   shlibpath_var=LD_LIBRARY_PATH
10760   shlibpath_overrides_runpath=yes
10761   if test "$with_gnu_ld" = yes; then
10762     need_lib_prefix=no
10763   fi
10764   need_version=yes
10765   ;;
10766
10767 sysv4 | sysv4.3*)
10768   version_type=linux # correct to gnu/linux during the next big refactor
10769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770   soname_spec='${libname}${release}${shared_ext}$major'
10771   shlibpath_var=LD_LIBRARY_PATH
10772   case $host_vendor in
10773     sni)
10774       shlibpath_overrides_runpath=no
10775       need_lib_prefix=no
10776       runpath_var=LD_RUN_PATH
10777       ;;
10778     siemens)
10779       need_lib_prefix=no
10780       ;;
10781     motorola)
10782       need_lib_prefix=no
10783       need_version=no
10784       shlibpath_overrides_runpath=no
10785       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10786       ;;
10787   esac
10788   ;;
10789
10790 sysv4*MP*)
10791   if test -d /usr/nec ;then
10792     version_type=linux # correct to gnu/linux during the next big refactor
10793     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10794     soname_spec='$libname${shared_ext}.$major'
10795     shlibpath_var=LD_LIBRARY_PATH
10796   fi
10797   ;;
10798
10799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10800   version_type=freebsd-elf
10801   need_lib_prefix=no
10802   need_version=no
10803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10804   soname_spec='${libname}${release}${shared_ext}$major'
10805   shlibpath_var=LD_LIBRARY_PATH
10806   shlibpath_overrides_runpath=yes
10807   hardcode_into_libs=yes
10808   if test "$with_gnu_ld" = yes; then
10809     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10810   else
10811     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10812     case $host_os in
10813       sco3.2v5*)
10814         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10815         ;;
10816     esac
10817   fi
10818   sys_lib_dlsearch_path_spec='/usr/lib'
10819   ;;
10820
10821 tpf*)
10822   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10823   version_type=linux # correct to gnu/linux during the next big refactor
10824   need_lib_prefix=no
10825   need_version=no
10826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827   shlibpath_var=LD_LIBRARY_PATH
10828   shlibpath_overrides_runpath=no
10829   hardcode_into_libs=yes
10830   ;;
10831
10832 uts4*)
10833   version_type=linux # correct to gnu/linux during the next big refactor
10834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835   soname_spec='${libname}${release}${shared_ext}$major'
10836   shlibpath_var=LD_LIBRARY_PATH
10837   ;;
10838
10839 *)
10840   dynamic_linker=no
10841   ;;
10842 esac
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10844 $as_echo "$dynamic_linker" >&6; }
10845 test "$dynamic_linker" = no && can_build_shared=no
10846
10847 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10848 if test "$GCC" = yes; then
10849   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10850 fi
10851
10852 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10853   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10854 fi
10855 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10856   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10857 fi
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10951 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10952 hardcode_action=
10953 if test -n "$hardcode_libdir_flag_spec" ||
10954    test -n "$runpath_var" ||
10955    test "X$hardcode_automatic" = "Xyes" ; then
10956
10957   # We can hardcode non-existent directories.
10958   if test "$hardcode_direct" != no &&
10959      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10960      # have to relink, otherwise we might link with an installed library
10961      # when we should be linking with a yet-to-be-installed one
10962      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10963      test "$hardcode_minus_L" != no; then
10964     # Linking always hardcodes the temporary library directory.
10965     hardcode_action=relink
10966   else
10967     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10968     hardcode_action=immediate
10969   fi
10970 else
10971   # We cannot hardcode anything, or else we can only hardcode existing
10972   # directories.
10973   hardcode_action=unsupported
10974 fi
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10976 $as_echo "$hardcode_action" >&6; }
10977
10978 if test "$hardcode_action" = relink ||
10979    test "$inherit_rpath" = yes; then
10980   # Fast installation is not supported
10981   enable_fast_install=no
10982 elif test "$shlibpath_overrides_runpath" = yes ||
10983      test "$enable_shared" = no; then
10984   # Fast installation is not necessary
10985   enable_fast_install=needless
10986 fi
10987
10988
10989
10990
10991
10992
10993   if test "x$enable_dlopen" != xyes; then
10994   enable_dlopen=unknown
10995   enable_dlopen_self=unknown
10996   enable_dlopen_self_static=unknown
10997 else
10998   lt_cv_dlopen=no
10999   lt_cv_dlopen_libs=
11000
11001   case $host_os in
11002   beos*)
11003     lt_cv_dlopen="load_add_on"
11004     lt_cv_dlopen_libs=
11005     lt_cv_dlopen_self=yes
11006     ;;
11007
11008   mingw* | pw32* | cegcc*)
11009     lt_cv_dlopen="LoadLibrary"
11010     lt_cv_dlopen_libs=
11011     ;;
11012
11013   cygwin*)
11014     lt_cv_dlopen="dlopen"
11015     lt_cv_dlopen_libs=
11016     ;;
11017
11018   darwin*)
11019   # if libdl is installed we need to link against it
11020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11021 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11022 if ${ac_cv_lib_dl_dlopen+:} false; then :
11023   $as_echo_n "(cached) " >&6
11024 else
11025   ac_check_lib_save_LIBS=$LIBS
11026 LIBS="-ldl  $LIBS"
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h.  */
11029
11030 /* Override any GCC internal prototype to avoid an error.
11031    Use char because int might match the return type of a GCC
11032    builtin and then its argument prototype would still apply.  */
11033 #ifdef __cplusplus
11034 extern "C"
11035 #endif
11036 char dlopen ();
11037 int
11038 main ()
11039 {
11040 return dlopen ();
11041   ;
11042   return 0;
11043 }
11044 _ACEOF
11045 if ac_fn_c_try_link "$LINENO"; then :
11046   ac_cv_lib_dl_dlopen=yes
11047 else
11048   ac_cv_lib_dl_dlopen=no
11049 fi
11050 rm -f core conftest.err conftest.$ac_objext \
11051     conftest$ac_exeext conftest.$ac_ext
11052 LIBS=$ac_check_lib_save_LIBS
11053 fi
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11055 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11056 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11057   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11058 else
11059
11060     lt_cv_dlopen="dyld"
11061     lt_cv_dlopen_libs=
11062     lt_cv_dlopen_self=yes
11063
11064 fi
11065
11066     ;;
11067
11068   *)
11069     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11070 if test "x$ac_cv_func_shl_load" = xyes; then :
11071   lt_cv_dlopen="shl_load"
11072 else
11073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11074 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11075 if ${ac_cv_lib_dld_shl_load+:} false; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   ac_check_lib_save_LIBS=$LIBS
11079 LIBS="-ldld  $LIBS"
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h.  */
11082
11083 /* Override any GCC internal prototype to avoid an error.
11084    Use char because int might match the return type of a GCC
11085    builtin and then its argument prototype would still apply.  */
11086 #ifdef __cplusplus
11087 extern "C"
11088 #endif
11089 char shl_load ();
11090 int
11091 main ()
11092 {
11093 return shl_load ();
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 if ac_fn_c_try_link "$LINENO"; then :
11099   ac_cv_lib_dld_shl_load=yes
11100 else
11101   ac_cv_lib_dld_shl_load=no
11102 fi
11103 rm -f core conftest.err conftest.$ac_objext \
11104     conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11106 fi
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11108 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11109 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11110   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11111 else
11112   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11113 if test "x$ac_cv_func_dlopen" = xyes; then :
11114   lt_cv_dlopen="dlopen"
11115 else
11116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11118 if ${ac_cv_lib_dl_dlopen+:} false; then :
11119   $as_echo_n "(cached) " >&6
11120 else
11121   ac_check_lib_save_LIBS=$LIBS
11122 LIBS="-ldl  $LIBS"
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h.  */
11125
11126 /* Override any GCC internal prototype to avoid an error.
11127    Use char because int might match the return type of a GCC
11128    builtin and then its argument prototype would still apply.  */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char dlopen ();
11133 int
11134 main ()
11135 {
11136 return dlopen ();
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142   ac_cv_lib_dl_dlopen=yes
11143 else
11144   ac_cv_lib_dl_dlopen=no
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147     conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11149 fi
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11151 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11152 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11154 else
11155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11156 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11157 if ${ac_cv_lib_svld_dlopen+:} false; then :
11158   $as_echo_n "(cached) " >&6
11159 else
11160   ac_check_lib_save_LIBS=$LIBS
11161 LIBS="-lsvld  $LIBS"
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h.  */
11164
11165 /* Override any GCC internal prototype to avoid an error.
11166    Use char because int might match the return type of a GCC
11167    builtin and then its argument prototype would still apply.  */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char dlopen ();
11172 int
11173 main ()
11174 {
11175 return dlopen ();
11176   ;
11177   return 0;
11178 }
11179 _ACEOF
11180 if ac_fn_c_try_link "$LINENO"; then :
11181   ac_cv_lib_svld_dlopen=yes
11182 else
11183   ac_cv_lib_svld_dlopen=no
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext \
11186     conftest$ac_exeext conftest.$ac_ext
11187 LIBS=$ac_check_lib_save_LIBS
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11190 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11191 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11192   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11193 else
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11195 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11196 if ${ac_cv_lib_dld_dld_link+:} false; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-ldld  $LIBS"
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h.  */
11203
11204 /* Override any GCC internal prototype to avoid an error.
11205    Use char because int might match the return type of a GCC
11206    builtin and then its argument prototype would still apply.  */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char dld_link ();
11211 int
11212 main ()
11213 {
11214 return dld_link ();
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 if ac_fn_c_try_link "$LINENO"; then :
11220   ac_cv_lib_dld_dld_link=yes
11221 else
11222   ac_cv_lib_dld_dld_link=no
11223 fi
11224 rm -f core conftest.err conftest.$ac_objext \
11225     conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11227 fi
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11229 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11230 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11231   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11232 fi
11233
11234
11235 fi
11236
11237
11238 fi
11239
11240
11241 fi
11242
11243
11244 fi
11245
11246
11247 fi
11248
11249     ;;
11250   esac
11251
11252   if test "x$lt_cv_dlopen" != xno; then
11253     enable_dlopen=yes
11254   else
11255     enable_dlopen=no
11256   fi
11257
11258   case $lt_cv_dlopen in
11259   dlopen)
11260     save_CPPFLAGS="$CPPFLAGS"
11261     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11262
11263     save_LDFLAGS="$LDFLAGS"
11264     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11265
11266     save_LIBS="$LIBS"
11267     LIBS="$lt_cv_dlopen_libs $LIBS"
11268
11269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11270 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11271 if ${lt_cv_dlopen_self+:} false; then :
11272   $as_echo_n "(cached) " >&6
11273 else
11274           if test "$cross_compiling" = yes; then :
11275   lt_cv_dlopen_self=cross
11276 else
11277   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11278   lt_status=$lt_dlunknown
11279   cat > conftest.$ac_ext <<_LT_EOF
11280 #line $LINENO "configure"
11281 #include "confdefs.h"
11282
11283 #if HAVE_DLFCN_H
11284 #include <dlfcn.h>
11285 #endif
11286
11287 #include <stdio.h>
11288
11289 #ifdef RTLD_GLOBAL
11290 #  define LT_DLGLOBAL           RTLD_GLOBAL
11291 #else
11292 #  ifdef DL_GLOBAL
11293 #    define LT_DLGLOBAL         DL_GLOBAL
11294 #  else
11295 #    define LT_DLGLOBAL         0
11296 #  endif
11297 #endif
11298
11299 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11300    find out it does not work in some platform. */
11301 #ifndef LT_DLLAZY_OR_NOW
11302 #  ifdef RTLD_LAZY
11303 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11304 #  else
11305 #    ifdef DL_LAZY
11306 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11307 #    else
11308 #      ifdef RTLD_NOW
11309 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11310 #      else
11311 #        ifdef DL_NOW
11312 #          define LT_DLLAZY_OR_NOW      DL_NOW
11313 #        else
11314 #          define LT_DLLAZY_OR_NOW      0
11315 #        endif
11316 #      endif
11317 #    endif
11318 #  endif
11319 #endif
11320
11321 /* When -fvisbility=hidden is used, assume the code has been annotated
11322    correspondingly for the symbols needed.  */
11323 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11324 int fnord () __attribute__((visibility("default")));
11325 #endif
11326
11327 int fnord () { return 42; }
11328 int main ()
11329 {
11330   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11331   int status = $lt_dlunknown;
11332
11333   if (self)
11334     {
11335       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11336       else
11337         {
11338           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11339           else puts (dlerror ());
11340         }
11341       /* dlclose (self); */
11342     }
11343   else
11344     puts (dlerror ());
11345
11346   return status;
11347 }
11348 _LT_EOF
11349   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11350   (eval $ac_link) 2>&5
11351   ac_status=$?
11352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11353   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11354     (./conftest; exit; ) >&5 2>/dev/null
11355     lt_status=$?
11356     case x$lt_status in
11357       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11358       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11359       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11360     esac
11361   else :
11362     # compilation failed
11363     lt_cv_dlopen_self=no
11364   fi
11365 fi
11366 rm -fr conftest*
11367
11368
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11371 $as_echo "$lt_cv_dlopen_self" >&6; }
11372
11373     if test "x$lt_cv_dlopen_self" = xyes; then
11374       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11375       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11376 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11377 if ${lt_cv_dlopen_self_static+:} false; then :
11378   $as_echo_n "(cached) " >&6
11379 else
11380           if test "$cross_compiling" = yes; then :
11381   lt_cv_dlopen_self_static=cross
11382 else
11383   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11384   lt_status=$lt_dlunknown
11385   cat > conftest.$ac_ext <<_LT_EOF
11386 #line $LINENO "configure"
11387 #include "confdefs.h"
11388
11389 #if HAVE_DLFCN_H
11390 #include <dlfcn.h>
11391 #endif
11392
11393 #include <stdio.h>
11394
11395 #ifdef RTLD_GLOBAL
11396 #  define LT_DLGLOBAL           RTLD_GLOBAL
11397 #else
11398 #  ifdef DL_GLOBAL
11399 #    define LT_DLGLOBAL         DL_GLOBAL
11400 #  else
11401 #    define LT_DLGLOBAL         0
11402 #  endif
11403 #endif
11404
11405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11406    find out it does not work in some platform. */
11407 #ifndef LT_DLLAZY_OR_NOW
11408 #  ifdef RTLD_LAZY
11409 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11410 #  else
11411 #    ifdef DL_LAZY
11412 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11413 #    else
11414 #      ifdef RTLD_NOW
11415 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11416 #      else
11417 #        ifdef DL_NOW
11418 #          define LT_DLLAZY_OR_NOW      DL_NOW
11419 #        else
11420 #          define LT_DLLAZY_OR_NOW      0
11421 #        endif
11422 #      endif
11423 #    endif
11424 #  endif
11425 #endif
11426
11427 /* When -fvisbility=hidden is used, assume the code has been annotated
11428    correspondingly for the symbols needed.  */
11429 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11430 int fnord () __attribute__((visibility("default")));
11431 #endif
11432
11433 int fnord () { return 42; }
11434 int main ()
11435 {
11436   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11437   int status = $lt_dlunknown;
11438
11439   if (self)
11440     {
11441       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11442       else
11443         {
11444           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11445           else puts (dlerror ());
11446         }
11447       /* dlclose (self); */
11448     }
11449   else
11450     puts (dlerror ());
11451
11452   return status;
11453 }
11454 _LT_EOF
11455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11456   (eval $ac_link) 2>&5
11457   ac_status=$?
11458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11459   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11460     (./conftest; exit; ) >&5 2>/dev/null
11461     lt_status=$?
11462     case x$lt_status in
11463       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11464       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11465       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11466     esac
11467   else :
11468     # compilation failed
11469     lt_cv_dlopen_self_static=no
11470   fi
11471 fi
11472 rm -fr conftest*
11473
11474
11475 fi
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11477 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11478     fi
11479
11480     CPPFLAGS="$save_CPPFLAGS"
11481     LDFLAGS="$save_LDFLAGS"
11482     LIBS="$save_LIBS"
11483     ;;
11484   esac
11485
11486   case $lt_cv_dlopen_self in
11487   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11488   *) enable_dlopen_self=unknown ;;
11489   esac
11490
11491   case $lt_cv_dlopen_self_static in
11492   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11493   *) enable_dlopen_self_static=unknown ;;
11494   esac
11495 fi
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513 striplib=
11514 old_striplib=
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11516 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11517 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11518   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11519   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521 $as_echo "yes" >&6; }
11522 else
11523 # FIXME - insert some real tests, host_os isn't really good enough
11524   case $host_os in
11525   darwin*)
11526     if test -n "$STRIP" ; then
11527       striplib="$STRIP -x"
11528       old_striplib="$STRIP -S"
11529       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11530 $as_echo "yes" >&6; }
11531     else
11532       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11534     fi
11535     ;;
11536   *)
11537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11539     ;;
11540   esac
11541 fi
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554   # Report which library types will actually be built
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11556 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11558 $as_echo "$can_build_shared" >&6; }
11559
11560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11561 $as_echo_n "checking whether to build shared libraries... " >&6; }
11562   test "$can_build_shared" = "no" && enable_shared=no
11563
11564   # On AIX, shared libraries and static libraries use the same namespace, and
11565   # are all built from PIC.
11566   case $host_os in
11567   aix3*)
11568     test "$enable_shared" = yes && enable_static=no
11569     if test -n "$RANLIB"; then
11570       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11571       postinstall_cmds='$RANLIB $lib'
11572     fi
11573     ;;
11574
11575   aix[4-9]*)
11576     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11577       test "$enable_shared" = yes && enable_static=no
11578     fi
11579     ;;
11580   esac
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11582 $as_echo "$enable_shared" >&6; }
11583
11584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11585 $as_echo_n "checking whether to build static libraries... " >&6; }
11586   # Make sure either enable_shared or enable_static is yes.
11587   test "$enable_shared" = yes || enable_static=yes
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11589 $as_echo "$enable_static" >&6; }
11590
11591
11592
11593
11594 fi
11595 ac_ext=c
11596 ac_cpp='$CPP $CPPFLAGS'
11597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11600
11601 CC="$lt_save_CC"
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617         ac_config_commands="$ac_config_commands libtool"
11618
11619
11620
11621
11622 # Only expand once:
11623
11624
11625
11626 #gtk-doc
11627
11628
11629
11630
11631
11632
11633
11634 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11635         if test -n "$ac_tool_prefix"; then
11636   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11637 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   case $PKG_CONFIG in
11644   [\\/]* | ?:[\\/]*)
11645   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11646   ;;
11647   *)
11648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11650 do
11651   IFS=$as_save_IFS
11652   test -z "$as_dir" && as_dir=.
11653     for ac_exec_ext in '' $ac_executable_extensions; do
11654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657     break 2
11658   fi
11659 done
11660   done
11661 IFS=$as_save_IFS
11662
11663   ;;
11664 esac
11665 fi
11666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11667 if test -n "$PKG_CONFIG"; then
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11669 $as_echo "$PKG_CONFIG" >&6; }
11670 else
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11673 fi
11674
11675
11676 fi
11677 if test -z "$ac_cv_path_PKG_CONFIG"; then
11678   ac_pt_PKG_CONFIG=$PKG_CONFIG
11679   # Extract the first word of "pkg-config", so it can be a program name with args.
11680 set dummy pkg-config; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11684   $as_echo_n "(cached) " >&6
11685 else
11686   case $ac_pt_PKG_CONFIG in
11687   [\\/]* | ?:[\\/]*)
11688   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11689   ;;
11690   *)
11691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11693 do
11694   IFS=$as_save_IFS
11695   test -z "$as_dir" && as_dir=.
11696     for ac_exec_ext in '' $ac_executable_extensions; do
11697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11698     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700     break 2
11701   fi
11702 done
11703   done
11704 IFS=$as_save_IFS
11705
11706   ;;
11707 esac
11708 fi
11709 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11710 if test -n "$ac_pt_PKG_CONFIG"; then
11711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11712 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11713 else
11714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716 fi
11717
11718   if test "x$ac_pt_PKG_CONFIG" = x; then
11719     PKG_CONFIG=""
11720   else
11721     case $cross_compiling:$ac_tool_warned in
11722 yes:)
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11725 ac_tool_warned=yes ;;
11726 esac
11727     PKG_CONFIG=$ac_pt_PKG_CONFIG
11728   fi
11729 else
11730   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11731 fi
11732
11733 fi
11734 if test -n "$PKG_CONFIG"; then
11735         _pkg_min_version=0.9.0
11736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11737 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11738         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11739                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11740 $as_echo "yes" >&6; }
11741         else
11742                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744                 PKG_CONFIG=""
11745         fi
11746 fi
11747
11748
11749
11750   gtk_doc_requires="gtk-doc >= 1.18"
11751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
11752 $as_echo_n "checking for gtk-doc... " >&6; }
11753   if test -n "$PKG_CONFIG" && \
11754     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
11755   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
11756   ac_status=$?
11757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758   test $ac_status = 0; }; then
11759   have_gtk_doc=yes
11760 else
11761   have_gtk_doc=no
11762 fi
11763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
11764 $as_echo "$have_gtk_doc" >&6; }
11765
11766   if test "$have_gtk_doc" = "no"; then
11767       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11768   You will not be able to create source packages with 'make dist'
11769   because $gtk_doc_requires is not found." >&5
11770 $as_echo "$as_me: WARNING:
11771   You will not be able to create source packages with 'make dist'
11772   because $gtk_doc_requires is not found." >&2;}
11773   fi
11774
11775             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
11776 set dummy gtkdoc-check; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
11780   $as_echo_n "(cached) " >&6
11781 else
11782   if test -n "$GTKDOC_CHECK"; then
11783   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
11784 else
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11787 do
11788   IFS=$as_save_IFS
11789   test -z "$as_dir" && as_dir=.
11790     for ac_exec_ext in '' $ac_executable_extensions; do
11791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
11793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794     break 2
11795   fi
11796 done
11797   done
11798 IFS=$as_save_IFS
11799
11800 fi
11801 fi
11802 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
11803 if test -n "$GTKDOC_CHECK"; then
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
11805 $as_echo "$GTKDOC_CHECK" >&6; }
11806 else
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810
11811
11812   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
11813 set dummy gtkdoc-check; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   case $GTKDOC_CHECK_PATH in
11820   [\\/]* | ?:[\\/]*)
11821   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
11822   ;;
11823   *)
11824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11826 do
11827   IFS=$as_save_IFS
11828   test -z "$as_dir" && as_dir=.
11829     for ac_exec_ext in '' $ac_executable_extensions; do
11830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11831     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
11832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833     break 2
11834   fi
11835 done
11836   done
11837 IFS=$as_save_IFS
11838
11839   ;;
11840 esac
11841 fi
11842 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
11843 if test -n "$GTKDOC_CHECK_PATH"; then
11844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
11845 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
11846 else
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11849 fi
11850
11851
11852   for ac_prog in gtkdoc-rebase
11853 do
11854   # Extract the first word of "$ac_prog", so it can be a program name with args.
11855 set dummy $ac_prog; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
11859   $as_echo_n "(cached) " >&6
11860 else
11861   case $GTKDOC_REBASE in
11862   [\\/]* | ?:[\\/]*)
11863   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
11864   ;;
11865   *)
11866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11868 do
11869   IFS=$as_save_IFS
11870   test -z "$as_dir" && as_dir=.
11871     for ac_exec_ext in '' $ac_executable_extensions; do
11872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
11874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875     break 2
11876   fi
11877 done
11878   done
11879 IFS=$as_save_IFS
11880
11881   ;;
11882 esac
11883 fi
11884 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
11885 if test -n "$GTKDOC_REBASE"; then
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
11887 $as_echo "$GTKDOC_REBASE" >&6; }
11888 else
11889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11891 fi
11892
11893
11894   test -n "$GTKDOC_REBASE" && break
11895 done
11896 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
11897
11898   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
11899 set dummy gtkdoc-mkpdf; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   case $GTKDOC_MKPDF in
11906   [\\/]* | ?:[\\/]*)
11907   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
11908   ;;
11909   *)
11910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11912 do
11913   IFS=$as_save_IFS
11914   test -z "$as_dir" && as_dir=.
11915     for ac_exec_ext in '' $ac_executable_extensions; do
11916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11917     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919     break 2
11920   fi
11921 done
11922   done
11923 IFS=$as_save_IFS
11924
11925   ;;
11926 esac
11927 fi
11928 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
11929 if test -n "$GTKDOC_MKPDF"; then
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
11931 $as_echo "$GTKDOC_MKPDF" >&6; }
11932 else
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935 fi
11936
11937
11938
11939
11940 # Check whether --with-html-dir was given.
11941 if test "${with_html_dir+set}" = set; then :
11942   withval=$with_html_dir;
11943 else
11944   with_html_dir='${datadir}/gtk-doc/html'
11945 fi
11946
11947   HTML_DIR="$with_html_dir"
11948
11949
11950     # Check whether --enable-gtk-doc was given.
11951 if test "${enable_gtk_doc+set}" = set; then :
11952   enableval=$enable_gtk_doc;
11953 else
11954   enable_gtk_doc=no
11955 fi
11956
11957
11958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
11959 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
11961 $as_echo "$enable_gtk_doc" >&6; }
11962
11963   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
11964     as_fn_error $? "
11965   You must have $gtk_doc_requires installed to build documentation for
11966   $PACKAGE_NAME. Please install gtk-doc or disable building the
11967   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
11968   fi
11969
11970     if test "x$PACKAGE_NAME" != "xglib"; then
11971
11972 pkg_failed=no
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
11974 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
11975
11976 if test -n "$GTKDOC_DEPS_CFLAGS"; then
11977     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
11978  elif test -n "$PKG_CONFIG"; then
11979     if test -n "$PKG_CONFIG" && \
11980     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
11981   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
11982   ac_status=$?
11983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11984   test $ac_status = 0; }; then
11985   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
11986                       test "x$?" != "x0" && pkg_failed=yes
11987 else
11988   pkg_failed=yes
11989 fi
11990  else
11991     pkg_failed=untried
11992 fi
11993 if test -n "$GTKDOC_DEPS_LIBS"; then
11994     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
11995  elif test -n "$PKG_CONFIG"; then
11996     if test -n "$PKG_CONFIG" && \
11997     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
11998   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
11999   ac_status=$?
12000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12001   test $ac_status = 0; }; then
12002   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12003                       test "x$?" != "x0" && pkg_failed=yes
12004 else
12005   pkg_failed=yes
12006 fi
12007  else
12008     pkg_failed=untried
12009 fi
12010
12011
12012
12013 if test $pkg_failed = yes; then
12014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 $as_echo "no" >&6; }
12016
12017 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12018         _pkg_short_errors_supported=yes
12019 else
12020         _pkg_short_errors_supported=no
12021 fi
12022         if test $_pkg_short_errors_supported = yes; then
12023                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12024         else
12025                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12026         fi
12027         # Put the nasty error message in config.log where it belongs
12028         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12029
12030         :
12031 elif test $pkg_failed = untried; then
12032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12034         :
12035 else
12036         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
12037         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
12038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12039 $as_echo "yes" >&6; }
12040
12041 fi
12042   fi
12043
12044     # Check whether --enable-gtk-doc-html was given.
12045 if test "${enable_gtk_doc_html+set}" = set; then :
12046   enableval=$enable_gtk_doc_html;
12047 else
12048   enable_gtk_doc_html=yes
12049 fi
12050
12051     # Check whether --enable-gtk-doc-pdf was given.
12052 if test "${enable_gtk_doc_pdf+set}" = set; then :
12053   enableval=$enable_gtk_doc_pdf;
12054 else
12055   enable_gtk_doc_pdf=no
12056 fi
12057
12058
12059   if test -z "$GTKDOC_MKPDF"; then
12060     enable_gtk_doc_pdf=no
12061   fi
12062
12063   if test -z "$AM_DEFAULT_VERBOSITY"; then
12064     AM_DEFAULT_VERBOSITY=1
12065   fi
12066
12067
12068    if test x$have_gtk_doc = xyes; then
12069   HAVE_GTK_DOC_TRUE=
12070   HAVE_GTK_DOC_FALSE='#'
12071 else
12072   HAVE_GTK_DOC_TRUE='#'
12073   HAVE_GTK_DOC_FALSE=
12074 fi
12075
12076    if test x$enable_gtk_doc = xyes; then
12077   ENABLE_GTK_DOC_TRUE=
12078   ENABLE_GTK_DOC_FALSE='#'
12079 else
12080   ENABLE_GTK_DOC_TRUE='#'
12081   ENABLE_GTK_DOC_FALSE=
12082 fi
12083
12084    if test x$enable_gtk_doc_html = xyes; then
12085   GTK_DOC_BUILD_HTML_TRUE=
12086   GTK_DOC_BUILD_HTML_FALSE='#'
12087 else
12088   GTK_DOC_BUILD_HTML_TRUE='#'
12089   GTK_DOC_BUILD_HTML_FALSE=
12090 fi
12091
12092    if test x$enable_gtk_doc_pdf = xyes; then
12093   GTK_DOC_BUILD_PDF_TRUE=
12094   GTK_DOC_BUILD_PDF_FALSE='#'
12095 else
12096   GTK_DOC_BUILD_PDF_TRUE='#'
12097   GTK_DOC_BUILD_PDF_FALSE=
12098 fi
12099
12100    if test -n "$LIBTOOL"; then
12101   GTK_DOC_USE_LIBTOOL_TRUE=
12102   GTK_DOC_USE_LIBTOOL_FALSE='#'
12103 else
12104   GTK_DOC_USE_LIBTOOL_TRUE='#'
12105   GTK_DOC_USE_LIBTOOL_FALSE=
12106 fi
12107
12108    if test -n "$GTKDOC_REBASE"; then
12109   GTK_DOC_USE_REBASE_TRUE=
12110   GTK_DOC_USE_REBASE_FALSE='#'
12111 else
12112   GTK_DOC_USE_REBASE_TRUE='#'
12113   GTK_DOC_USE_REBASE_FALSE=
12114 fi
12115
12116
12117
12118 # Checks for programs.
12119 ac_ext=c
12120 ac_cpp='$CPP $CPPFLAGS'
12121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12124 if test -n "$ac_tool_prefix"; then
12125   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if ${ac_cv_prog_CC+:} false; then :
12130   $as_echo_n "(cached) " >&6
12131 else
12132   if test -n "$CC"; then
12133   ac_cv_prog_CC="$CC" # Let the user override the test.
12134 else
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12137 do
12138   IFS=$as_save_IFS
12139   test -z "$as_dir" && as_dir=.
12140     for ac_exec_ext in '' $ac_executable_extensions; do
12141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12142     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144     break 2
12145   fi
12146 done
12147   done
12148 IFS=$as_save_IFS
12149
12150 fi
12151 fi
12152 CC=$ac_cv_prog_CC
12153 if test -n "$CC"; then
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12155 $as_echo "$CC" >&6; }
12156 else
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12159 fi
12160
12161
12162 fi
12163 if test -z "$ac_cv_prog_CC"; then
12164   ac_ct_CC=$CC
12165   # Extract the first word of "gcc", so it can be a program name with args.
12166 set dummy gcc; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   if test -n "$ac_ct_CC"; then
12173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12174 else
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12177 do
12178   IFS=$as_save_IFS
12179   test -z "$as_dir" && as_dir=.
12180     for ac_exec_ext in '' $ac_executable_extensions; do
12181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182     ac_cv_prog_ac_ct_CC="gcc"
12183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184     break 2
12185   fi
12186 done
12187   done
12188 IFS=$as_save_IFS
12189
12190 fi
12191 fi
12192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12193 if test -n "$ac_ct_CC"; then
12194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12195 $as_echo "$ac_ct_CC" >&6; }
12196 else
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199 fi
12200
12201   if test "x$ac_ct_CC" = x; then
12202     CC=""
12203   else
12204     case $cross_compiling:$ac_tool_warned in
12205 yes:)
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12208 ac_tool_warned=yes ;;
12209 esac
12210     CC=$ac_ct_CC
12211   fi
12212 else
12213   CC="$ac_cv_prog_CC"
12214 fi
12215
12216 if test -z "$CC"; then
12217           if test -n "$ac_tool_prefix"; then
12218     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12219 set dummy ${ac_tool_prefix}cc; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_prog_CC+:} false; then :
12223   $as_echo_n "(cached) " >&6
12224 else
12225   if test -n "$CC"; then
12226   ac_cv_prog_CC="$CC" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12230 do
12231   IFS=$as_save_IFS
12232   test -z "$as_dir" && as_dir=.
12233     for ac_exec_ext in '' $ac_executable_extensions; do
12234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235     ac_cv_prog_CC="${ac_tool_prefix}cc"
12236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237     break 2
12238   fi
12239 done
12240   done
12241 IFS=$as_save_IFS
12242
12243 fi
12244 fi
12245 CC=$ac_cv_prog_CC
12246 if test -n "$CC"; then
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12248 $as_echo "$CC" >&6; }
12249 else
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12252 fi
12253
12254
12255   fi
12256 fi
12257 if test -z "$CC"; then
12258   # Extract the first word of "cc", so it can be a program name with args.
12259 set dummy cc; ac_word=$2
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12261 $as_echo_n "checking for $ac_word... " >&6; }
12262 if ${ac_cv_prog_CC+:} false; then :
12263   $as_echo_n "(cached) " >&6
12264 else
12265   if test -n "$CC"; then
12266   ac_cv_prog_CC="$CC" # Let the user override the test.
12267 else
12268   ac_prog_rejected=no
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12271 do
12272   IFS=$as_save_IFS
12273   test -z "$as_dir" && as_dir=.
12274     for ac_exec_ext in '' $ac_executable_extensions; do
12275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12276     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12277        ac_prog_rejected=yes
12278        continue
12279      fi
12280     ac_cv_prog_CC="cc"
12281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282     break 2
12283   fi
12284 done
12285   done
12286 IFS=$as_save_IFS
12287
12288 if test $ac_prog_rejected = yes; then
12289   # We found a bogon in the path, so make sure we never use it.
12290   set dummy $ac_cv_prog_CC
12291   shift
12292   if test $# != 0; then
12293     # We chose a different compiler from the bogus one.
12294     # However, it has the same basename, so the bogon will be chosen
12295     # first if we set CC to just the basename; use the full file name.
12296     shift
12297     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12298   fi
12299 fi
12300 fi
12301 fi
12302 CC=$ac_cv_prog_CC
12303 if test -n "$CC"; then
12304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12305 $as_echo "$CC" >&6; }
12306 else
12307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12309 fi
12310
12311
12312 fi
12313 if test -z "$CC"; then
12314   if test -n "$ac_tool_prefix"; then
12315   for ac_prog in cl.exe
12316   do
12317     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if ${ac_cv_prog_CC+:} false; then :
12322   $as_echo_n "(cached) " >&6
12323 else
12324   if test -n "$CC"; then
12325   ac_cv_prog_CC="$CC" # Let the user override the test.
12326 else
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12329 do
12330   IFS=$as_save_IFS
12331   test -z "$as_dir" && as_dir=.
12332     for ac_exec_ext in '' $ac_executable_extensions; do
12333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336     break 2
12337   fi
12338 done
12339   done
12340 IFS=$as_save_IFS
12341
12342 fi
12343 fi
12344 CC=$ac_cv_prog_CC
12345 if test -n "$CC"; then
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12347 $as_echo "$CC" >&6; }
12348 else
12349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12351 fi
12352
12353
12354     test -n "$CC" && break
12355   done
12356 fi
12357 if test -z "$CC"; then
12358   ac_ct_CC=$CC
12359   for ac_prog in cl.exe
12360 do
12361   # Extract the first word of "$ac_prog", so it can be a program name with args.
12362 set dummy $ac_prog; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368   if test -n "$ac_ct_CC"; then
12369   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12370 else
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12373 do
12374   IFS=$as_save_IFS
12375   test -z "$as_dir" && as_dir=.
12376     for ac_exec_ext in '' $ac_executable_extensions; do
12377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12378     ac_cv_prog_ac_ct_CC="$ac_prog"
12379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380     break 2
12381   fi
12382 done
12383   done
12384 IFS=$as_save_IFS
12385
12386 fi
12387 fi
12388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12389 if test -n "$ac_ct_CC"; then
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12391 $as_echo "$ac_ct_CC" >&6; }
12392 else
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395 fi
12396
12397
12398   test -n "$ac_ct_CC" && break
12399 done
12400
12401   if test "x$ac_ct_CC" = x; then
12402     CC=""
12403   else
12404     case $cross_compiling:$ac_tool_warned in
12405 yes:)
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12408 ac_tool_warned=yes ;;
12409 esac
12410     CC=$ac_ct_CC
12411   fi
12412 fi
12413
12414 fi
12415
12416
12417 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12419 as_fn_error $? "no acceptable C compiler found in \$PATH
12420 See \`config.log' for more details" "$LINENO" 5; }
12421
12422 # Provide some information about the compiler.
12423 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12424 set X $ac_compile
12425 ac_compiler=$2
12426 for ac_option in --version -v -V -qversion; do
12427   { { ac_try="$ac_compiler $ac_option >&5"
12428 case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12433 $as_echo "$ac_try_echo"; } >&5
12434   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12435   ac_status=$?
12436   if test -s conftest.err; then
12437     sed '10a\
12438 ... rest of stderr output deleted ...
12439          10q' conftest.err >conftest.er1
12440     cat conftest.er1 >&5
12441   fi
12442   rm -f conftest.er1 conftest.err
12443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444   test $ac_status = 0; }
12445 done
12446
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12448 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12449 if ${ac_cv_c_compiler_gnu+:} false; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h.  */
12454
12455 int
12456 main ()
12457 {
12458 #ifndef __GNUC__
12459        choke me
12460 #endif
12461
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 if ac_fn_c_try_compile "$LINENO"; then :
12467   ac_compiler_gnu=yes
12468 else
12469   ac_compiler_gnu=no
12470 fi
12471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12473
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12476 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12477 if test $ac_compiler_gnu = yes; then
12478   GCC=yes
12479 else
12480   GCC=
12481 fi
12482 ac_test_CFLAGS=${CFLAGS+set}
12483 ac_save_CFLAGS=$CFLAGS
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12485 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12486 if ${ac_cv_prog_cc_g+:} false; then :
12487   $as_echo_n "(cached) " >&6
12488 else
12489   ac_save_c_werror_flag=$ac_c_werror_flag
12490    ac_c_werror_flag=yes
12491    ac_cv_prog_cc_g=no
12492    CFLAGS="-g"
12493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h.  */
12495
12496 int
12497 main ()
12498 {
12499
12500   ;
12501   return 0;
12502 }
12503 _ACEOF
12504 if ac_fn_c_try_compile "$LINENO"; then :
12505   ac_cv_prog_cc_g=yes
12506 else
12507   CFLAGS=""
12508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h.  */
12510
12511 int
12512 main ()
12513 {
12514
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 if ac_fn_c_try_compile "$LINENO"; then :
12520
12521 else
12522   ac_c_werror_flag=$ac_save_c_werror_flag
12523          CFLAGS="-g"
12524          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h.  */
12526
12527 int
12528 main ()
12529 {
12530
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 if ac_fn_c_try_compile "$LINENO"; then :
12536   ac_cv_prog_cc_g=yes
12537 fi
12538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 fi
12540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12541 fi
12542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543    ac_c_werror_flag=$ac_save_c_werror_flag
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12546 $as_echo "$ac_cv_prog_cc_g" >&6; }
12547 if test "$ac_test_CFLAGS" = set; then
12548   CFLAGS=$ac_save_CFLAGS
12549 elif test $ac_cv_prog_cc_g = yes; then
12550   if test "$GCC" = yes; then
12551     CFLAGS="-g -O2"
12552   else
12553     CFLAGS="-g"
12554   fi
12555 else
12556   if test "$GCC" = yes; then
12557     CFLAGS="-O2"
12558   else
12559     CFLAGS=
12560   fi
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12563 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12564 if ${ac_cv_prog_cc_c89+:} false; then :
12565   $as_echo_n "(cached) " >&6
12566 else
12567   ac_cv_prog_cc_c89=no
12568 ac_save_CC=$CC
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h.  */
12571 #include <stdarg.h>
12572 #include <stdio.h>
12573 struct stat;
12574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12575 struct buf { int x; };
12576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12577 static char *e (p, i)
12578      char **p;
12579      int i;
12580 {
12581   return p[i];
12582 }
12583 static char *f (char * (*g) (char **, int), char **p, ...)
12584 {
12585   char *s;
12586   va_list v;
12587   va_start (v,p);
12588   s = g (p, va_arg (v,int));
12589   va_end (v);
12590   return s;
12591 }
12592
12593 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12594    function prototypes and stuff, but not '\xHH' hex character constants.
12595    These don't provoke an error unfortunately, instead are silently treated
12596    as 'x'.  The following induces an error, until -std is added to get
12597    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12598    array size at least.  It's necessary to write '\x00'==0 to get something
12599    that's true only with -std.  */
12600 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12601
12602 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12603    inside strings and character constants.  */
12604 #define FOO(x) 'x'
12605 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12606
12607 int test (int i, double x);
12608 struct s1 {int (*f) (int a);};
12609 struct s2 {int (*f) (double a);};
12610 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12611 int argc;
12612 char **argv;
12613 int
12614 main ()
12615 {
12616 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12622         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12623 do
12624   CC="$ac_save_CC $ac_arg"
12625   if ac_fn_c_try_compile "$LINENO"; then :
12626   ac_cv_prog_cc_c89=$ac_arg
12627 fi
12628 rm -f core conftest.err conftest.$ac_objext
12629   test "x$ac_cv_prog_cc_c89" != "xno" && break
12630 done
12631 rm -f conftest.$ac_ext
12632 CC=$ac_save_CC
12633
12634 fi
12635 # AC_CACHE_VAL
12636 case "x$ac_cv_prog_cc_c89" in
12637   x)
12638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12639 $as_echo "none needed" >&6; } ;;
12640   xno)
12641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12642 $as_echo "unsupported" >&6; } ;;
12643   *)
12644     CC="$CC $ac_cv_prog_cc_c89"
12645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12646 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12647 esac
12648 if test "x$ac_cv_prog_cc_c89" != xno; then :
12649
12650 fi
12651
12652 ac_ext=c
12653 ac_cpp='$CPP $CPPFLAGS'
12654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12657
12658 ac_ext=c
12659 ac_cpp='$CPP $CPPFLAGS'
12660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12664 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12665 if ${am_cv_prog_cc_c_o+:} false; then :
12666   $as_echo_n "(cached) " >&6
12667 else
12668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h.  */
12670
12671 int
12672 main ()
12673 {
12674
12675   ;
12676   return 0;
12677 }
12678 _ACEOF
12679   # Make sure it works both with $CC and with simple cc.
12680   # Following AC_PROG_CC_C_O, we do the test twice because some
12681   # compilers refuse to overwrite an existing .o file with -o,
12682   # though they will create one.
12683   am_cv_prog_cc_c_o=yes
12684   for am_i in 1 2; do
12685     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12686    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12687    ac_status=$?
12688    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689    (exit $ac_status); } \
12690          && test -f conftest2.$ac_objext; then
12691       : OK
12692     else
12693       am_cv_prog_cc_c_o=no
12694       break
12695     fi
12696   done
12697   rm -f core conftest*
12698   unset am_i
12699 fi
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12701 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12702 if test "$am_cv_prog_cc_c_o" != yes; then
12703    # Losing compiler, so override with the script.
12704    # FIXME: It is wrong to rewrite CC.
12705    # But if we don't then we get into trouble of one sort or another.
12706    # A longer-term fix would be to have automake use am__CC in this case,
12707    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12708    CC="$am_aux_dir/compile $CC"
12709 fi
12710 ac_ext=c
12711 ac_cpp='$CPP $CPPFLAGS'
12712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12715
12716
12717 depcc="$CC"   am_compiler_list=
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12720 $as_echo_n "checking dependency style of $depcc... " >&6; }
12721 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12722   $as_echo_n "(cached) " >&6
12723 else
12724   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12725   # We make a subdir and do the tests there.  Otherwise we can end up
12726   # making bogus files that we don't know about and never remove.  For
12727   # instance it was reported that on HP-UX the gcc test will end up
12728   # making a dummy file named 'D' -- because '-MD' means "put the output
12729   # in D".
12730   rm -rf conftest.dir
12731   mkdir conftest.dir
12732   # Copy depcomp to subdir because otherwise we won't find it if we're
12733   # using a relative directory.
12734   cp "$am_depcomp" conftest.dir
12735   cd conftest.dir
12736   # We will build objects and dependencies in a subdirectory because
12737   # it helps to detect inapplicable dependency modes.  For instance
12738   # both Tru64's cc and ICC support -MD to output dependencies as a
12739   # side effect of compilation, but ICC will put the dependencies in
12740   # the current directory while Tru64 will put them in the object
12741   # directory.
12742   mkdir sub
12743
12744   am_cv_CC_dependencies_compiler_type=none
12745   if test "$am_compiler_list" = ""; then
12746      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12747   fi
12748   am__universal=false
12749   case " $depcc " in #(
12750      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12751      esac
12752
12753   for depmode in $am_compiler_list; do
12754     # Setup a source with many dependencies, because some compilers
12755     # like to wrap large dependency lists on column 80 (with \), and
12756     # we should not choose a depcomp mode which is confused by this.
12757     #
12758     # We need to recreate these files for each test, as the compiler may
12759     # overwrite some of them when testing with obscure command lines.
12760     # This happens at least with the AIX C compiler.
12761     : > sub/conftest.c
12762     for i in 1 2 3 4 5 6; do
12763       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12764       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12765       # Solaris 10 /bin/sh.
12766       echo '/* dummy */' > sub/conftst$i.h
12767     done
12768     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12769
12770     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12771     # mode.  It turns out that the SunPro C++ compiler does not properly
12772     # handle '-M -o', and we need to detect this.  Also, some Intel
12773     # versions had trouble with output in subdirs.
12774     am__obj=sub/conftest.${OBJEXT-o}
12775     am__minus_obj="-o $am__obj"
12776     case $depmode in
12777     gcc)
12778       # This depmode causes a compiler race in universal mode.
12779       test "$am__universal" = false || continue
12780       ;;
12781     nosideeffect)
12782       # After this tag, mechanisms are not by side-effect, so they'll
12783       # only be used when explicitly requested.
12784       if test "x$enable_dependency_tracking" = xyes; then
12785         continue
12786       else
12787         break
12788       fi
12789       ;;
12790     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12791       # This compiler won't grok '-c -o', but also, the minuso test has
12792       # not run yet.  These depmodes are late enough in the game, and
12793       # so weak that their functioning should not be impacted.
12794       am__obj=conftest.${OBJEXT-o}
12795       am__minus_obj=
12796       ;;
12797     none) break ;;
12798     esac
12799     if depmode=$depmode \
12800        source=sub/conftest.c object=$am__obj \
12801        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12802        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12803          >/dev/null 2>conftest.err &&
12804        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12805        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12806        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12807        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12808       # icc doesn't choke on unknown options, it will just issue warnings
12809       # or remarks (even with -Werror).  So we grep stderr for any message
12810       # that says an option was ignored or not supported.
12811       # When given -MP, icc 7.0 and 7.1 complain thusly:
12812       #   icc: Command line warning: ignoring option '-M'; no argument required
12813       # The diagnosis changed in icc 8.0:
12814       #   icc: Command line remark: option '-MP' not supported
12815       if (grep 'ignoring option' conftest.err ||
12816           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12817         am_cv_CC_dependencies_compiler_type=$depmode
12818         break
12819       fi
12820     fi
12821   done
12822
12823   cd ..
12824   rm -rf conftest.dir
12825 else
12826   am_cv_CC_dependencies_compiler_type=none
12827 fi
12828
12829 fi
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12831 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12832 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12833
12834  if
12835   test "x$enable_dependency_tracking" != xno \
12836   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12837   am__fastdepCC_TRUE=
12838   am__fastdepCC_FALSE='#'
12839 else
12840   am__fastdepCC_TRUE='#'
12841   am__fastdepCC_FALSE=
12842 fi
12843
12844
12845 # Extract the first word of "glib-mkenums", so it can be a program name with args.
12846 set dummy glib-mkenums; ac_word=$2
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12848 $as_echo_n "checking for $ac_word... " >&6; }
12849 if ${ac_cv_path_GLIB_MKENUMS+:} false; then :
12850   $as_echo_n "(cached) " >&6
12851 else
12852   case $GLIB_MKENUMS in
12853   [\\/]* | ?:[\\/]*)
12854   ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path.
12855   ;;
12856   *)
12857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858 for as_dir in $PATH
12859 do
12860   IFS=$as_save_IFS
12861   test -z "$as_dir" && as_dir=.
12862     for ac_exec_ext in '' $ac_executable_extensions; do
12863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12864     ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext"
12865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12866     break 2
12867   fi
12868 done
12869   done
12870 IFS=$as_save_IFS
12871
12872   test -z "$ac_cv_path_GLIB_MKENUMS" && ac_cv_path_GLIB_MKENUMS="$PATH"
12873   ;;
12874 esac
12875 fi
12876 GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS
12877 if test -n "$GLIB_MKENUMS"; then
12878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
12879 $as_echo "$GLIB_MKENUMS" >&6; }
12880 else
12881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 fi
12884
12885
12886
12887 # Checks for libraries.
12888
12889 pkg_failed=no
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12891 $as_echo_n "checking for GLIB... " >&6; }
12892
12893 if test -n "$GLIB_CFLAGS"; then
12894     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12895  elif test -n "$PKG_CONFIG"; then
12896     if test -n "$PKG_CONFIG" && \
12897     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30\""; } >&5
12898   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30") 2>&5
12899   ac_status=$?
12900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12901   test $ac_status = 0; }; then
12902   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.30" 2>/dev/null`
12903                       test "x$?" != "x0" && pkg_failed=yes
12904 else
12905   pkg_failed=yes
12906 fi
12907  else
12908     pkg_failed=untried
12909 fi
12910 if test -n "$GLIB_LIBS"; then
12911     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12912  elif test -n "$PKG_CONFIG"; then
12913     if test -n "$PKG_CONFIG" && \
12914     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30\""; } >&5
12915   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30") 2>&5
12916   ac_status=$?
12917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12918   test $ac_status = 0; }; then
12919   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.30" 2>/dev/null`
12920                       test "x$?" != "x0" && pkg_failed=yes
12921 else
12922   pkg_failed=yes
12923 fi
12924  else
12925     pkg_failed=untried
12926 fi
12927
12928
12929
12930 if test $pkg_failed = yes; then
12931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12933
12934 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12935         _pkg_short_errors_supported=yes
12936 else
12937         _pkg_short_errors_supported=no
12938 fi
12939         if test $_pkg_short_errors_supported = yes; then
12940                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.30" 2>&1`
12941         else
12942                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.30" 2>&1`
12943         fi
12944         # Put the nasty error message in config.log where it belongs
12945         echo "$GLIB_PKG_ERRORS" >&5
12946
12947         as_fn_error $? "Package requirements (glib-2.0 >= 2.30) were not met:
12948
12949 $GLIB_PKG_ERRORS
12950
12951 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12952 installed software in a non-standard prefix.
12953
12954 Alternatively, you may set the environment variables GLIB_CFLAGS
12955 and GLIB_LIBS to avoid the need to call pkg-config.
12956 See the pkg-config man page for more details." "$LINENO" 5
12957 elif test $pkg_failed = untried; then
12958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12960         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12962 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12963 is in your PATH or set the PKG_CONFIG environment variable to the full
12964 path to pkg-config.
12965
12966 Alternatively, you may set the environment variables GLIB_CFLAGS
12967 and GLIB_LIBS to avoid the need to call pkg-config.
12968 See the pkg-config man page for more details.
12969
12970 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12971 See \`config.log' for more details" "$LINENO" 5; }
12972 else
12973         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12974         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12976 $as_echo "yes" >&6; }
12977
12978 fi
12979
12980
12981
12982
12983 pkg_failed=no
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12985 $as_echo_n "checking for GIO... " >&6; }
12986
12987 if test -n "$GIO_CFLAGS"; then
12988     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12989  elif test -n "$PKG_CONFIG"; then
12990     if test -n "$PKG_CONFIG" && \
12991     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 gio-unix-2.0\""; } >&5
12992   ($PKG_CONFIG --exists --print-errors "gio-2.0 gio-unix-2.0") 2>&5
12993   ac_status=$?
12994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995   test $ac_status = 0; }; then
12996   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 gio-unix-2.0" 2>/dev/null`
12997                       test "x$?" != "x0" && pkg_failed=yes
12998 else
12999   pkg_failed=yes
13000 fi
13001  else
13002     pkg_failed=untried
13003 fi
13004 if test -n "$GIO_LIBS"; then
13005     pkg_cv_GIO_LIBS="$GIO_LIBS"
13006  elif test -n "$PKG_CONFIG"; then
13007     if test -n "$PKG_CONFIG" && \
13008     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 gio-unix-2.0\""; } >&5
13009   ($PKG_CONFIG --exists --print-errors "gio-2.0 gio-unix-2.0") 2>&5
13010   ac_status=$?
13011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13012   test $ac_status = 0; }; then
13013   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 gio-unix-2.0" 2>/dev/null`
13014                       test "x$?" != "x0" && pkg_failed=yes
13015 else
13016   pkg_failed=yes
13017 fi
13018  else
13019     pkg_failed=untried
13020 fi
13021
13022
13023
13024 if test $pkg_failed = yes; then
13025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13027
13028 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13029         _pkg_short_errors_supported=yes
13030 else
13031         _pkg_short_errors_supported=no
13032 fi
13033         if test $_pkg_short_errors_supported = yes; then
13034                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 gio-unix-2.0" 2>&1`
13035         else
13036                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 gio-unix-2.0" 2>&1`
13037         fi
13038         # Put the nasty error message in config.log where it belongs
13039         echo "$GIO_PKG_ERRORS" >&5
13040
13041         as_fn_error $? "Package requirements (gio-2.0 gio-unix-2.0) were not met:
13042
13043 $GIO_PKG_ERRORS
13044
13045 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13046 installed software in a non-standard prefix.
13047
13048 Alternatively, you may set the environment variables GIO_CFLAGS
13049 and GIO_LIBS to avoid the need to call pkg-config.
13050 See the pkg-config man page for more details." "$LINENO" 5
13051 elif test $pkg_failed = untried; then
13052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13054         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13056 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13057 is in your PATH or set the PKG_CONFIG environment variable to the full
13058 path to pkg-config.
13059
13060 Alternatively, you may set the environment variables GIO_CFLAGS
13061 and GIO_LIBS to avoid the need to call pkg-config.
13062 See the pkg-config man page for more details.
13063
13064 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13065 See \`config.log' for more details" "$LINENO" 5; }
13066 else
13067         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13068         GIO_LIBS=$pkg_cv_GIO_LIBS
13069         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13070 $as_echo "yes" >&6; }
13071
13072 fi
13073
13074
13075
13076
13077 pkg_failed=no
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
13079 $as_echo_n "checking for GMODULE... " >&6; }
13080
13081 if test -n "$GMODULE_CFLAGS"; then
13082     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
13083  elif test -n "$PKG_CONFIG"; then
13084     if test -n "$PKG_CONFIG" && \
13085     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
13086   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
13087   ac_status=$?
13088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13089   test $ac_status = 0; }; then
13090   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
13091                       test "x$?" != "x0" && pkg_failed=yes
13092 else
13093   pkg_failed=yes
13094 fi
13095  else
13096     pkg_failed=untried
13097 fi
13098 if test -n "$GMODULE_LIBS"; then
13099     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
13100  elif test -n "$PKG_CONFIG"; then
13101     if test -n "$PKG_CONFIG" && \
13102     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
13103   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
13104   ac_status=$?
13105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13106   test $ac_status = 0; }; then
13107   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
13108                       test "x$?" != "x0" && pkg_failed=yes
13109 else
13110   pkg_failed=yes
13111 fi
13112  else
13113     pkg_failed=untried
13114 fi
13115
13116
13117
13118 if test $pkg_failed = yes; then
13119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13121
13122 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13123         _pkg_short_errors_supported=yes
13124 else
13125         _pkg_short_errors_supported=no
13126 fi
13127         if test $_pkg_short_errors_supported = yes; then
13128                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
13129         else
13130                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
13131         fi
13132         # Put the nasty error message in config.log where it belongs
13133         echo "$GMODULE_PKG_ERRORS" >&5
13134
13135         as_fn_error $? "Package requirements (gmodule-2.0) were not met:
13136
13137 $GMODULE_PKG_ERRORS
13138
13139 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13140 installed software in a non-standard prefix.
13141
13142 Alternatively, you may set the environment variables GMODULE_CFLAGS
13143 and GMODULE_LIBS to avoid the need to call pkg-config.
13144 See the pkg-config man page for more details." "$LINENO" 5
13145 elif test $pkg_failed = untried; then
13146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13148         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13150 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13151 is in your PATH or set the PKG_CONFIG environment variable to the full
13152 path to pkg-config.
13153
13154 Alternatively, you may set the environment variables GMODULE_CFLAGS
13155 and GMODULE_LIBS to avoid the need to call pkg-config.
13156 See the pkg-config man page for more details.
13157
13158 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13159 See \`config.log' for more details" "$LINENO" 5; }
13160 else
13161         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
13162         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
13163         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13164 $as_echo "yes" >&6; }
13165
13166 fi
13167
13168
13169
13170 for ac_header in security/pam_appl.h
13171 do :
13172   ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13173 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
13174   cat >>confdefs.h <<_ACEOF
13175 #define HAVE_SECURITY_PAM_APPL_H 1
13176 _ACEOF
13177
13178 else
13179   as_fn_error $? "\"pam-devel is required\"" "$LINENO" 5
13180 fi
13181
13182 done
13183
13184 for ac_header in security/pam_misc.h
13185 do :
13186   ac_fn_c_check_header_mongrel "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "$ac_includes_default"
13187 if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
13188   cat >>confdefs.h <<_ACEOF
13189 #define HAVE_SECURITY_PAM_MISC_H 1
13190 _ACEOF
13191
13192 else
13193   as_fn_error $? "\"pam-misc is required\"" "$LINENO" 5
13194 fi
13195
13196 done
13197
13198
13199 TLM_CFLAGS="$GLIB_CFLAGS $GIO_CFLAGS $GMODULE_CFLAGS -D_POSIX_C_SOURCE=\"200809L\" -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -Wall -Werror"
13200 TLM_LIBS="$GLIB_LIBS $GIO_LIBS $GMODULE_LIBS"
13201
13202
13203
13204 # Enable debug
13205 # Check whether --enable-debug was given.
13206 if test "${enable_debug+set}" = set; then :
13207   enableval=$enable_debug; enable_debug=$enable_debug
13208 else
13209   enable_debug="no"
13210 fi
13211
13212 if test "x$enable_debug" = "xyes" ; then
13213
13214 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
13215
13216     # Check whether --enable-tests was given.
13217 if test "${enable_tests+set}" = set; then :
13218   enableval=$enable_tests; enable_tests=$enable_tests
13219 else
13220   enable_tests="no"
13221 fi
13222
13223     if test "x$enable_tests" = "xyes" ; then
13224
13225 $as_echo "#define ENABLE_TESTS 1" >>confdefs.h
13226
13227
13228 pkg_failed=no
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
13230 $as_echo_n "checking for CHECK... " >&6; }
13231
13232 if test -n "$CHECK_CFLAGS"; then
13233     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
13234  elif test -n "$PKG_CONFIG"; then
13235     if test -n "$PKG_CONFIG" && \
13236     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
13237   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
13238   ac_status=$?
13239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13240   test $ac_status = 0; }; then
13241   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
13242                       test "x$?" != "x0" && pkg_failed=yes
13243 else
13244   pkg_failed=yes
13245 fi
13246  else
13247     pkg_failed=untried
13248 fi
13249 if test -n "$CHECK_LIBS"; then
13250     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
13251  elif test -n "$PKG_CONFIG"; then
13252     if test -n "$PKG_CONFIG" && \
13253     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
13254   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
13255   ac_status=$?
13256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13257   test $ac_status = 0; }; then
13258   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
13259                       test "x$?" != "x0" && pkg_failed=yes
13260 else
13261   pkg_failed=yes
13262 fi
13263  else
13264     pkg_failed=untried
13265 fi
13266
13267
13268
13269 if test $pkg_failed = yes; then
13270         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 $as_echo "no" >&6; }
13272
13273 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13274         _pkg_short_errors_supported=yes
13275 else
13276         _pkg_short_errors_supported=no
13277 fi
13278         if test $_pkg_short_errors_supported = yes; then
13279                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
13280         else
13281                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
13282         fi
13283         # Put the nasty error message in config.log where it belongs
13284         echo "$CHECK_PKG_ERRORS" >&5
13285
13286         as_fn_error $? "Package requirements (check >= 0.9.4) were not met:
13287
13288 $CHECK_PKG_ERRORS
13289
13290 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13291 installed software in a non-standard prefix.
13292
13293 Alternatively, you may set the environment variables CHECK_CFLAGS
13294 and CHECK_LIBS to avoid the need to call pkg-config.
13295 See the pkg-config man page for more details." "$LINENO" 5
13296 elif test $pkg_failed = untried; then
13297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13299         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13301 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13302 is in your PATH or set the PKG_CONFIG environment variable to the full
13303 path to pkg-config.
13304
13305 Alternatively, you may set the environment variables CHECK_CFLAGS
13306 and CHECK_LIBS to avoid the need to call pkg-config.
13307 See the pkg-config man page for more details.
13308
13309 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13310 See \`config.log' for more details" "$LINENO" 5; }
13311 else
13312         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
13313         CHECK_LIBS=$pkg_cv_CHECK_LIBS
13314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13315 $as_echo "yes" >&6; }
13316
13317 fi
13318     fi
13319 else
13320     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Tests can't be enabled without debug features\"" >&5
13321 $as_echo "$as_me: WARNING: \"Tests can't be enabled without debug features\"" >&2;}
13322     enable_tests=no
13323 fi
13324
13325
13326  if test "x$enable_tests" = "xyes"; then
13327   ENABLE_TESTS_TRUE=
13328   ENABLE_TESTS_FALSE='#'
13329 else
13330   ENABLE_TESTS_TRUE='#'
13331   ENABLE_TESTS_FALSE=
13332 fi
13333
13334
13335 # Enable examples
13336 # Check whether --enable-examples was given.
13337 if test "${enable_examples+set}" = set; then :
13338   enableval=$enable_examples; enable_examples=$enable_examples
13339 else
13340   enable_examples="no"
13341 fi
13342
13343  if test x$enable_examples = xyes; then
13344   ENABLE_EXAMPLES_TRUE=
13345   ENABLE_EXAMPLES_FALSE='#'
13346 else
13347   ENABLE_EXAMPLES_TRUE='#'
13348   ENABLE_EXAMPLES_FALSE=
13349 fi
13350
13351
13352 if test "x$enable_examples" = "xyes" ; then
13353
13354 pkg_failed=no
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELEMENTARY" >&5
13356 $as_echo_n "checking for ELEMENTARY... " >&6; }
13357
13358 if test -n "$ELEMENTARY_CFLAGS"; then
13359     pkg_cv_ELEMENTARY_CFLAGS="$ELEMENTARY_CFLAGS"
13360  elif test -n "$PKG_CONFIG"; then
13361     if test -n "$PKG_CONFIG" && \
13362     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"elementary\""; } >&5
13363   ($PKG_CONFIG --exists --print-errors "elementary") 2>&5
13364   ac_status=$?
13365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366   test $ac_status = 0; }; then
13367   pkg_cv_ELEMENTARY_CFLAGS=`$PKG_CONFIG --cflags "elementary" 2>/dev/null`
13368                       test "x$?" != "x0" && pkg_failed=yes
13369 else
13370   pkg_failed=yes
13371 fi
13372  else
13373     pkg_failed=untried
13374 fi
13375 if test -n "$ELEMENTARY_LIBS"; then
13376     pkg_cv_ELEMENTARY_LIBS="$ELEMENTARY_LIBS"
13377  elif test -n "$PKG_CONFIG"; then
13378     if test -n "$PKG_CONFIG" && \
13379     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"elementary\""; } >&5
13380   ($PKG_CONFIG --exists --print-errors "elementary") 2>&5
13381   ac_status=$?
13382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13383   test $ac_status = 0; }; then
13384   pkg_cv_ELEMENTARY_LIBS=`$PKG_CONFIG --libs "elementary" 2>/dev/null`
13385                       test "x$?" != "x0" && pkg_failed=yes
13386 else
13387   pkg_failed=yes
13388 fi
13389  else
13390     pkg_failed=untried
13391 fi
13392
13393
13394
13395 if test $pkg_failed = yes; then
13396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397 $as_echo "no" >&6; }
13398
13399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13400         _pkg_short_errors_supported=yes
13401 else
13402         _pkg_short_errors_supported=no
13403 fi
13404         if test $_pkg_short_errors_supported = yes; then
13405                 ELEMENTARY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "elementary" 2>&1`
13406         else
13407                 ELEMENTARY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "elementary" 2>&1`
13408         fi
13409         # Put the nasty error message in config.log where it belongs
13410         echo "$ELEMENTARY_PKG_ERRORS" >&5
13411
13412         as_fn_error $? "Package requirements (elementary) were not met:
13413
13414 $ELEMENTARY_PKG_ERRORS
13415
13416 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13417 installed software in a non-standard prefix.
13418
13419 Alternatively, you may set the environment variables ELEMENTARY_CFLAGS
13420 and ELEMENTARY_LIBS to avoid the need to call pkg-config.
13421 See the pkg-config man page for more details." "$LINENO" 5
13422 elif test $pkg_failed = untried; then
13423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13425         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13427 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13428 is in your PATH or set the PKG_CONFIG environment variable to the full
13429 path to pkg-config.
13430
13431 Alternatively, you may set the environment variables ELEMENTARY_CFLAGS
13432 and ELEMENTARY_LIBS to avoid the need to call pkg-config.
13433 See the pkg-config man page for more details.
13434
13435 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13436 See \`config.log' for more details" "$LINENO" 5; }
13437 else
13438         ELEMENTARY_CFLAGS=$pkg_cv_ELEMENTARY_CFLAGS
13439         ELEMENTARY_LIBS=$pkg_cv_ELEMENTARY_LIBS
13440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13441 $as_echo "yes" >&6; }
13442
13443 fi
13444
13445
13446 fi
13447
13448 # Define socket path
13449 # Check whether --enable-sockets-path was given.
13450 if test "${enable_sockets_path+set}" = set; then :
13451   enableval=$enable_sockets_path; enable_sockets_path=$enableval
13452 else
13453   enable_sockets_path="/var/run/tlm"
13454 fi
13455
13456
13457 cat >>confdefs.h <<_ACEOF
13458 #define TLM_DBUS_SOCKET_PATH "$enable_sockets_path"
13459 _ACEOF
13460
13461
13462 cat >>confdefs.h <<_ACEOF
13463 #define TLM_DBUS_ROOT_SOCKET_ADDRESS "unix:path=$enable_sockets_path/dbus-sock"
13464 _ACEOF
13465
13466
13467 # Enable gum
13468
13469 pkg_failed=no
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUM" >&5
13471 $as_echo_n "checking for LIBGUM... " >&6; }
13472
13473 if test -n "$LIBGUM_CFLAGS"; then
13474     pkg_cv_LIBGUM_CFLAGS="$LIBGUM_CFLAGS"
13475  elif test -n "$PKG_CONFIG"; then
13476     if test -n "$PKG_CONFIG" && \
13477     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgum\""; } >&5
13478   ($PKG_CONFIG --exists --print-errors "libgum") 2>&5
13479   ac_status=$?
13480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13481   test $ac_status = 0; }; then
13482   pkg_cv_LIBGUM_CFLAGS=`$PKG_CONFIG --cflags "libgum" 2>/dev/null`
13483                       test "x$?" != "x0" && pkg_failed=yes
13484 else
13485   pkg_failed=yes
13486 fi
13487  else
13488     pkg_failed=untried
13489 fi
13490 if test -n "$LIBGUM_LIBS"; then
13491     pkg_cv_LIBGUM_LIBS="$LIBGUM_LIBS"
13492  elif test -n "$PKG_CONFIG"; then
13493     if test -n "$PKG_CONFIG" && \
13494     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgum\""; } >&5
13495   ($PKG_CONFIG --exists --print-errors "libgum") 2>&5
13496   ac_status=$?
13497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13498   test $ac_status = 0; }; then
13499   pkg_cv_LIBGUM_LIBS=`$PKG_CONFIG --libs "libgum" 2>/dev/null`
13500                       test "x$?" != "x0" && pkg_failed=yes
13501 else
13502   pkg_failed=yes
13503 fi
13504  else
13505     pkg_failed=untried
13506 fi
13507
13508
13509
13510 if test $pkg_failed = yes; then
13511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512 $as_echo "no" >&6; }
13513
13514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13515         _pkg_short_errors_supported=yes
13516 else
13517         _pkg_short_errors_supported=no
13518 fi
13519         if test $_pkg_short_errors_supported = yes; then
13520                 LIBGUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgum" 2>&1`
13521         else
13522                 LIBGUM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgum" 2>&1`
13523         fi
13524         # Put the nasty error message in config.log where it belongs
13525         echo "$LIBGUM_PKG_ERRORS" >&5
13526
13527         have_libgum=no
13528 elif test $pkg_failed = untried; then
13529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13531         have_libgum=no
13532 else
13533         LIBGUM_CFLAGS=$pkg_cv_LIBGUM_CFLAGS
13534         LIBGUM_LIBS=$pkg_cv_LIBGUM_LIBS
13535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13536 $as_echo "yes" >&6; }
13537         have_libgum=yes
13538 fi
13539 # Check whether --enable-gum was given.
13540 if test "${enable_gum+set}" = set; then :
13541   enableval=$enable_gum;
13542 else
13543   enable_gum=$have_libgum
13544 fi
13545
13546 if test "x$enable_gum" = "xyes" && test "x$have_libgum" = "xno" ; then
13547     as_fn_error $? "\"libgum is required.\"" "$LINENO" 5
13548 fi
13549
13550
13551  if test x$have_libgum = xyes; then
13552   HAVE_LIBGUM_TRUE=
13553   HAVE_LIBGUM_FALSE='#'
13554 else
13555   HAVE_LIBGUM_TRUE='#'
13556   HAVE_LIBGUM_FALSE=
13557 fi
13558
13559
13560 if test "x$enable_gum" = "xyes" ; then
13561     ACCOUNT_PLUGIN_NAME=gumd
13562
13563 else
13564     ACCOUNT_PLUGIN_NAME=default
13565
13566 fi
13567
13568 ac_config_files="$ac_config_files Makefile docs/Makefile src/Makefile src/common/Makefile src/common/dbus/Makefile src/daemon/Makefile src/daemon/dbus/Makefile src/daemon/tlm.pc src/sessiond/Makefile src/utils/Makefile src/plugins/Makefile src/plugins/default/Makefile src/plugins/gumd/Makefile data/Makefile data/tlm.conf tests/Makefile tests/config/Makefile tests/daemon/Makefile tests/tlm-test.conf examples/Makefile"
13569
13570
13571 cat >confcache <<\_ACEOF
13572 # This file is a shell script that caches the results of configure
13573 # tests run on this system so they can be shared between configure
13574 # scripts and configure runs, see configure's option --config-cache.
13575 # It is not useful on other systems.  If it contains results you don't
13576 # want to keep, you may remove or edit it.
13577 #
13578 # config.status only pays attention to the cache file if you give it
13579 # the --recheck option to rerun configure.
13580 #
13581 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13582 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13583 # following values.
13584
13585 _ACEOF
13586
13587 # The following way of writing the cache mishandles newlines in values,
13588 # but we know of no workaround that is simple, portable, and efficient.
13589 # So, we kill variables containing newlines.
13590 # Ultrix sh set writes to stderr and can't be redirected directly,
13591 # and sets the high bit in the cache file unless we assign to the vars.
13592 (
13593   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13594     eval ac_val=\$$ac_var
13595     case $ac_val in #(
13596     *${as_nl}*)
13597       case $ac_var in #(
13598       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13599 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13600       esac
13601       case $ac_var in #(
13602       _ | IFS | as_nl) ;; #(
13603       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13604       *) { eval $ac_var=; unset $ac_var;} ;;
13605       esac ;;
13606     esac
13607   done
13608
13609   (set) 2>&1 |
13610     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13611     *${as_nl}ac_space=\ *)
13612       # `set' does not quote correctly, so add quotes: double-quote
13613       # substitution turns \\\\ into \\, and sed turns \\ into \.
13614       sed -n \
13615         "s/'/'\\\\''/g;
13616           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13617       ;; #(
13618     *)
13619       # `set' quotes correctly as required by POSIX, so do not add quotes.
13620       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13621       ;;
13622     esac |
13623     sort
13624 ) |
13625   sed '
13626      /^ac_cv_env_/b end
13627      t clear
13628      :clear
13629      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13630      t end
13631      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13632      :end' >>confcache
13633 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13634   if test -w "$cache_file"; then
13635     if test "x$cache_file" != "x/dev/null"; then
13636       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13637 $as_echo "$as_me: updating cache $cache_file" >&6;}
13638       if test ! -f "$cache_file" || test -h "$cache_file"; then
13639         cat confcache >"$cache_file"
13640       else
13641         case $cache_file in #(
13642         */* | ?:*)
13643           mv -f confcache "$cache_file"$$ &&
13644           mv -f "$cache_file"$$ "$cache_file" ;; #(
13645         *)
13646           mv -f confcache "$cache_file" ;;
13647         esac
13648       fi
13649     fi
13650   else
13651     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13652 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13653   fi
13654 fi
13655 rm -f confcache
13656
13657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13658 # Let make expand exec_prefix.
13659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13660
13661 DEFS=-DHAVE_CONFIG_H
13662
13663 ac_libobjs=
13664 ac_ltlibobjs=
13665 U=
13666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13667   # 1. Remove the extension, and $U if already installed.
13668   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13669   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13670   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13671   #    will be set to the directory where LIBOBJS objects are built.
13672   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13673   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13674 done
13675 LIBOBJS=$ac_libobjs
13676
13677 LTLIBOBJS=$ac_ltlibobjs
13678
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13681 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13682    if test -n "$am_sleep_pid"; then
13683      # Hide warnings about reused PIDs.
13684      wait $am_sleep_pid 2>/dev/null
13685    fi
13686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13687 $as_echo "done" >&6; }
13688  if test -n "$EXEEXT"; then
13689   am__EXEEXT_TRUE=
13690   am__EXEEXT_FALSE='#'
13691 else
13692   am__EXEEXT_TRUE='#'
13693   am__EXEEXT_FALSE=
13694 fi
13695
13696 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13697   as_fn_error $? "conditional \"AMDEP\" was never defined.
13698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13699 fi
13700 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13701   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13703 fi
13704 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
13705   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
13706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13707 fi
13708 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13709   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13711 fi
13712 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13713   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13715 fi
13716 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13717   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13719 fi
13720 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13721   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13723 fi
13724 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13725   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13727 fi
13728 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13729   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13731 fi
13732 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
13733   as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
13734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13735 fi
13736 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
13737   as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
13738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13739 fi
13740 if test -z "${HAVE_LIBGUM_TRUE}" && test -z "${HAVE_LIBGUM_FALSE}"; then
13741   as_fn_error $? "conditional \"HAVE_LIBGUM\" was never defined.
13742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13743 fi
13744
13745 : "${CONFIG_STATUS=./config.status}"
13746 ac_write_fail=0
13747 ac_clean_files_save=$ac_clean_files
13748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13750 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13751 as_write_fail=0
13752 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13753 #! $SHELL
13754 # Generated by $as_me.
13755 # Run this file to recreate the current configuration.
13756 # Compiler output produced by configure, useful for debugging
13757 # configure, is in config.log if it exists.
13758
13759 debug=false
13760 ac_cs_recheck=false
13761 ac_cs_silent=false
13762
13763 SHELL=\${CONFIG_SHELL-$SHELL}
13764 export SHELL
13765 _ASEOF
13766 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13767 ## -------------------- ##
13768 ## M4sh Initialization. ##
13769 ## -------------------- ##
13770
13771 # Be more Bourne compatible
13772 DUALCASE=1; export DUALCASE # for MKS sh
13773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13774   emulate sh
13775   NULLCMD=:
13776   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13777   # is contrary to our usage.  Disable this feature.
13778   alias -g '${1+"$@"}'='"$@"'
13779   setopt NO_GLOB_SUBST
13780 else
13781   case `(set -o) 2>/dev/null` in #(
13782   *posix*) :
13783     set -o posix ;; #(
13784   *) :
13785      ;;
13786 esac
13787 fi
13788
13789
13790 as_nl='
13791 '
13792 export as_nl
13793 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13794 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13797 # Prefer a ksh shell builtin over an external printf program on Solaris,
13798 # but without wasting forks for bash or zsh.
13799 if test -z "$BASH_VERSION$ZSH_VERSION" \
13800     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13801   as_echo='print -r --'
13802   as_echo_n='print -rn --'
13803 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13804   as_echo='printf %s\n'
13805   as_echo_n='printf %s'
13806 else
13807   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13808     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13809     as_echo_n='/usr/ucb/echo -n'
13810   else
13811     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13812     as_echo_n_body='eval
13813       arg=$1;
13814       case $arg in #(
13815       *"$as_nl"*)
13816         expr "X$arg" : "X\\(.*\\)$as_nl";
13817         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13818       esac;
13819       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13820     '
13821     export as_echo_n_body
13822     as_echo_n='sh -c $as_echo_n_body as_echo'
13823   fi
13824   export as_echo_body
13825   as_echo='sh -c $as_echo_body as_echo'
13826 fi
13827
13828 # The user is always right.
13829 if test "${PATH_SEPARATOR+set}" != set; then
13830   PATH_SEPARATOR=:
13831   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13832     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13833       PATH_SEPARATOR=';'
13834   }
13835 fi
13836
13837
13838 # IFS
13839 # We need space, tab and new line, in precisely that order.  Quoting is
13840 # there to prevent editors from complaining about space-tab.
13841 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13842 # splitting by setting IFS to empty value.)
13843 IFS=" ""        $as_nl"
13844
13845 # Find who we are.  Look in the path if we contain no directory separator.
13846 as_myself=
13847 case $0 in #((
13848   *[\\/]* ) as_myself=$0 ;;
13849   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13851 do
13852   IFS=$as_save_IFS
13853   test -z "$as_dir" && as_dir=.
13854     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13855   done
13856 IFS=$as_save_IFS
13857
13858      ;;
13859 esac
13860 # We did not find ourselves, most probably we were run as `sh COMMAND'
13861 # in which case we are not to be found in the path.
13862 if test "x$as_myself" = x; then
13863   as_myself=$0
13864 fi
13865 if test ! -f "$as_myself"; then
13866   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13867   exit 1
13868 fi
13869
13870 # Unset variables that we do not need and which cause bugs (e.g. in
13871 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13872 # suppresses any "Segmentation fault" message there.  '((' could
13873 # trigger a bug in pdksh 5.2.14.
13874 for as_var in BASH_ENV ENV MAIL MAILPATH
13875 do eval test x\${$as_var+set} = xset \
13876   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13877 done
13878 PS1='$ '
13879 PS2='> '
13880 PS4='+ '
13881
13882 # NLS nuisances.
13883 LC_ALL=C
13884 export LC_ALL
13885 LANGUAGE=C
13886 export LANGUAGE
13887
13888 # CDPATH.
13889 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13890
13891
13892 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13893 # ----------------------------------------
13894 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13895 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13896 # script with STATUS, using 1 if that was 0.
13897 as_fn_error ()
13898 {
13899   as_status=$1; test $as_status -eq 0 && as_status=1
13900   if test "$4"; then
13901     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13902     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13903   fi
13904   $as_echo "$as_me: error: $2" >&2
13905   as_fn_exit $as_status
13906 } # as_fn_error
13907
13908
13909 # as_fn_set_status STATUS
13910 # -----------------------
13911 # Set $? to STATUS, without forking.
13912 as_fn_set_status ()
13913 {
13914   return $1
13915 } # as_fn_set_status
13916
13917 # as_fn_exit STATUS
13918 # -----------------
13919 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13920 as_fn_exit ()
13921 {
13922   set +e
13923   as_fn_set_status $1
13924   exit $1
13925 } # as_fn_exit
13926
13927 # as_fn_unset VAR
13928 # ---------------
13929 # Portably unset VAR.
13930 as_fn_unset ()
13931 {
13932   { eval $1=; unset $1;}
13933 }
13934 as_unset=as_fn_unset
13935 # as_fn_append VAR VALUE
13936 # ----------------------
13937 # Append the text in VALUE to the end of the definition contained in VAR. Take
13938 # advantage of any shell optimizations that allow amortized linear growth over
13939 # repeated appends, instead of the typical quadratic growth present in naive
13940 # implementations.
13941 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13942   eval 'as_fn_append ()
13943   {
13944     eval $1+=\$2
13945   }'
13946 else
13947   as_fn_append ()
13948   {
13949     eval $1=\$$1\$2
13950   }
13951 fi # as_fn_append
13952
13953 # as_fn_arith ARG...
13954 # ------------------
13955 # Perform arithmetic evaluation on the ARGs, and store the result in the
13956 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13957 # must be portable across $(()) and expr.
13958 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13959   eval 'as_fn_arith ()
13960   {
13961     as_val=$(( $* ))
13962   }'
13963 else
13964   as_fn_arith ()
13965   {
13966     as_val=`expr "$@" || test $? -eq 1`
13967   }
13968 fi # as_fn_arith
13969
13970
13971 if expr a : '\(a\)' >/dev/null 2>&1 &&
13972    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13973   as_expr=expr
13974 else
13975   as_expr=false
13976 fi
13977
13978 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13979   as_basename=basename
13980 else
13981   as_basename=false
13982 fi
13983
13984 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13985   as_dirname=dirname
13986 else
13987   as_dirname=false
13988 fi
13989
13990 as_me=`$as_basename -- "$0" ||
13991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13992          X"$0" : 'X\(//\)$' \| \
13993          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13994 $as_echo X/"$0" |
13995     sed '/^.*\/\([^/][^/]*\)\/*$/{
13996             s//\1/
13997             q
13998           }
13999           /^X\/\(\/\/\)$/{
14000             s//\1/
14001             q
14002           }
14003           /^X\/\(\/\).*/{
14004             s//\1/
14005             q
14006           }
14007           s/.*/./; q'`
14008
14009 # Avoid depending upon Character Ranges.
14010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14013 as_cr_digits='0123456789'
14014 as_cr_alnum=$as_cr_Letters$as_cr_digits
14015
14016 ECHO_C= ECHO_N= ECHO_T=
14017 case `echo -n x` in #(((((
14018 -n*)
14019   case `echo 'xy\c'` in
14020   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14021   xy)  ECHO_C='\c';;
14022   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14023        ECHO_T=' ';;
14024   esac;;
14025 *)
14026   ECHO_N='-n';;
14027 esac
14028
14029 rm -f conf$$ conf$$.exe conf$$.file
14030 if test -d conf$$.dir; then
14031   rm -f conf$$.dir/conf$$.file
14032 else
14033   rm -f conf$$.dir
14034   mkdir conf$$.dir 2>/dev/null
14035 fi
14036 if (echo >conf$$.file) 2>/dev/null; then
14037   if ln -s conf$$.file conf$$ 2>/dev/null; then
14038     as_ln_s='ln -s'
14039     # ... but there are two gotchas:
14040     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14041     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14042     # In both cases, we have to default to `cp -pR'.
14043     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14044       as_ln_s='cp -pR'
14045   elif ln conf$$.file conf$$ 2>/dev/null; then
14046     as_ln_s=ln
14047   else
14048     as_ln_s='cp -pR'
14049   fi
14050 else
14051   as_ln_s='cp -pR'
14052 fi
14053 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14054 rmdir conf$$.dir 2>/dev/null
14055
14056
14057 # as_fn_mkdir_p
14058 # -------------
14059 # Create "$as_dir" as a directory, including parents if necessary.
14060 as_fn_mkdir_p ()
14061 {
14062
14063   case $as_dir in #(
14064   -*) as_dir=./$as_dir;;
14065   esac
14066   test -d "$as_dir" || eval $as_mkdir_p || {
14067     as_dirs=
14068     while :; do
14069       case $as_dir in #(
14070       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14071       *) as_qdir=$as_dir;;
14072       esac
14073       as_dirs="'$as_qdir' $as_dirs"
14074       as_dir=`$as_dirname -- "$as_dir" ||
14075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14076          X"$as_dir" : 'X\(//\)[^/]' \| \
14077          X"$as_dir" : 'X\(//\)$' \| \
14078          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14079 $as_echo X"$as_dir" |
14080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14081             s//\1/
14082             q
14083           }
14084           /^X\(\/\/\)[^/].*/{
14085             s//\1/
14086             q
14087           }
14088           /^X\(\/\/\)$/{
14089             s//\1/
14090             q
14091           }
14092           /^X\(\/\).*/{
14093             s//\1/
14094             q
14095           }
14096           s/.*/./; q'`
14097       test -d "$as_dir" && break
14098     done
14099     test -z "$as_dirs" || eval "mkdir $as_dirs"
14100   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14101
14102
14103 } # as_fn_mkdir_p
14104 if mkdir -p . 2>/dev/null; then
14105   as_mkdir_p='mkdir -p "$as_dir"'
14106 else
14107   test -d ./-p && rmdir ./-p
14108   as_mkdir_p=false
14109 fi
14110
14111
14112 # as_fn_executable_p FILE
14113 # -----------------------
14114 # Test if FILE is an executable regular file.
14115 as_fn_executable_p ()
14116 {
14117   test -f "$1" && test -x "$1"
14118 } # as_fn_executable_p
14119 as_test_x='test -x'
14120 as_executable_p=as_fn_executable_p
14121
14122 # Sed expression to map a string onto a valid CPP name.
14123 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14124
14125 # Sed expression to map a string onto a valid variable name.
14126 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14127
14128
14129 exec 6>&1
14130 ## ----------------------------------- ##
14131 ## Main body of $CONFIG_STATUS script. ##
14132 ## ----------------------------------- ##
14133 _ASEOF
14134 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14135
14136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14137 # Save the log message, to keep $0 and so on meaningful, and to
14138 # report actual input values of CONFIG_FILES etc. instead of their
14139 # values after options handling.
14140 ac_log="
14141 This file was extended by tlm $as_me 1.0.3, which was
14142 generated by GNU Autoconf 2.69.  Invocation command line was
14143
14144   CONFIG_FILES    = $CONFIG_FILES
14145   CONFIG_HEADERS  = $CONFIG_HEADERS
14146   CONFIG_LINKS    = $CONFIG_LINKS
14147   CONFIG_COMMANDS = $CONFIG_COMMANDS
14148   $ $0 $@
14149
14150 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14151 "
14152
14153 _ACEOF
14154
14155 case $ac_config_files in *"
14156 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14157 esac
14158
14159 case $ac_config_headers in *"
14160 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14161 esac
14162
14163
14164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14165 # Files that config.status was made for.
14166 config_files="$ac_config_files"
14167 config_headers="$ac_config_headers"
14168 config_commands="$ac_config_commands"
14169
14170 _ACEOF
14171
14172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14173 ac_cs_usage="\
14174 \`$as_me' instantiates files and other configuration actions
14175 from templates according to the current configuration.  Unless the files
14176 and actions are specified as TAGs, all are instantiated by default.
14177
14178 Usage: $0 [OPTION]... [TAG]...
14179
14180   -h, --help       print this help, then exit
14181   -V, --version    print version number and configuration settings, then exit
14182       --config     print configuration, then exit
14183   -q, --quiet, --silent
14184                    do not print progress messages
14185   -d, --debug      don't remove temporary files
14186       --recheck    update $as_me by reconfiguring in the same conditions
14187       --file=FILE[:TEMPLATE]
14188                    instantiate the configuration file FILE
14189       --header=FILE[:TEMPLATE]
14190                    instantiate the configuration header FILE
14191
14192 Configuration files:
14193 $config_files
14194
14195 Configuration headers:
14196 $config_headers
14197
14198 Configuration commands:
14199 $config_commands
14200
14201 Report bugs to the package provider."
14202
14203 _ACEOF
14204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14205 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14206 ac_cs_version="\\
14207 tlm config.status 1.0.3
14208 configured by $0, generated by GNU Autoconf 2.69,
14209   with options \\"\$ac_cs_config\\"
14210
14211 Copyright (C) 2012 Free Software Foundation, Inc.
14212 This config.status script is free software; the Free Software Foundation
14213 gives unlimited permission to copy, distribute and modify it."
14214
14215 ac_pwd='$ac_pwd'
14216 srcdir='$srcdir'
14217 INSTALL='$INSTALL'
14218 MKDIR_P='$MKDIR_P'
14219 AWK='$AWK'
14220 test -n "\$AWK" || AWK=awk
14221 _ACEOF
14222
14223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14224 # The default lists apply if the user does not specify any file.
14225 ac_need_defaults=:
14226 while test $# != 0
14227 do
14228   case $1 in
14229   --*=?*)
14230     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14231     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14232     ac_shift=:
14233     ;;
14234   --*=)
14235     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14236     ac_optarg=
14237     ac_shift=:
14238     ;;
14239   *)
14240     ac_option=$1
14241     ac_optarg=$2
14242     ac_shift=shift
14243     ;;
14244   esac
14245
14246   case $ac_option in
14247   # Handling of the options.
14248   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14249     ac_cs_recheck=: ;;
14250   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14251     $as_echo "$ac_cs_version"; exit ;;
14252   --config | --confi | --conf | --con | --co | --c )
14253     $as_echo "$ac_cs_config"; exit ;;
14254   --debug | --debu | --deb | --de | --d | -d )
14255     debug=: ;;
14256   --file | --fil | --fi | --f )
14257     $ac_shift
14258     case $ac_optarg in
14259     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14260     '') as_fn_error $? "missing file argument" ;;
14261     esac
14262     as_fn_append CONFIG_FILES " '$ac_optarg'"
14263     ac_need_defaults=false;;
14264   --header | --heade | --head | --hea )
14265     $ac_shift
14266     case $ac_optarg in
14267     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14268     esac
14269     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14270     ac_need_defaults=false;;
14271   --he | --h)
14272     # Conflict between --help and --header
14273     as_fn_error $? "ambiguous option: \`$1'
14274 Try \`$0 --help' for more information.";;
14275   --help | --hel | -h )
14276     $as_echo "$ac_cs_usage"; exit ;;
14277   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14278   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14279     ac_cs_silent=: ;;
14280
14281   # This is an error.
14282   -*) as_fn_error $? "unrecognized option: \`$1'
14283 Try \`$0 --help' for more information." ;;
14284
14285   *) as_fn_append ac_config_targets " $1"
14286      ac_need_defaults=false ;;
14287
14288   esac
14289   shift
14290 done
14291
14292 ac_configure_extra_args=
14293
14294 if $ac_cs_silent; then
14295   exec 6>/dev/null
14296   ac_configure_extra_args="$ac_configure_extra_args --silent"
14297 fi
14298
14299 _ACEOF
14300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14301 if \$ac_cs_recheck; then
14302   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14303   shift
14304   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14305   CONFIG_SHELL='$SHELL'
14306   export CONFIG_SHELL
14307   exec "\$@"
14308 fi
14309
14310 _ACEOF
14311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14312 exec 5>>config.log
14313 {
14314   echo
14315   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14316 ## Running $as_me. ##
14317 _ASBOX
14318   $as_echo "$ac_log"
14319 } >&5
14320
14321 _ACEOF
14322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14323 #
14324 # INIT-COMMANDS
14325 #
14326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14327
14328
14329 # The HP-UX ksh and POSIX shell print the target directory to stdout
14330 # if CDPATH is set.
14331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14332
14333 sed_quote_subst='$sed_quote_subst'
14334 double_quote_subst='$double_quote_subst'
14335 delay_variable_subst='$delay_variable_subst'
14336 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14337 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14338 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14339 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14340 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14341 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14342 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14343 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14344 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14345 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14346 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14347 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14348 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14349 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14350 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14351 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14352 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14353 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14354 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14355 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14356 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14357 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14358 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14359 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14360 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14361 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14362 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14363 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14364 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14365 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14366 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14367 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14368 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14369 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14370 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14371 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14372 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14373 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14374 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14375 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14376 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14377 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14378 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14379 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14380 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14381 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14382 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14383 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14384 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14385 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14386 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14387 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14388 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14389 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14390 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14391 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14392 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14393 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14394 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14395 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14396 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14397 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14398 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14399 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14400 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14401 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14402 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14403 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14404 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14405 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14406 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14407 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14408 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14409 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14410 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14411 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14412 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14413 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14414 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14415 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14416 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14417 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14418 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14419 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14420 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14421 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14422 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14423 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14424 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14425 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14426 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14427 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14428 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14429 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14430 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14431 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14432 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14433 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14434 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14435 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14436 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14437 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14438 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14439 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14440 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14441 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14442 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14443 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14444 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14445 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14446 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14447 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14448 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14449 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14450 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14451 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14452 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14453 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14454 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14455 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14456 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14457 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14458 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14459 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14460 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14461 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14462 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14463 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14464 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14465 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14466
14467 LTCC='$LTCC'
14468 LTCFLAGS='$LTCFLAGS'
14469 compiler='$compiler_DEFAULT'
14470
14471 # A function that is used when there is no print builtin or printf.
14472 func_fallback_echo ()
14473 {
14474   eval 'cat <<_LTECHO_EOF
14475 \$1
14476 _LTECHO_EOF'
14477 }
14478
14479 # Quote evaled strings.
14480 for var in SHELL \
14481 ECHO \
14482 PATH_SEPARATOR \
14483 SED \
14484 GREP \
14485 EGREP \
14486 FGREP \
14487 LD \
14488 NM \
14489 LN_S \
14490 lt_SP2NL \
14491 lt_NL2SP \
14492 reload_flag \
14493 OBJDUMP \
14494 deplibs_check_method \
14495 file_magic_cmd \
14496 file_magic_glob \
14497 want_nocaseglob \
14498 DLLTOOL \
14499 sharedlib_from_linklib_cmd \
14500 AR \
14501 AR_FLAGS \
14502 archiver_list_spec \
14503 STRIP \
14504 RANLIB \
14505 CC \
14506 CFLAGS \
14507 compiler \
14508 lt_cv_sys_global_symbol_pipe \
14509 lt_cv_sys_global_symbol_to_cdecl \
14510 lt_cv_sys_global_symbol_to_c_name_address \
14511 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14512 nm_file_list_spec \
14513 lt_prog_compiler_no_builtin_flag \
14514 lt_prog_compiler_pic \
14515 lt_prog_compiler_wl \
14516 lt_prog_compiler_static \
14517 lt_cv_prog_compiler_c_o \
14518 need_locks \
14519 MANIFEST_TOOL \
14520 DSYMUTIL \
14521 NMEDIT \
14522 LIPO \
14523 OTOOL \
14524 OTOOL64 \
14525 shrext_cmds \
14526 export_dynamic_flag_spec \
14527 whole_archive_flag_spec \
14528 compiler_needs_object \
14529 with_gnu_ld \
14530 allow_undefined_flag \
14531 no_undefined_flag \
14532 hardcode_libdir_flag_spec \
14533 hardcode_libdir_separator \
14534 exclude_expsyms \
14535 include_expsyms \
14536 file_list_spec \
14537 variables_saved_for_relink \
14538 libname_spec \
14539 library_names_spec \
14540 soname_spec \
14541 install_override_mode \
14542 finish_eval \
14543 old_striplib \
14544 striplib; do
14545     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14546     *[\\\\\\\`\\"\\\$]*)
14547       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14548       ;;
14549     *)
14550       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14551       ;;
14552     esac
14553 done
14554
14555 # Double-quote double-evaled strings.
14556 for var in reload_cmds \
14557 old_postinstall_cmds \
14558 old_postuninstall_cmds \
14559 old_archive_cmds \
14560 extract_expsyms_cmds \
14561 old_archive_from_new_cmds \
14562 old_archive_from_expsyms_cmds \
14563 archive_cmds \
14564 archive_expsym_cmds \
14565 module_cmds \
14566 module_expsym_cmds \
14567 export_symbols_cmds \
14568 prelink_cmds \
14569 postlink_cmds \
14570 postinstall_cmds \
14571 postuninstall_cmds \
14572 finish_cmds \
14573 sys_lib_search_path_spec \
14574 sys_lib_dlsearch_path_spec; do
14575     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14576     *[\\\\\\\`\\"\\\$]*)
14577       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14578       ;;
14579     *)
14580       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14581       ;;
14582     esac
14583 done
14584
14585 ac_aux_dir='$ac_aux_dir'
14586 xsi_shell='$xsi_shell'
14587 lt_shell_append='$lt_shell_append'
14588
14589 # See if we are running on zsh, and set the options which allow our
14590 # commands through without removal of \ escapes INIT.
14591 if test -n "\${ZSH_VERSION+set}" ; then
14592    setopt NO_GLOB_SUBST
14593 fi
14594
14595
14596     PACKAGE='$PACKAGE'
14597     VERSION='$VERSION'
14598     TIMESTAMP='$TIMESTAMP'
14599     RM='$RM'
14600     ofile='$ofile'
14601
14602
14603
14604
14605 _ACEOF
14606
14607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14608
14609 # Handling of arguments.
14610 for ac_config_target in $ac_config_targets
14611 do
14612   case $ac_config_target in
14613     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14614     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14615     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14616     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14617     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
14618     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14619     "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
14620     "src/common/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/dbus/Makefile" ;;
14621     "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;;
14622     "src/daemon/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/dbus/Makefile" ;;
14623     "src/daemon/tlm.pc") CONFIG_FILES="$CONFIG_FILES src/daemon/tlm.pc" ;;
14624     "src/sessiond/Makefile") CONFIG_FILES="$CONFIG_FILES src/sessiond/Makefile" ;;
14625     "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
14626     "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
14627     "src/plugins/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/default/Makefile" ;;
14628     "src/plugins/gumd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gumd/Makefile" ;;
14629     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14630     "data/tlm.conf") CONFIG_FILES="$CONFIG_FILES data/tlm.conf" ;;
14631     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14632     "tests/config/Makefile") CONFIG_FILES="$CONFIG_FILES tests/config/Makefile" ;;
14633     "tests/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES tests/daemon/Makefile" ;;
14634     "tests/tlm-test.conf") CONFIG_FILES="$CONFIG_FILES tests/tlm-test.conf" ;;
14635     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14636
14637   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14638   esac
14639 done
14640
14641
14642 # If the user did not use the arguments to specify the items to instantiate,
14643 # then the envvar interface is used.  Set only those that are not.
14644 # We use the long form for the default assignment because of an extremely
14645 # bizarre bug on SunOS 4.1.3.
14646 if $ac_need_defaults; then
14647   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14648   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14649   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14650 fi
14651
14652 # Have a temporary directory for convenience.  Make it in the build tree
14653 # simply because there is no reason against having it here, and in addition,
14654 # creating and moving files from /tmp can sometimes cause problems.
14655 # Hook for its removal unless debugging.
14656 # Note that there is a small window in which the directory will not be cleaned:
14657 # after its creation but before its name has been assigned to `$tmp'.
14658 $debug ||
14659 {
14660   tmp= ac_tmp=
14661   trap 'exit_status=$?
14662   : "${ac_tmp:=$tmp}"
14663   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14664 ' 0
14665   trap 'as_fn_exit 1' 1 2 13 15
14666 }
14667 # Create a (secure) tmp directory for tmp files.
14668
14669 {
14670   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14671   test -d "$tmp"
14672 }  ||
14673 {
14674   tmp=./conf$$-$RANDOM
14675   (umask 077 && mkdir "$tmp")
14676 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14677 ac_tmp=$tmp
14678
14679 # Set up the scripts for CONFIG_FILES section.
14680 # No need to generate them if there are no CONFIG_FILES.
14681 # This happens for instance with `./config.status config.h'.
14682 if test -n "$CONFIG_FILES"; then
14683
14684
14685 ac_cr=`echo X | tr X '\015'`
14686 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14687 # But we know of no other shell where ac_cr would be empty at this
14688 # point, so we can use a bashism as a fallback.
14689 if test "x$ac_cr" = x; then
14690   eval ac_cr=\$\'\\r\'
14691 fi
14692 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14693 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14694   ac_cs_awk_cr='\\r'
14695 else
14696   ac_cs_awk_cr=$ac_cr
14697 fi
14698
14699 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14700 _ACEOF
14701
14702
14703 {
14704   echo "cat >conf$$subs.awk <<_ACEOF" &&
14705   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14706   echo "_ACEOF"
14707 } >conf$$subs.sh ||
14708   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14709 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14710 ac_delim='%!_!# '
14711 for ac_last_try in false false false false false :; do
14712   . ./conf$$subs.sh ||
14713     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14714
14715   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14716   if test $ac_delim_n = $ac_delim_num; then
14717     break
14718   elif $ac_last_try; then
14719     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14720   else
14721     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14722   fi
14723 done
14724 rm -f conf$$subs.sh
14725
14726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14727 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14728 _ACEOF
14729 sed -n '
14730 h
14731 s/^/S["/; s/!.*/"]=/
14732 p
14733 g
14734 s/^[^!]*!//
14735 :repl
14736 t repl
14737 s/'"$ac_delim"'$//
14738 t delim
14739 :nl
14740 h
14741 s/\(.\{148\}\)..*/\1/
14742 t more1
14743 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14744 p
14745 n
14746 b repl
14747 :more1
14748 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14749 p
14750 g
14751 s/.\{148\}//
14752 t nl
14753 :delim
14754 h
14755 s/\(.\{148\}\)..*/\1/
14756 t more2
14757 s/["\\]/\\&/g; s/^/"/; s/$/"/
14758 p
14759 b
14760 :more2
14761 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14762 p
14763 g
14764 s/.\{148\}//
14765 t delim
14766 ' <conf$$subs.awk | sed '
14767 /^[^""]/{
14768   N
14769   s/\n//
14770 }
14771 ' >>$CONFIG_STATUS || ac_write_fail=1
14772 rm -f conf$$subs.awk
14773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14774 _ACAWK
14775 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14776   for (key in S) S_is_set[key] = 1
14777   FS = "\a"
14778
14779 }
14780 {
14781   line = $ 0
14782   nfields = split(line, field, "@")
14783   substed = 0
14784   len = length(field[1])
14785   for (i = 2; i < nfields; i++) {
14786     key = field[i]
14787     keylen = length(key)
14788     if (S_is_set[key]) {
14789       value = S[key]
14790       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14791       len += length(value) + length(field[++i])
14792       substed = 1
14793     } else
14794       len += 1 + keylen
14795   }
14796
14797   print line
14798 }
14799
14800 _ACAWK
14801 _ACEOF
14802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14803 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14804   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14805 else
14806   cat
14807 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14808   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14809 _ACEOF
14810
14811 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14812 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14813 # trailing colons and then remove the whole line if VPATH becomes empty
14814 # (actually we leave an empty line to preserve line numbers).
14815 if test "x$srcdir" = x.; then
14816   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14817 h
14818 s///
14819 s/^/:/
14820 s/[      ]*$/:/
14821 s/:\$(srcdir):/:/g
14822 s/:\${srcdir}:/:/g
14823 s/:@srcdir@:/:/g
14824 s/^:*//
14825 s/:*$//
14826 x
14827 s/\(=[   ]*\).*/\1/
14828 G
14829 s/\n//
14830 s/^[^=]*=[       ]*$//
14831 }'
14832 fi
14833
14834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14835 fi # test -n "$CONFIG_FILES"
14836
14837 # Set up the scripts for CONFIG_HEADERS section.
14838 # No need to generate them if there are no CONFIG_HEADERS.
14839 # This happens for instance with `./config.status Makefile'.
14840 if test -n "$CONFIG_HEADERS"; then
14841 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14842 BEGIN {
14843 _ACEOF
14844
14845 # Transform confdefs.h into an awk script `defines.awk', embedded as
14846 # here-document in config.status, that substitutes the proper values into
14847 # config.h.in to produce config.h.
14848
14849 # Create a delimiter string that does not exist in confdefs.h, to ease
14850 # handling of long lines.
14851 ac_delim='%!_!# '
14852 for ac_last_try in false false :; do
14853   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14854   if test -z "$ac_tt"; then
14855     break
14856   elif $ac_last_try; then
14857     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14858   else
14859     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14860   fi
14861 done
14862
14863 # For the awk script, D is an array of macro values keyed by name,
14864 # likewise P contains macro parameters if any.  Preserve backslash
14865 # newline sequences.
14866
14867 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14868 sed -n '
14869 s/.\{148\}/&'"$ac_delim"'/g
14870 t rset
14871 :rset
14872 s/^[     ]*#[    ]*define[       ][      ]*/ /
14873 t def
14874 d
14875 :def
14876 s/\\$//
14877 t bsnl
14878 s/["\\]/\\&/g
14879 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14880 D["\1"]=" \3"/p
14881 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14882 d
14883 :bsnl
14884 s/["\\]/\\&/g
14885 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14886 D["\1"]=" \3\\\\\\n"\\/p
14887 t cont
14888 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14889 t cont
14890 d
14891 :cont
14892 n
14893 s/.\{148\}/&'"$ac_delim"'/g
14894 t clear
14895 :clear
14896 s/\\$//
14897 t bsnlc
14898 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14899 d
14900 :bsnlc
14901 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14902 b cont
14903 ' <confdefs.h | sed '
14904 s/'"$ac_delim"'/"\\\
14905 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14906
14907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14908   for (key in D) D_is_set[key] = 1
14909   FS = "\a"
14910 }
14911 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14912   line = \$ 0
14913   split(line, arg, " ")
14914   if (arg[1] == "#") {
14915     defundef = arg[2]
14916     mac1 = arg[3]
14917   } else {
14918     defundef = substr(arg[1], 2)
14919     mac1 = arg[2]
14920   }
14921   split(mac1, mac2, "(") #)
14922   macro = mac2[1]
14923   prefix = substr(line, 1, index(line, defundef) - 1)
14924   if (D_is_set[macro]) {
14925     # Preserve the white space surrounding the "#".
14926     print prefix "define", macro P[macro] D[macro]
14927     next
14928   } else {
14929     # Replace #undef with comments.  This is necessary, for example,
14930     # in the case of _POSIX_SOURCE, which is predefined and required
14931     # on some systems where configure will not decide to define it.
14932     if (defundef == "undef") {
14933       print "/*", prefix defundef, macro, "*/"
14934       next
14935     }
14936   }
14937 }
14938 { print }
14939 _ACAWK
14940 _ACEOF
14941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14942   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14943 fi # test -n "$CONFIG_HEADERS"
14944
14945
14946 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14947 shift
14948 for ac_tag
14949 do
14950   case $ac_tag in
14951   :[FHLC]) ac_mode=$ac_tag; continue;;
14952   esac
14953   case $ac_mode$ac_tag in
14954   :[FHL]*:*);;
14955   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14956   :[FH]-) ac_tag=-:-;;
14957   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14958   esac
14959   ac_save_IFS=$IFS
14960   IFS=:
14961   set x $ac_tag
14962   IFS=$ac_save_IFS
14963   shift
14964   ac_file=$1
14965   shift
14966
14967   case $ac_mode in
14968   :L) ac_source=$1;;
14969   :[FH])
14970     ac_file_inputs=
14971     for ac_f
14972     do
14973       case $ac_f in
14974       -) ac_f="$ac_tmp/stdin";;
14975       *) # Look for the file first in the build tree, then in the source tree
14976          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14977          # because $ac_f cannot contain `:'.
14978          test -f "$ac_f" ||
14979            case $ac_f in
14980            [\\/$]*) false;;
14981            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14982            esac ||
14983            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14984       esac
14985       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14986       as_fn_append ac_file_inputs " '$ac_f'"
14987     done
14988
14989     # Let's still pretend it is `configure' which instantiates (i.e., don't
14990     # use $as_me), people would be surprised to read:
14991     #    /* config.h.  Generated by config.status.  */
14992     configure_input='Generated from '`
14993           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14994         `' by configure.'
14995     if test x"$ac_file" != x-; then
14996       configure_input="$ac_file.  $configure_input"
14997       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14998 $as_echo "$as_me: creating $ac_file" >&6;}
14999     fi
15000     # Neutralize special characters interpreted by sed in replacement strings.
15001     case $configure_input in #(
15002     *\&* | *\|* | *\\* )
15003        ac_sed_conf_input=`$as_echo "$configure_input" |
15004        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15005     *) ac_sed_conf_input=$configure_input;;
15006     esac
15007
15008     case $ac_tag in
15009     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15010       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15011     esac
15012     ;;
15013   esac
15014
15015   ac_dir=`$as_dirname -- "$ac_file" ||
15016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15017          X"$ac_file" : 'X\(//\)[^/]' \| \
15018          X"$ac_file" : 'X\(//\)$' \| \
15019          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15020 $as_echo X"$ac_file" |
15021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15022             s//\1/
15023             q
15024           }
15025           /^X\(\/\/\)[^/].*/{
15026             s//\1/
15027             q
15028           }
15029           /^X\(\/\/\)$/{
15030             s//\1/
15031             q
15032           }
15033           /^X\(\/\).*/{
15034             s//\1/
15035             q
15036           }
15037           s/.*/./; q'`
15038   as_dir="$ac_dir"; as_fn_mkdir_p
15039   ac_builddir=.
15040
15041 case "$ac_dir" in
15042 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15043 *)
15044   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15045   # A ".." for each directory in $ac_dir_suffix.
15046   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15047   case $ac_top_builddir_sub in
15048   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15049   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15050   esac ;;
15051 esac
15052 ac_abs_top_builddir=$ac_pwd
15053 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15054 # for backward compatibility:
15055 ac_top_builddir=$ac_top_build_prefix
15056
15057 case $srcdir in
15058   .)  # We are building in place.
15059     ac_srcdir=.
15060     ac_top_srcdir=$ac_top_builddir_sub
15061     ac_abs_top_srcdir=$ac_pwd ;;
15062   [\\/]* | ?:[\\/]* )  # Absolute name.
15063     ac_srcdir=$srcdir$ac_dir_suffix;
15064     ac_top_srcdir=$srcdir
15065     ac_abs_top_srcdir=$srcdir ;;
15066   *) # Relative name.
15067     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15068     ac_top_srcdir=$ac_top_build_prefix$srcdir
15069     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15070 esac
15071 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15072
15073
15074   case $ac_mode in
15075   :F)
15076   #
15077   # CONFIG_FILE
15078   #
15079
15080   case $INSTALL in
15081   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15082   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15083   esac
15084   ac_MKDIR_P=$MKDIR_P
15085   case $MKDIR_P in
15086   [\\/$]* | ?:[\\/]* ) ;;
15087   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15088   esac
15089 _ACEOF
15090
15091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092 # If the template does not know about datarootdir, expand it.
15093 # FIXME: This hack should be removed a few years after 2.60.
15094 ac_datarootdir_hack=; ac_datarootdir_seen=
15095 ac_sed_dataroot='
15096 /datarootdir/ {
15097   p
15098   q
15099 }
15100 /@datadir@/p
15101 /@docdir@/p
15102 /@infodir@/p
15103 /@localedir@/p
15104 /@mandir@/p'
15105 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15106 *datarootdir*) ac_datarootdir_seen=yes;;
15107 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15108   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15109 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15110 _ACEOF
15111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15112   ac_datarootdir_hack='
15113   s&@datadir@&$datadir&g
15114   s&@docdir@&$docdir&g
15115   s&@infodir@&$infodir&g
15116   s&@localedir@&$localedir&g
15117   s&@mandir@&$mandir&g
15118   s&\\\${datarootdir}&$datarootdir&g' ;;
15119 esac
15120 _ACEOF
15121
15122 # Neutralize VPATH when `$srcdir' = `.'.
15123 # Shell code in configure.ac might set extrasub.
15124 # FIXME: do we really want to maintain this feature?
15125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15126 ac_sed_extra="$ac_vpsub
15127 $extrasub
15128 _ACEOF
15129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15130 :t
15131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15132 s|@configure_input@|$ac_sed_conf_input|;t t
15133 s&@top_builddir@&$ac_top_builddir_sub&;t t
15134 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15135 s&@srcdir@&$ac_srcdir&;t t
15136 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15137 s&@top_srcdir@&$ac_top_srcdir&;t t
15138 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15139 s&@builddir@&$ac_builddir&;t t
15140 s&@abs_builddir@&$ac_abs_builddir&;t t
15141 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15142 s&@INSTALL@&$ac_INSTALL&;t t
15143 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15144 $ac_datarootdir_hack
15145 "
15146 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15147   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15148
15149 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15150   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15151   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15152       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15153   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15154 which seems to be undefined.  Please make sure it is defined" >&5
15155 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15156 which seems to be undefined.  Please make sure it is defined" >&2;}
15157
15158   rm -f "$ac_tmp/stdin"
15159   case $ac_file in
15160   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15161   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15162   esac \
15163   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15164  ;;
15165   :H)
15166   #
15167   # CONFIG_HEADER
15168   #
15169   if test x"$ac_file" != x-; then
15170     {
15171       $as_echo "/* $configure_input  */" \
15172       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15173     } >"$ac_tmp/config.h" \
15174       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15175     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15176       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15177 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15178     else
15179       rm -f "$ac_file"
15180       mv "$ac_tmp/config.h" "$ac_file" \
15181         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15182     fi
15183   else
15184     $as_echo "/* $configure_input  */" \
15185       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15186       || as_fn_error $? "could not create -" "$LINENO" 5
15187   fi
15188 # Compute "$ac_file"'s index in $config_headers.
15189 _am_arg="$ac_file"
15190 _am_stamp_count=1
15191 for _am_header in $config_headers :; do
15192   case $_am_header in
15193     $_am_arg | $_am_arg:* )
15194       break ;;
15195     * )
15196       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15197   esac
15198 done
15199 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15200 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15201          X"$_am_arg" : 'X\(//\)[^/]' \| \
15202          X"$_am_arg" : 'X\(//\)$' \| \
15203          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15204 $as_echo X"$_am_arg" |
15205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15206             s//\1/
15207             q
15208           }
15209           /^X\(\/\/\)[^/].*/{
15210             s//\1/
15211             q
15212           }
15213           /^X\(\/\/\)$/{
15214             s//\1/
15215             q
15216           }
15217           /^X\(\/\).*/{
15218             s//\1/
15219             q
15220           }
15221           s/.*/./; q'`/stamp-h$_am_stamp_count
15222  ;;
15223
15224   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15225 $as_echo "$as_me: executing $ac_file commands" >&6;}
15226  ;;
15227   esac
15228
15229
15230   case $ac_file$ac_mode in
15231     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15232   # Older Autoconf quotes --file arguments for eval, but not when files
15233   # are listed without --file.  Let's play safe and only enable the eval
15234   # if we detect the quoting.
15235   case $CONFIG_FILES in
15236   *\'*) eval set x "$CONFIG_FILES" ;;
15237   *)   set x $CONFIG_FILES ;;
15238   esac
15239   shift
15240   for mf
15241   do
15242     # Strip MF so we end up with the name of the file.
15243     mf=`echo "$mf" | sed -e 's/:.*$//'`
15244     # Check whether this is an Automake generated Makefile or not.
15245     # We used to match only the files named 'Makefile.in', but
15246     # some people rename them; so instead we look at the file content.
15247     # Grep'ing the first line is not enough: some people post-process
15248     # each Makefile.in and add a new line on top of each file to say so.
15249     # Grep'ing the whole file is not good either: AIX grep has a line
15250     # limit of 2048, but all sed's we know have understand at least 4000.
15251     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15252       dirpart=`$as_dirname -- "$mf" ||
15253 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15254          X"$mf" : 'X\(//\)[^/]' \| \
15255          X"$mf" : 'X\(//\)$' \| \
15256          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15257 $as_echo X"$mf" |
15258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15259             s//\1/
15260             q
15261           }
15262           /^X\(\/\/\)[^/].*/{
15263             s//\1/
15264             q
15265           }
15266           /^X\(\/\/\)$/{
15267             s//\1/
15268             q
15269           }
15270           /^X\(\/\).*/{
15271             s//\1/
15272             q
15273           }
15274           s/.*/./; q'`
15275     else
15276       continue
15277     fi
15278     # Extract the definition of DEPDIR, am__include, and am__quote
15279     # from the Makefile without running 'make'.
15280     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15281     test -z "$DEPDIR" && continue
15282     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15283     test -z "$am__include" && continue
15284     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15285     # Find all dependency output files, they are included files with
15286     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15287     # simplest approach to changing $(DEPDIR) to its actual value in the
15288     # expansion.
15289     for file in `sed -n "
15290       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15291          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15292       # Make sure the directory exists.
15293       test -f "$dirpart/$file" && continue
15294       fdir=`$as_dirname -- "$file" ||
15295 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15296          X"$file" : 'X\(//\)[^/]' \| \
15297          X"$file" : 'X\(//\)$' \| \
15298          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15299 $as_echo X"$file" |
15300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15301             s//\1/
15302             q
15303           }
15304           /^X\(\/\/\)[^/].*/{
15305             s//\1/
15306             q
15307           }
15308           /^X\(\/\/\)$/{
15309             s//\1/
15310             q
15311           }
15312           /^X\(\/\).*/{
15313             s//\1/
15314             q
15315           }
15316           s/.*/./; q'`
15317       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15318       # echo "creating $dirpart/$file"
15319       echo '# dummy' > "$dirpart/$file"
15320     done
15321   done
15322 }
15323  ;;
15324     "libtool":C)
15325
15326     # See if we are running on zsh, and set the options which allow our
15327     # commands through without removal of \ escapes.
15328     if test -n "${ZSH_VERSION+set}" ; then
15329       setopt NO_GLOB_SUBST
15330     fi
15331
15332     cfgfile="${ofile}T"
15333     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15334     $RM "$cfgfile"
15335
15336     cat <<_LT_EOF >> "$cfgfile"
15337 #! $SHELL
15338
15339 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15340 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15342 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15343 #
15344 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15345 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15346 #                 Foundation, Inc.
15347 #   Written by Gordon Matzigkeit, 1996
15348 #
15349 #   This file is part of GNU Libtool.
15350 #
15351 # GNU Libtool is free software; you can redistribute it and/or
15352 # modify it under the terms of the GNU General Public License as
15353 # published by the Free Software Foundation; either version 2 of
15354 # the License, or (at your option) any later version.
15355 #
15356 # As a special exception to the GNU General Public License,
15357 # if you distribute this file as part of a program or library that
15358 # is built using GNU Libtool, you may include this file under the
15359 # same distribution terms that you use for the rest of that program.
15360 #
15361 # GNU Libtool is distributed in the hope that it will be useful,
15362 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15364 # GNU General Public License for more details.
15365 #
15366 # You should have received a copy of the GNU General Public License
15367 # along with GNU Libtool; see the file COPYING.  If not, a copy
15368 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15369 # obtained by writing to the Free Software Foundation, Inc.,
15370 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15371
15372
15373 # The names of the tagged configurations supported by this script.
15374 available_tags=""
15375
15376 # ### BEGIN LIBTOOL CONFIG
15377
15378 # Which release of libtool.m4 was used?
15379 macro_version=$macro_version
15380 macro_revision=$macro_revision
15381
15382 # Whether or not to build static libraries.
15383 build_old_libs=$enable_static
15384
15385 # Whether or not to build shared libraries.
15386 build_libtool_libs=$enable_shared
15387
15388 # What type of objects to build.
15389 pic_mode=$pic_mode
15390
15391 # Whether or not to optimize for fast installation.
15392 fast_install=$enable_fast_install
15393
15394 # Shell to use when invoking shell scripts.
15395 SHELL=$lt_SHELL
15396
15397 # An echo program that protects backslashes.
15398 ECHO=$lt_ECHO
15399
15400 # The PATH separator for the build system.
15401 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15402
15403 # The host system.
15404 host_alias=$host_alias
15405 host=$host
15406 host_os=$host_os
15407
15408 # The build system.
15409 build_alias=$build_alias
15410 build=$build
15411 build_os=$build_os
15412
15413 # A sed program that does not truncate output.
15414 SED=$lt_SED
15415
15416 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15417 Xsed="\$SED -e 1s/^X//"
15418
15419 # A grep program that handles long lines.
15420 GREP=$lt_GREP
15421
15422 # An ERE matcher.
15423 EGREP=$lt_EGREP
15424
15425 # A literal string matcher.
15426 FGREP=$lt_FGREP
15427
15428 # A BSD- or MS-compatible name lister.
15429 NM=$lt_NM
15430
15431 # Whether we need soft or hard links.
15432 LN_S=$lt_LN_S
15433
15434 # What is the maximum length of a command?
15435 max_cmd_len=$max_cmd_len
15436
15437 # Object file suffix (normally "o").
15438 objext=$ac_objext
15439
15440 # Executable file suffix (normally "").
15441 exeext=$exeext
15442
15443 # whether the shell understands "unset".
15444 lt_unset=$lt_unset
15445
15446 # turn spaces into newlines.
15447 SP2NL=$lt_lt_SP2NL
15448
15449 # turn newlines into spaces.
15450 NL2SP=$lt_lt_NL2SP
15451
15452 # convert \$build file names to \$host format.
15453 to_host_file_cmd=$lt_cv_to_host_file_cmd
15454
15455 # convert \$build files to toolchain format.
15456 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15457
15458 # An object symbol dumper.
15459 OBJDUMP=$lt_OBJDUMP
15460
15461 # Method to check whether dependent libraries are shared objects.
15462 deplibs_check_method=$lt_deplibs_check_method
15463
15464 # Command to use when deplibs_check_method = "file_magic".
15465 file_magic_cmd=$lt_file_magic_cmd
15466
15467 # How to find potential files when deplibs_check_method = "file_magic".
15468 file_magic_glob=$lt_file_magic_glob
15469
15470 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15471 want_nocaseglob=$lt_want_nocaseglob
15472
15473 # DLL creation program.
15474 DLLTOOL=$lt_DLLTOOL
15475
15476 # Command to associate shared and link libraries.
15477 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15478
15479 # The archiver.
15480 AR=$lt_AR
15481
15482 # Flags to create an archive.
15483 AR_FLAGS=$lt_AR_FLAGS
15484
15485 # How to feed a file listing to the archiver.
15486 archiver_list_spec=$lt_archiver_list_spec
15487
15488 # A symbol stripping program.
15489 STRIP=$lt_STRIP
15490
15491 # Commands used to install an old-style archive.
15492 RANLIB=$lt_RANLIB
15493 old_postinstall_cmds=$lt_old_postinstall_cmds
15494 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15495
15496 # Whether to use a lock for old archive extraction.
15497 lock_old_archive_extraction=$lock_old_archive_extraction
15498
15499 # A C compiler.
15500 LTCC=$lt_CC
15501
15502 # LTCC compiler flags.
15503 LTCFLAGS=$lt_CFLAGS
15504
15505 # Take the output of nm and produce a listing of raw symbols and C names.
15506 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15507
15508 # Transform the output of nm in a proper C declaration.
15509 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15510
15511 # Transform the output of nm in a C name address pair.
15512 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15513
15514 # Transform the output of nm in a C name address pair when lib prefix is needed.
15515 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15516
15517 # Specify filename containing input files for \$NM.
15518 nm_file_list_spec=$lt_nm_file_list_spec
15519
15520 # The root where to search for dependent libraries,and in which our libraries should be installed.
15521 lt_sysroot=$lt_sysroot
15522
15523 # The name of the directory that contains temporary libtool files.
15524 objdir=$objdir
15525
15526 # Used to examine libraries when file_magic_cmd begins with "file".
15527 MAGIC_CMD=$MAGIC_CMD
15528
15529 # Must we lock files when doing compilation?
15530 need_locks=$lt_need_locks
15531
15532 # Manifest tool.
15533 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15534
15535 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15536 DSYMUTIL=$lt_DSYMUTIL
15537
15538 # Tool to change global to local symbols on Mac OS X.
15539 NMEDIT=$lt_NMEDIT
15540
15541 # Tool to manipulate fat objects and archives on Mac OS X.
15542 LIPO=$lt_LIPO
15543
15544 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15545 OTOOL=$lt_OTOOL
15546
15547 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15548 OTOOL64=$lt_OTOOL64
15549
15550 # Old archive suffix (normally "a").
15551 libext=$libext
15552
15553 # Shared library suffix (normally ".so").
15554 shrext_cmds=$lt_shrext_cmds
15555
15556 # The commands to extract the exported symbol list from a shared archive.
15557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15558
15559 # Variables whose values should be saved in libtool wrapper scripts and
15560 # restored at link time.
15561 variables_saved_for_relink=$lt_variables_saved_for_relink
15562
15563 # Do we need the "lib" prefix for modules?
15564 need_lib_prefix=$need_lib_prefix
15565
15566 # Do we need a version for libraries?
15567 need_version=$need_version
15568
15569 # Library versioning type.
15570 version_type=$version_type
15571
15572 # Shared library runtime path variable.
15573 runpath_var=$runpath_var
15574
15575 # Shared library path variable.
15576 shlibpath_var=$shlibpath_var
15577
15578 # Is shlibpath searched before the hard-coded library search path?
15579 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15580
15581 # Format of library name prefix.
15582 libname_spec=$lt_libname_spec
15583
15584 # List of archive names.  First name is the real one, the rest are links.
15585 # The last name is the one that the linker finds with -lNAME
15586 library_names_spec=$lt_library_names_spec
15587
15588 # The coded name of the library, if different from the real name.
15589 soname_spec=$lt_soname_spec
15590
15591 # Permission mode override for installation of shared libraries.
15592 install_override_mode=$lt_install_override_mode
15593
15594 # Command to use after installation of a shared archive.
15595 postinstall_cmds=$lt_postinstall_cmds
15596
15597 # Command to use after uninstallation of a shared archive.
15598 postuninstall_cmds=$lt_postuninstall_cmds
15599
15600 # Commands used to finish a libtool library installation in a directory.
15601 finish_cmds=$lt_finish_cmds
15602
15603 # As "finish_cmds", except a single script fragment to be evaled but
15604 # not shown.
15605 finish_eval=$lt_finish_eval
15606
15607 # Whether we should hardcode library paths into libraries.
15608 hardcode_into_libs=$hardcode_into_libs
15609
15610 # Compile-time system search path for libraries.
15611 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15612
15613 # Run-time system search path for libraries.
15614 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15615
15616 # Whether dlopen is supported.
15617 dlopen_support=$enable_dlopen
15618
15619 # Whether dlopen of programs is supported.
15620 dlopen_self=$enable_dlopen_self
15621
15622 # Whether dlopen of statically linked programs is supported.
15623 dlopen_self_static=$enable_dlopen_self_static
15624
15625 # Commands to strip libraries.
15626 old_striplib=$lt_old_striplib
15627 striplib=$lt_striplib
15628
15629
15630 # The linker used to build libraries.
15631 LD=$lt_LD
15632
15633 # How to create reloadable object files.
15634 reload_flag=$lt_reload_flag
15635 reload_cmds=$lt_reload_cmds
15636
15637 # Commands used to build an old-style archive.
15638 old_archive_cmds=$lt_old_archive_cmds
15639
15640 # A language specific compiler.
15641 CC=$lt_compiler
15642
15643 # Is the compiler the GNU compiler?
15644 with_gcc=$GCC
15645
15646 # Compiler flag to turn off builtin functions.
15647 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15648
15649 # Additional compiler flags for building library objects.
15650 pic_flag=$lt_lt_prog_compiler_pic
15651
15652 # How to pass a linker flag through the compiler.
15653 wl=$lt_lt_prog_compiler_wl
15654
15655 # Compiler flag to prevent dynamic linking.
15656 link_static_flag=$lt_lt_prog_compiler_static
15657
15658 # Does compiler simultaneously support -c and -o options?
15659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15660
15661 # Whether or not to add -lc for building shared libraries.
15662 build_libtool_need_lc=$archive_cmds_need_lc
15663
15664 # Whether or not to disallow shared libs when runtime libs are static.
15665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15666
15667 # Compiler flag to allow reflexive dlopens.
15668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15669
15670 # Compiler flag to generate shared objects directly from archives.
15671 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15672
15673 # Whether the compiler copes with passing no objects directly.
15674 compiler_needs_object=$lt_compiler_needs_object
15675
15676 # Create an old-style archive from a shared archive.
15677 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15678
15679 # Create a temporary old-style archive to link instead of a shared archive.
15680 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15681
15682 # Commands used to build a shared archive.
15683 archive_cmds=$lt_archive_cmds
15684 archive_expsym_cmds=$lt_archive_expsym_cmds
15685
15686 # Commands used to build a loadable module if different from building
15687 # a shared archive.
15688 module_cmds=$lt_module_cmds
15689 module_expsym_cmds=$lt_module_expsym_cmds
15690
15691 # Whether we are building with GNU ld or not.
15692 with_gnu_ld=$lt_with_gnu_ld
15693
15694 # Flag that allows shared libraries with undefined symbols to be built.
15695 allow_undefined_flag=$lt_allow_undefined_flag
15696
15697 # Flag that enforces no undefined symbols.
15698 no_undefined_flag=$lt_no_undefined_flag
15699
15700 # Flag to hardcode \$libdir into a binary during linking.
15701 # This must work even if \$libdir does not exist
15702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15703
15704 # Whether we need a single "-rpath" flag with a separated argument.
15705 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15706
15707 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15708 # DIR into the resulting binary.
15709 hardcode_direct=$hardcode_direct
15710
15711 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15712 # DIR into the resulting binary and the resulting library dependency is
15713 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15714 # library is relocated.
15715 hardcode_direct_absolute=$hardcode_direct_absolute
15716
15717 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15718 # into the resulting binary.
15719 hardcode_minus_L=$hardcode_minus_L
15720
15721 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15722 # into the resulting binary.
15723 hardcode_shlibpath_var=$hardcode_shlibpath_var
15724
15725 # Set to "yes" if building a shared library automatically hardcodes DIR
15726 # into the library and all subsequent libraries and executables linked
15727 # against it.
15728 hardcode_automatic=$hardcode_automatic
15729
15730 # Set to yes if linker adds runtime paths of dependent libraries
15731 # to runtime path list.
15732 inherit_rpath=$inherit_rpath
15733
15734 # Whether libtool must link a program against all its dependency libraries.
15735 link_all_deplibs=$link_all_deplibs
15736
15737 # Set to "yes" if exported symbols are required.
15738 always_export_symbols=$always_export_symbols
15739
15740 # The commands to list exported symbols.
15741 export_symbols_cmds=$lt_export_symbols_cmds
15742
15743 # Symbols that should not be listed in the preloaded symbols.
15744 exclude_expsyms=$lt_exclude_expsyms
15745
15746 # Symbols that must always be exported.
15747 include_expsyms=$lt_include_expsyms
15748
15749 # Commands necessary for linking programs (against libraries) with templates.
15750 prelink_cmds=$lt_prelink_cmds
15751
15752 # Commands necessary for finishing linking programs.
15753 postlink_cmds=$lt_postlink_cmds
15754
15755 # Specify filename containing input files.
15756 file_list_spec=$lt_file_list_spec
15757
15758 # How to hardcode a shared library path into an executable.
15759 hardcode_action=$hardcode_action
15760
15761 # ### END LIBTOOL CONFIG
15762
15763 _LT_EOF
15764
15765   case $host_os in
15766   aix3*)
15767     cat <<\_LT_EOF >> "$cfgfile"
15768 # AIX sometimes has problems with the GCC collect2 program.  For some
15769 # reason, if we set the COLLECT_NAMES environment variable, the problems
15770 # vanish in a puff of smoke.
15771 if test "X${COLLECT_NAMES+set}" != Xset; then
15772   COLLECT_NAMES=
15773   export COLLECT_NAMES
15774 fi
15775 _LT_EOF
15776     ;;
15777   esac
15778
15779
15780 ltmain="$ac_aux_dir/ltmain.sh"
15781
15782
15783   # We use sed instead of cat because bash on DJGPP gets confused if
15784   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15785   # text mode, it properly converts lines to CR/LF.  This bash problem
15786   # is reportedly fixed, but why not run on old versions too?
15787   sed '$q' "$ltmain" >> "$cfgfile" \
15788      || (rm -f "$cfgfile"; exit 1)
15789
15790   if test x"$xsi_shell" = xyes; then
15791   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15792 func_dirname ()\
15793 {\
15794 \    case ${1} in\
15795 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15796 \      *  ) func_dirname_result="${3}" ;;\
15797 \    esac\
15798 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15799   && mv -f "$cfgfile.tmp" "$cfgfile" \
15800     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15801 test 0 -eq $? || _lt_function_replace_fail=:
15802
15803
15804   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15805 func_basename ()\
15806 {\
15807 \    func_basename_result="${1##*/}"\
15808 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15809   && mv -f "$cfgfile.tmp" "$cfgfile" \
15810     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15811 test 0 -eq $? || _lt_function_replace_fail=:
15812
15813
15814   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15815 func_dirname_and_basename ()\
15816 {\
15817 \    case ${1} in\
15818 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15819 \      *  ) func_dirname_result="${3}" ;;\
15820 \    esac\
15821 \    func_basename_result="${1##*/}"\
15822 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15823   && mv -f "$cfgfile.tmp" "$cfgfile" \
15824     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15825 test 0 -eq $? || _lt_function_replace_fail=:
15826
15827
15828   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15829 func_stripname ()\
15830 {\
15831 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15832 \    # positional parameters, so assign one to ordinary parameter first.\
15833 \    func_stripname_result=${3}\
15834 \    func_stripname_result=${func_stripname_result#"${1}"}\
15835 \    func_stripname_result=${func_stripname_result%"${2}"}\
15836 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15837   && mv -f "$cfgfile.tmp" "$cfgfile" \
15838     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15839 test 0 -eq $? || _lt_function_replace_fail=:
15840
15841
15842   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15843 func_split_long_opt ()\
15844 {\
15845 \    func_split_long_opt_name=${1%%=*}\
15846 \    func_split_long_opt_arg=${1#*=}\
15847 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15848   && mv -f "$cfgfile.tmp" "$cfgfile" \
15849     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15850 test 0 -eq $? || _lt_function_replace_fail=:
15851
15852
15853   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15854 func_split_short_opt ()\
15855 {\
15856 \    func_split_short_opt_arg=${1#??}\
15857 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15858 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15859   && mv -f "$cfgfile.tmp" "$cfgfile" \
15860     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15861 test 0 -eq $? || _lt_function_replace_fail=:
15862
15863
15864   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15865 func_lo2o ()\
15866 {\
15867 \    case ${1} in\
15868 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15869 \      *)    func_lo2o_result=${1} ;;\
15870 \    esac\
15871 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15872   && mv -f "$cfgfile.tmp" "$cfgfile" \
15873     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15874 test 0 -eq $? || _lt_function_replace_fail=:
15875
15876
15877   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15878 func_xform ()\
15879 {\
15880     func_xform_result=${1%.*}.lo\
15881 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15882   && mv -f "$cfgfile.tmp" "$cfgfile" \
15883     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15884 test 0 -eq $? || _lt_function_replace_fail=:
15885
15886
15887   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15888 func_arith ()\
15889 {\
15890     func_arith_result=$(( $* ))\
15891 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15892   && mv -f "$cfgfile.tmp" "$cfgfile" \
15893     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15894 test 0 -eq $? || _lt_function_replace_fail=:
15895
15896
15897   sed -e '/^func_len ()$/,/^} # func_len /c\
15898 func_len ()\
15899 {\
15900     func_len_result=${#1}\
15901 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15902   && mv -f "$cfgfile.tmp" "$cfgfile" \
15903     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15904 test 0 -eq $? || _lt_function_replace_fail=:
15905
15906 fi
15907
15908 if test x"$lt_shell_append" = xyes; then
15909   sed -e '/^func_append ()$/,/^} # func_append /c\
15910 func_append ()\
15911 {\
15912     eval "${1}+=\\${2}"\
15913 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15914   && mv -f "$cfgfile.tmp" "$cfgfile" \
15915     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15916 test 0 -eq $? || _lt_function_replace_fail=:
15917
15918
15919   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15920 func_append_quoted ()\
15921 {\
15922 \    func_quote_for_eval "${2}"\
15923 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15924 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15925   && mv -f "$cfgfile.tmp" "$cfgfile" \
15926     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15927 test 0 -eq $? || _lt_function_replace_fail=:
15928
15929
15930   # Save a `func_append' function call where possible by direct use of '+='
15931   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15932     && mv -f "$cfgfile.tmp" "$cfgfile" \
15933       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15934   test 0 -eq $? || _lt_function_replace_fail=:
15935 else
15936   # Save a `func_append' function call even when '+=' is not available
15937   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15938     && mv -f "$cfgfile.tmp" "$cfgfile" \
15939       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15940   test 0 -eq $? || _lt_function_replace_fail=:
15941 fi
15942
15943 if test x"$_lt_function_replace_fail" = x":"; then
15944   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15945 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15946 fi
15947
15948
15949    mv -f "$cfgfile" "$ofile" ||
15950     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15951   chmod +x "$ofile"
15952
15953  ;;
15954
15955   esac
15956 done # for ac_tag
15957
15958
15959 as_fn_exit 0
15960 _ACEOF
15961 ac_clean_files=$ac_clean_files_save
15962
15963 test $ac_write_fail = 0 ||
15964   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15965
15966
15967 # configure is writing to config.log, and then calls config.status.
15968 # config.status does its own redirection, appending to config.log.
15969 # Unfortunately, on DOS this fails, as config.log is still kept open
15970 # by configure, so config.status won't be able to write to it; its
15971 # output is simply discarded.  So we exec the FD to /dev/null,
15972 # effectively closing config.log, so it can be properly (re)opened and
15973 # appended to by config.status.  When coming back to configure, we
15974 # need to make the FD available again.
15975 if test "$no_create" != yes; then
15976   ac_cs_success=:
15977   ac_config_status_args=
15978   test "$silent" = yes &&
15979     ac_config_status_args="$ac_config_status_args --quiet"
15980   exec 5>/dev/null
15981   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15982   exec 5>>config.log
15983   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15984   # would make configure fail if this is the last instruction.
15985   $ac_cs_success || as_fn_exit 1
15986 fi
15987 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15988   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15989 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15990 fi
15991
15992
15993 echo ""
15994 echo "Enabled debug features : "$enable_debug
15995 echo "Building tests         : "$enable_tests
15996 echo "Enabled Gumd           : "$enable_gum $have_libgum
15997 echo "Enabled NFC            : "$have_libtlm_nfc
15998 echo "Enabled examples       : "$enable_examples
15999 echo ""