ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 5157
Committed: Fri Dec 26 17:16:28 2014 UTC (9 years, 3 months ago) by michael
File size: 457081 byte(s)
Log Message:
- firedns.c: replaced unsigned short with explicit uint16_t; removed
  related checks in configure.ac

File Contents

# User Rev Content
1 michael 5052 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 michael 5061 # Generated by GNU Autoconf 2.69 for hopm 1.0.0beta1.
4 michael 5052 #
5 michael 5059 #
6     # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7     #
8     #
9 michael 5052 # This configure script is free software; the Free Software Foundation
10     # gives unlimited permission to copy, distribute and modify it.
11 michael 5059 ## -------------------- ##
12     ## M4sh Initialization. ##
13     ## -------------------- ##
14 michael 5052
15 michael 5059 # 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 michael 5052 emulate sh
19     NULLCMD=:
20 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 michael 5052 # is contrary to our usage. Disable this feature.
22     alias -g '${1+"$@"}'='"$@"'
23     setopt NO_GLOB_SUBST
24     else
25 michael 5059 case `(set -o) 2>/dev/null` in #(
26     *posix*) :
27     set -o posix ;; #(
28     *) :
29     ;;
30     esac
31 michael 5052 fi
32    
33    
34 michael 5059 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 michael 5052 else
55 michael 5059 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 michael 5052 fi
68 michael 5059 export as_echo_body
69     as_echo='sh -c $as_echo_body as_echo'
70 michael 5052 fi
71    
72 michael 5059 # 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 michael 5052 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 michael 5059 as_myself=
91     case $0 in #((
92 michael 5052 *[\\/]* ) 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 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99     done
100 michael 5052 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 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111     exit 1
112 michael 5052 fi
113    
114 michael 5059 # 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 michael 5052 done
122     PS1='$ '
123     PS2='> '
124     PS4='+ '
125    
126     # NLS nuisances.
127 michael 5059 LC_ALL=C
128     export LC_ALL
129     LANGUAGE=C
130     export LANGUAGE
131 michael 5052
132     # CDPATH.
133 michael 5059 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 michael 5052
135 michael 5059 # 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 michael 5052 if test "x$CONFIG_SHELL" = x; then
161 michael 5059 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 michael 5052 else
169 michael 5059 case \`(set -o) 2>/dev/null\` in #(
170     *posix*) :
171     set -o posix ;; #(
172     *) :
173     ;;
174     esac
175 michael 5052 fi
176 michael 5059 "
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 michael 5052
183     exitcode=0
184 michael 5059 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 michael 5052
190     else
191 michael 5059 exitcode=1; echo positional parameters were not saved.
192 michael 5052 fi
193 michael 5059 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 michael 5052
200 michael 5059 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 michael 5052 else
211 michael 5059 as_have_required=no
212 michael 5052 fi
213 michael 5059 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214 michael 5052
215     else
216 michael 5059 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 michael 5052 do
220     IFS=$as_save_IFS
221     test -z "$as_dir" && as_dir=.
222 michael 5059 as_found=:
223     case $as_dir in #(
224 michael 5052 /*)
225     for as_base in sh bash ksh sh5; do
226 michael 5059 # 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 michael 5052 done;;
236     esac
237 michael 5059 as_found=false
238 michael 5052 done
239 michael 5059 $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 michael 5052 IFS=$as_save_IFS
244    
245    
246 michael 5059 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 michael 5052 fi
267    
268 michael 5059 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 michael 5052 fi
282     fi
283     fi
284 michael 5059 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 michael 5052
290 michael 5059 ## --------------------- ##
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 michael 5052
302 michael 5059 # 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 michael 5052
310 michael 5059 # 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 michael 5052
320 michael 5059 # as_fn_mkdir_p
321     # -------------
322     # Create "$as_dir" as a directory, including parents if necessary.
323     as_fn_mkdir_p ()
324     {
325 michael 5052
326 michael 5059 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 michael 5052
365    
366 michael 5059 } # as_fn_mkdir_p
367 michael 5052
368 michael 5059 # 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 michael 5052
393 michael 5059 # 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 michael 5052
410    
411 michael 5059 # 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 michael 5052
427 michael 5059 if expr a : '\(a\)' >/dev/null 2>&1 &&
428     test "X`expr 00001 : '.*\(...\)'`" = X001; then
429     as_expr=expr
430 michael 5052 else
431 michael 5059 as_expr=false
432 michael 5052 fi
433    
434 michael 5059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435     as_basename=basename
436 michael 5052 else
437 michael 5059 as_basename=false
438 michael 5052 fi
439    
440 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441     as_dirname=dirname
442 michael 5052 else
443 michael 5059 as_dirname=false
444 michael 5052 fi
445    
446 michael 5059 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 michael 5052
465 michael 5059 # 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 michael 5052
472    
473 michael 5059 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 michael 5052 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 michael 5059 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495 michael 5052
496 michael 5059 # 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 michael 5052 # 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 michael 5059 case `echo -n x` in #(((((
510 michael 5052 -n*)
511 michael 5059 case `echo 'xy\c'` in
512 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 michael 5059 xy) ECHO_C='\c';;
514     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515     ECHO_T=' ';;
516 michael 5052 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 michael 5059 mkdir conf$$.dir 2>/dev/null
527 michael 5052 fi
528 michael 5059 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 michael 5052 else
543 michael 5059 as_ln_s='cp -pR'
544 michael 5052 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 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
550 michael 5052 else
551     test -d ./-p && rmdir ./-p
552     as_mkdir_p=false
553     fi
554    
555 michael 5059 as_test_x='test -x'
556     as_executable_p=as_fn_executable_p
557 michael 5052
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 michael 5059 test -n "$DJDIR" || exec 7<&0 </dev/null
568     exec 6>&1
569 michael 5052
570     # Name of the host.
571 michael 5059 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 michael 5052 # 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 michael 5061 PACKAGE_NAME='hopm'
589     PACKAGE_TARNAME='hopm'
590     PACKAGE_VERSION='1.0.0beta1'
591     PACKAGE_STRING='hopm 1.0.0beta1'
592 michael 5052 PACKAGE_BUGREPORT=''
593 michael 5059 PACKAGE_URL=''
594 michael 5052
595     ac_unique_file="src/opercmd.h"
596 michael 5061 ac_default_prefix=\${HOME}/hopm
597 michael 5052 # Factoring default headers for most tests.
598     ac_includes_default="\
599     #include <stdio.h>
600 michael 5059 #ifdef HAVE_SYS_TYPES_H
601 michael 5052 # include <sys/types.h>
602     #endif
603 michael 5059 #ifdef HAVE_SYS_STAT_H
604 michael 5052 # include <sys/stat.h>
605     #endif
606 michael 5059 #ifdef STDC_HEADERS
607 michael 5052 # include <stdlib.h>
608     # include <stddef.h>
609     #else
610 michael 5059 # ifdef HAVE_STDLIB_H
611 michael 5052 # include <stdlib.h>
612     # endif
613     #endif
614 michael 5059 #ifdef HAVE_STRING_H
615     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 michael 5052 # include <memory.h>
617     # endif
618     # include <string.h>
619     #endif
620 michael 5059 #ifdef HAVE_STRINGS_H
621 michael 5052 # include <strings.h>
622     #endif
623 michael 5059 #ifdef HAVE_INTTYPES_H
624 michael 5052 # include <inttypes.h>
625     #endif
626 michael 5059 #ifdef HAVE_STDINT_H
627 michael 5052 # include <stdint.h>
628     #endif
629 michael 5059 #ifdef HAVE_UNISTD_H
630 michael 5052 # include <unistd.h>
631     #endif"
632    
633 michael 5059 enable_option_checking=no
634     ac_subst_vars='am__EXEEXT_FALSE
635     am__EXEEXT_TRUE
636     LTLIBOBJS
637 michael 5052 LIBOBJS
638 michael 5059 subdirs
639 michael 5052 LEXLIB
640     LEX_OUTPUT_ROOT
641 michael 5059 LEX
642     YFLAGS
643     YACC
644     CPP
645     OTOOL64
646     OTOOL
647     LIPO
648     NMEDIT
649     DSYMUTIL
650     MANIFEST_TOOL
651     RANLIB
652     ac_ct_AR
653     AR
654     DLLTOOL
655     OBJDUMP
656     LN_S
657     NM
658     ac_ct_DUMPBIN
659     DUMPBIN
660     LD
661     FGREP
662     EGREP
663     GREP
664     SED
665     host_os
666     host_vendor
667     host_cpu
668     host
669     build_os
670     build_vendor
671     build_cpu
672     build
673     LIBTOOL
674     am__fastdepCC_FALSE
675     am__fastdepCC_TRUE
676     CCDEPMODE
677     am__nodep
678     AMDEPBACKSLASH
679     AMDEP_FALSE
680     AMDEP_TRUE
681     am__quote
682     am__include
683     DEPDIR
684     OBJEXT
685     EXEEXT
686     ac_ct_CC
687     CPPFLAGS
688     LDFLAGS
689     CFLAGS
690     CC
691     MAINT
692     MAINTAINER_MODE_FALSE
693     MAINTAINER_MODE_TRUE
694     AM_BACKSLASH
695     AM_DEFAULT_VERBOSITY
696     AM_DEFAULT_V
697     AM_V
698     am__untar
699     am__tar
700     AMTAR
701     am__leading_dot
702     SET_MAKE
703     AWK
704     mkdir_p
705     MKDIR_P
706     INSTALL_STRIP_PROGRAM
707     STRIP
708     install_sh
709     MAKEINFO
710     AUTOHEADER
711     AUTOMAKE
712     AUTOCONF
713     ACLOCAL
714     VERSION
715     PACKAGE
716     CYGPATH_W
717     am__isrc
718     INSTALL_DATA
719     INSTALL_SCRIPT
720     INSTALL_PROGRAM
721     target_alias
722     host_alias
723     build_alias
724     LIBS
725     ECHO_T
726     ECHO_N
727     ECHO_C
728     DEFS
729     mandir
730     localedir
731     libdir
732     psdir
733     pdfdir
734     dvidir
735     htmldir
736     infodir
737     docdir
738     oldincludedir
739     includedir
740     localstatedir
741     sharedstatedir
742     sysconfdir
743     datadir
744     datarootdir
745     libexecdir
746     sbindir
747     bindir
748     program_transform_name
749     prefix
750     exec_prefix
751     PACKAGE_URL
752     PACKAGE_BUGREPORT
753     PACKAGE_STRING
754     PACKAGE_VERSION
755     PACKAGE_TARNAME
756     PACKAGE_NAME
757     PATH_SEPARATOR
758     SHELL'
759 michael 5052 ac_subst_files=''
760 michael 5059 ac_user_opts='
761     enable_option_checking
762     enable_silent_rules
763     enable_maintainer_mode
764     with_extra_fascism
765     enable_dependency_tracking
766     enable_shared
767     enable_static
768     with_pic
769     enable_fast_install
770     with_aix_soname
771     with_gnu_ld
772     with_sysroot
773     enable_libtool_lock
774     '
775 michael 5052 ac_precious_vars='build_alias
776     host_alias
777     target_alias
778     CC
779     CFLAGS
780     LDFLAGS
781 michael 5059 LIBS
782 michael 5052 CPPFLAGS
783     CPP
784     YACC
785     YFLAGS'
786     ac_subdirs_all='src/libopm'
787    
788     # Initialize some variables set by options.
789     ac_init_help=
790     ac_init_version=false
791 michael 5059 ac_unrecognized_opts=
792     ac_unrecognized_sep=
793 michael 5052 # The variables have the same names as the options, with
794     # dashes changed to underlines.
795     cache_file=/dev/null
796     exec_prefix=NONE
797     no_create=
798     no_recursion=
799     prefix=NONE
800     program_prefix=NONE
801     program_suffix=NONE
802     program_transform_name=s,x,x,
803     silent=
804     site=
805     srcdir=
806     verbose=
807     x_includes=NONE
808     x_libraries=NONE
809    
810     # Installation directory options.
811     # These are left unexpanded so users can "make install exec_prefix=/foo"
812     # and all the variables that are supposed to be based on exec_prefix
813     # by default will actually change.
814     # Use braces instead of parens because sh, perl, etc. also accept them.
815     # (The list follows the same order as the GNU Coding Standards.)
816     bindir='${exec_prefix}/bin'
817     sbindir='${exec_prefix}/sbin'
818     libexecdir='${exec_prefix}/libexec'
819     datarootdir='${prefix}/share'
820     datadir='${datarootdir}'
821     sysconfdir='${prefix}/etc'
822     sharedstatedir='${prefix}/com'
823     localstatedir='${prefix}/var'
824     includedir='${prefix}/include'
825     oldincludedir='/usr/include'
826     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827     infodir='${datarootdir}/info'
828     htmldir='${docdir}'
829     dvidir='${docdir}'
830     pdfdir='${docdir}'
831     psdir='${docdir}'
832     libdir='${exec_prefix}/lib'
833     localedir='${datarootdir}/locale'
834     mandir='${datarootdir}/man'
835    
836     ac_prev=
837     ac_dashdash=
838     for ac_option
839     do
840     # If the previous option needs an argument, assign it.
841     if test -n "$ac_prev"; then
842     eval $ac_prev=\$ac_option
843     ac_prev=
844     continue
845     fi
846    
847     case $ac_option in
848 michael 5059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849     *=) ac_optarg= ;;
850     *) ac_optarg=yes ;;
851 michael 5052 esac
852    
853     # Accept the important Cygnus configure options, so we can diagnose typos.
854    
855     case $ac_dashdash$ac_option in
856     --)
857     ac_dashdash=yes ;;
858    
859     -bindir | --bindir | --bindi | --bind | --bin | --bi)
860     ac_prev=bindir ;;
861     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862     bindir=$ac_optarg ;;
863    
864     -build | --build | --buil | --bui | --bu)
865     ac_prev=build_alias ;;
866     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867     build_alias=$ac_optarg ;;
868    
869     -cache-file | --cache-file | --cache-fil | --cache-fi \
870     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871     ac_prev=cache_file ;;
872     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874     cache_file=$ac_optarg ;;
875    
876     --config-cache | -C)
877     cache_file=config.cache ;;
878    
879     -datadir | --datadir | --datadi | --datad)
880     ac_prev=datadir ;;
881     -datadir=* | --datadir=* | --datadi=* | --datad=*)
882     datadir=$ac_optarg ;;
883    
884     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885     | --dataroo | --dataro | --datar)
886     ac_prev=datarootdir ;;
887     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889     datarootdir=$ac_optarg ;;
890    
891     -disable-* | --disable-*)
892 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 michael 5052 # Reject names that are not valid shell variable names.
894 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895     as_fn_error $? "invalid feature name: $ac_useropt"
896     ac_useropt_orig=$ac_useropt
897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898     case $ac_user_opts in
899     *"
900     "enable_$ac_useropt"
901     "*) ;;
902     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903     ac_unrecognized_sep=', ';;
904     esac
905     eval enable_$ac_useropt=no ;;
906 michael 5052
907     -docdir | --docdir | --docdi | --doc | --do)
908     ac_prev=docdir ;;
909     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910     docdir=$ac_optarg ;;
911    
912     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913     ac_prev=dvidir ;;
914     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915     dvidir=$ac_optarg ;;
916    
917     -enable-* | --enable-*)
918 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 michael 5052 # Reject names that are not valid shell variable names.
920 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921     as_fn_error $? "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925     *"
926     "enable_$ac_useropt"
927     "*) ;;
928     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929     ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=\$ac_optarg ;;
932 michael 5052
933     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935     | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939     | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941    
942     -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945    
946     -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952    
953     -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955     -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957    
958     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961     | --ht=*)
962     htmldir=$ac_optarg ;;
963    
964     -includedir | --includedir | --includedi | --included | --include \
965     | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968     | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970    
971     -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975    
976     -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978     -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980    
981     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982     | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985     | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987    
988     -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992    
993     -localstatedir | --localstatedir | --localstatedi | --localstated \
994     | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999    
1000     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004    
1005     -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008    
1009     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010     | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012    
1013     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016    
1017     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019     | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025    
1026     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030    
1031     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032     | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037    
1038     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039     | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044    
1045     -program-transform-name | --program-transform-name \
1046     | --program-transform-nam | --program-transform-na \
1047     | --program-transform-n | --program-transform- \
1048     | --program-transform | --program-transfor \
1049     | --program-transfo | --program-transf \
1050     | --program-trans | --program-tran \
1051     | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053     -program-transform-name=* | --program-transform-name=* \
1054     | --program-transform-nam=* | --program-transform-na=* \
1055     | --program-transform-n=* | --program-transform-=* \
1056     | --program-transform=* | --program-transfor=* \
1057     | --program-transfo=* | --program-transf=* \
1058     | --program-trans=* | --program-tran=* \
1059     | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061    
1062     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066    
1067     -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071    
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075    
1076     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079     | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081    
1082     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084     | --sharedst | --shareds | --shared | --share | --shar \
1085     | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090     | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092    
1093     -site | --site | --sit)
1094     ac_prev=site ;;
1095     -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097    
1098     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102    
1103     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104     | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109    
1110     -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114    
1115     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117    
1118     -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120    
1121     -with-* | --with-*)
1122 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 michael 5052 # Reject names that are not valid shell variable names.
1124 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125     as_fn_error $? "invalid package name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129     *"
1130     "with_$ac_useropt"
1131     "*) ;;
1132     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133     ac_unrecognized_sep=', ';;
1134     esac
1135     eval with_$ac_useropt=\$ac_optarg ;;
1136 michael 5052
1137     -without-* | --without-*)
1138 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 michael 5052 # Reject names that are not valid shell variable names.
1140 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141     as_fn_error $? "invalid package name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145     *"
1146     "with_$ac_useropt"
1147     "*) ;;
1148     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149     ac_unrecognized_sep=', ';;
1150     esac
1151     eval with_$ac_useropt=no ;;
1152 michael 5052
1153     --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156    
1157     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158     | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163    
1164     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170    
1171 michael 5059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172     Try \`$0 --help' for more information"
1173 michael 5052 ;;
1174    
1175     *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178 michael 5059 case $ac_envvar in #(
1179     '' | [0-9]* | *[!_$as_cr_alnum]* )
1180     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181     esac
1182 michael 5052 eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184    
1185     *)
1186     # FIXME: should be removed in autoconf 3.0.
1187 michael 5059 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 michael 5052 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 michael 5059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 michael 5052 ;;
1192    
1193     esac
1194     done
1195    
1196     if test -n "$ac_prev"; then
1197     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 michael 5059 as_fn_error $? "missing argument to $ac_option"
1199 michael 5052 fi
1200    
1201 michael 5059 if test -n "$ac_unrecognized_opts"; then
1202     case $enable_option_checking in
1203     no) ;;
1204     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206     esac
1207     fi
1208    
1209     # Check all directory arguments for consistency.
1210 michael 5052 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211     datadir sysconfdir sharedstatedir localstatedir includedir \
1212     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213     libdir localedir mandir
1214     do
1215     eval ac_val=\$$ac_var
1216 michael 5059 # Remove trailing slashes.
1217 michael 5052 case $ac_val in
1218 michael 5059 */ )
1219     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220     eval $ac_var=\$ac_val;;
1221     esac
1222     # Be sure to have absolute directory names.
1223     case $ac_val in
1224 michael 5052 [\\/$]* | ?:[\\/]* ) continue;;
1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226     esac
1227 michael 5059 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 michael 5052 done
1229    
1230     # There might be people who depend on the old broken behavior: `$host'
1231     # used to hold the argument of --host etc.
1232     # FIXME: To remove some day.
1233     build=$build_alias
1234     host=$host_alias
1235     target=$target_alias
1236    
1237     # FIXME: To remove some day.
1238     if test "x$host_alias" != x; then
1239     if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243     fi
1244     fi
1245    
1246     ac_tool_prefix=
1247     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248    
1249     test "$silent" = yes && exec 6>/dev/null
1250    
1251    
1252     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253     ac_ls_di=`ls -di .` &&
1254     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 michael 5059 as_fn_error $? "working directory cannot be determined"
1256 michael 5052 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 michael 5059 as_fn_error $? "pwd does not report name of working directory"
1258 michael 5052
1259    
1260     # Find the source files, if location was not specified.
1261     if test -z "$srcdir"; then
1262     ac_srcdir_defaulted=yes
1263     # Try the directory containing this script, then the parent directory.
1264 michael 5059 ac_confdir=`$as_dirname -- "$as_myself" ||
1265     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266     X"$as_myself" : 'X\(//\)[^/]' \| \
1267     X"$as_myself" : 'X\(//\)$' \| \
1268     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269     $as_echo X"$as_myself" |
1270 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271     s//\1/
1272     q
1273     }
1274     /^X\(\/\/\)[^/].*/{
1275     s//\1/
1276     q
1277     }
1278     /^X\(\/\/\)$/{
1279     s//\1/
1280     q
1281     }
1282     /^X\(\/\).*/{
1283     s//\1/
1284     q
1285     }
1286     s/.*/./; q'`
1287     srcdir=$ac_confdir
1288     if test ! -r "$srcdir/$ac_unique_file"; then
1289     srcdir=..
1290     fi
1291     else
1292     ac_srcdir_defaulted=no
1293     fi
1294     if test ! -r "$srcdir/$ac_unique_file"; then
1295     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 michael 5059 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 michael 5052 fi
1298     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299     ac_abs_confdir=`(
1300 michael 5059 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 michael 5052 pwd)`
1302     # When building in place, set srcdir=.
1303     if test "$ac_abs_confdir" = "$ac_pwd"; then
1304     srcdir=.
1305     fi
1306     # Remove unnecessary trailing slashes from srcdir.
1307     # Double slashes in file names in object file debugging info
1308     # mess up M-x gdb in Emacs.
1309     case $srcdir in
1310     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311     esac
1312     for ac_var in $ac_precious_vars; do
1313     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314     eval ac_env_${ac_var}_value=\$${ac_var}
1315     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317     done
1318    
1319     #
1320     # Report the --help message.
1321     #
1322     if test "$ac_init_help" = "long"; then
1323     # Omit some internal or obsolete options to make the list less imposing.
1324     # This message is too long to be a string in the A/UX 3.1 sh.
1325     cat <<_ACEOF
1326 michael 5061 \`configure' configures hopm 1.0.0beta1 to adapt to many kinds of systems.
1327 michael 5052
1328     Usage: $0 [OPTION]... [VAR=VALUE]...
1329    
1330     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331     VAR=VALUE. See below for descriptions of some of the useful variables.
1332    
1333     Defaults for the options are specified in brackets.
1334    
1335     Configuration:
1336     -h, --help display this help and exit
1337     --help=short display options specific to this package
1338     --help=recursive display the short help of all the included packages
1339     -V, --version display version information and exit
1340 michael 5059 -q, --quiet, --silent do not print \`checking ...' messages
1341 michael 5052 --cache-file=FILE cache test results in FILE [disabled]
1342     -C, --config-cache alias for \`--cache-file=config.cache'
1343     -n, --no-create do not create output files
1344     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345    
1346     Installation directories:
1347     --prefix=PREFIX install architecture-independent files in PREFIX
1348 michael 5059 [$ac_default_prefix]
1349 michael 5052 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 michael 5059 [PREFIX]
1351 michael 5052
1352     By default, \`make install' will install all the files in
1353     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355     for instance \`--prefix=\$HOME'.
1356    
1357     For better control, use the options below.
1358    
1359     Fine tuning of the installation directories:
1360 michael 5059 --bindir=DIR user executables [EPREFIX/bin]
1361     --sbindir=DIR system admin executables [EPREFIX/sbin]
1362     --libexecdir=DIR program executables [EPREFIX/libexec]
1363     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366     --libdir=DIR object code libraries [EPREFIX/lib]
1367     --includedir=DIR C header files [PREFIX/include]
1368     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371     --infodir=DIR info documentation [DATAROOTDIR/info]
1372     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373     --mandir=DIR man documentation [DATAROOTDIR/man]
1374 michael 5061 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1375 michael 5059 --htmldir=DIR html documentation [DOCDIR]
1376     --dvidir=DIR dvi documentation [DOCDIR]
1377     --pdfdir=DIR pdf documentation [DOCDIR]
1378     --psdir=DIR ps documentation [DOCDIR]
1379 michael 5052 _ACEOF
1380    
1381     cat <<\_ACEOF
1382    
1383     Program names:
1384     --program-prefix=PREFIX prepend PREFIX to installed program names
1385     --program-suffix=SUFFIX append SUFFIX to installed program names
1386     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387    
1388     System types:
1389     --build=BUILD configure for building on BUILD [guessed]
1390     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391     _ACEOF
1392     fi
1393    
1394     if test -n "$ac_init_help"; then
1395     case $ac_init_help in
1396 michael 5061 short | recursive ) echo "Configuration of hopm 1.0.0beta1:";;
1397 michael 5052 esac
1398     cat <<\_ACEOF
1399    
1400     Optional Features:
1401 michael 5059 --disable-option-checking ignore unrecognized --enable/--with options
1402 michael 5052 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 michael 5059 --enable-silent-rules less verbose build output (undo: "make V=1")
1405     --disable-silent-rules verbose build output (undo: "make V=0")
1406     --enable-maintainer-mode
1407     enable make rules and dependencies not useful (and
1408     sometimes confusing) to the casual installer
1409     --enable-dependency-tracking
1410     do not reject slow dependency extractors
1411     --disable-dependency-tracking
1412     speeds up one-time build
1413 michael 5052 --enable-shared[=PKGS] build shared libraries [default=yes]
1414     --enable-static[=PKGS] build static libraries [default=yes]
1415     --enable-fast-install[=PKGS]
1416     optimize for fast installation [default=yes]
1417     --disable-libtool-lock avoid locking (might break parallel builds)
1418    
1419     Optional Packages:
1420     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422     --with-extra-fascism Add extra gcc3-specific warning flags
1423 michael 5059 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424     both]
1425     --with-aix-soname=aix|svr4|both
1426     shared library versioning (aka "SONAME") variant to
1427     provide on AIX, [default=aix].
1428 michael 5052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 michael 5059 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1430     compiler's sysroot if not specified).
1431 michael 5052
1432     Some influential environment variables:
1433     CC C compiler command
1434     CFLAGS C compiler flags
1435     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436     nonstandard directory <lib dir>
1437 michael 5059 LIBS libraries to pass to the linker, e.g. -l<library>
1438     CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 michael 5052 you have headers in a nonstandard directory <include dir>
1440     CPP C preprocessor
1441 michael 5059 YACC The `Yet Another Compiler Compiler' implementation to use.
1442     Defaults to the first program found out of: `bison -y', `byacc',
1443     `yacc'.
1444 michael 5052 YFLAGS The list of arguments that will be passed by default to $YACC.
1445     This script will default YFLAGS to the empty string to avoid a
1446     default value of `-d' given by some make applications.
1447    
1448     Use these variables to override the choices made by `configure' or to help
1449     it to find libraries and programs with nonstandard names/locations.
1450    
1451 michael 5059 Report bugs to the package provider.
1452 michael 5052 _ACEOF
1453     ac_status=$?
1454     fi
1455    
1456     if test "$ac_init_help" = "recursive"; then
1457     # If there are subdirs, report their specific --help.
1458     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 michael 5059 test -d "$ac_dir" ||
1460     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461     continue
1462 michael 5052 ac_builddir=.
1463    
1464     case "$ac_dir" in
1465     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466     *)
1467 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 michael 5052 # A ".." for each directory in $ac_dir_suffix.
1469 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 michael 5052 case $ac_top_builddir_sub in
1471     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473     esac ;;
1474     esac
1475     ac_abs_top_builddir=$ac_pwd
1476     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477     # for backward compatibility:
1478     ac_top_builddir=$ac_top_build_prefix
1479    
1480     case $srcdir in
1481     .) # We are building in place.
1482     ac_srcdir=.
1483     ac_top_srcdir=$ac_top_builddir_sub
1484     ac_abs_top_srcdir=$ac_pwd ;;
1485     [\\/]* | ?:[\\/]* ) # Absolute name.
1486     ac_srcdir=$srcdir$ac_dir_suffix;
1487     ac_top_srcdir=$srcdir
1488     ac_abs_top_srcdir=$srcdir ;;
1489     *) # Relative name.
1490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491     ac_top_srcdir=$ac_top_build_prefix$srcdir
1492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493     esac
1494     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495    
1496     cd "$ac_dir" || { ac_status=$?; continue; }
1497     # Check for guested configure.
1498     if test -f "$ac_srcdir/configure.gnu"; then
1499     echo &&
1500     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501     elif test -f "$ac_srcdir/configure"; then
1502     echo &&
1503     $SHELL "$ac_srcdir/configure" --help=recursive
1504     else
1505 michael 5059 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 michael 5052 fi || ac_status=$?
1507     cd "$ac_pwd" || { ac_status=$?; break; }
1508     done
1509     fi
1510    
1511     test -n "$ac_init_help" && exit $ac_status
1512     if $ac_init_version; then
1513     cat <<\_ACEOF
1514 michael 5061 hopm configure 1.0.0beta1
1515 michael 5059 generated by GNU Autoconf 2.69
1516 michael 5052
1517 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
1518 michael 5052 This configure script is free software; the Free Software Foundation
1519     gives unlimited permission to copy, distribute and modify it.
1520     _ACEOF
1521     exit
1522     fi
1523 michael 5059
1524     ## ------------------------ ##
1525     ## Autoconf initialization. ##
1526     ## ------------------------ ##
1527    
1528     # ac_fn_c_try_compile LINENO
1529     # --------------------------
1530     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531     ac_fn_c_try_compile ()
1532     {
1533     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534     rm -f conftest.$ac_objext
1535     if { { ac_try="$ac_compile"
1536     case "(($ac_try" in
1537     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538     *) ac_try_echo=$ac_try;;
1539     esac
1540     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541     $as_echo "$ac_try_echo"; } >&5
1542     (eval "$ac_compile") 2>conftest.err
1543     ac_status=$?
1544     if test -s conftest.err; then
1545     grep -v '^ *+' conftest.err >conftest.er1
1546     cat conftest.er1 >&5
1547     mv -f conftest.er1 conftest.err
1548     fi
1549     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550     test $ac_status = 0; } && {
1551     test -z "$ac_c_werror_flag" ||
1552     test ! -s conftest.err
1553     } && test -s conftest.$ac_objext; then :
1554     ac_retval=0
1555     else
1556     $as_echo "$as_me: failed program was:" >&5
1557     sed 's/^/| /' conftest.$ac_ext >&5
1558    
1559     ac_retval=1
1560     fi
1561     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562     as_fn_set_status $ac_retval
1563    
1564     } # ac_fn_c_try_compile
1565    
1566     # ac_fn_c_try_link LINENO
1567     # -----------------------
1568     # Try to link conftest.$ac_ext, and return whether this succeeded.
1569     ac_fn_c_try_link ()
1570     {
1571     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572     rm -f conftest.$ac_objext conftest$ac_exeext
1573     if { { ac_try="$ac_link"
1574     case "(($ac_try" in
1575     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576     *) ac_try_echo=$ac_try;;
1577     esac
1578     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579     $as_echo "$ac_try_echo"; } >&5
1580     (eval "$ac_link") 2>conftest.err
1581     ac_status=$?
1582     if test -s conftest.err; then
1583     grep -v '^ *+' conftest.err >conftest.er1
1584     cat conftest.er1 >&5
1585     mv -f conftest.er1 conftest.err
1586     fi
1587     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588     test $ac_status = 0; } && {
1589     test -z "$ac_c_werror_flag" ||
1590     test ! -s conftest.err
1591     } && test -s conftest$ac_exeext && {
1592     test "$cross_compiling" = yes ||
1593     test -x conftest$ac_exeext
1594     }; then :
1595     ac_retval=0
1596     else
1597     $as_echo "$as_me: failed program was:" >&5
1598     sed 's/^/| /' conftest.$ac_ext >&5
1599    
1600     ac_retval=1
1601     fi
1602     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604     # interfere with the next link command; also delete a directory that is
1605     # left behind by Apple's compiler. We do this before executing the actions.
1606     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608     as_fn_set_status $ac_retval
1609    
1610     } # ac_fn_c_try_link
1611    
1612     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613     # -------------------------------------------------------
1614     # Tests whether HEADER exists and can be compiled using the include files in
1615     # INCLUDES, setting the cache variable VAR accordingly.
1616     ac_fn_c_check_header_compile ()
1617     {
1618     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620     $as_echo_n "checking for $2... " >&6; }
1621     if eval \${$3+:} false; then :
1622     $as_echo_n "(cached) " >&6
1623     else
1624     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625     /* end confdefs.h. */
1626     $4
1627     #include <$2>
1628     _ACEOF
1629     if ac_fn_c_try_compile "$LINENO"; then :
1630     eval "$3=yes"
1631     else
1632     eval "$3=no"
1633     fi
1634     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635     fi
1636     eval ac_res=\$$3
1637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638     $as_echo "$ac_res" >&6; }
1639     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640    
1641     } # ac_fn_c_check_header_compile
1642    
1643     # ac_fn_c_try_cpp LINENO
1644     # ----------------------
1645     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646     ac_fn_c_try_cpp ()
1647     {
1648     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649     if { { ac_try="$ac_cpp conftest.$ac_ext"
1650     case "(($ac_try" in
1651     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652     *) ac_try_echo=$ac_try;;
1653     esac
1654     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655     $as_echo "$ac_try_echo"; } >&5
1656     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657     ac_status=$?
1658     if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662     fi
1663     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664     test $ac_status = 0; } > conftest.i && {
1665     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666     test ! -s conftest.err
1667     }; then :
1668     ac_retval=0
1669     else
1670     $as_echo "$as_me: failed program was:" >&5
1671     sed 's/^/| /' conftest.$ac_ext >&5
1672    
1673     ac_retval=1
1674     fi
1675     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676     as_fn_set_status $ac_retval
1677    
1678     } # ac_fn_c_try_cpp
1679    
1680     # ac_fn_c_try_run LINENO
1681     # ----------------------
1682     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683     # that executables *can* be run.
1684     ac_fn_c_try_run ()
1685     {
1686     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687     if { { ac_try="$ac_link"
1688     case "(($ac_try" in
1689     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690     *) ac_try_echo=$ac_try;;
1691     esac
1692     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693     $as_echo "$ac_try_echo"; } >&5
1694     (eval "$ac_link") 2>&5
1695     ac_status=$?
1696     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698     { { case "(($ac_try" in
1699     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700     *) ac_try_echo=$ac_try;;
1701     esac
1702     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703     $as_echo "$ac_try_echo"; } >&5
1704     (eval "$ac_try") 2>&5
1705     ac_status=$?
1706     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707     test $ac_status = 0; }; }; then :
1708     ac_retval=0
1709     else
1710     $as_echo "$as_me: program exited with status $ac_status" >&5
1711     $as_echo "$as_me: failed program was:" >&5
1712     sed 's/^/| /' conftest.$ac_ext >&5
1713    
1714     ac_retval=$ac_status
1715     fi
1716     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718     as_fn_set_status $ac_retval
1719    
1720     } # ac_fn_c_try_run
1721    
1722     # ac_fn_c_check_func LINENO FUNC VAR
1723     # ----------------------------------
1724     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725     ac_fn_c_check_func ()
1726     {
1727     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729     $as_echo_n "checking for $2... " >&6; }
1730     if eval \${$3+:} false; then :
1731     $as_echo_n "(cached) " >&6
1732     else
1733     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734     /* end confdefs.h. */
1735     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737     #define $2 innocuous_$2
1738    
1739     /* System header to define __stub macros and hopefully few prototypes,
1740     which can conflict with char $2 (); below.
1741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742     <limits.h> exists even on freestanding compilers. */
1743    
1744     #ifdef __STDC__
1745     # include <limits.h>
1746     #else
1747     # include <assert.h>
1748     #endif
1749    
1750     #undef $2
1751    
1752     /* Override any GCC internal prototype to avoid an error.
1753     Use char because int might match the return type of a GCC
1754     builtin and then its argument prototype would still apply. */
1755     #ifdef __cplusplus
1756     extern "C"
1757     #endif
1758     char $2 ();
1759     /* The GNU C library defines this for functions which it implements
1760     to always fail with ENOSYS. Some functions are actually named
1761     something starting with __ and the normal name is an alias. */
1762     #if defined __stub_$2 || defined __stub___$2
1763     choke me
1764     #endif
1765    
1766     int
1767     main ()
1768     {
1769     return $2 ();
1770     ;
1771     return 0;
1772     }
1773     _ACEOF
1774     if ac_fn_c_try_link "$LINENO"; then :
1775     eval "$3=yes"
1776     else
1777     eval "$3=no"
1778     fi
1779     rm -f core conftest.err conftest.$ac_objext \
1780     conftest$ac_exeext conftest.$ac_ext
1781     fi
1782     eval ac_res=\$$3
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784     $as_echo "$ac_res" >&6; }
1785     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786    
1787     } # ac_fn_c_check_func
1788    
1789     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790     # -------------------------------------------------------
1791     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792     # the include files in INCLUDES and setting the cache variable VAR
1793     # accordingly.
1794     ac_fn_c_check_header_mongrel ()
1795     {
1796     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797     if eval \${$3+:} false; then :
1798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799     $as_echo_n "checking for $2... " >&6; }
1800     if eval \${$3+:} false; then :
1801     $as_echo_n "(cached) " >&6
1802     fi
1803     eval ac_res=\$$3
1804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805     $as_echo "$ac_res" >&6; }
1806     else
1807     # Is the header compilable?
1808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809     $as_echo_n "checking $2 usability... " >&6; }
1810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811     /* end confdefs.h. */
1812     $4
1813     #include <$2>
1814     _ACEOF
1815     if ac_fn_c_try_compile "$LINENO"; then :
1816     ac_header_compiler=yes
1817     else
1818     ac_header_compiler=no
1819     fi
1820     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822     $as_echo "$ac_header_compiler" >&6; }
1823    
1824     # Is the header present?
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826     $as_echo_n "checking $2 presence... " >&6; }
1827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828     /* end confdefs.h. */
1829     #include <$2>
1830     _ACEOF
1831     if ac_fn_c_try_cpp "$LINENO"; then :
1832     ac_header_preproc=yes
1833     else
1834     ac_header_preproc=no
1835     fi
1836     rm -f conftest.err conftest.i conftest.$ac_ext
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838     $as_echo "$ac_header_preproc" >&6; }
1839    
1840     # So? What about this header?
1841     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842     yes:no: )
1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847     ;;
1848     no:yes:* )
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859     ;;
1860     esac
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862     $as_echo_n "checking for $2... " >&6; }
1863     if eval \${$3+:} false; then :
1864     $as_echo_n "(cached) " >&6
1865     else
1866     eval "$3=\$ac_header_compiler"
1867     fi
1868     eval ac_res=\$$3
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870     $as_echo "$ac_res" >&6; }
1871     fi
1872     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873    
1874     } # ac_fn_c_check_header_mongrel
1875    
1876     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1877     # -------------------------------------------
1878     # Tests whether TYPE exists after having included INCLUDES, setting cache
1879     # variable VAR accordingly.
1880     ac_fn_c_check_type ()
1881     {
1882     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884     $as_echo_n "checking for $2... " >&6; }
1885     if eval \${$3+:} false; then :
1886     $as_echo_n "(cached) " >&6
1887     else
1888     eval "$3=no"
1889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890     /* end confdefs.h. */
1891     $4
1892     int
1893     main ()
1894     {
1895     if (sizeof ($2))
1896     return 0;
1897     ;
1898     return 0;
1899     }
1900     _ACEOF
1901     if ac_fn_c_try_compile "$LINENO"; then :
1902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903     /* end confdefs.h. */
1904     $4
1905     int
1906     main ()
1907     {
1908     if (sizeof (($2)))
1909     return 0;
1910     ;
1911     return 0;
1912     }
1913     _ACEOF
1914     if ac_fn_c_try_compile "$LINENO"; then :
1915    
1916     else
1917     eval "$3=yes"
1918     fi
1919     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920     fi
1921     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922     fi
1923     eval ac_res=\$$3
1924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925     $as_echo "$ac_res" >&6; }
1926     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927    
1928     } # ac_fn_c_check_type
1929 michael 5052 cat >config.log <<_ACEOF
1930     This file contains any messages produced by compilers while
1931     running configure, to aid debugging if configure makes a mistake.
1932    
1933 michael 5061 It was created by hopm $as_me 1.0.0beta1, which was
1934 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
1935 michael 5052
1936     $ $0 $@
1937    
1938     _ACEOF
1939     exec 5>>config.log
1940     {
1941     cat <<_ASUNAME
1942     ## --------- ##
1943     ## Platform. ##
1944     ## --------- ##
1945    
1946     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1947     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1948     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1949     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1950     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1951    
1952     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1953     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1954    
1955     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1956     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1957     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1958     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1959     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1960     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1961     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1962    
1963     _ASUNAME
1964    
1965     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966     for as_dir in $PATH
1967     do
1968     IFS=$as_save_IFS
1969     test -z "$as_dir" && as_dir=.
1970 michael 5059 $as_echo "PATH: $as_dir"
1971     done
1972 michael 5052 IFS=$as_save_IFS
1973    
1974     } >&5
1975    
1976     cat >&5 <<_ACEOF
1977    
1978    
1979     ## ----------- ##
1980     ## Core tests. ##
1981     ## ----------- ##
1982    
1983     _ACEOF
1984    
1985    
1986     # Keep a trace of the command line.
1987     # Strip out --no-create and --no-recursion so they do not pile up.
1988     # Strip out --silent because we don't want to record it for future runs.
1989     # Also quote any args containing shell meta-characters.
1990     # Make two passes to allow for proper duplicate-argument suppression.
1991     ac_configure_args=
1992     ac_configure_args0=
1993     ac_configure_args1=
1994     ac_must_keep_next=false
1995     for ac_pass in 1 2
1996     do
1997     for ac_arg
1998     do
1999     case $ac_arg in
2000     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2001     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2002     | -silent | --silent | --silen | --sile | --sil)
2003     continue ;;
2004     *\'*)
2005 michael 5059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 michael 5052 esac
2007     case $ac_pass in
2008 michael 5059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2009 michael 5052 2)
2010 michael 5059 as_fn_append ac_configure_args1 " '$ac_arg'"
2011 michael 5052 if test $ac_must_keep_next = true; then
2012     ac_must_keep_next=false # Got value, back to normal.
2013     else
2014     case $ac_arg in
2015     *=* | --config-cache | -C | -disable-* | --disable-* \
2016     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2017     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2018     | -with-* | --with-* | -without-* | --without-* | --x)
2019     case "$ac_configure_args0 " in
2020     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2021     esac
2022     ;;
2023     -* ) ac_must_keep_next=true ;;
2024     esac
2025     fi
2026 michael 5059 as_fn_append ac_configure_args " '$ac_arg'"
2027 michael 5052 ;;
2028     esac
2029     done
2030     done
2031 michael 5059 { ac_configure_args0=; unset ac_configure_args0;}
2032     { ac_configure_args1=; unset ac_configure_args1;}
2033 michael 5052
2034     # When interrupted or exit'd, cleanup temporary files, and complete
2035     # config.log. We remove comments because anyway the quotes in there
2036     # would cause problems or look ugly.
2037     # WARNING: Use '\'' to represent an apostrophe within the trap.
2038     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2039     trap 'exit_status=$?
2040     # Save into config.log some information that might help in debugging.
2041     {
2042     echo
2043    
2044 michael 5059 $as_echo "## ---------------- ##
2045 michael 5052 ## Cache variables. ##
2046 michael 5059 ## ---------------- ##"
2047 michael 5052 echo
2048     # The following way of writing the cache mishandles newlines in values,
2049     (
2050     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2051     eval ac_val=\$$ac_var
2052     case $ac_val in #(
2053     *${as_nl}*)
2054     case $ac_var in #(
2055 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2056     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2057 michael 5052 esac
2058     case $ac_var in #(
2059     _ | IFS | as_nl) ;; #(
2060 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2061     *) { eval $ac_var=; unset $ac_var;} ;;
2062 michael 5052 esac ;;
2063     esac
2064     done
2065     (set) 2>&1 |
2066     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2067     *${as_nl}ac_space=\ *)
2068     sed -n \
2069     "s/'\''/'\''\\\\'\'''\''/g;
2070     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2071     ;; #(
2072     *)
2073     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2074     ;;
2075     esac |
2076     sort
2077     )
2078     echo
2079    
2080 michael 5059 $as_echo "## ----------------- ##
2081 michael 5052 ## Output variables. ##
2082 michael 5059 ## ----------------- ##"
2083 michael 5052 echo
2084     for ac_var in $ac_subst_vars
2085     do
2086     eval ac_val=\$$ac_var
2087     case $ac_val in
2088 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 michael 5052 esac
2090 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
2091 michael 5052 done | sort
2092     echo
2093    
2094     if test -n "$ac_subst_files"; then
2095 michael 5059 $as_echo "## ------------------- ##
2096 michael 5052 ## File substitutions. ##
2097 michael 5059 ## ------------------- ##"
2098 michael 5052 echo
2099     for ac_var in $ac_subst_files
2100     do
2101     eval ac_val=\$$ac_var
2102     case $ac_val in
2103 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 michael 5052 esac
2105 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
2106 michael 5052 done | sort
2107     echo
2108     fi
2109    
2110     if test -s confdefs.h; then
2111 michael 5059 $as_echo "## ----------- ##
2112 michael 5052 ## confdefs.h. ##
2113 michael 5059 ## ----------- ##"
2114 michael 5052 echo
2115     cat confdefs.h
2116     echo
2117     fi
2118     test "$ac_signal" != 0 &&
2119 michael 5059 $as_echo "$as_me: caught signal $ac_signal"
2120     $as_echo "$as_me: exit $exit_status"
2121 michael 5052 } >&5
2122     rm -f core *.core core.conftest.* &&
2123     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2124     exit $exit_status
2125     ' 0
2126     for ac_signal in 1 2 13 15; do
2127 michael 5059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2128 michael 5052 done
2129     ac_signal=0
2130    
2131     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2132     rm -f -r conftest* confdefs.h
2133    
2134 michael 5059 $as_echo "/* confdefs.h */" > confdefs.h
2135    
2136 michael 5052 # Predefined preprocessor variables.
2137    
2138     cat >>confdefs.h <<_ACEOF
2139     #define PACKAGE_NAME "$PACKAGE_NAME"
2140     _ACEOF
2141    
2142     cat >>confdefs.h <<_ACEOF
2143     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2144     _ACEOF
2145    
2146     cat >>confdefs.h <<_ACEOF
2147     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2148     _ACEOF
2149    
2150     cat >>confdefs.h <<_ACEOF
2151     #define PACKAGE_STRING "$PACKAGE_STRING"
2152     _ACEOF
2153    
2154     cat >>confdefs.h <<_ACEOF
2155     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2156     _ACEOF
2157    
2158 michael 5059 cat >>confdefs.h <<_ACEOF
2159     #define PACKAGE_URL "$PACKAGE_URL"
2160     _ACEOF
2161 michael 5052
2162 michael 5059
2163 michael 5052 # Let the site file select an alternate cache file if it wants to.
2164 michael 5059 # Prefer an explicitly selected file to automatically selected ones.
2165     ac_site_file1=NONE
2166     ac_site_file2=NONE
2167 michael 5052 if test -n "$CONFIG_SITE"; then
2168 michael 5059 # We do not want a PATH search for config.site.
2169     case $CONFIG_SITE in #((
2170     -*) ac_site_file1=./$CONFIG_SITE;;
2171     */*) ac_site_file1=$CONFIG_SITE;;
2172     *) ac_site_file1=./$CONFIG_SITE;;
2173     esac
2174 michael 5052 elif test "x$prefix" != xNONE; then
2175 michael 5059 ac_site_file1=$prefix/share/config.site
2176     ac_site_file2=$prefix/etc/config.site
2177 michael 5052 else
2178 michael 5059 ac_site_file1=$ac_default_prefix/share/config.site
2179     ac_site_file2=$ac_default_prefix/etc/config.site
2180 michael 5052 fi
2181 michael 5059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2182 michael 5052 do
2183 michael 5059 test "x$ac_site_file" = xNONE && continue
2184     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2185     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2186     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2187 michael 5052 sed 's/^/| /' "$ac_site_file" >&5
2188 michael 5059 . "$ac_site_file" \
2189     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191     as_fn_error $? "failed to load site script $ac_site_file
2192     See \`config.log' for more details" "$LINENO" 5; }
2193 michael 5052 fi
2194     done
2195    
2196     if test -r "$cache_file"; then
2197 michael 5059 # Some versions of bash will fail to source /dev/null (special files
2198     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2199     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2200     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2201     $as_echo "$as_me: loading cache $cache_file" >&6;}
2202 michael 5052 case $cache_file in
2203     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2204     *) . "./$cache_file";;
2205     esac
2206     fi
2207     else
2208 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2209     $as_echo "$as_me: creating cache $cache_file" >&6;}
2210 michael 5052 >$cache_file
2211     fi
2212    
2213     # Check that the precious variables saved in the cache have kept the same
2214     # value.
2215     ac_cache_corrupted=false
2216     for ac_var in $ac_precious_vars; do
2217     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2218     eval ac_new_set=\$ac_env_${ac_var}_set
2219     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2220     eval ac_new_val=\$ac_env_${ac_var}_value
2221     case $ac_old_set,$ac_new_set in
2222     set,)
2223 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2224     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2225 michael 5052 ac_cache_corrupted=: ;;
2226     ,set)
2227 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2228     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2229 michael 5052 ac_cache_corrupted=: ;;
2230     ,);;
2231     *)
2232     if test "x$ac_old_val" != "x$ac_new_val"; then
2233 michael 5059 # differences in whitespace do not lead to failure.
2234     ac_old_val_w=`echo x $ac_old_val`
2235     ac_new_val_w=`echo x $ac_new_val`
2236     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2237     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2238     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2239     ac_cache_corrupted=:
2240     else
2241     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2242     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2243     eval $ac_var=\$ac_old_val
2244     fi
2245     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2246     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2247     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2248     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2249 michael 5052 fi;;
2250     esac
2251     # Pass precious variables to config.status.
2252     if test "$ac_new_set" = set; then
2253     case $ac_new_val in
2254 michael 5059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2255 michael 5052 *) ac_arg=$ac_var=$ac_new_val ;;
2256     esac
2257     case " $ac_configure_args " in
2258     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2259 michael 5059 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2260 michael 5052 esac
2261     fi
2262     done
2263     if $ac_cache_corrupted; then
2264 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2267     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2268     as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2269 michael 5052 fi
2270 michael 5059 ## -------------------- ##
2271     ## Main body of script. ##
2272     ## -------------------- ##
2273 michael 5052
2274     ac_ext=c
2275     ac_cpp='$CPP $CPPFLAGS'
2276     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279    
2280    
2281    
2282     ac_config_headers="$ac_config_headers src/setup.h"
2283    
2284 michael 5059 am__api_version='1.14'
2285    
2286 michael 5052 ac_aux_dir=
2287     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2288     if test -f "$ac_dir/install-sh"; then
2289     ac_aux_dir=$ac_dir
2290     ac_install_sh="$ac_aux_dir/install-sh -c"
2291     break
2292     elif test -f "$ac_dir/install.sh"; then
2293     ac_aux_dir=$ac_dir
2294     ac_install_sh="$ac_aux_dir/install.sh -c"
2295     break
2296     elif test -f "$ac_dir/shtool"; then
2297     ac_aux_dir=$ac_dir
2298     ac_install_sh="$ac_aux_dir/shtool install -c"
2299     break
2300     fi
2301     done
2302     if test -z "$ac_aux_dir"; then
2303 michael 5059 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2304 michael 5052 fi
2305    
2306     # These three variables are undocumented and unsupported,
2307     # and are intended to be withdrawn in a future Autoconf release.
2308     # They can cause serious problems if a builder's source tree is in a directory
2309     # whose full name contains unusual characters.
2310     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2311     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2312     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2313    
2314    
2315     # Find a good install program. We prefer a C program (faster),
2316     # so one script is as good as another. But avoid the broken or
2317     # incompatible versions:
2318     # SysV /etc/install, /usr/sbin/install
2319     # SunOS /usr/etc/install
2320     # IRIX /sbin/install
2321     # AIX /bin/install
2322     # AmigaOS /C/install, which installs bootblocks on floppy discs
2323     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2324     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2325     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2326     # OS/2's system install, which has a completely different semantic
2327     # ./install, which can be erroneously created by make from ./install.sh.
2328 michael 5059 # Reject install programs that cannot install multiple files.
2329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2330     $as_echo_n "checking for a BSD-compatible install... " >&6; }
2331 michael 5052 if test -z "$INSTALL"; then
2332 michael 5059 if ${ac_cv_path_install+:} false; then :
2333     $as_echo_n "(cached) " >&6
2334 michael 5052 else
2335     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336     for as_dir in $PATH
2337     do
2338     IFS=$as_save_IFS
2339     test -z "$as_dir" && as_dir=.
2340 michael 5059 # Account for people who put trailing slashes in PATH elements.
2341     case $as_dir/ in #((
2342     ./ | .// | /[cC]/* | \
2343 michael 5052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2344 michael 5059 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2345 michael 5052 /usr/ucb/* ) ;;
2346     *)
2347     # OSF1 and SCO ODT 3.0 have their own names for install.
2348     # Don't use installbsd from OSF since it installs stuff as root
2349     # by default.
2350     for ac_prog in ginstall scoinst install; do
2351     for ac_exec_ext in '' $ac_executable_extensions; do
2352 michael 5059 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2353 michael 5052 if test $ac_prog = install &&
2354     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2355     # AIX install. It has an incompatible calling convention.
2356     :
2357     elif test $ac_prog = install &&
2358     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2359     # program-specific install script used by HP pwplus--don't use.
2360     :
2361     else
2362 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2363     echo one > conftest.one
2364     echo two > conftest.two
2365     mkdir conftest.dir
2366     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2367     test -s conftest.one && test -s conftest.two &&
2368     test -s conftest.dir/conftest.one &&
2369     test -s conftest.dir/conftest.two
2370     then
2371     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2372     break 3
2373     fi
2374 michael 5052 fi
2375     fi
2376     done
2377     done
2378     ;;
2379     esac
2380 michael 5059
2381     done
2382 michael 5052 IFS=$as_save_IFS
2383    
2384 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2385 michael 5052
2386     fi
2387     if test "${ac_cv_path_install+set}" = set; then
2388     INSTALL=$ac_cv_path_install
2389     else
2390     # As a last resort, use the slow shell script. Don't cache a
2391     # value for INSTALL within a source directory, because that will
2392     # break other packages using the cache if that directory is
2393     # removed, or if the value is a relative name.
2394     INSTALL=$ac_install_sh
2395     fi
2396     fi
2397 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2398     $as_echo "$INSTALL" >&6; }
2399 michael 5052
2400     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2401     # It thinks the first close brace ends the variable substitution.
2402     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2403    
2404     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2405    
2406     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2407    
2408 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2409     $as_echo_n "checking whether build environment is sane... " >&6; }
2410     # Reject unsafe characters in $srcdir or the absolute working directory
2411     # name. Accept space and tab only in the latter.
2412     am_lf='
2413     '
2414     case `pwd` in
2415     *[\\\"\#\$\&\'\`$am_lf]*)
2416     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2417     esac
2418     case $srcdir in
2419     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2420     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2421     esac
2422    
2423     # Do 'set' in a subshell so we don't clobber the current shell's
2424 michael 5052 # arguments. Must try -L first in case configure is actually a
2425     # symlink; some systems play weird games with the mod time of symlinks
2426     # (eg FreeBSD returns the mod time of the symlink's containing
2427     # directory).
2428     if (
2429 michael 5059 am_has_slept=no
2430     for am_try in 1 2; do
2431     echo "timestamp, slept: $am_has_slept" > conftest.file
2432     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2433     if test "$*" = "X"; then
2434     # -L didn't work.
2435     set X `ls -t "$srcdir/configure" conftest.file`
2436     fi
2437     if test "$*" != "X $srcdir/configure conftest.file" \
2438     && test "$*" != "X conftest.file $srcdir/configure"; then
2439 michael 5052
2440 michael 5059 # If neither matched, then we have a broken ls. This can happen
2441     # if, for instance, CONFIG_SHELL is bash and it inherits a
2442     # broken ls alias from the environment. This has actually
2443     # happened. Such a system could not be considered "sane".
2444     as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2445     alias in your environment" "$LINENO" 5
2446     fi
2447     if test "$2" = conftest.file || test $am_try -eq 2; then
2448     break
2449     fi
2450     # Just in case.
2451     sleep 1
2452     am_has_slept=yes
2453     done
2454 michael 5052 test "$2" = conftest.file
2455     )
2456     then
2457     # Ok.
2458     :
2459     else
2460 michael 5059 as_fn_error $? "newly created file is older than distributed files!
2461     Check your system clock" "$LINENO" 5
2462 michael 5052 fi
2463 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2464     $as_echo "yes" >&6; }
2465     # If we didn't sleep, we still need to ensure time stamps of config.status and
2466     # generated files are strictly newer.
2467     am_sleep_pid=
2468     if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2469     ( sleep 1 ) &
2470     am_sleep_pid=$!
2471     fi
2472    
2473     rm -f conftest.file
2474    
2475 michael 5052 test "$program_prefix" != NONE &&
2476     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2477     # Use a double $ so make ignores it.
2478     test "$program_suffix" != NONE &&
2479     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2480 michael 5059 # Double any \ or $.
2481 michael 5052 # By default was `s,x,x', remove it if useless.
2482 michael 5059 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2483     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2484 michael 5052
2485     # expand $ac_aux_dir to an absolute path
2486     am_aux_dir=`cd $ac_aux_dir && pwd`
2487    
2488 michael 5059 if test x"${MISSING+set}" != xset; then
2489     case $am_aux_dir in
2490     *\ * | *\ *)
2491     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2492     *)
2493     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2494     esac
2495     fi
2496 michael 5052 # Use eval to expand $SHELL
2497 michael 5059 if eval "$MISSING --is-lightweight"; then
2498     am_missing_run="$MISSING "
2499 michael 5052 else
2500     am_missing_run=
2501 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2502     $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2503 michael 5052 fi
2504    
2505 michael 5059 if test x"${install_sh}" != xset; then
2506     case $am_aux_dir in
2507     *\ * | *\ *)
2508     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2509     *)
2510     install_sh="\${SHELL} $am_aux_dir/install-sh"
2511     esac
2512     fi
2513    
2514     # Installed binaries are usually stripped using 'strip' when the user
2515     # run "make install-strip". However 'strip' might not be the right
2516     # tool to use in cross-compilation environments, therefore Automake
2517     # will honor the 'STRIP' environment variable to overrule this program.
2518     if test "$cross_compiling" != no; then
2519     if test -n "$ac_tool_prefix"; then
2520     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2521     set dummy ${ac_tool_prefix}strip; ac_word=$2
2522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523     $as_echo_n "checking for $ac_word... " >&6; }
2524     if ${ac_cv_prog_STRIP+:} false; then :
2525     $as_echo_n "(cached) " >&6
2526 michael 5052 else
2527 michael 5059 if test -n "$STRIP"; then
2528     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2529     else
2530     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531     for as_dir in $PATH
2532     do
2533     IFS=$as_save_IFS
2534     test -z "$as_dir" && as_dir=.
2535     for ac_exec_ext in '' $ac_executable_extensions; do
2536     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540     fi
2541     done
2542 michael 5052 done
2543 michael 5059 IFS=$as_save_IFS
2544    
2545     fi
2546     fi
2547     STRIP=$ac_cv_prog_STRIP
2548     if test -n "$STRIP"; then
2549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2550     $as_echo "$STRIP" >&6; }
2551     else
2552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553     $as_echo "no" >&6; }
2554     fi
2555    
2556    
2557     fi
2558     if test -z "$ac_cv_prog_STRIP"; then
2559     ac_ct_STRIP=$STRIP
2560     # Extract the first word of "strip", so it can be a program name with args.
2561     set dummy strip; ac_word=$2
2562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563     $as_echo_n "checking for $ac_word... " >&6; }
2564     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2565     $as_echo_n "(cached) " >&6
2566     else
2567     if test -n "$ac_ct_STRIP"; then
2568     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2569     else
2570     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571     for as_dir in $PATH
2572     do
2573     IFS=$as_save_IFS
2574     test -z "$as_dir" && as_dir=.
2575     for ac_exec_ext in '' $ac_executable_extensions; do
2576     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577     ac_cv_prog_ac_ct_STRIP="strip"
2578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579     break 2
2580     fi
2581     done
2582     done
2583     IFS=$as_save_IFS
2584    
2585     fi
2586     fi
2587     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2588     if test -n "$ac_ct_STRIP"; then
2589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2590     $as_echo "$ac_ct_STRIP" >&6; }
2591     else
2592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593     $as_echo "no" >&6; }
2594     fi
2595    
2596     if test "x$ac_ct_STRIP" = x; then
2597     STRIP=":"
2598 michael 5052 else
2599 michael 5059 case $cross_compiling:$ac_tool_warned in
2600     yes:)
2601     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2602     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2603     ac_tool_warned=yes ;;
2604     esac
2605     STRIP=$ac_ct_STRIP
2606 michael 5052 fi
2607 michael 5059 else
2608     STRIP="$ac_cv_prog_STRIP"
2609 michael 5052 fi
2610    
2611 michael 5059 fi
2612     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2613    
2614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2615     $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2616     if test -z "$MKDIR_P"; then
2617     if ${ac_cv_path_mkdir+:} false; then :
2618     $as_echo_n "(cached) " >&6
2619     else
2620     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2622     do
2623     IFS=$as_save_IFS
2624     test -z "$as_dir" && as_dir=.
2625     for ac_prog in mkdir gmkdir; do
2626     for ac_exec_ext in '' $ac_executable_extensions; do
2627     as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2628     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2629     'mkdir (GNU coreutils) '* | \
2630     'mkdir (coreutils) '* | \
2631     'mkdir (fileutils) '4.1*)
2632     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2633     break 3;;
2634     esac
2635     done
2636     done
2637     done
2638     IFS=$as_save_IFS
2639    
2640     fi
2641    
2642     test -d ./--version && rmdir ./--version
2643     if test "${ac_cv_path_mkdir+set}" = set; then
2644     MKDIR_P="$ac_cv_path_mkdir -p"
2645     else
2646     # As a last resort, use the slow shell script. Don't cache a
2647     # value for MKDIR_P within a source directory, because that will
2648     # break other packages using the cache if that directory is
2649     # removed, or if the value is a relative name.
2650     MKDIR_P="$ac_install_sh -d"
2651     fi
2652     fi
2653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2654     $as_echo "$MKDIR_P" >&6; }
2655    
2656 michael 5052 for ac_prog in gawk mawk nawk awk
2657     do
2658     # Extract the first word of "$ac_prog", so it can be a program name with args.
2659     set dummy $ac_prog; ac_word=$2
2660 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661     $as_echo_n "checking for $ac_word... " >&6; }
2662     if ${ac_cv_prog_AWK+:} false; then :
2663     $as_echo_n "(cached) " >&6
2664 michael 5052 else
2665     if test -n "$AWK"; then
2666     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2667     else
2668     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669     for as_dir in $PATH
2670     do
2671     IFS=$as_save_IFS
2672     test -z "$as_dir" && as_dir=.
2673 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2674     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 michael 5052 ac_cv_prog_AWK="$ac_prog"
2676 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 michael 5052 break 2
2678     fi
2679     done
2680 michael 5059 done
2681 michael 5052 IFS=$as_save_IFS
2682    
2683     fi
2684     fi
2685     AWK=$ac_cv_prog_AWK
2686     if test -n "$AWK"; then
2687 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2688     $as_echo "$AWK" >&6; }
2689 michael 5052 else
2690 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691     $as_echo "no" >&6; }
2692 michael 5052 fi
2693    
2694    
2695     test -n "$AWK" && break
2696     done
2697    
2698 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2699     $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2700     set x ${MAKE-make}
2701     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2702     if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2703     $as_echo_n "(cached) " >&6
2704 michael 5052 else
2705     cat >conftest.make <<\_ACEOF
2706     SHELL = /bin/sh
2707     all:
2708     @echo '@@@%%%=$(MAKE)=@@@%%%'
2709     _ACEOF
2710 michael 5059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2711 michael 5052 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2712     *@@@%%%=?*=@@@%%%*)
2713     eval ac_cv_prog_make_${ac_make}_set=yes;;
2714     *)
2715     eval ac_cv_prog_make_${ac_make}_set=no;;
2716     esac
2717     rm -f conftest.make
2718     fi
2719     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2720 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721     $as_echo "yes" >&6; }
2722 michael 5052 SET_MAKE=
2723     else
2724 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725     $as_echo "no" >&6; }
2726 michael 5052 SET_MAKE="MAKE=${MAKE-make}"
2727     fi
2728    
2729     rm -rf .tst 2>/dev/null
2730     mkdir .tst 2>/dev/null
2731     if test -d .tst; then
2732     am__leading_dot=.
2733     else
2734     am__leading_dot=_
2735     fi
2736     rmdir .tst 2>/dev/null
2737    
2738 michael 5059 # Check whether --enable-silent-rules was given.
2739     if test "${enable_silent_rules+set}" = set; then :
2740     enableval=$enable_silent_rules;
2741 michael 5052 fi
2742    
2743 michael 5059 case $enable_silent_rules in # (((
2744     yes) AM_DEFAULT_VERBOSITY=0;;
2745     no) AM_DEFAULT_VERBOSITY=1;;
2746     *) AM_DEFAULT_VERBOSITY=1;;
2747     esac
2748     am_make=${MAKE-make}
2749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2750     $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2751     if ${am_cv_make_support_nested_variables+:} false; then :
2752     $as_echo_n "(cached) " >&6
2753     else
2754     if $as_echo 'TRUE=$(BAR$(V))
2755     BAR0=false
2756     BAR1=true
2757     V=1
2758     am__doit:
2759     @$(TRUE)
2760     .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2761     am_cv_make_support_nested_variables=yes
2762     else
2763     am_cv_make_support_nested_variables=no
2764     fi
2765     fi
2766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2767     $as_echo "$am_cv_make_support_nested_variables" >&6; }
2768     if test $am_cv_make_support_nested_variables = yes; then
2769     AM_V='$(V)'
2770     AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2771     else
2772     AM_V=$AM_DEFAULT_VERBOSITY
2773     AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2774     fi
2775     AM_BACKSLASH='\'
2776    
2777     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2778     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2779     # is not polluted with repeated "-I."
2780     am__isrc=' -I$(srcdir)'
2781     # test to see if srcdir already configured
2782     if test -f $srcdir/config.status; then
2783     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2784     fi
2785     fi
2786    
2787 michael 5052 # test whether we have cygpath
2788     if test -z "$CYGPATH_W"; then
2789     if (cygpath --version) >/dev/null 2>/dev/null; then
2790     CYGPATH_W='cygpath -w'
2791     else
2792     CYGPATH_W=echo
2793     fi
2794     fi
2795    
2796    
2797     # Define the identity of the package.
2798 michael 5061 PACKAGE='hopm'
2799     VERSION='1.0.0beta1'
2800 michael 5052
2801    
2802     cat >>confdefs.h <<_ACEOF
2803     #define PACKAGE "$PACKAGE"
2804     _ACEOF
2805    
2806    
2807     cat >>confdefs.h <<_ACEOF
2808     #define VERSION "$VERSION"
2809     _ACEOF
2810    
2811     # Some tools Automake needs.
2812    
2813     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2814    
2815    
2816     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2817    
2818    
2819     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2820    
2821    
2822     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2823    
2824    
2825     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2826    
2827 michael 5059 # For better backward compatibility. To be removed once Automake 1.9.x
2828     # dies out for good. For more background, see:
2829     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2830     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2831     mkdir_p='$(MKDIR_P)'
2832 michael 5052
2833 michael 5059 # We need awk for the "check" target. The system "awk" is bad on
2834     # some platforms.
2835     # Always define AMTAR for backward compatibility. Yes, it's still used
2836     # in the wild :-( We should find a proper way to deprecate it ...
2837     AMTAR='$${TAR-tar}'
2838 michael 5052
2839    
2840 michael 5059 # We'll loop over all known methods to create a tar archive until one works.
2841     _am_tools='gnutar pax cpio none'
2842 michael 5052
2843 michael 5059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2844 michael 5052
2845    
2846    
2847    
2848    
2849    
2850 michael 5059 # POSIX will say in a future version that running "rm -f" with no argument
2851     # is OK; and we want to be able to make that assumption in our Makefile
2852     # recipes. So use an aggressive probe to check that the usage we want is
2853     # actually supported "in the wild" to an acceptable degree.
2854     # See automake bug#10828.
2855     # To make any issue more visible, cause the running configure to be aborted
2856     # by default if the 'rm' program in use doesn't match our expectations; the
2857     # user can still override this though.
2858     if rm -f && rm -fr && rm -rf; then : OK; else
2859     cat >&2 <<'END'
2860     Oops!
2861 michael 5052
2862 michael 5059 Your 'rm' program seems unable to run without file operands specified
2863     on the command line, even when the '-f' option is present. This is contrary
2864     to the behaviour of most rm programs out there, and not conforming with
2865     the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2866 michael 5052
2867 michael 5059 Please tell bug-automake@gnu.org about your system, including the value
2868     of your $PATH and any error possibly output before this message. This
2869     can help us improve future automake versions.
2870 michael 5052
2871 michael 5059 END
2872     if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2873     echo 'Configuration will proceed anyway, since you have set the' >&2
2874     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2875     echo >&2
2876     else
2877     cat >&2 <<'END'
2878     Aborting the configuration process, to ensure you take notice of the issue.
2879 michael 5052
2880 michael 5059 You can download and install GNU coreutils to get an 'rm' implementation
2881     that behaves properly: <http://www.gnu.org/software/coreutils/>.
2882 michael 5052
2883 michael 5059 If you want to complete the configuration process using your problematic
2884     'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2885     to "yes", and re-run configure.
2886 michael 5052
2887 michael 5059 END
2888     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2889     fi
2890     fi
2891    
2892    
2893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2894     $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2895 michael 5052 # Check whether --enable-maintainer-mode was given.
2896 michael 5059 if test "${enable_maintainer_mode+set}" = set; then :
2897 michael 5052 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2898     else
2899     USE_MAINTAINER_MODE=no
2900     fi
2901    
2902 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2903     $as_echo "$USE_MAINTAINER_MODE" >&6; }
2904     if test $USE_MAINTAINER_MODE = yes; then
2905 michael 5052 MAINTAINER_MODE_TRUE=
2906     MAINTAINER_MODE_FALSE='#'
2907     else
2908     MAINTAINER_MODE_TRUE='#'
2909     MAINTAINER_MODE_FALSE=
2910     fi
2911    
2912     MAINT=$MAINTAINER_MODE_TRUE
2913    
2914    
2915    
2916    
2917     # Check whether --with-extra-fascism was given.
2918 michael 5059 if test "${with_extra_fascism+set}" = set; then :
2919 michael 5052 withval=$with_extra_fascism; CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
2920     fi
2921    
2922    
2923    
2924    
2925    
2926 michael 5059 DEPDIR="${am__leading_dot}deps"
2927    
2928     ac_config_commands="$ac_config_commands depfiles"
2929    
2930    
2931     am_make=${MAKE-make}
2932     cat > confinc << 'END'
2933     am__doit:
2934     @echo this is the am__doit target
2935     .PHONY: am__doit
2936     END
2937     # If we don't find an include directive, just comment out the code.
2938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2939     $as_echo_n "checking for style of include used by $am_make... " >&6; }
2940     am__include="#"
2941     am__quote=
2942     _am_result=none
2943     # First try GNU make style include.
2944     echo "include confinc" > confmf
2945     # Ignore all kinds of additional output from 'make'.
2946     case `$am_make -s -f confmf 2> /dev/null` in #(
2947     *the\ am__doit\ target*)
2948     am__include=include
2949     am__quote=
2950     _am_result=GNU
2951     ;;
2952     esac
2953     # Now try BSD make style include.
2954     if test "$am__include" = "#"; then
2955     echo '.include "confinc"' > confmf
2956     case `$am_make -s -f confmf 2> /dev/null` in #(
2957     *the\ am__doit\ target*)
2958     am__include=.include
2959     am__quote="\""
2960     _am_result=BSD
2961     ;;
2962     esac
2963     fi
2964    
2965    
2966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2967     $as_echo "$_am_result" >&6; }
2968     rm -f confinc confmf
2969    
2970     # Check whether --enable-dependency-tracking was given.
2971     if test "${enable_dependency_tracking+set}" = set; then :
2972     enableval=$enable_dependency_tracking;
2973     fi
2974    
2975     if test "x$enable_dependency_tracking" != xno; then
2976     am_depcomp="$ac_aux_dir/depcomp"
2977     AMDEPBACKSLASH='\'
2978     am__nodep='_no'
2979     fi
2980     if test "x$enable_dependency_tracking" != xno; then
2981     AMDEP_TRUE=
2982     AMDEP_FALSE='#'
2983     else
2984     AMDEP_TRUE='#'
2985     AMDEP_FALSE=
2986     fi
2987    
2988    
2989 michael 5052 ac_ext=c
2990     ac_cpp='$CPP $CPPFLAGS'
2991     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994     if test -n "$ac_tool_prefix"; then
2995     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2996     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2997 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998     $as_echo_n "checking for $ac_word... " >&6; }
2999     if ${ac_cv_prog_CC+:} false; then :
3000     $as_echo_n "(cached) " >&6
3001 michael 5052 else
3002     if test -n "$CC"; then
3003     ac_cv_prog_CC="$CC" # Let the user override the test.
3004     else
3005     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006     for as_dir in $PATH
3007     do
3008     IFS=$as_save_IFS
3009     test -z "$as_dir" && as_dir=.
3010 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3011     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3013 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 michael 5052 break 2
3015     fi
3016     done
3017 michael 5059 done
3018 michael 5052 IFS=$as_save_IFS
3019    
3020     fi
3021     fi
3022     CC=$ac_cv_prog_CC
3023     if test -n "$CC"; then
3024 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025     $as_echo "$CC" >&6; }
3026 michael 5052 else
3027 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028     $as_echo "no" >&6; }
3029 michael 5052 fi
3030    
3031    
3032     fi
3033     if test -z "$ac_cv_prog_CC"; then
3034     ac_ct_CC=$CC
3035     # Extract the first word of "gcc", so it can be a program name with args.
3036     set dummy gcc; ac_word=$2
3037 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038     $as_echo_n "checking for $ac_word... " >&6; }
3039     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3040     $as_echo_n "(cached) " >&6
3041 michael 5052 else
3042     if test -n "$ac_ct_CC"; then
3043     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044     else
3045     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046     for as_dir in $PATH
3047     do
3048     IFS=$as_save_IFS
3049     test -z "$as_dir" && as_dir=.
3050 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3051     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 michael 5052 ac_cv_prog_ac_ct_CC="gcc"
3053 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 michael 5052 break 2
3055     fi
3056     done
3057 michael 5059 done
3058 michael 5052 IFS=$as_save_IFS
3059    
3060     fi
3061     fi
3062     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063     if test -n "$ac_ct_CC"; then
3064 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065     $as_echo "$ac_ct_CC" >&6; }
3066 michael 5052 else
3067 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068     $as_echo "no" >&6; }
3069 michael 5052 fi
3070    
3071     if test "x$ac_ct_CC" = x; then
3072     CC=""
3073     else
3074     case $cross_compiling:$ac_tool_warned in
3075     yes:)
3076 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 michael 5052 ac_tool_warned=yes ;;
3079     esac
3080     CC=$ac_ct_CC
3081     fi
3082     else
3083     CC="$ac_cv_prog_CC"
3084     fi
3085    
3086     if test -z "$CC"; then
3087     if test -n "$ac_tool_prefix"; then
3088     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3089     set dummy ${ac_tool_prefix}cc; ac_word=$2
3090 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091     $as_echo_n "checking for $ac_word... " >&6; }
3092     if ${ac_cv_prog_CC+:} false; then :
3093     $as_echo_n "(cached) " >&6
3094 michael 5052 else
3095     if test -n "$CC"; then
3096     ac_cv_prog_CC="$CC" # Let the user override the test.
3097     else
3098     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099     for as_dir in $PATH
3100     do
3101     IFS=$as_save_IFS
3102     test -z "$as_dir" && as_dir=.
3103 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3104     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}cc"
3106 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 michael 5052 break 2
3108     fi
3109     done
3110 michael 5059 done
3111 michael 5052 IFS=$as_save_IFS
3112    
3113     fi
3114     fi
3115     CC=$ac_cv_prog_CC
3116     if test -n "$CC"; then
3117 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118     $as_echo "$CC" >&6; }
3119 michael 5052 else
3120 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121     $as_echo "no" >&6; }
3122 michael 5052 fi
3123    
3124    
3125     fi
3126     fi
3127     if test -z "$CC"; then
3128     # Extract the first word of "cc", so it can be a program name with args.
3129     set dummy cc; ac_word=$2
3130 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131     $as_echo_n "checking for $ac_word... " >&6; }
3132     if ${ac_cv_prog_CC+:} false; then :
3133     $as_echo_n "(cached) " >&6
3134 michael 5052 else
3135     if test -n "$CC"; then
3136     ac_cv_prog_CC="$CC" # Let the user override the test.
3137     else
3138     ac_prog_rejected=no
3139     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140     for as_dir in $PATH
3141     do
3142     IFS=$as_save_IFS
3143     test -z "$as_dir" && as_dir=.
3144 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3145     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 michael 5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147     ac_prog_rejected=yes
3148     continue
3149     fi
3150     ac_cv_prog_CC="cc"
3151 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 michael 5052 break 2
3153     fi
3154     done
3155 michael 5059 done
3156 michael 5052 IFS=$as_save_IFS
3157    
3158     if test $ac_prog_rejected = yes; then
3159     # We found a bogon in the path, so make sure we never use it.
3160     set dummy $ac_cv_prog_CC
3161     shift
3162     if test $# != 0; then
3163     # We chose a different compiler from the bogus one.
3164     # However, it has the same basename, so the bogon will be chosen
3165     # first if we set CC to just the basename; use the full file name.
3166     shift
3167     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3168     fi
3169     fi
3170     fi
3171     fi
3172     CC=$ac_cv_prog_CC
3173     if test -n "$CC"; then
3174 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175     $as_echo "$CC" >&6; }
3176 michael 5052 else
3177 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178     $as_echo "no" >&6; }
3179 michael 5052 fi
3180    
3181    
3182     fi
3183     if test -z "$CC"; then
3184     if test -n "$ac_tool_prefix"; then
3185     for ac_prog in cl.exe
3186     do
3187     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3189 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190     $as_echo_n "checking for $ac_word... " >&6; }
3191     if ${ac_cv_prog_CC+:} false; then :
3192     $as_echo_n "(cached) " >&6
3193 michael 5052 else
3194     if test -n "$CC"; then
3195     ac_cv_prog_CC="$CC" # Let the user override the test.
3196     else
3197     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198     for as_dir in $PATH
3199     do
3200     IFS=$as_save_IFS
3201     test -z "$as_dir" && as_dir=.
3202 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3203     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 michael 5052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3205 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 michael 5052 break 2
3207     fi
3208     done
3209 michael 5059 done
3210 michael 5052 IFS=$as_save_IFS
3211    
3212     fi
3213     fi
3214     CC=$ac_cv_prog_CC
3215     if test -n "$CC"; then
3216 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217     $as_echo "$CC" >&6; }
3218 michael 5052 else
3219 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220     $as_echo "no" >&6; }
3221 michael 5052 fi
3222    
3223    
3224     test -n "$CC" && break
3225     done
3226     fi
3227     if test -z "$CC"; then
3228     ac_ct_CC=$CC
3229     for ac_prog in cl.exe
3230     do
3231     # Extract the first word of "$ac_prog", so it can be a program name with args.
3232     set dummy $ac_prog; ac_word=$2
3233 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234     $as_echo_n "checking for $ac_word... " >&6; }
3235     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3236     $as_echo_n "(cached) " >&6
3237 michael 5052 else
3238     if test -n "$ac_ct_CC"; then
3239     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240     else
3241     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242     for as_dir in $PATH
3243     do
3244     IFS=$as_save_IFS
3245     test -z "$as_dir" && as_dir=.
3246 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3247     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 michael 5052 ac_cv_prog_ac_ct_CC="$ac_prog"
3249 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 michael 5052 break 2
3251     fi
3252     done
3253 michael 5059 done
3254 michael 5052 IFS=$as_save_IFS
3255    
3256     fi
3257     fi
3258     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259     if test -n "$ac_ct_CC"; then
3260 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3261     $as_echo "$ac_ct_CC" >&6; }
3262 michael 5052 else
3263 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264     $as_echo "no" >&6; }
3265 michael 5052 fi
3266    
3267    
3268     test -n "$ac_ct_CC" && break
3269     done
3270    
3271     if test "x$ac_ct_CC" = x; then
3272     CC=""
3273     else
3274     case $cross_compiling:$ac_tool_warned in
3275     yes:)
3276 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278 michael 5052 ac_tool_warned=yes ;;
3279     esac
3280     CC=$ac_ct_CC
3281     fi
3282     fi
3283    
3284     fi
3285    
3286    
3287 michael 5059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289     as_fn_error $? "no acceptable C compiler found in \$PATH
3290     See \`config.log' for more details" "$LINENO" 5; }
3291 michael 5052
3292     # Provide some information about the compiler.
3293 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3294     set X $ac_compile
3295     ac_compiler=$2
3296     for ac_option in --version -v -V -qversion; do
3297     { { ac_try="$ac_compiler $ac_option >&5"
3298 michael 5052 case "(($ac_try" in
3299     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300     *) ac_try_echo=$ac_try;;
3301     esac
3302 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303     $as_echo "$ac_try_echo"; } >&5
3304     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3305 michael 5052 ac_status=$?
3306 michael 5059 if test -s conftest.err; then
3307     sed '10a\
3308     ... rest of stderr output deleted ...
3309     10q' conftest.err >conftest.er1
3310     cat conftest.er1 >&5
3311     fi
3312     rm -f conftest.er1 conftest.err
3313     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314     test $ac_status = 0; }
3315     done
3316 michael 5052
3317 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 michael 5052 /* end confdefs.h. */
3319    
3320     int
3321     main ()
3322     {
3323    
3324     ;
3325     return 0;
3326     }
3327     _ACEOF
3328     ac_clean_files_save=$ac_clean_files
3329 michael 5059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3330 michael 5052 # Try to create an executable without -o first, disregard a.out.
3331     # It will help us diagnose broken compilers, and finding out an intuition
3332     # of exeext.
3333 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3334     $as_echo_n "checking whether the C compiler works... " >&6; }
3335     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3336    
3337     # The possible output files:
3338     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3339    
3340 michael 5052 ac_rmfiles=
3341     for ac_file in $ac_files
3342     do
3343     case $ac_file in
3344 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 michael 5052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3346     esac
3347     done
3348     rm -f $ac_rmfiles
3349    
3350 michael 5059 if { { ac_try="$ac_link_default"
3351 michael 5052 case "(($ac_try" in
3352     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353     *) ac_try_echo=$ac_try;;
3354     esac
3355 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356     $as_echo "$ac_try_echo"; } >&5
3357 michael 5052 (eval "$ac_link_default") 2>&5
3358     ac_status=$?
3359 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360     test $ac_status = 0; }; then :
3361 michael 5052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3362     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3363     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3364     # so that the user can short-circuit this test for compilers unknown to
3365     # Autoconf.
3366 michael 5059 for ac_file in $ac_files ''
3367 michael 5052 do
3368     test -f "$ac_file" || continue
3369     case $ac_file in
3370 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3371 michael 5052 ;;
3372     [ab].out )
3373     # We found the default executable, but exeext='' is most
3374     # certainly right.
3375     break;;
3376     *.* )
3377 michael 5059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3378 michael 5052 then :; else
3379     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380     fi
3381     # We set ac_cv_exeext here because the later test for it is not
3382     # safe: cross compilers may not add the suffix if given an `-o'
3383     # argument, so we may need to know it at that point already.
3384     # Even if this section looks crufty: it has the advantage of
3385     # actually working.
3386     break;;
3387     * )
3388     break;;
3389     esac
3390     done
3391     test "$ac_cv_exeext" = no && ac_cv_exeext=
3392    
3393     else
3394 michael 5059 ac_file=''
3395     fi
3396     if test -z "$ac_file"; then :
3397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398     $as_echo "no" >&6; }
3399     $as_echo "$as_me: failed program was:" >&5
3400 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3401    
3402 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404     as_fn_error 77 "C compiler cannot create executables
3405     See \`config.log' for more details" "$LINENO" 5; }
3406     else
3407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408     $as_echo "yes" >&6; }
3409 michael 5052 fi
3410 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3411     $as_echo_n "checking for C compiler default output file name... " >&6; }
3412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3413     $as_echo "$ac_file" >&6; }
3414 michael 5052 ac_exeext=$ac_cv_exeext
3415    
3416 michael 5059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 michael 5052 ac_clean_files=$ac_clean_files_save
3418 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3419     $as_echo_n "checking for suffix of executables... " >&6; }
3420     if { { ac_try="$ac_link"
3421 michael 5052 case "(($ac_try" in
3422     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423     *) ac_try_echo=$ac_try;;
3424     esac
3425 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426     $as_echo "$ac_try_echo"; } >&5
3427 michael 5052 (eval "$ac_link") 2>&5
3428     ac_status=$?
3429 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430     test $ac_status = 0; }; then :
3431 michael 5052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3432     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3433     # work properly (i.e., refer to `conftest.exe'), while it won't with
3434     # `rm'.
3435     for ac_file in conftest.exe conftest conftest.*; do
3436     test -f "$ac_file" || continue
3437     case $ac_file in
3438 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3439 michael 5052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440     break;;
3441     * ) break;;
3442     esac
3443     done
3444     else
3445 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447     as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3448     See \`config.log' for more details" "$LINENO" 5; }
3449 michael 5052 fi
3450 michael 5059 rm -f conftest conftest$ac_cv_exeext
3451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3452     $as_echo "$ac_cv_exeext" >&6; }
3453 michael 5052
3454     rm -f conftest.$ac_ext
3455     EXEEXT=$ac_cv_exeext
3456     ac_exeext=$EXEEXT
3457 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458     /* end confdefs.h. */
3459     #include <stdio.h>
3460     int
3461     main ()
3462     {
3463     FILE *f = fopen ("conftest.out", "w");
3464     return ferror (f) || fclose (f) != 0;
3465    
3466     ;
3467     return 0;
3468     }
3469     _ACEOF
3470     ac_clean_files="$ac_clean_files conftest.out"
3471     # Check that the compiler produces executables we can run. If not, either
3472     # the compiler is broken, or we cross compile.
3473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3474     $as_echo_n "checking whether we are cross compiling... " >&6; }
3475     if test "$cross_compiling" != yes; then
3476     { { ac_try="$ac_link"
3477     case "(($ac_try" in
3478     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479     *) ac_try_echo=$ac_try;;
3480     esac
3481     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482     $as_echo "$ac_try_echo"; } >&5
3483     (eval "$ac_link") 2>&5
3484     ac_status=$?
3485     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486     test $ac_status = 0; }
3487     if { ac_try='./conftest$ac_cv_exeext'
3488     { { case "(($ac_try" in
3489     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490     *) ac_try_echo=$ac_try;;
3491     esac
3492     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493     $as_echo "$ac_try_echo"; } >&5
3494     (eval "$ac_try") 2>&5
3495     ac_status=$?
3496     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497     test $ac_status = 0; }; }; then
3498     cross_compiling=no
3499     else
3500     if test "$cross_compiling" = maybe; then
3501     cross_compiling=yes
3502     else
3503     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505     as_fn_error $? "cannot run C compiled programs.
3506     If you meant to cross compile, use \`--host'.
3507     See \`config.log' for more details" "$LINENO" 5; }
3508     fi
3509     fi
3510     fi
3511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3512     $as_echo "$cross_compiling" >&6; }
3513    
3514     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3515     ac_clean_files=$ac_clean_files_save
3516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3517     $as_echo_n "checking for suffix of object files... " >&6; }
3518     if ${ac_cv_objext+:} false; then :
3519     $as_echo_n "(cached) " >&6
3520 michael 5052 else
3521 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 michael 5052 /* end confdefs.h. */
3523    
3524     int
3525     main ()
3526     {
3527    
3528     ;
3529     return 0;
3530     }
3531     _ACEOF
3532     rm -f conftest.o conftest.obj
3533 michael 5059 if { { ac_try="$ac_compile"
3534 michael 5052 case "(($ac_try" in
3535     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536     *) ac_try_echo=$ac_try;;
3537     esac
3538 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539     $as_echo "$ac_try_echo"; } >&5
3540 michael 5052 (eval "$ac_compile") 2>&5
3541     ac_status=$?
3542 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543     test $ac_status = 0; }; then :
3544 michael 5052 for ac_file in conftest.o conftest.obj conftest.*; do
3545     test -f "$ac_file" || continue;
3546     case $ac_file in
3547 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3548 michael 5052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3549     break;;
3550     esac
3551     done
3552     else
3553 michael 5059 $as_echo "$as_me: failed program was:" >&5
3554 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3555    
3556 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558     as_fn_error $? "cannot compute suffix of object files: cannot compile
3559     See \`config.log' for more details" "$LINENO" 5; }
3560 michael 5052 fi
3561     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3562     fi
3563 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3564     $as_echo "$ac_cv_objext" >&6; }
3565 michael 5052 OBJEXT=$ac_cv_objext
3566     ac_objext=$OBJEXT
3567 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3568     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3569     if ${ac_cv_c_compiler_gnu+:} false; then :
3570     $as_echo_n "(cached) " >&6
3571 michael 5052 else
3572 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 michael 5052 /* end confdefs.h. */
3574    
3575     int
3576     main ()
3577     {
3578     #ifndef __GNUC__
3579     choke me
3580     #endif
3581    
3582     ;
3583     return 0;
3584     }
3585     _ACEOF
3586 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3587 michael 5052 ac_compiler_gnu=yes
3588     else
3589 michael 5059 ac_compiler_gnu=no
3590 michael 5052 fi
3591     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3593    
3594     fi
3595 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3596     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3597     if test $ac_compiler_gnu = yes; then
3598     GCC=yes
3599     else
3600     GCC=
3601     fi
3602 michael 5052 ac_test_CFLAGS=${CFLAGS+set}
3603     ac_save_CFLAGS=$CFLAGS
3604 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3605     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3606     if ${ac_cv_prog_cc_g+:} false; then :
3607     $as_echo_n "(cached) " >&6
3608 michael 5052 else
3609     ac_save_c_werror_flag=$ac_c_werror_flag
3610     ac_c_werror_flag=yes
3611     ac_cv_prog_cc_g=no
3612     CFLAGS="-g"
3613 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 michael 5052 /* end confdefs.h. */
3615    
3616     int
3617     main ()
3618     {
3619    
3620     ;
3621     return 0;
3622     }
3623     _ACEOF
3624 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3625 michael 5052 ac_cv_prog_cc_g=yes
3626     else
3627 michael 5059 CFLAGS=""
3628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 michael 5052 /* end confdefs.h. */
3630    
3631     int
3632     main ()
3633     {
3634    
3635     ;
3636     return 0;
3637     }
3638     _ACEOF
3639 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3640    
3641 michael 5052 else
3642 michael 5059 ac_c_werror_flag=$ac_save_c_werror_flag
3643 michael 5052 CFLAGS="-g"
3644 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 michael 5052 /* end confdefs.h. */
3646    
3647     int
3648     main ()
3649     {
3650    
3651     ;
3652     return 0;
3653     }
3654     _ACEOF
3655 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3656 michael 5052 ac_cv_prog_cc_g=yes
3657     fi
3658     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659     fi
3660     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661     fi
3662     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663     ac_c_werror_flag=$ac_save_c_werror_flag
3664     fi
3665 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3666     $as_echo "$ac_cv_prog_cc_g" >&6; }
3667 michael 5052 if test "$ac_test_CFLAGS" = set; then
3668     CFLAGS=$ac_save_CFLAGS
3669     elif test $ac_cv_prog_cc_g = yes; then
3670     if test "$GCC" = yes; then
3671     CFLAGS="-g -O2"
3672     else
3673     CFLAGS="-g"
3674     fi
3675     else
3676     if test "$GCC" = yes; then
3677     CFLAGS="-O2"
3678     else
3679     CFLAGS=
3680     fi
3681     fi
3682 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3683     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3684     if ${ac_cv_prog_cc_c89+:} false; then :
3685     $as_echo_n "(cached) " >&6
3686 michael 5052 else
3687     ac_cv_prog_cc_c89=no
3688     ac_save_CC=$CC
3689 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 michael 5052 /* end confdefs.h. */
3691     #include <stdarg.h>
3692     #include <stdio.h>
3693 michael 5059 struct stat;
3694 michael 5052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3695     struct buf { int x; };
3696     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3697     static char *e (p, i)
3698     char **p;
3699     int i;
3700     {
3701     return p[i];
3702     }
3703     static char *f (char * (*g) (char **, int), char **p, ...)
3704     {
3705     char *s;
3706     va_list v;
3707     va_start (v,p);
3708     s = g (p, va_arg (v,int));
3709     va_end (v);
3710     return s;
3711     }
3712    
3713     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3714     function prototypes and stuff, but not '\xHH' hex character constants.
3715     These don't provoke an error unfortunately, instead are silently treated
3716     as 'x'. The following induces an error, until -std is added to get
3717     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3718     array size at least. It's necessary to write '\x00'==0 to get something
3719     that's true only with -std. */
3720     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3721    
3722     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3723     inside strings and character constants. */
3724     #define FOO(x) 'x'
3725     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3726    
3727     int test (int i, double x);
3728     struct s1 {int (*f) (int a);};
3729     struct s2 {int (*f) (double a);};
3730     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3731     int argc;
3732     char **argv;
3733     int
3734     main ()
3735     {
3736     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3737     ;
3738     return 0;
3739     }
3740     _ACEOF
3741     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3742     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3743     do
3744     CC="$ac_save_CC $ac_arg"
3745 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3746 michael 5052 ac_cv_prog_cc_c89=$ac_arg
3747     fi
3748     rm -f core conftest.err conftest.$ac_objext
3749     test "x$ac_cv_prog_cc_c89" != "xno" && break
3750     done
3751     rm -f conftest.$ac_ext
3752     CC=$ac_save_CC
3753    
3754     fi
3755     # AC_CACHE_VAL
3756     case "x$ac_cv_prog_cc_c89" in
3757     x)
3758 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3759     $as_echo "none needed" >&6; } ;;
3760 michael 5052 xno)
3761 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3762     $as_echo "unsupported" >&6; } ;;
3763 michael 5052 *)
3764     CC="$CC $ac_cv_prog_cc_c89"
3765 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3766     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3767 michael 5052 esac
3768 michael 5059 if test "x$ac_cv_prog_cc_c89" != xno; then :
3769 michael 5052
3770 michael 5059 fi
3771 michael 5052
3772     ac_ext=c
3773     ac_cpp='$CPP $CPPFLAGS'
3774     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777    
3778 michael 5059 ac_ext=c
3779     ac_cpp='$CPP $CPPFLAGS'
3780     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3784     $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3785     if ${am_cv_prog_cc_c_o+:} false; then :
3786     $as_echo_n "(cached) " >&6
3787     else
3788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789     /* end confdefs.h. */
3790 michael 5052
3791 michael 5059 int
3792     main ()
3793     {
3794 michael 5052
3795 michael 5059 ;
3796     return 0;
3797     }
3798     _ACEOF
3799     # Make sure it works both with $CC and with simple cc.
3800     # Following AC_PROG_CC_C_O, we do the test twice because some
3801     # compilers refuse to overwrite an existing .o file with -o,
3802     # though they will create one.
3803     am_cv_prog_cc_c_o=yes
3804     for am_i in 1 2; do
3805     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3806     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3807     ac_status=$?
3808     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809     (exit $ac_status); } \
3810     && test -f conftest2.$ac_objext; then
3811     : OK
3812     else
3813     am_cv_prog_cc_c_o=no
3814     break
3815     fi
3816     done
3817     rm -f core conftest*
3818     unset am_i
3819 michael 5052 fi
3820 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3821     $as_echo "$am_cv_prog_cc_c_o" >&6; }
3822     if test "$am_cv_prog_cc_c_o" != yes; then
3823     # Losing compiler, so override with the script.
3824     # FIXME: It is wrong to rewrite CC.
3825     # But if we don't then we get into trouble of one sort or another.
3826     # A longer-term fix would be to have automake use am__CC in this case,
3827     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3828     CC="$am_aux_dir/compile $CC"
3829 michael 5052 fi
3830 michael 5059 ac_ext=c
3831     ac_cpp='$CPP $CPPFLAGS'
3832     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 michael 5052
3836    
3837     depcc="$CC" am_compiler_list=
3838    
3839 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3840     $as_echo_n "checking dependency style of $depcc... " >&6; }
3841     if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3842     $as_echo_n "(cached) " >&6
3843 michael 5052 else
3844     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3845     # We make a subdir and do the tests there. Otherwise we can end up
3846     # making bogus files that we don't know about and never remove. For
3847     # instance it was reported that on HP-UX the gcc test will end up
3848 michael 5059 # making a dummy file named 'D' -- because '-MD' means "put the output
3849     # in D".
3850     rm -rf conftest.dir
3851 michael 5052 mkdir conftest.dir
3852     # Copy depcomp to subdir because otherwise we won't find it if we're
3853     # using a relative directory.
3854     cp "$am_depcomp" conftest.dir
3855     cd conftest.dir
3856     # We will build objects and dependencies in a subdirectory because
3857     # it helps to detect inapplicable dependency modes. For instance
3858     # both Tru64's cc and ICC support -MD to output dependencies as a
3859     # side effect of compilation, but ICC will put the dependencies in
3860     # the current directory while Tru64 will put them in the object
3861     # directory.
3862     mkdir sub
3863    
3864     am_cv_CC_dependencies_compiler_type=none
3865     if test "$am_compiler_list" = ""; then
3866     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3867     fi
3868 michael 5059 am__universal=false
3869     case " $depcc " in #(
3870     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3871     esac
3872    
3873 michael 5052 for depmode in $am_compiler_list; do
3874     # Setup a source with many dependencies, because some compilers
3875     # like to wrap large dependency lists on column 80 (with \), and
3876     # we should not choose a depcomp mode which is confused by this.
3877     #
3878     # We need to recreate these files for each test, as the compiler may
3879     # overwrite some of them when testing with obscure command lines.
3880     # This happens at least with the AIX C compiler.
3881     : > sub/conftest.c
3882     for i in 1 2 3 4 5 6; do
3883     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3884 michael 5059 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3885     # Solaris 10 /bin/sh.
3886     echo '/* dummy */' > sub/conftst$i.h
3887 michael 5052 done
3888     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3889    
3890 michael 5059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3891     # mode. It turns out that the SunPro C++ compiler does not properly
3892     # handle '-M -o', and we need to detect this. Also, some Intel
3893     # versions had trouble with output in subdirs.
3894     am__obj=sub/conftest.${OBJEXT-o}
3895     am__minus_obj="-o $am__obj"
3896 michael 5052 case $depmode in
3897 michael 5059 gcc)
3898     # This depmode causes a compiler race in universal mode.
3899     test "$am__universal" = false || continue
3900     ;;
3901 michael 5052 nosideeffect)
3902 michael 5059 # After this tag, mechanisms are not by side-effect, so they'll
3903     # only be used when explicitly requested.
3904 michael 5052 if test "x$enable_dependency_tracking" = xyes; then
3905     continue
3906     else
3907     break
3908     fi
3909     ;;
3910 michael 5059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3911     # This compiler won't grok '-c -o', but also, the minuso test has
3912     # not run yet. These depmodes are late enough in the game, and
3913     # so weak that their functioning should not be impacted.
3914     am__obj=conftest.${OBJEXT-o}
3915     am__minus_obj=
3916     ;;
3917 michael 5052 none) break ;;
3918     esac
3919     if depmode=$depmode \
3920 michael 5059 source=sub/conftest.c object=$am__obj \
3921 michael 5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3922 michael 5059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3923 michael 5052 >/dev/null 2>conftest.err &&
3924 michael 5059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3925 michael 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3926 michael 5059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3927 michael 5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3928     # icc doesn't choke on unknown options, it will just issue warnings
3929     # or remarks (even with -Werror). So we grep stderr for any message
3930     # that says an option was ignored or not supported.
3931     # When given -MP, icc 7.0 and 7.1 complain thusly:
3932     # icc: Command line warning: ignoring option '-M'; no argument required
3933     # The diagnosis changed in icc 8.0:
3934     # icc: Command line remark: option '-MP' not supported
3935     if (grep 'ignoring option' conftest.err ||
3936     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3937     am_cv_CC_dependencies_compiler_type=$depmode
3938     break
3939     fi
3940     fi
3941     done
3942    
3943     cd ..
3944     rm -rf conftest.dir
3945     else
3946     am_cv_CC_dependencies_compiler_type=none
3947     fi
3948    
3949     fi
3950 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3951     $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3952 michael 5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3953    
3954 michael 5059 if
3955 michael 5052 test "x$enable_dependency_tracking" != xno \
3956     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3957     am__fastdepCC_TRUE=
3958     am__fastdepCC_FALSE='#'
3959     else
3960     am__fastdepCC_TRUE='#'
3961     am__fastdepCC_FALSE=
3962     fi
3963    
3964    
3965 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3966     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3967     if ${ac_cv_prog_cc_c99+:} false; then :
3968     $as_echo_n "(cached) " >&6
3969 michael 5052 else
3970 michael 5059 ac_cv_prog_cc_c99=no
3971     ac_save_CC=$CC
3972     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973     /* end confdefs.h. */
3974     #include <stdarg.h>
3975     #include <stdbool.h>
3976     #include <stdlib.h>
3977     #include <wchar.h>
3978     #include <stdio.h>
3979    
3980     // Check varargs macros. These examples are taken from C99 6.10.3.5.
3981     #define debug(...) fprintf (stderr, __VA_ARGS__)
3982     #define showlist(...) puts (#__VA_ARGS__)
3983     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3984     static void
3985     test_varargs_macros (void)
3986     {
3987     int x = 1234;
3988     int y = 5678;
3989     debug ("Flag");
3990     debug ("X = %d\n", x);
3991     showlist (The first, second, and third items.);
3992     report (x>y, "x is %d but y is %d", x, y);
3993     }
3994    
3995     // Check long long types.
3996     #define BIG64 18446744073709551615ull
3997     #define BIG32 4294967295ul
3998     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3999     #if !BIG_OK
4000     your preprocessor is broken;
4001     #endif
4002     #if BIG_OK
4003     #else
4004     your preprocessor is broken;
4005     #endif
4006     static long long int bignum = -9223372036854775807LL;
4007     static unsigned long long int ubignum = BIG64;
4008    
4009     struct incomplete_array
4010     {
4011     int datasize;
4012     double data[];
4013     };
4014    
4015     struct named_init {
4016     int number;
4017     const wchar_t *name;
4018     double average;
4019     };
4020    
4021     typedef const char *ccp;
4022    
4023     static inline int
4024     test_restrict (ccp restrict text)
4025     {
4026     // See if C++-style comments work.
4027     // Iterate through items via the restricted pointer.
4028     // Also check for declarations in for loops.
4029     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4030     continue;
4031     return 0;
4032     }
4033    
4034     // Check varargs and va_copy.
4035     static void
4036     test_varargs (const char *format, ...)
4037     {
4038     va_list args;
4039     va_start (args, format);
4040     va_list args_copy;
4041     va_copy (args_copy, args);
4042    
4043     const char *str;
4044     int number;
4045     float fnumber;
4046    
4047     while (*format)
4048     {
4049     switch (*format++)
4050     {
4051     case 's': // string
4052     str = va_arg (args_copy, const char *);
4053     break;
4054     case 'd': // int
4055     number = va_arg (args_copy, int);
4056     break;
4057     case 'f': // float
4058     fnumber = va_arg (args_copy, double);
4059     break;
4060     default:
4061     break;
4062     }
4063     }
4064     va_end (args_copy);
4065     va_end (args);
4066     }
4067    
4068     int
4069     main ()
4070     {
4071    
4072     // Check bool.
4073     _Bool success = false;
4074    
4075     // Check restrict.
4076     if (test_restrict ("String literal") == 0)
4077     success = true;
4078     char *restrict newvar = "Another string";
4079    
4080     // Check varargs.
4081     test_varargs ("s, d' f .", "string", 65, 34.234);
4082     test_varargs_macros ();
4083    
4084     // Check flexible array members.
4085     struct incomplete_array *ia =
4086     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4087     ia->datasize = 10;
4088     for (int i = 0; i < ia->datasize; ++i)
4089     ia->data[i] = i * 1.234;
4090    
4091     // Check named initializers.
4092     struct named_init ni = {
4093     .number = 34,
4094     .name = L"Test wide string",
4095     .average = 543.34343,
4096     };
4097    
4098     ni.number = 58;
4099    
4100     int dynamic_array[ni.number];
4101     dynamic_array[ni.number - 1] = 543;
4102    
4103     // work around unused variable warnings
4104     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4105     || dynamic_array[ni.number - 1] != 543);
4106    
4107     ;
4108     return 0;
4109     }
4110     _ACEOF
4111     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4112     do
4113     CC="$ac_save_CC $ac_arg"
4114     if ac_fn_c_try_compile "$LINENO"; then :
4115     ac_cv_prog_cc_c99=$ac_arg
4116 michael 5052 fi
4117 michael 5059 rm -f core conftest.err conftest.$ac_objext
4118     test "x$ac_cv_prog_cc_c99" != "xno" && break
4119     done
4120     rm -f conftest.$ac_ext
4121     CC=$ac_save_CC
4122 michael 5052
4123 michael 5059 fi
4124     # AC_CACHE_VAL
4125     case "x$ac_cv_prog_cc_c99" in
4126     x)
4127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4128     $as_echo "none needed" >&6; } ;;
4129     xno)
4130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4131     $as_echo "unsupported" >&6; } ;;
4132     *)
4133     CC="$CC $ac_cv_prog_cc_c99"
4134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4135     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4136     esac
4137     if test "x$ac_cv_prog_cc_c99" != xno; then :
4138 michael 5052
4139     fi
4140    
4141    
4142 michael 5059 if test "$ac_cv_prog_cc_c99" = "no"; then :
4143     as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4144 michael 5052 fi
4145 michael 5059 case `pwd` in
4146     *\ * | *\ *)
4147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4148     $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4149     esac
4150 michael 5052
4151    
4152 michael 5059
4153     macro_version='2.4.4'
4154     macro_revision='2.4.4'
4155    
4156    
4157    
4158    
4159    
4160    
4161    
4162    
4163    
4164    
4165    
4166    
4167    
4168     ltmain=$ac_aux_dir/ltmain.sh
4169    
4170 michael 5052 # Make sure we can run config.sub.
4171     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4172 michael 5059 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4173 michael 5052
4174 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4175     $as_echo_n "checking build system type... " >&6; }
4176     if ${ac_cv_build+:} false; then :
4177     $as_echo_n "(cached) " >&6
4178 michael 5052 else
4179     ac_build_alias=$build_alias
4180     test "x$ac_build_alias" = x &&
4181     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4182     test "x$ac_build_alias" = x &&
4183 michael 5059 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4184 michael 5052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4185 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4186 michael 5052
4187     fi
4188 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4189     $as_echo "$ac_cv_build" >&6; }
4190 michael 5052 case $ac_cv_build in
4191     *-*-*) ;;
4192 michael 5059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4193 michael 5052 esac
4194     build=$ac_cv_build
4195     ac_save_IFS=$IFS; IFS='-'
4196     set x $ac_cv_build
4197     shift
4198     build_cpu=$1
4199     build_vendor=$2
4200     shift; shift
4201     # Remember, the first character of IFS is used to create $*,
4202     # except with old shells:
4203     build_os=$*
4204     IFS=$ac_save_IFS
4205     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4206    
4207    
4208 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4209     $as_echo_n "checking host system type... " >&6; }
4210     if ${ac_cv_host+:} false; then :
4211     $as_echo_n "(cached) " >&6
4212 michael 5052 else
4213     if test "x$host_alias" = x; then
4214     ac_cv_host=$ac_cv_build
4215     else
4216     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4217 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4218 michael 5052 fi
4219    
4220     fi
4221 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4222     $as_echo "$ac_cv_host" >&6; }
4223 michael 5052 case $ac_cv_host in
4224     *-*-*) ;;
4225 michael 5059 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4226 michael 5052 esac
4227     host=$ac_cv_host
4228     ac_save_IFS=$IFS; IFS='-'
4229     set x $ac_cv_host
4230     shift
4231     host_cpu=$1
4232     host_vendor=$2
4233     shift; shift
4234     # Remember, the first character of IFS is used to create $*,
4235     # except with old shells:
4236     host_os=$*
4237     IFS=$ac_save_IFS
4238     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4239    
4240    
4241 michael 5059 # Backslashify metacharacters that are still active within
4242     # double-quoted strings.
4243     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4244    
4245     # Same as above, but do not quote variable references.
4246     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4247    
4248     # Sed substitution to delay expansion of an escaped shell variable in a
4249     # double_quote_subst'ed string.
4250     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4251    
4252     # Sed substitution to delay expansion of an escaped single quote.
4253     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4254    
4255     # Sed substitution to avoid accidental globbing in evaled expressions
4256     no_glob_subst='s/\*/\\\*/g'
4257    
4258     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4259     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4260     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4261    
4262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4263     $as_echo_n "checking how to print strings... " >&6; }
4264     # Test print first, because it will be a builtin if present.
4265     if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4266     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4267     ECHO='print -r --'
4268     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4269     ECHO='printf %s\n'
4270 michael 5052 else
4271 michael 5059 # Use this function as a fallback that always works.
4272     func_fallback_echo ()
4273     {
4274     eval 'cat <<_LTECHO_EOF
4275     $1
4276     _LTECHO_EOF'
4277     }
4278     ECHO='func_fallback_echo'
4279     fi
4280    
4281     # func_echo_all arg...
4282     # Invoke $ECHO with all args, space-separated.
4283     func_echo_all ()
4284     {
4285     $ECHO ""
4286     }
4287    
4288     case $ECHO in
4289     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4290     $as_echo "printf" >&6; } ;;
4291     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4292     $as_echo "print -r" >&6; } ;;
4293     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4294     $as_echo "cat" >&6; } ;;
4295     esac
4296    
4297    
4298    
4299    
4300    
4301    
4302    
4303    
4304    
4305    
4306    
4307    
4308    
4309    
4310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4311     $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4312     if ${ac_cv_path_SED+:} false; then :
4313     $as_echo_n "(cached) " >&6
4314     else
4315     ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4316     for ac_i in 1 2 3 4 5 6 7; do
4317     ac_script="$ac_script$as_nl$ac_script"
4318     done
4319     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4320     { ac_script=; unset ac_script;}
4321     if test -z "$SED"; then
4322     ac_path_SED_found=false
4323     # Loop through the user's path and test for each of PROGNAME-LIST
4324     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 michael 5052 for as_dir in $PATH
4326     do
4327     IFS=$as_save_IFS
4328     test -z "$as_dir" && as_dir=.
4329 michael 5059 for ac_prog in sed gsed; do
4330 michael 5052 for ac_exec_ext in '' $ac_executable_extensions; do
4331 michael 5059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4332     as_fn_executable_p "$ac_path_SED" || continue
4333     # Check for GNU ac_path_SED and select it if it is found.
4334     # Check for GNU $ac_path_SED
4335     case `"$ac_path_SED" --version 2>&1` in
4336     *GNU*)
4337     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4338     *)
4339     ac_count=0
4340     $as_echo_n 0123456789 >"conftest.in"
4341     while :
4342     do
4343     cat "conftest.in" "conftest.in" >"conftest.tmp"
4344     mv "conftest.tmp" "conftest.in"
4345     cp "conftest.in" "conftest.nl"
4346     $as_echo '' >> "conftest.nl"
4347     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349     as_fn_arith $ac_count + 1 && ac_count=$as_val
4350     if test $ac_count -gt ${ac_path_SED_max-0}; then
4351     # Best one so far, save it but keep looking for a better one
4352     ac_cv_path_SED="$ac_path_SED"
4353     ac_path_SED_max=$ac_count
4354     fi
4355     # 10*(2^10) chars as input seems more than enough
4356     test $ac_count -gt 10 && break
4357     done
4358     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359     esac
4360    
4361     $ac_path_SED_found && break 3
4362 michael 5052 done
4363     done
4364 michael 5059 done
4365     IFS=$as_save_IFS
4366     if test -z "$ac_cv_path_SED"; then
4367     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4368 michael 5052 fi
4369 michael 5059 else
4370     ac_cv_path_SED=$SED
4371     fi
4372 michael 5052
4373     fi
4374 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4375     $as_echo "$ac_cv_path_SED" >&6; }
4376     SED="$ac_cv_path_SED"
4377     rm -f conftest.sed
4378 michael 5052
4379 michael 5059 test -z "$SED" && SED=sed
4380     Xsed="$SED -e 1s/^X//"
4381 michael 5052
4382 michael 5059
4383    
4384    
4385    
4386    
4387    
4388    
4389    
4390    
4391    
4392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4393     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4394     if ${ac_cv_path_GREP+:} false; then :
4395     $as_echo_n "(cached) " >&6
4396 michael 5052 else
4397 michael 5059 if test -z "$GREP"; then
4398 michael 5052 ac_path_GREP_found=false
4399 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4400     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402     do
4403     IFS=$as_save_IFS
4404     test -z "$as_dir" && as_dir=.
4405 michael 5059 for ac_prog in grep ggrep; do
4406     for ac_exec_ext in '' $ac_executable_extensions; do
4407     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4408     as_fn_executable_p "$ac_path_GREP" || continue
4409     # Check for GNU ac_path_GREP and select it if it is found.
4410 michael 5052 # Check for GNU $ac_path_GREP
4411     case `"$ac_path_GREP" --version 2>&1` in
4412     *GNU*)
4413     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4414     *)
4415     ac_count=0
4416 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4417 michael 5052 while :
4418     do
4419     cat "conftest.in" "conftest.in" >"conftest.tmp"
4420     mv "conftest.tmp" "conftest.in"
4421     cp "conftest.in" "conftest.nl"
4422 michael 5059 $as_echo 'GREP' >> "conftest.nl"
4423 michael 5052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 michael 5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4427     # Best one so far, save it but keep looking for a better one
4428     ac_cv_path_GREP="$ac_path_GREP"
4429     ac_path_GREP_max=$ac_count
4430     fi
4431     # 10*(2^10) chars as input seems more than enough
4432     test $ac_count -gt 10 && break
4433     done
4434     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435     esac
4436    
4437 michael 5059 $ac_path_GREP_found && break 3
4438     done
4439 michael 5052 done
4440 michael 5059 done
4441 michael 5052 IFS=$as_save_IFS
4442 michael 5059 if test -z "$ac_cv_path_GREP"; then
4443     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444     fi
4445 michael 5052 else
4446     ac_cv_path_GREP=$GREP
4447     fi
4448    
4449     fi
4450 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4451     $as_echo "$ac_cv_path_GREP" >&6; }
4452 michael 5052 GREP="$ac_cv_path_GREP"
4453    
4454    
4455 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4456     $as_echo_n "checking for egrep... " >&6; }
4457     if ${ac_cv_path_EGREP+:} false; then :
4458     $as_echo_n "(cached) " >&6
4459 michael 5052 else
4460     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4461     then ac_cv_path_EGREP="$GREP -E"
4462     else
4463 michael 5059 if test -z "$EGREP"; then
4464 michael 5052 ac_path_EGREP_found=false
4465 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4466     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4468     do
4469     IFS=$as_save_IFS
4470     test -z "$as_dir" && as_dir=.
4471 michael 5059 for ac_prog in egrep; do
4472     for ac_exec_ext in '' $ac_executable_extensions; do
4473     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4474     as_fn_executable_p "$ac_path_EGREP" || continue
4475     # Check for GNU ac_path_EGREP and select it if it is found.
4476 michael 5052 # Check for GNU $ac_path_EGREP
4477     case `"$ac_path_EGREP" --version 2>&1` in
4478     *GNU*)
4479     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4480     *)
4481     ac_count=0
4482 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4483 michael 5052 while :
4484     do
4485     cat "conftest.in" "conftest.in" >"conftest.tmp"
4486     mv "conftest.tmp" "conftest.in"
4487     cp "conftest.in" "conftest.nl"
4488 michael 5059 $as_echo 'EGREP' >> "conftest.nl"
4489 michael 5052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4490     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4491 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4492 michael 5052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4493     # Best one so far, save it but keep looking for a better one
4494     ac_cv_path_EGREP="$ac_path_EGREP"
4495     ac_path_EGREP_max=$ac_count
4496     fi
4497     # 10*(2^10) chars as input seems more than enough
4498     test $ac_count -gt 10 && break
4499     done
4500     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4501     esac
4502    
4503 michael 5059 $ac_path_EGREP_found && break 3
4504     done
4505 michael 5052 done
4506 michael 5059 done
4507 michael 5052 IFS=$as_save_IFS
4508 michael 5059 if test -z "$ac_cv_path_EGREP"; then
4509     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4510     fi
4511     else
4512     ac_cv_path_EGREP=$EGREP
4513 michael 5052 fi
4514    
4515 michael 5059 fi
4516 michael 5052 fi
4517 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4518     $as_echo "$ac_cv_path_EGREP" >&6; }
4519     EGREP="$ac_cv_path_EGREP"
4520 michael 5052
4521 michael 5059
4522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4523     $as_echo_n "checking for fgrep... " >&6; }
4524     if ${ac_cv_path_FGREP+:} false; then :
4525     $as_echo_n "(cached) " >&6
4526 michael 5052 else
4527 michael 5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4528     then ac_cv_path_FGREP="$GREP -F"
4529     else
4530     if test -z "$FGREP"; then
4531     ac_path_FGREP_found=false
4532     # Loop through the user's path and test for each of PROGNAME-LIST
4533     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535     do
4536     IFS=$as_save_IFS
4537     test -z "$as_dir" && as_dir=.
4538     for ac_prog in fgrep; do
4539     for ac_exec_ext in '' $ac_executable_extensions; do
4540     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4541     as_fn_executable_p "$ac_path_FGREP" || continue
4542     # Check for GNU ac_path_FGREP and select it if it is found.
4543     # Check for GNU $ac_path_FGREP
4544     case `"$ac_path_FGREP" --version 2>&1` in
4545     *GNU*)
4546     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4547     *)
4548     ac_count=0
4549     $as_echo_n 0123456789 >"conftest.in"
4550     while :
4551     do
4552     cat "conftest.in" "conftest.in" >"conftest.tmp"
4553     mv "conftest.tmp" "conftest.in"
4554     cp "conftest.in" "conftest.nl"
4555     $as_echo 'FGREP' >> "conftest.nl"
4556     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558     as_fn_arith $ac_count + 1 && ac_count=$as_val
4559     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4560     # Best one so far, save it but keep looking for a better one
4561     ac_cv_path_FGREP="$ac_path_FGREP"
4562     ac_path_FGREP_max=$ac_count
4563     fi
4564     # 10*(2^10) chars as input seems more than enough
4565     test $ac_count -gt 10 && break
4566     done
4567     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568     esac
4569    
4570     $ac_path_FGREP_found && break 3
4571     done
4572     done
4573     done
4574     IFS=$as_save_IFS
4575     if test -z "$ac_cv_path_FGREP"; then
4576     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577     fi
4578     else
4579     ac_cv_path_FGREP=$FGREP
4580 michael 5052 fi
4581    
4582     fi
4583     fi
4584 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4585     $as_echo "$ac_cv_path_FGREP" >&6; }
4586     FGREP="$ac_cv_path_FGREP"
4587 michael 5052
4588    
4589 michael 5059 test -z "$GREP" && GREP=grep
4590 michael 5052
4591 michael 5059
4592    
4593    
4594    
4595    
4596    
4597    
4598    
4599    
4600    
4601    
4602    
4603    
4604    
4605    
4606    
4607    
4608    
4609 michael 5052 # Check whether --with-gnu-ld was given.
4610 michael 5059 if test "${with_gnu_ld+set}" = set; then :
4611     withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4612 michael 5052 else
4613     with_gnu_ld=no
4614     fi
4615    
4616     ac_prog=ld
4617 michael 5059 if test yes = "$GCC"; then
4618 michael 5052 # Check if gcc -print-prog-name=ld gives a path.
4619 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4620     $as_echo_n "checking for ld used by $CC... " >&6; }
4621 michael 5052 case $host in
4622     *-*-mingw*)
4623 michael 5059 # gcc leaves a trailing carriage return, which upsets mingw
4624 michael 5052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4625     *)
4626     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4627     esac
4628     case $ac_prog in
4629     # Accept absolute paths.
4630     [\\/]* | ?:[\\/]*)
4631     re_direlt='/[^/][^/]*/\.\./'
4632     # Canonicalize the pathname of ld
4633 michael 5059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4634     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4635     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4636 michael 5052 done
4637 michael 5059 test -z "$LD" && LD=$ac_prog
4638 michael 5052 ;;
4639     "")
4640     # If it fails, then pretend we aren't using GCC.
4641     ac_prog=ld
4642     ;;
4643     *)
4644     # If it is relative, then search for the first ld in PATH.
4645     with_gnu_ld=unknown
4646     ;;
4647     esac
4648 michael 5059 elif test yes = "$with_gnu_ld"; then
4649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4650     $as_echo_n "checking for GNU ld... " >&6; }
4651 michael 5052 else
4652 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4653     $as_echo_n "checking for non-GNU ld... " >&6; }
4654 michael 5052 fi
4655 michael 5059 if ${lt_cv_path_LD+:} false; then :
4656     $as_echo_n "(cached) " >&6
4657 michael 5052 else
4658     if test -z "$LD"; then
4659 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4660 michael 5052 for ac_dir in $PATH; do
4661 michael 5059 IFS=$lt_save_ifs
4662 michael 5052 test -z "$ac_dir" && ac_dir=.
4663     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4664 michael 5059 lt_cv_path_LD=$ac_dir/$ac_prog
4665 michael 5052 # Check to see if the program is GNU ld. I'd rather use --version,
4666     # but apparently some variants of GNU ld only accept -v.
4667     # Break only if it was the GNU/non-GNU ld that we prefer.
4668     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4669     *GNU* | *'with BFD'*)
4670 michael 5059 test no != "$with_gnu_ld" && break
4671 michael 5052 ;;
4672     *)
4673 michael 5059 test yes != "$with_gnu_ld" && break
4674 michael 5052 ;;
4675     esac
4676     fi
4677     done
4678 michael 5059 IFS=$lt_save_ifs
4679 michael 5052 else
4680 michael 5059 lt_cv_path_LD=$LD # Let the user override the test with a path.
4681 michael 5052 fi
4682     fi
4683    
4684 michael 5059 LD=$lt_cv_path_LD
4685 michael 5052 if test -n "$LD"; then
4686 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4687     $as_echo "$LD" >&6; }
4688 michael 5052 else
4689 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690     $as_echo "no" >&6; }
4691 michael 5052 fi
4692 michael 5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4694     $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4695     if ${lt_cv_prog_gnu_ld+:} false; then :
4696     $as_echo_n "(cached) " >&6
4697 michael 5052 else
4698     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4699     case `$LD -v 2>&1 </dev/null` in
4700     *GNU* | *'with BFD'*)
4701     lt_cv_prog_gnu_ld=yes
4702     ;;
4703     *)
4704     lt_cv_prog_gnu_ld=no
4705     ;;
4706     esac
4707     fi
4708 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4709     $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4710 michael 5052 with_gnu_ld=$lt_cv_prog_gnu_ld
4711    
4712    
4713    
4714 michael 5059
4715    
4716    
4717    
4718    
4719    
4720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4721     $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4722     if ${lt_cv_path_NM+:} false; then :
4723     $as_echo_n "(cached) " >&6
4724 michael 5052 else
4725     if test -n "$NM"; then
4726     # Let the user override the test.
4727 michael 5059 lt_cv_path_NM=$NM
4728 michael 5052 else
4729 michael 5059 lt_nm_to_check=${ac_tool_prefix}nm
4730 michael 5052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4731     lt_nm_to_check="$lt_nm_to_check nm"
4732     fi
4733     for lt_tmp_nm in $lt_nm_to_check; do
4734 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4735 michael 5052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4736 michael 5059 IFS=$lt_save_ifs
4737 michael 5052 test -z "$ac_dir" && ac_dir=.
4738 michael 5059 tmp_nm=$ac_dir/$lt_tmp_nm
4739     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4740 michael 5052 # Check to see if the nm accepts a BSD-compat flag.
4741 michael 5059 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4742 michael 5052 # nm: unknown option "B" ignored
4743     # Tru64's nm complains that /dev/null is an invalid object file
4744 michael 5059 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4745     case $build_os in
4746     mingw*) lt_bad_file=conftest.nm/nofile ;;
4747     *) lt_bad_file=/dev/null ;;
4748     esac
4749     case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4750     *$lt_bad_file* | *'Invalid file or object type'*)
4751 michael 5052 lt_cv_path_NM="$tmp_nm -B"
4752 michael 5059 break 2
4753 michael 5052 ;;
4754     *)
4755     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4756     */dev/null*)
4757     lt_cv_path_NM="$tmp_nm -p"
4758 michael 5059 break 2
4759 michael 5052 ;;
4760     *)
4761     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4762     continue # so that we can try to find one that supports BSD flags
4763     ;;
4764     esac
4765     ;;
4766     esac
4767     fi
4768     done
4769 michael 5059 IFS=$lt_save_ifs
4770 michael 5052 done
4771 michael 5059 : ${lt_cv_path_NM=no}
4772 michael 5052 fi
4773     fi
4774 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4775     $as_echo "$lt_cv_path_NM" >&6; }
4776     if test no != "$lt_cv_path_NM"; then
4777     NM=$lt_cv_path_NM
4778     else
4779     # Didn't find any BSD compatible name lister, look for dumpbin.
4780     if test -n "$DUMPBIN"; then :
4781     # Let the user override the test.
4782     else
4783     if test -n "$ac_tool_prefix"; then
4784     for ac_prog in dumpbin "link -dump"
4785     do
4786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4787     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789     $as_echo_n "checking for $ac_word... " >&6; }
4790     if ${ac_cv_prog_DUMPBIN+:} false; then :
4791     $as_echo_n "(cached) " >&6
4792     else
4793     if test -n "$DUMPBIN"; then
4794     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4795     else
4796     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797     for as_dir in $PATH
4798     do
4799     IFS=$as_save_IFS
4800     test -z "$as_dir" && as_dir=.
4801     for ac_exec_ext in '' $ac_executable_extensions; do
4802     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805     break 2
4806     fi
4807     done
4808     done
4809     IFS=$as_save_IFS
4810 michael 5052
4811 michael 5059 fi
4812     fi
4813     DUMPBIN=$ac_cv_prog_DUMPBIN
4814     if test -n "$DUMPBIN"; then
4815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4816     $as_echo "$DUMPBIN" >&6; }
4817     else
4818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819     $as_echo "no" >&6; }
4820     fi
4821    
4822    
4823     test -n "$DUMPBIN" && break
4824     done
4825     fi
4826     if test -z "$DUMPBIN"; then
4827     ac_ct_DUMPBIN=$DUMPBIN
4828     for ac_prog in dumpbin "link -dump"
4829     do
4830     # Extract the first word of "$ac_prog", so it can be a program name with args.
4831     set dummy $ac_prog; ac_word=$2
4832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833     $as_echo_n "checking for $ac_word... " >&6; }
4834     if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4835     $as_echo_n "(cached) " >&6
4836     else
4837     if test -n "$ac_ct_DUMPBIN"; then
4838     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4839     else
4840     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841     for as_dir in $PATH
4842     do
4843     IFS=$as_save_IFS
4844     test -z "$as_dir" && as_dir=.
4845     for ac_exec_ext in '' $ac_executable_extensions; do
4846     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850     fi
4851     done
4852     done
4853     IFS=$as_save_IFS
4854    
4855     fi
4856     fi
4857     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4858     if test -n "$ac_ct_DUMPBIN"; then
4859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4860     $as_echo "$ac_ct_DUMPBIN" >&6; }
4861     else
4862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863     $as_echo "no" >&6; }
4864     fi
4865    
4866    
4867     test -n "$ac_ct_DUMPBIN" && break
4868     done
4869    
4870     if test "x$ac_ct_DUMPBIN" = x; then
4871     DUMPBIN=":"
4872     else
4873     case $cross_compiling:$ac_tool_warned in
4874     yes:)
4875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4876     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4877     ac_tool_warned=yes ;;
4878     esac
4879     DUMPBIN=$ac_ct_DUMPBIN
4880     fi
4881     fi
4882    
4883     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4884     *COFF*)
4885     DUMPBIN="$DUMPBIN -symbols -headers"
4886     ;;
4887     *)
4888     DUMPBIN=:
4889     ;;
4890     esac
4891     fi
4892    
4893     if test : != "$DUMPBIN"; then
4894     NM=$DUMPBIN
4895     fi
4896     fi
4897     test -z "$NM" && NM=nm
4898    
4899    
4900    
4901    
4902    
4903    
4904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4905     $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4906     if ${lt_cv_nm_interface+:} false; then :
4907     $as_echo_n "(cached) " >&6
4908     else
4909     lt_cv_nm_interface="BSD nm"
4910     echo "int some_variable = 0;" > conftest.$ac_ext
4911     (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4912     (eval "$ac_compile" 2>conftest.err)
4913     cat conftest.err >&5
4914     (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4915     (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4916     cat conftest.err >&5
4917     (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4918     cat conftest.out >&5
4919     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4920     lt_cv_nm_interface="MS dumpbin"
4921     fi
4922     rm -f conftest*
4923     fi
4924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4925     $as_echo "$lt_cv_nm_interface" >&6; }
4926    
4927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4928     $as_echo_n "checking whether ln -s works... " >&6; }
4929 michael 5052 LN_S=$as_ln_s
4930     if test "$LN_S" = "ln -s"; then
4931 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4932     $as_echo "yes" >&6; }
4933 michael 5052 else
4934 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4935     $as_echo "no, using $LN_S" >&6; }
4936 michael 5052 fi
4937    
4938 michael 5059 # find the maximum length of command line arguments
4939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4940     $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4941     if ${lt_cv_sys_max_cmd_len+:} false; then :
4942     $as_echo_n "(cached) " >&6
4943 michael 5052 else
4944 michael 5059 i=0
4945     teststring=ABCD
4946    
4947     case $build_os in
4948     msdosdjgpp*)
4949     # On DJGPP, this test can blow up pretty badly due to problems in libc
4950     # (any single argument exceeding 2000 bytes causes a buffer overrun
4951     # during glob expansion). Even if it were fixed, the result of this
4952     # check would be larger than it should be.
4953     lt_cv_sys_max_cmd_len=12288; # 12K is about right
4954     ;;
4955    
4956     gnu*)
4957     # Under GNU Hurd, this test is not required because there is
4958     # no limit to the length of command line arguments.
4959     # Libtool will interpret -1 as no limit whatsoever
4960     lt_cv_sys_max_cmd_len=-1;
4961     ;;
4962    
4963     cygwin* | mingw* | cegcc*)
4964     # On Win9x/ME, this test blows up -- it succeeds, but takes
4965     # about 5 minutes as the teststring grows exponentially.
4966     # Worse, since 9x/ME are not pre-emptively multitasking,
4967     # you end up with a "frozen" computer, even though with patience
4968     # the test eventually succeeds (with a max line length of 256k).
4969     # Instead, let's just punt: use the minimum linelength reported by
4970     # all of the supported platforms: 8192 (on NT/2K/XP).
4971     lt_cv_sys_max_cmd_len=8192;
4972     ;;
4973    
4974     mint*)
4975     # On MiNT this can take a long time and run out of memory.
4976     lt_cv_sys_max_cmd_len=8192;
4977     ;;
4978    
4979     amigaos*)
4980     # On AmigaOS with pdksh, this test takes hours, literally.
4981     # So we just punt and use a minimum line length of 8192.
4982     lt_cv_sys_max_cmd_len=8192;
4983     ;;
4984    
4985     bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4986     # This has been around since 386BSD, at least. Likely further.
4987     if test -x /sbin/sysctl; then
4988     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4989     elif test -x /usr/sbin/sysctl; then
4990     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4991     else
4992     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4993     fi
4994     # And add a safety zone
4995     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4996     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4997     ;;
4998    
4999     interix*)
5000     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5001     lt_cv_sys_max_cmd_len=196608
5002     ;;
5003    
5004     os2*)
5005     # The test takes a long time on OS/2.
5006     lt_cv_sys_max_cmd_len=8192
5007     ;;
5008    
5009     osf*)
5010     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5011     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5012     # nice to cause kernel panics so lets avoid the loop below.
5013     # First set a reasonable default.
5014     lt_cv_sys_max_cmd_len=16384
5015     #
5016     if test -x /sbin/sysconfig; then
5017     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5018     *1*) lt_cv_sys_max_cmd_len=-1 ;;
5019     esac
5020     fi
5021     ;;
5022     sco3.2v5*)
5023     lt_cv_sys_max_cmd_len=102400
5024     ;;
5025     sysv5* | sco5v6* | sysv4.2uw2*)
5026     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5027     if test -n "$kargmax"; then
5028     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5029     else
5030     lt_cv_sys_max_cmd_len=32768
5031     fi
5032     ;;
5033     *)
5034     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5035     if test -n "$lt_cv_sys_max_cmd_len" && \
5036     test undefined != "$lt_cv_sys_max_cmd_len"; then
5037     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5038     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5039     else
5040     # Make teststring a little bigger before we do anything with it.
5041     # a 1K string should be a reasonable start.
5042     for i in 1 2 3 4 5 6 7 8; do
5043     teststring=$teststring$teststring
5044     done
5045     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5046     # If test is not a shell built-in, we'll probably end up computing a
5047     # maximum length that is only half of the actual maximum length, but
5048     # we can't tell.
5049     while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5050     = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5051     test 17 != "$i" # 1/2 MB should be enough
5052     do
5053     i=`expr $i + 1`
5054     teststring=$teststring$teststring
5055     done
5056     # Only check the string length outside the loop.
5057     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5058     teststring=
5059     # Add a significant safety factor because C++ compilers can tack on
5060     # massive amounts of additional arguments before passing them to the
5061     # linker. It appears as though 1/2 is a usable value.
5062     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5063     fi
5064     ;;
5065     esac
5066    
5067     fi
5068    
5069     if test -n "$lt_cv_sys_max_cmd_len"; then
5070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5071     $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5072     else
5073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5074     $as_echo "none" >&6; }
5075     fi
5076     max_cmd_len=$lt_cv_sys_max_cmd_len
5077    
5078    
5079    
5080    
5081    
5082    
5083     : ${CP="cp -f"}
5084     : ${MV="mv -f"}
5085     : ${RM="rm -f"}
5086    
5087     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5088     lt_unset=unset
5089     else
5090     lt_unset=false
5091     fi
5092    
5093    
5094    
5095    
5096    
5097     # test EBCDIC or ASCII
5098     case `echo X|tr X '\101'` in
5099     A) # ASCII based system
5100     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5101     lt_SP2NL='tr \040 \012'
5102     lt_NL2SP='tr \015\012 \040\040'
5103     ;;
5104     *) # EBCDIC based system
5105     lt_SP2NL='tr \100 \n'
5106     lt_NL2SP='tr \r\n \100\100'
5107     ;;
5108     esac
5109    
5110    
5111    
5112    
5113    
5114    
5115    
5116    
5117    
5118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5119     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5120     if ${lt_cv_to_host_file_cmd+:} false; then :
5121     $as_echo_n "(cached) " >&6
5122     else
5123     case $host in
5124     *-*-mingw* )
5125     case $build in
5126     *-*-mingw* ) # actually msys
5127     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5128     ;;
5129     *-*-cygwin* )
5130     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5131     ;;
5132     * ) # otherwise, assume *nix
5133     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5134     ;;
5135     esac
5136     ;;
5137     *-*-cygwin* )
5138     case $build in
5139     *-*-mingw* ) # actually msys
5140     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5141     ;;
5142     *-*-cygwin* )
5143     lt_cv_to_host_file_cmd=func_convert_file_noop
5144     ;;
5145     * ) # otherwise, assume *nix
5146     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5147     ;;
5148     esac
5149     ;;
5150     * ) # unhandled hosts (and "normal" native builds)
5151     lt_cv_to_host_file_cmd=func_convert_file_noop
5152     ;;
5153     esac
5154    
5155     fi
5156    
5157     to_host_file_cmd=$lt_cv_to_host_file_cmd
5158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5159     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5160    
5161    
5162    
5163    
5164    
5165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5166     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5167     if ${lt_cv_to_tool_file_cmd+:} false; then :
5168     $as_echo_n "(cached) " >&6
5169     else
5170     #assume ordinary cross tools, or native build.
5171     lt_cv_to_tool_file_cmd=func_convert_file_noop
5172     case $host in
5173     *-*-mingw* )
5174     case $build in
5175     *-*-mingw* ) # actually msys
5176     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5177     ;;
5178     esac
5179     ;;
5180     esac
5181    
5182     fi
5183    
5184     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5186     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5187    
5188    
5189    
5190    
5191    
5192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5193     $as_echo_n "checking for $LD option to reload object files... " >&6; }
5194     if ${lt_cv_ld_reload_flag+:} false; then :
5195     $as_echo_n "(cached) " >&6
5196     else
5197     lt_cv_ld_reload_flag='-r'
5198     fi
5199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5200     $as_echo "$lt_cv_ld_reload_flag" >&6; }
5201     reload_flag=$lt_cv_ld_reload_flag
5202     case $reload_flag in
5203     "" | " "*) ;;
5204     *) reload_flag=" $reload_flag" ;;
5205     esac
5206     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5207     case $host_os in
5208     cygwin* | mingw* | pw32* | cegcc*)
5209     if test yes != "$GCC"; then
5210     reload_cmds=false
5211     fi
5212     ;;
5213     darwin*)
5214     if test yes = "$GCC"; then
5215     reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5216     else
5217     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5218     fi
5219     ;;
5220     esac
5221    
5222    
5223    
5224    
5225    
5226    
5227    
5228    
5229    
5230     if test -n "$ac_tool_prefix"; then
5231     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5232     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234     $as_echo_n "checking for $ac_word... " >&6; }
5235     if ${ac_cv_prog_OBJDUMP+:} false; then :
5236     $as_echo_n "(cached) " >&6
5237     else
5238     if test -n "$OBJDUMP"; then
5239     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5240     else
5241     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242     for as_dir in $PATH
5243     do
5244     IFS=$as_save_IFS
5245     test -z "$as_dir" && as_dir=.
5246     for ac_exec_ext in '' $ac_executable_extensions; do
5247     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250     break 2
5251     fi
5252     done
5253     done
5254     IFS=$as_save_IFS
5255    
5256     fi
5257     fi
5258     OBJDUMP=$ac_cv_prog_OBJDUMP
5259     if test -n "$OBJDUMP"; then
5260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5261     $as_echo "$OBJDUMP" >&6; }
5262     else
5263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264     $as_echo "no" >&6; }
5265     fi
5266    
5267    
5268     fi
5269     if test -z "$ac_cv_prog_OBJDUMP"; then
5270     ac_ct_OBJDUMP=$OBJDUMP
5271     # Extract the first word of "objdump", so it can be a program name with args.
5272     set dummy objdump; ac_word=$2
5273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274     $as_echo_n "checking for $ac_word... " >&6; }
5275     if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5276     $as_echo_n "(cached) " >&6
5277     else
5278     if test -n "$ac_ct_OBJDUMP"; then
5279     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5280     else
5281     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282     for as_dir in $PATH
5283     do
5284     IFS=$as_save_IFS
5285     test -z "$as_dir" && as_dir=.
5286     for ac_exec_ext in '' $ac_executable_extensions; do
5287     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291     fi
5292     done
5293     done
5294     IFS=$as_save_IFS
5295    
5296     fi
5297     fi
5298     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5299     if test -n "$ac_ct_OBJDUMP"; then
5300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5301     $as_echo "$ac_ct_OBJDUMP" >&6; }
5302     else
5303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304     $as_echo "no" >&6; }
5305     fi
5306    
5307     if test "x$ac_ct_OBJDUMP" = x; then
5308     OBJDUMP="false"
5309     else
5310     case $cross_compiling:$ac_tool_warned in
5311     yes:)
5312     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314     ac_tool_warned=yes ;;
5315     esac
5316     OBJDUMP=$ac_ct_OBJDUMP
5317     fi
5318     else
5319     OBJDUMP="$ac_cv_prog_OBJDUMP"
5320     fi
5321    
5322     test -z "$OBJDUMP" && OBJDUMP=objdump
5323    
5324    
5325    
5326    
5327    
5328    
5329    
5330    
5331    
5332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5333     $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5334     if ${lt_cv_deplibs_check_method+:} false; then :
5335     $as_echo_n "(cached) " >&6
5336     else
5337 michael 5052 lt_cv_file_magic_cmd='$MAGIC_CMD'
5338     lt_cv_file_magic_test_file=
5339     lt_cv_deplibs_check_method='unknown'
5340     # Need to set the preceding variable on all platforms that support
5341     # interlibrary dependencies.
5342     # 'none' -- dependencies not supported.
5343 michael 5059 # 'unknown' -- same as none, but documents that we really don't know.
5344 michael 5052 # 'pass_all' -- all dependencies passed with no checks.
5345     # 'test_compile' -- check by making test program.
5346     # 'file_magic [[regex]]' -- check by looking for files in library path
5347 michael 5059 # that responds to the $file_magic_cmd with a given extended regex.
5348     # If you have 'file' or equivalent on your system and you're not sure
5349     # whether 'pass_all' will *always* work, you probably want this one.
5350 michael 5052
5351     case $host_os in
5352 michael 5059 aix[4-9]*)
5353 michael 5052 lt_cv_deplibs_check_method=pass_all
5354     ;;
5355    
5356     beos*)
5357     lt_cv_deplibs_check_method=pass_all
5358     ;;
5359    
5360     bsdi[45]*)
5361     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5362     lt_cv_file_magic_cmd='/usr/bin/file -L'
5363     lt_cv_file_magic_test_file=/shlib/libc.so
5364     ;;
5365    
5366     cygwin*)
5367     # func_win32_libid is a shell function defined in ltmain.sh
5368     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5369     lt_cv_file_magic_cmd='func_win32_libid'
5370     ;;
5371    
5372     mingw* | pw32*)
5373     # Base MSYS/MinGW do not provide the 'file' command needed by
5374 michael 5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5375     # unless we find 'file', for example because we are cross-compiling.
5376     if ( file / ) >/dev/null 2>&1; then
5377     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5378     lt_cv_file_magic_cmd='func_win32_libid'
5379     else
5380     # Keep this pattern in sync with the one in func_win32_libid.
5381     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5382     lt_cv_file_magic_cmd='$OBJDUMP -f'
5383     fi
5384     ;;
5385    
5386     cegcc*)
5387     # use the weaker test based on 'objdump'. See mingw*.
5388     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5389 michael 5052 lt_cv_file_magic_cmd='$OBJDUMP -f'
5390     ;;
5391    
5392     darwin* | rhapsody*)
5393     lt_cv_deplibs_check_method=pass_all
5394     ;;
5395    
5396     freebsd* | dragonfly*)
5397 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5398 michael 5052 case $host_cpu in
5399     i*86 )
5400     # Not sure whether the presence of OpenBSD here was a mistake.
5401     # Let's accept both of them until this is cleared up.
5402     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5403     lt_cv_file_magic_cmd=/usr/bin/file
5404     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5405     ;;
5406     esac
5407     else
5408     lt_cv_deplibs_check_method=pass_all
5409     fi
5410     ;;
5411    
5412 michael 5059 haiku*)
5413 michael 5052 lt_cv_deplibs_check_method=pass_all
5414     ;;
5415    
5416     hpux10.20* | hpux11*)
5417     lt_cv_file_magic_cmd=/usr/bin/file
5418     case $host_cpu in
5419     ia64*)
5420     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5421     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5422     ;;
5423     hppa*64*)
5424 michael 5059 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]'
5425 michael 5052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5426     ;;
5427     *)
5428 michael 5059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5429 michael 5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5430     ;;
5431     esac
5432     ;;
5433    
5434 michael 5059 interix[3-9]*)
5435 michael 5052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5437     ;;
5438    
5439     irix5* | irix6* | nonstopux*)
5440     case $LD in
5441     *-32|*"-32 ") libmagic=32-bit;;
5442     *-n32|*"-n32 ") libmagic=N32;;
5443     *-64|*"-64 ") libmagic=64-bit;;
5444     *) libmagic=never-match;;
5445     esac
5446     lt_cv_deplibs_check_method=pass_all
5447     ;;
5448    
5449 michael 5059 # This must be glibc/ELF.
5450     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5451 michael 5052 lt_cv_deplibs_check_method=pass_all
5452     ;;
5453    
5454 michael 5059 netbsd*)
5455     if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5456 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5457     else
5458     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5459     fi
5460     ;;
5461    
5462     newos6*)
5463     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5464     lt_cv_file_magic_cmd=/usr/bin/file
5465     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5466     ;;
5467    
5468 michael 5059 *nto* | *qnx*)
5469     lt_cv_deplibs_check_method=pass_all
5470 michael 5052 ;;
5471    
5472 michael 5059 openbsd* | bitrig*)
5473     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5474 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5475     else
5476     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5477     fi
5478     ;;
5479    
5480     osf3* | osf4* | osf5*)
5481     lt_cv_deplibs_check_method=pass_all
5482     ;;
5483    
5484 michael 5059 rdos*)
5485     lt_cv_deplibs_check_method=pass_all
5486     ;;
5487    
5488 michael 5052 solaris*)
5489     lt_cv_deplibs_check_method=pass_all
5490     ;;
5491    
5492 michael 5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5493     lt_cv_deplibs_check_method=pass_all
5494     ;;
5495    
5496 michael 5052 sysv4 | sysv4.3*)
5497     case $host_vendor in
5498     motorola)
5499     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]'
5500     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5501     ;;
5502     ncr)
5503     lt_cv_deplibs_check_method=pass_all
5504     ;;
5505     sequent)
5506     lt_cv_file_magic_cmd='/bin/file'
5507     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5508     ;;
5509     sni)
5510     lt_cv_file_magic_cmd='/bin/file'
5511     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5512     lt_cv_file_magic_test_file=/lib/libc.so
5513     ;;
5514     siemens)
5515     lt_cv_deplibs_check_method=pass_all
5516     ;;
5517     pc)
5518     lt_cv_deplibs_check_method=pass_all
5519     ;;
5520     esac
5521     ;;
5522    
5523 michael 5059 tpf*)
5524 michael 5052 lt_cv_deplibs_check_method=pass_all
5525     ;;
5526 michael 5059 os2*)
5527     lt_cv_deplibs_check_method=pass_all
5528     ;;
5529 michael 5052 esac
5530    
5531     fi
5532 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5533     $as_echo "$lt_cv_deplibs_check_method" >&6; }
5534    
5535     file_magic_glob=
5536     want_nocaseglob=no
5537     if test "$build" = "$host"; then
5538     case $host_os in
5539     mingw* | pw32*)
5540     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5541     want_nocaseglob=yes
5542     else
5543     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5544     fi
5545     ;;
5546     esac
5547     fi
5548    
5549 michael 5052 file_magic_cmd=$lt_cv_file_magic_cmd
5550     deplibs_check_method=$lt_cv_deplibs_check_method
5551     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5552    
5553    
5554    
5555    
5556    
5557    
5558    
5559    
5560    
5561    
5562    
5563    
5564    
5565    
5566    
5567    
5568    
5569    
5570    
5571    
5572    
5573    
5574 michael 5059 if test -n "$ac_tool_prefix"; then
5575     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5576     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578     $as_echo_n "checking for $ac_word... " >&6; }
5579     if ${ac_cv_prog_DLLTOOL+:} false; then :
5580     $as_echo_n "(cached) " >&6
5581 michael 5052 else
5582 michael 5059 if test -n "$DLLTOOL"; then
5583     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5584     else
5585     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586     for as_dir in $PATH
5587 michael 5052 do
5588 michael 5059 IFS=$as_save_IFS
5589     test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595 michael 5052 fi
5596 michael 5059 done
5597     done
5598     IFS=$as_save_IFS
5599 michael 5052
5600     fi
5601     fi
5602 michael 5059 DLLTOOL=$ac_cv_prog_DLLTOOL
5603     if test -n "$DLLTOOL"; then
5604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5605     $as_echo "$DLLTOOL" >&6; }
5606 michael 5052 else
5607 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608     $as_echo "no" >&6; }
5609 michael 5052 fi
5610    
5611    
5612     fi
5613 michael 5059 if test -z "$ac_cv_prog_DLLTOOL"; then
5614     ac_ct_DLLTOOL=$DLLTOOL
5615     # Extract the first word of "dlltool", so it can be a program name with args.
5616     set dummy dlltool; ac_word=$2
5617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618     $as_echo_n "checking for $ac_word... " >&6; }
5619     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5620     $as_echo_n "(cached) " >&6
5621 michael 5052 else
5622 michael 5059 if test -n "$ac_ct_DLLTOOL"; then
5623     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5624     else
5625     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626     for as_dir in $PATH
5627 michael 5052 do
5628 michael 5059 IFS=$as_save_IFS
5629     test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635 michael 5052 fi
5636     done
5637 michael 5059 done
5638     IFS=$as_save_IFS
5639 michael 5052
5640     fi
5641     fi
5642 michael 5059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5643     if test -n "$ac_ct_DLLTOOL"; then
5644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5645     $as_echo "$ac_ct_DLLTOOL" >&6; }
5646 michael 5052 else
5647 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648     $as_echo "no" >&6; }
5649 michael 5052 fi
5650    
5651 michael 5059 if test "x$ac_ct_DLLTOOL" = x; then
5652     DLLTOOL="false"
5653     else
5654     case $cross_compiling:$ac_tool_warned in
5655     yes:)
5656     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658     ac_tool_warned=yes ;;
5659 michael 5052 esac
5660 michael 5059 DLLTOOL=$ac_ct_DLLTOOL
5661     fi
5662 michael 5052 else
5663 michael 5059 DLLTOOL="$ac_cv_prog_DLLTOOL"
5664 michael 5052 fi
5665    
5666 michael 5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5667 michael 5052
5668    
5669    
5670    
5671    
5672    
5673    
5674    
5675    
5676    
5677 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5678     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5679     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5680     $as_echo_n "(cached) " >&6
5681 michael 5052 else
5682 michael 5059 lt_cv_sharedlib_from_linklib_cmd='unknown'
5683 michael 5052
5684 michael 5059 case $host_os in
5685     cygwin* | mingw* | pw32* | cegcc*)
5686     # two different shell functions defined in ltmain.sh;
5687     # decide which one to use based on capabilities of $DLLTOOL
5688     case `$DLLTOOL --help 2>&1` in
5689     *--identify-strict*)
5690     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5691     ;;
5692     *)
5693     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5694     ;;
5695     esac
5696     ;;
5697     *)
5698     # fallback: assume linklib IS sharedlib
5699     lt_cv_sharedlib_from_linklib_cmd=$ECHO
5700     ;;
5701 michael 5052 esac
5702    
5703     fi
5704 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5705     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5706     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5707     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5708 michael 5052
5709    
5710    
5711    
5712    
5713    
5714    
5715    
5716 michael 5059 if test -n "$ac_tool_prefix"; then
5717     for ac_prog in ar
5718 michael 5052 do
5719     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5720     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5721 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722     $as_echo_n "checking for $ac_word... " >&6; }
5723     if ${ac_cv_prog_AR+:} false; then :
5724     $as_echo_n "(cached) " >&6
5725 michael 5052 else
5726 michael 5059 if test -n "$AR"; then
5727     ac_cv_prog_AR="$AR" # Let the user override the test.
5728 michael 5052 else
5729     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730     for as_dir in $PATH
5731     do
5732     IFS=$as_save_IFS
5733     test -z "$as_dir" && as_dir=.
5734 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5735     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5736     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 michael 5052 break 2
5739     fi
5740     done
5741 michael 5059 done
5742 michael 5052 IFS=$as_save_IFS
5743    
5744     fi
5745     fi
5746 michael 5059 AR=$ac_cv_prog_AR
5747     if test -n "$AR"; then
5748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5749     $as_echo "$AR" >&6; }
5750 michael 5052 else
5751 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752     $as_echo "no" >&6; }
5753 michael 5052 fi
5754    
5755    
5756 michael 5059 test -n "$AR" && break
5757 michael 5052 done
5758     fi
5759 michael 5059 if test -z "$AR"; then
5760     ac_ct_AR=$AR
5761     for ac_prog in ar
5762 michael 5052 do
5763     # Extract the first word of "$ac_prog", so it can be a program name with args.
5764     set dummy $ac_prog; ac_word=$2
5765 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766     $as_echo_n "checking for $ac_word... " >&6; }
5767     if ${ac_cv_prog_ac_ct_AR+:} false; then :
5768     $as_echo_n "(cached) " >&6
5769 michael 5052 else
5770 michael 5059 if test -n "$ac_ct_AR"; then
5771     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5772 michael 5052 else
5773     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774     for as_dir in $PATH
5775     do
5776     IFS=$as_save_IFS
5777     test -z "$as_dir" && as_dir=.
5778 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5779     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_prog_ac_ct_AR="$ac_prog"
5781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 michael 5052 break 2
5783     fi
5784     done
5785 michael 5059 done
5786 michael 5052 IFS=$as_save_IFS
5787    
5788     fi
5789     fi
5790 michael 5059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5791     if test -n "$ac_ct_AR"; then
5792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5793     $as_echo "$ac_ct_AR" >&6; }
5794 michael 5052 else
5795 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796     $as_echo "no" >&6; }
5797 michael 5052 fi
5798    
5799    
5800 michael 5059 test -n "$ac_ct_AR" && break
5801 michael 5052 done
5802    
5803 michael 5059 if test "x$ac_ct_AR" = x; then
5804     AR="false"
5805 michael 5052 else
5806     case $cross_compiling:$ac_tool_warned in
5807     yes:)
5808 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 michael 5052 ac_tool_warned=yes ;;
5811     esac
5812 michael 5059 AR=$ac_ct_AR
5813 michael 5052 fi
5814     fi
5815    
5816 michael 5059 : ${AR=ar}
5817     : ${AR_FLAGS=cru}
5818 michael 5052
5819    
5820    
5821    
5822    
5823    
5824    
5825    
5826    
5827    
5828    
5829 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5830     $as_echo_n "checking for archiver @FILE support... " >&6; }
5831     if ${lt_cv_ar_at_file+:} false; then :
5832     $as_echo_n "(cached) " >&6
5833 michael 5052 else
5834 michael 5059 lt_cv_ar_at_file=no
5835     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 michael 5052 /* end confdefs.h. */
5837    
5838     int
5839     main ()
5840     {
5841    
5842     ;
5843     return 0;
5844     }
5845     _ACEOF
5846 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
5847     echo conftest.$ac_objext > conftest.lst
5848     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5849     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5850     (eval $lt_ar_try) 2>&5
5851 michael 5052 ac_status=$?
5852 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5853     test $ac_status = 0; }
5854     if test 0 -eq "$ac_status"; then
5855     # Ensure the archiver fails upon bogus file names.
5856     rm -f conftest.$ac_objext libconftest.a
5857     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5858     (eval $lt_ar_try) 2>&5
5859 michael 5052 ac_status=$?
5860 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5861     test $ac_status = 0; }
5862     if test 0 -ne "$ac_status"; then
5863     lt_cv_ar_at_file=@
5864     fi
5865     fi
5866     rm -f conftest.* libconftest.a
5867 michael 5052
5868     fi
5869     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870    
5871     fi
5872 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5873     $as_echo "$lt_cv_ar_at_file" >&6; }
5874 michael 5052
5875 michael 5059 if test no = "$lt_cv_ar_at_file"; then
5876     archiver_list_spec=
5877 michael 5052 else
5878 michael 5059 archiver_list_spec=$lt_cv_ar_at_file
5879 michael 5052 fi
5880    
5881    
5882    
5883    
5884    
5885    
5886    
5887 michael 5059 if test -n "$ac_tool_prefix"; then
5888     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5889     set dummy ${ac_tool_prefix}strip; ac_word=$2
5890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891     $as_echo_n "checking for $ac_word... " >&6; }
5892     if ${ac_cv_prog_STRIP+:} false; then :
5893     $as_echo_n "(cached) " >&6
5894 michael 5052 else
5895 michael 5059 if test -n "$STRIP"; then
5896     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5897 michael 5052 else
5898 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899     for as_dir in $PATH
5900 michael 5052 do
5901 michael 5059 IFS=$as_save_IFS
5902     test -z "$as_dir" && as_dir=.
5903     for ac_exec_ext in '' $ac_executable_extensions; do
5904     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908 michael 5052 fi
5909 michael 5059 done
5910     done
5911     IFS=$as_save_IFS
5912 michael 5052
5913     fi
5914     fi
5915 michael 5059 STRIP=$ac_cv_prog_STRIP
5916     if test -n "$STRIP"; then
5917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5918     $as_echo "$STRIP" >&6; }
5919 michael 5052 else
5920 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921     $as_echo "no" >&6; }
5922 michael 5052 fi
5923    
5924    
5925     fi
5926 michael 5059 if test -z "$ac_cv_prog_STRIP"; then
5927     ac_ct_STRIP=$STRIP
5928     # Extract the first word of "strip", so it can be a program name with args.
5929     set dummy strip; ac_word=$2
5930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931     $as_echo_n "checking for $ac_word... " >&6; }
5932     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5933     $as_echo_n "(cached) " >&6
5934 michael 5052 else
5935 michael 5059 if test -n "$ac_ct_STRIP"; then
5936     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5937     else
5938     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939     for as_dir in $PATH
5940 michael 5052 do
5941 michael 5059 IFS=$as_save_IFS
5942     test -z "$as_dir" && as_dir=.
5943     for ac_exec_ext in '' $ac_executable_extensions; do
5944     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945     ac_cv_prog_ac_ct_STRIP="strip"
5946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948 michael 5052 fi
5949 michael 5059 done
5950     done
5951     IFS=$as_save_IFS
5952    
5953 michael 5052 fi
5954 michael 5059 fi
5955     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5956     if test -n "$ac_ct_STRIP"; then
5957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5958     $as_echo "$ac_ct_STRIP" >&6; }
5959 michael 5052 else
5960 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961     $as_echo "no" >&6; }
5962 michael 5052 fi
5963    
5964 michael 5059 if test "x$ac_ct_STRIP" = x; then
5965     STRIP=":"
5966     else
5967     case $cross_compiling:$ac_tool_warned in
5968     yes:)
5969     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5970     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5971     ac_tool_warned=yes ;;
5972 michael 5052 esac
5973 michael 5059 STRIP=$ac_ct_STRIP
5974 michael 5052 fi
5975     else
5976 michael 5059 STRIP="$ac_cv_prog_STRIP"
5977 michael 5052 fi
5978    
5979 michael 5059 test -z "$STRIP" && STRIP=:
5980 michael 5052
5981    
5982    
5983    
5984    
5985    
5986     if test -n "$ac_tool_prefix"; then
5987 michael 5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5988     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990     $as_echo_n "checking for $ac_word... " >&6; }
5991     if ${ac_cv_prog_RANLIB+:} false; then :
5992     $as_echo_n "(cached) " >&6
5993 michael 5052 else
5994 michael 5059 if test -n "$RANLIB"; then
5995     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5996 michael 5052 else
5997     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998     for as_dir in $PATH
5999     do
6000     IFS=$as_save_IFS
6001     test -z "$as_dir" && as_dir=.
6002 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6003     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 michael 5052 break 2
6007     fi
6008     done
6009 michael 5059 done
6010 michael 5052 IFS=$as_save_IFS
6011    
6012     fi
6013     fi
6014 michael 5059 RANLIB=$ac_cv_prog_RANLIB
6015     if test -n "$RANLIB"; then
6016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6017     $as_echo "$RANLIB" >&6; }
6018 michael 5052 else
6019 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020     $as_echo "no" >&6; }
6021 michael 5052 fi
6022    
6023    
6024     fi
6025 michael 5059 if test -z "$ac_cv_prog_RANLIB"; then
6026     ac_ct_RANLIB=$RANLIB
6027     # Extract the first word of "ranlib", so it can be a program name with args.
6028     set dummy ranlib; ac_word=$2
6029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030     $as_echo_n "checking for $ac_word... " >&6; }
6031     if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6032     $as_echo_n "(cached) " >&6
6033 michael 5052 else
6034 michael 5059 if test -n "$ac_ct_RANLIB"; then
6035     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6036 michael 5052 else
6037     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038     for as_dir in $PATH
6039     do
6040     IFS=$as_save_IFS
6041     test -z "$as_dir" && as_dir=.
6042 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6043     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044     ac_cv_prog_ac_ct_RANLIB="ranlib"
6045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 michael 5052 break 2
6047     fi
6048     done
6049 michael 5059 done
6050 michael 5052 IFS=$as_save_IFS
6051    
6052     fi
6053     fi
6054 michael 5059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6055     if test -n "$ac_ct_RANLIB"; then
6056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6057     $as_echo "$ac_ct_RANLIB" >&6; }
6058 michael 5052 else
6059 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060     $as_echo "no" >&6; }
6061 michael 5052 fi
6062    
6063 michael 5059 if test "x$ac_ct_RANLIB" = x; then
6064     RANLIB=":"
6065 michael 5052 else
6066     case $cross_compiling:$ac_tool_warned in
6067     yes:)
6068 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 michael 5052 ac_tool_warned=yes ;;
6071     esac
6072 michael 5059 RANLIB=$ac_ct_RANLIB
6073 michael 5052 fi
6074 michael 5059 else
6075     RANLIB="$ac_cv_prog_RANLIB"
6076 michael 5052 fi
6077    
6078 michael 5059 test -z "$RANLIB" && RANLIB=:
6079 michael 5052
6080    
6081    
6082    
6083    
6084    
6085 michael 5059 # Determine commands to create old-style static archives.
6086     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6087     old_postinstall_cmds='chmod 644 $oldlib'
6088     old_postuninstall_cmds=
6089    
6090     if test -n "$RANLIB"; then
6091     case $host_os in
6092     bitrig* | openbsd*)
6093     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6094     ;;
6095     *)
6096     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6097     ;;
6098     esac
6099     old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6100 michael 5052 fi
6101    
6102 michael 5059 case $host_os in
6103     darwin*)
6104     lock_old_archive_extraction=yes ;;
6105     *)
6106     lock_old_archive_extraction=no ;;
6107 michael 5052 esac
6108    
6109    
6110    
6111    
6112    
6113    
6114    
6115    
6116    
6117    
6118    
6119    
6120    
6121    
6122    
6123    
6124    
6125    
6126    
6127    
6128    
6129 michael 5059
6130    
6131    
6132    
6133    
6134    
6135    
6136    
6137    
6138    
6139    
6140    
6141    
6142    
6143    
6144    
6145    
6146    
6147     # If no C compiler was specified, use CC.
6148     LTCC=${LTCC-"$CC"}
6149    
6150     # If no C compiler flags were specified, use CFLAGS.
6151     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6152    
6153     # Allow CC to be a program name with arguments.
6154     compiler=$CC
6155    
6156    
6157 michael 5052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6158 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6159     $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6160     if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6161     $as_echo_n "(cached) " >&6
6162 michael 5052 else
6163    
6164     # These are sane defaults that work on at least a few old systems.
6165     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6166    
6167     # Character class describing NM global symbol codes.
6168     symcode='[BCDEGRST]'
6169    
6170     # Regexp to match symbols that can be accessed directly from C.
6171     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6172    
6173     # Define system-specific variables.
6174     case $host_os in
6175     aix*)
6176     symcode='[BCDT]'
6177     ;;
6178 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
6179 michael 5052 symcode='[ABCDGISTW]'
6180     ;;
6181 michael 5059 hpux*)
6182     if test ia64 = "$host_cpu"; then
6183 michael 5052 symcode='[ABCDEGRST]'
6184     fi
6185     ;;
6186     irix* | nonstopux*)
6187     symcode='[BCDEGRST]'
6188     ;;
6189     osf*)
6190     symcode='[BCDEGQRST]'
6191     ;;
6192     solaris*)
6193     symcode='[BDRT]'
6194     ;;
6195     sco3.2v5*)
6196     symcode='[DT]'
6197     ;;
6198     sysv4.2uw2*)
6199     symcode='[DT]'
6200     ;;
6201     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6202     symcode='[ABDT]'
6203     ;;
6204     sysv4)
6205     symcode='[DFNSTU]'
6206     ;;
6207     esac
6208    
6209 michael 5059 # If we're using GNU nm, then use its standard symbol codes.
6210     case `$NM -V 2>&1` in
6211     *GNU* | *'with BFD'*)
6212     symcode='[ABCDGIRSTW]' ;;
6213     esac
6214    
6215     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6216     # Gets list of data symbols to import.
6217     lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6218     # Adjust the below global symbol transforms to fixup imported variables.
6219     lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6220     lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6221     lt_c_name_lib_hook="\
6222     -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6223     -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6224     else
6225     # Disable hooks by default.
6226     lt_cv_sys_global_symbol_to_import=
6227     lt_cdecl_hook=
6228     lt_c_name_hook=
6229     lt_c_name_lib_hook=
6230     fi
6231    
6232     # Transform an extracted symbol line into a proper C declaration.
6233     # Some systems (esp. on ia64) link data and code symbols differently,
6234     # so use this general approach.
6235     lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6236     $lt_cdecl_hook\
6237     " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6238     " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6239    
6240     # Transform an extracted symbol line into symbol name and symbol address
6241     lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6242     $lt_c_name_hook\
6243     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6244     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6245    
6246     # Transform an extracted symbol line into symbol name with lib prefix and
6247     # symbol address.
6248     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6249     $lt_c_name_lib_hook\
6250     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6251     " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6252     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6253    
6254 michael 5052 # Handle CRLF in mingw tool chain
6255     opt_cr=
6256     case $build_os in
6257     mingw*)
6258 michael 5059 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6259 michael 5052 ;;
6260     esac
6261    
6262 michael 5059 # Try without a prefix underscore, then with it.
6263 michael 5052 for ac_symprfx in "" "_"; do
6264    
6265     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6266     symxfrm="\\1 $ac_symprfx\\2 \\2"
6267    
6268     # Write the raw and C identifiers.
6269 michael 5059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6270     # Fake it for dumpbin and say T for any non-static function,
6271     # D for any global variable and I for any imported variable.
6272     # Also find C++ and __fastcall symbols from MSVC++,
6273     # which start with @ or ?.
6274     lt_cv_sys_global_symbol_pipe="$AWK '"\
6275     " {last_section=section; section=\$ 3};"\
6276     " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6277     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6278     " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6279     " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6280     " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6281     " \$ 0!~/External *\|/{next};"\
6282     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6283     " {if(hide[section]) next};"\
6284     " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6285     " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6286     " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6287     " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6288     " ' prfx=^$ac_symprfx"
6289     else
6290     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6291     fi
6292     lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6293 michael 5052
6294     # Check to see that the pipe works correctly.
6295     pipe_works=no
6296    
6297     rm -f conftest*
6298 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
6299 michael 5052 #ifdef __cplusplus
6300     extern "C" {
6301     #endif
6302     char nm_test_var;
6303 michael 5059 void nm_test_func(void);
6304     void nm_test_func(void){}
6305 michael 5052 #ifdef __cplusplus
6306     }
6307     #endif
6308     int main(){nm_test_var='a';nm_test_func();return(0);}
6309 michael 5059 _LT_EOF
6310 michael 5052
6311 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6312 michael 5052 (eval $ac_compile) 2>&5
6313     ac_status=$?
6314 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315     test $ac_status = 0; }; then
6316 michael 5052 # Now try to grab the symbols.
6317     nlist=conftest.nm
6318 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6319     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6320 michael 5052 ac_status=$?
6321 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322     test $ac_status = 0; } && test -s "$nlist"; then
6323 michael 5052 # Try sorting and uniquifying the output.
6324     if sort "$nlist" | uniq > "$nlist"T; then
6325     mv -f "$nlist"T "$nlist"
6326     else
6327     rm -f "$nlist"T
6328     fi
6329    
6330     # Make sure that we snagged all the symbols we need.
6331 michael 5059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6332     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6333     cat <<_LT_EOF > conftest.$ac_ext
6334     /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6335     #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6336     /* DATA imports from DLLs on WIN32 can't be const, because runtime
6337     relocations are performed -- see ld's documentation on pseudo-relocs. */
6338     # define LT_DLSYM_CONST
6339     #elif defined __osf__
6340     /* This system does not cope well with relocations in const data. */
6341     # define LT_DLSYM_CONST
6342     #else
6343     # define LT_DLSYM_CONST const
6344     #endif
6345    
6346 michael 5052 #ifdef __cplusplus
6347     extern "C" {
6348     #endif
6349    
6350 michael 5059 _LT_EOF
6351 michael 5052 # Now generate the symbol file.
6352 michael 5059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6353 michael 5052
6354 michael 5059 cat <<_LT_EOF >> conftest.$ac_ext
6355 michael 5052
6356 michael 5059 /* The mapping between symbol names and symbols. */
6357     LT_DLSYM_CONST struct {
6358 michael 5052 const char *name;
6359 michael 5059 void *address;
6360 michael 5052 }
6361 michael 5059 lt__PROGRAM__LTX_preloaded_symbols[] =
6362 michael 5052 {
6363 michael 5059 { "@PROGRAM@", (void *) 0 },
6364     _LT_EOF
6365     $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6366     cat <<\_LT_EOF >> conftest.$ac_ext
6367     {0, (void *) 0}
6368 michael 5052 };
6369    
6370 michael 5059 /* This works around a problem in FreeBSD linker */
6371     #ifdef FREEBSD_WORKAROUND
6372     static const void *lt_preloaded_setup() {
6373     return lt__PROGRAM__LTX_preloaded_symbols;
6374     }
6375     #endif
6376    
6377 michael 5052 #ifdef __cplusplus
6378     }
6379     #endif
6380 michael 5059 _LT_EOF
6381 michael 5052 # Now try linking the two files.
6382     mv conftest.$ac_objext conftstm.$ac_objext
6383 michael 5059 lt_globsym_save_LIBS=$LIBS
6384     lt_globsym_save_CFLAGS=$CFLAGS
6385     LIBS=conftstm.$ac_objext
6386 michael 5052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6387 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6388 michael 5052 (eval $ac_link) 2>&5
6389     ac_status=$?
6390 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391     test $ac_status = 0; } && test -s conftest$ac_exeext; then
6392 michael 5052 pipe_works=yes
6393     fi
6394 michael 5059 LIBS=$lt_globsym_save_LIBS
6395     CFLAGS=$lt_globsym_save_CFLAGS
6396 michael 5052 else
6397     echo "cannot find nm_test_func in $nlist" >&5
6398     fi
6399     else
6400     echo "cannot find nm_test_var in $nlist" >&5
6401     fi
6402     else
6403     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6404     fi
6405     else
6406     echo "$progname: failed program was:" >&5
6407     cat conftest.$ac_ext >&5
6408     fi
6409 michael 5059 rm -rf conftest* conftst*
6410 michael 5052
6411     # Do not use the global_symbol_pipe unless it works.
6412 michael 5059 if test yes = "$pipe_works"; then
6413 michael 5052 break
6414     else
6415     lt_cv_sys_global_symbol_pipe=
6416     fi
6417     done
6418    
6419     fi
6420    
6421     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6422     lt_cv_sys_global_symbol_to_cdecl=
6423     fi
6424     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6425 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6426     $as_echo "failed" >&6; }
6427 michael 5052 else
6428 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6429     $as_echo "ok" >&6; }
6430 michael 5052 fi
6431    
6432 michael 5059 # Response file support.
6433     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6434     nm_file_list_spec='@'
6435     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6436     nm_file_list_spec='@'
6437     fi
6438    
6439    
6440    
6441    
6442    
6443    
6444    
6445    
6446    
6447    
6448    
6449    
6450    
6451    
6452    
6453    
6454    
6455    
6456    
6457    
6458    
6459    
6460    
6461    
6462    
6463    
6464    
6465    
6466    
6467    
6468    
6469    
6470    
6471    
6472    
6473    
6474    
6475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6476     $as_echo_n "checking for sysroot... " >&6; }
6477    
6478     # Check whether --with-sysroot was given.
6479     if test "${with_sysroot+set}" = set; then :
6480     withval=$with_sysroot;
6481 michael 5052 else
6482 michael 5059 with_sysroot=no
6483     fi
6484    
6485    
6486     lt_sysroot=
6487     case $with_sysroot in #(
6488     yes)
6489     if test yes = "$GCC"; then
6490     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6491     fi
6492     ;; #(
6493     /*)
6494     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6495     ;; #(
6496     no|'')
6497     ;; #(
6498     *)
6499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6500     $as_echo "$with_sysroot" >&6; }
6501     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6502     ;;
6503     esac
6504    
6505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6506     $as_echo "${lt_sysroot:-no}" >&6; }
6507    
6508    
6509    
6510    
6511    
6512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6513     $as_echo_n "checking for a working dd... " >&6; }
6514     if ${ac_cv_path_lt_DD+:} false; then :
6515     $as_echo_n "(cached) " >&6
6516 michael 5052 else
6517 michael 5059 printf 0123456789abcdef0123456789abcdef >conftest.i
6518     cat conftest.i conftest.i >conftest2.i
6519     : ${lt_DD:=$DD}
6520     if test -z "$lt_DD"; then
6521     ac_path_lt_DD_found=false
6522     # Loop through the user's path and test for each of PROGNAME-LIST
6523     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524     for as_dir in $PATH
6525     do
6526     IFS=$as_save_IFS
6527     test -z "$as_dir" && as_dir=.
6528     for ac_prog in dd; do
6529     for ac_exec_ext in '' $ac_executable_extensions; do
6530     ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6531     as_fn_executable_p "$ac_path_lt_DD" || continue
6532     if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6533     cmp -s conftest.i conftest.out \
6534     && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6535 michael 5052 fi
6536 michael 5059 $ac_path_lt_DD_found && break 3
6537     done
6538     done
6539     done
6540     IFS=$as_save_IFS
6541     if test -z "$ac_cv_path_lt_DD"; then
6542     :
6543     fi
6544     else
6545     ac_cv_path_lt_DD=$lt_DD
6546 michael 5052 fi
6547    
6548 michael 5059 rm -f conftest.i conftest2.i conftest.out
6549     fi
6550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6551     $as_echo "$ac_cv_path_lt_DD" >&6; }
6552 michael 5052
6553    
6554 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6555     $as_echo_n "checking how to truncate binary pipes... " >&6; }
6556     if ${lt_cv_truncate_bin+:} false; then :
6557     $as_echo_n "(cached) " >&6
6558     else
6559     printf 0123456789abcdef0123456789abcdef >conftest.i
6560     cat conftest.i conftest.i >conftest2.i
6561     lt_cv_truncate_bin=
6562     if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6563     cmp -s conftest.i conftest.out \
6564     && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6565     fi
6566     rm -f conftest.i conftest2.i conftest.out
6567     test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6568     fi
6569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6570     $as_echo "$lt_cv_truncate_bin" >&6; }
6571 michael 5052
6572    
6573 michael 5059
6574    
6575    
6576    
6577     # Check whether --enable-libtool-lock was given.
6578     if test "${enable_libtool_lock+set}" = set; then :
6579     enableval=$enable_libtool_lock;
6580     fi
6581    
6582     test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6583    
6584     # Some flags need to be propagated to the compiler or linker for good
6585     # libtool support.
6586     case $host in
6587     ia64-*-hpux*)
6588     # Find out what ABI is being produced by ac_compile, and set mode
6589     # options accordingly.
6590     echo 'int i;' > conftest.$ac_ext
6591     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6592     (eval $ac_compile) 2>&5
6593     ac_status=$?
6594     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595     test $ac_status = 0; }; then
6596     case `/usr/bin/file conftest.$ac_objext` in
6597     *ELF-32*)
6598     HPUX_IA64_MODE=32
6599     ;;
6600     *ELF-64*)
6601     HPUX_IA64_MODE=64
6602     ;;
6603     esac
6604 michael 5052 fi
6605 michael 5059 rm -rf conftest*
6606 michael 5052 ;;
6607 michael 5059 *-*-irix6*)
6608     # Find out what ABI is being produced by ac_compile, and set linker
6609     # options accordingly.
6610     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6611     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6612     (eval $ac_compile) 2>&5
6613     ac_status=$?
6614     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615     test $ac_status = 0; }; then
6616     if test yes = "$lt_cv_prog_gnu_ld"; then
6617     case `/usr/bin/file conftest.$ac_objext` in
6618     *32-bit*)
6619     LD="${LD-ld} -melf32bsmip"
6620     ;;
6621     *N32*)
6622     LD="${LD-ld} -melf32bmipn32"
6623     ;;
6624     *64-bit*)
6625     LD="${LD-ld} -melf64bmip"
6626     ;;
6627     esac
6628     else
6629     case `/usr/bin/file conftest.$ac_objext` in
6630     *32-bit*)
6631     LD="${LD-ld} -32"
6632     ;;
6633     *N32*)
6634     LD="${LD-ld} -n32"
6635     ;;
6636     *64-bit*)
6637     LD="${LD-ld} -64"
6638     ;;
6639     esac
6640     fi
6641     fi
6642     rm -rf conftest*
6643     ;;
6644 michael 5052
6645 michael 5059 mips64*-*linux*)
6646     # Find out what ABI is being produced by ac_compile, and set linker
6647     # options accordingly.
6648     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6649     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6650     (eval $ac_compile) 2>&5
6651     ac_status=$?
6652     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653     test $ac_status = 0; }; then
6654     emul=elf
6655     case `/usr/bin/file conftest.$ac_objext` in
6656     *32-bit*)
6657     emul="${emul}32"
6658     ;;
6659     *64-bit*)
6660     emul="${emul}64"
6661     ;;
6662     esac
6663     case `/usr/bin/file conftest.$ac_objext` in
6664     *MSB*)
6665     emul="${emul}btsmip"
6666     ;;
6667     *LSB*)
6668     emul="${emul}ltsmip"
6669     ;;
6670     esac
6671     case `/usr/bin/file conftest.$ac_objext` in
6672     *N32*)
6673     emul="${emul}n32"
6674     ;;
6675     esac
6676     LD="${LD-ld} -m $emul"
6677     fi
6678     rm -rf conftest*
6679     ;;
6680 michael 5052
6681 michael 5059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6682     s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6683     # Find out what ABI is being produced by ac_compile, and set linker
6684     # options accordingly. Note that the listed cases only cover the
6685     # situations where additional linker options are needed (such as when
6686     # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6687     # vice versa); the common cases where no linker options are needed do
6688     # not appear in the list.
6689     echo 'int i;' > conftest.$ac_ext
6690     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691     (eval $ac_compile) 2>&5
6692     ac_status=$?
6693     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694     test $ac_status = 0; }; then
6695     case `/usr/bin/file conftest.o` in
6696     *32-bit*)
6697     case $host in
6698     x86_64-*kfreebsd*-gnu)
6699     LD="${LD-ld} -m elf_i386_fbsd"
6700     ;;
6701     x86_64-*linux*)
6702     case `/usr/bin/file conftest.o` in
6703     *x86-64*)
6704     LD="${LD-ld} -m elf32_x86_64"
6705     ;;
6706     *)
6707     LD="${LD-ld} -m elf_i386"
6708     ;;
6709     esac
6710     ;;
6711     powerpc64le-*linux*)
6712     LD="${LD-ld} -m elf32lppclinux"
6713     ;;
6714     powerpc64-*linux*)
6715     LD="${LD-ld} -m elf32ppclinux"
6716     ;;
6717     s390x-*linux*)
6718     LD="${LD-ld} -m elf_s390"
6719     ;;
6720     sparc64-*linux*)
6721     LD="${LD-ld} -m elf32_sparc"
6722     ;;
6723     esac
6724     ;;
6725     *64-bit*)
6726     case $host in
6727     x86_64-*kfreebsd*-gnu)
6728     LD="${LD-ld} -m elf_x86_64_fbsd"
6729     ;;
6730     x86_64-*linux*)
6731     LD="${LD-ld} -m elf_x86_64"
6732     ;;
6733     powerpcle-*linux*)
6734     LD="${LD-ld} -m elf64lppc"
6735     ;;
6736     powerpc-*linux*)
6737     LD="${LD-ld} -m elf64ppc"
6738     ;;
6739     s390*-*linux*|s390*-*tpf*)
6740     LD="${LD-ld} -m elf64_s390"
6741     ;;
6742     sparc*-*linux*)
6743     LD="${LD-ld} -m elf64_sparc"
6744     ;;
6745     esac
6746     ;;
6747     esac
6748     fi
6749     rm -rf conftest*
6750     ;;
6751 michael 5052
6752 michael 5059 *-*-sco3.2v5*)
6753     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6754     SAVE_CFLAGS=$CFLAGS
6755     CFLAGS="$CFLAGS -belf"
6756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6757     $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6758     if ${lt_cv_cc_needs_belf+:} false; then :
6759     $as_echo_n "(cached) " >&6
6760     else
6761     ac_ext=c
6762     ac_cpp='$CPP $CPPFLAGS'
6763     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6764     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6765     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6766 michael 5052
6767 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768     /* end confdefs.h. */
6769 michael 5052
6770 michael 5059 int
6771     main ()
6772     {
6773 michael 5052
6774 michael 5059 ;
6775     return 0;
6776     }
6777     _ACEOF
6778     if ac_fn_c_try_link "$LINENO"; then :
6779     lt_cv_cc_needs_belf=yes
6780     else
6781     lt_cv_cc_needs_belf=no
6782     fi
6783     rm -f core conftest.err conftest.$ac_objext \
6784     conftest$ac_exeext conftest.$ac_ext
6785     ac_ext=c
6786     ac_cpp='$CPP $CPPFLAGS'
6787     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790 michael 5052
6791 michael 5059 fi
6792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6793     $as_echo "$lt_cv_cc_needs_belf" >&6; }
6794     if test yes != "$lt_cv_cc_needs_belf"; then
6795     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6796     CFLAGS=$SAVE_CFLAGS
6797     fi
6798     ;;
6799     *-*solaris*)
6800     # Find out what ABI is being produced by ac_compile, and set linker
6801     # options accordingly.
6802     echo 'int i;' > conftest.$ac_ext
6803     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6804     (eval $ac_compile) 2>&5
6805     ac_status=$?
6806     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6807     test $ac_status = 0; }; then
6808     case `/usr/bin/file conftest.o` in
6809     *64-bit*)
6810     case $lt_cv_prog_gnu_ld in
6811     yes*)
6812     case $host in
6813     i?86-*-solaris*|x86_64-*-solaris*)
6814     LD="${LD-ld} -m elf_x86_64"
6815     ;;
6816     sparc*-*-solaris*)
6817     LD="${LD-ld} -m elf64_sparc"
6818     ;;
6819     esac
6820     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6821     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6822     LD=${LD-ld}_sol2
6823     fi
6824     ;;
6825     *)
6826     if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6827     LD="${LD-ld} -64"
6828     fi
6829     ;;
6830     esac
6831     ;;
6832     esac
6833     fi
6834     rm -rf conftest*
6835     ;;
6836     esac
6837 michael 5052
6838 michael 5059 need_locks=$enable_libtool_lock
6839    
6840 michael 5052 if test -n "$ac_tool_prefix"; then
6841 michael 5059 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6842     set dummy ${ac_tool_prefix}mt; ac_word=$2
6843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844     $as_echo_n "checking for $ac_word... " >&6; }
6845     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6846     $as_echo_n "(cached) " >&6
6847 michael 5052 else
6848 michael 5059 if test -n "$MANIFEST_TOOL"; then
6849     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6850 michael 5052 else
6851     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852     for as_dir in $PATH
6853     do
6854     IFS=$as_save_IFS
6855     test -z "$as_dir" && as_dir=.
6856 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6857     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 michael 5052 break 2
6861     fi
6862     done
6863 michael 5059 done
6864     IFS=$as_save_IFS
6865    
6866     fi
6867     fi
6868     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6869     if test -n "$MANIFEST_TOOL"; then
6870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6871     $as_echo "$MANIFEST_TOOL" >&6; }
6872     else
6873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874     $as_echo "no" >&6; }
6875     fi
6876    
6877    
6878     fi
6879     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6880     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6881     # Extract the first word of "mt", so it can be a program name with args.
6882     set dummy mt; ac_word=$2
6883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884     $as_echo_n "checking for $ac_word... " >&6; }
6885     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6886     $as_echo_n "(cached) " >&6
6887     else
6888     if test -n "$ac_ct_MANIFEST_TOOL"; then
6889     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6890     else
6891     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892     for as_dir in $PATH
6893     do
6894     IFS=$as_save_IFS
6895     test -z "$as_dir" && as_dir=.
6896     for ac_exec_ext in '' $ac_executable_extensions; do
6897     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900     break 2
6901     fi
6902 michael 5052 done
6903 michael 5059 done
6904 michael 5052 IFS=$as_save_IFS
6905    
6906     fi
6907     fi
6908 michael 5059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6909     if test -n "$ac_ct_MANIFEST_TOOL"; then
6910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6911     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6912 michael 5052 else
6913 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914     $as_echo "no" >&6; }
6915 michael 5052 fi
6916    
6917 michael 5059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6918     MANIFEST_TOOL=":"
6919     else
6920     case $cross_compiling:$ac_tool_warned in
6921     yes:)
6922     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924     ac_tool_warned=yes ;;
6925     esac
6926     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6927     fi
6928     else
6929     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6930     fi
6931 michael 5052
6932 michael 5059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6934     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6935     if ${lt_cv_path_mainfest_tool+:} false; then :
6936     $as_echo_n "(cached) " >&6
6937     else
6938     lt_cv_path_mainfest_tool=no
6939     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6940     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6941     cat conftest.err >&5
6942     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6943     lt_cv_path_mainfest_tool=yes
6944     fi
6945     rm -f conftest*
6946 michael 5052 fi
6947 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6948     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6949     if test yes != "$lt_cv_path_mainfest_tool"; then
6950     MANIFEST_TOOL=:
6951     fi
6952    
6953    
6954    
6955    
6956    
6957    
6958     case $host_os in
6959     rhapsody* | darwin*)
6960     if test -n "$ac_tool_prefix"; then
6961     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6962     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964     $as_echo_n "checking for $ac_word... " >&6; }
6965     if ${ac_cv_prog_DSYMUTIL+:} false; then :
6966     $as_echo_n "(cached) " >&6
6967 michael 5052 else
6968 michael 5059 if test -n "$DSYMUTIL"; then
6969     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6970 michael 5052 else
6971     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972     for as_dir in $PATH
6973     do
6974     IFS=$as_save_IFS
6975     test -z "$as_dir" && as_dir=.
6976 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6977     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 michael 5052 break 2
6981     fi
6982     done
6983 michael 5059 done
6984     IFS=$as_save_IFS
6985    
6986     fi
6987     fi
6988     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6989     if test -n "$DSYMUTIL"; then
6990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6991     $as_echo "$DSYMUTIL" >&6; }
6992     else
6993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994     $as_echo "no" >&6; }
6995     fi
6996    
6997    
6998     fi
6999     if test -z "$ac_cv_prog_DSYMUTIL"; then
7000     ac_ct_DSYMUTIL=$DSYMUTIL
7001     # Extract the first word of "dsymutil", so it can be a program name with args.
7002     set dummy dsymutil; ac_word=$2
7003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004     $as_echo_n "checking for $ac_word... " >&6; }
7005     if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7006     $as_echo_n "(cached) " >&6
7007     else
7008     if test -n "$ac_ct_DSYMUTIL"; then
7009     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7010     else
7011     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012     for as_dir in $PATH
7013     do
7014     IFS=$as_save_IFS
7015     test -z "$as_dir" && as_dir=.
7016     for ac_exec_ext in '' $ac_executable_extensions; do
7017     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021     fi
7022 michael 5052 done
7023 michael 5059 done
7024 michael 5052 IFS=$as_save_IFS
7025    
7026     fi
7027     fi
7028 michael 5059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7029     if test -n "$ac_ct_DSYMUTIL"; then
7030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7031     $as_echo "$ac_ct_DSYMUTIL" >&6; }
7032 michael 5052 else
7033 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034     $as_echo "no" >&6; }
7035 michael 5052 fi
7036    
7037 michael 5059 if test "x$ac_ct_DSYMUTIL" = x; then
7038     DSYMUTIL=":"
7039 michael 5052 else
7040     case $cross_compiling:$ac_tool_warned in
7041     yes:)
7042 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 michael 5052 ac_tool_warned=yes ;;
7045     esac
7046 michael 5059 DSYMUTIL=$ac_ct_DSYMUTIL
7047 michael 5052 fi
7048     else
7049 michael 5059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7050 michael 5052 fi
7051    
7052 michael 5059 if test -n "$ac_tool_prefix"; then
7053     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7054     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056     $as_echo_n "checking for $ac_word... " >&6; }
7057     if ${ac_cv_prog_NMEDIT+:} false; then :
7058     $as_echo_n "(cached) " >&6
7059 michael 5052 else
7060 michael 5059 if test -n "$NMEDIT"; then
7061     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7062 michael 5052 else
7063     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064     for as_dir in $PATH
7065     do
7066     IFS=$as_save_IFS
7067     test -z "$as_dir" && as_dir=.
7068 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7069     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 michael 5052 break 2
7073     fi
7074     done
7075 michael 5059 done
7076 michael 5052 IFS=$as_save_IFS
7077    
7078     fi
7079     fi
7080 michael 5059 NMEDIT=$ac_cv_prog_NMEDIT
7081     if test -n "$NMEDIT"; then
7082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7083     $as_echo "$NMEDIT" >&6; }
7084 michael 5052 else
7085 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086     $as_echo "no" >&6; }
7087 michael 5052 fi
7088    
7089    
7090     fi
7091 michael 5059 if test -z "$ac_cv_prog_NMEDIT"; then
7092     ac_ct_NMEDIT=$NMEDIT
7093     # Extract the first word of "nmedit", so it can be a program name with args.
7094     set dummy nmedit; ac_word=$2
7095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096     $as_echo_n "checking for $ac_word... " >&6; }
7097     if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7098     $as_echo_n "(cached) " >&6
7099 michael 5052 else
7100 michael 5059 if test -n "$ac_ct_NMEDIT"; then
7101     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7102 michael 5052 else
7103     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104     for as_dir in $PATH
7105     do
7106     IFS=$as_save_IFS
7107     test -z "$as_dir" && as_dir=.
7108 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7109     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 michael 5052 break 2
7113     fi
7114     done
7115 michael 5059 done
7116 michael 5052 IFS=$as_save_IFS
7117    
7118     fi
7119     fi
7120 michael 5059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7121     if test -n "$ac_ct_NMEDIT"; then
7122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7123     $as_echo "$ac_ct_NMEDIT" >&6; }
7124 michael 5052 else
7125 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126     $as_echo "no" >&6; }
7127 michael 5052 fi
7128    
7129 michael 5059 if test "x$ac_ct_NMEDIT" = x; then
7130     NMEDIT=":"
7131 michael 5052 else
7132     case $cross_compiling:$ac_tool_warned in
7133     yes:)
7134 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7135     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7136 michael 5052 ac_tool_warned=yes ;;
7137     esac
7138 michael 5059 NMEDIT=$ac_ct_NMEDIT
7139 michael 5052 fi
7140     else
7141 michael 5059 NMEDIT="$ac_cv_prog_NMEDIT"
7142 michael 5052 fi
7143    
7144 michael 5059 if test -n "$ac_tool_prefix"; then
7145     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7146     set dummy ${ac_tool_prefix}lipo; ac_word=$2
7147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148     $as_echo_n "checking for $ac_word... " >&6; }
7149     if ${ac_cv_prog_LIPO+:} false; then :
7150     $as_echo_n "(cached) " >&6
7151 michael 5052 else
7152 michael 5059 if test -n "$LIPO"; then
7153     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7154 michael 5052 else
7155     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156     for as_dir in $PATH
7157     do
7158     IFS=$as_save_IFS
7159     test -z "$as_dir" && as_dir=.
7160 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7161     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 michael 5052 break 2
7165     fi
7166     done
7167 michael 5059 done
7168     IFS=$as_save_IFS
7169    
7170     fi
7171     fi
7172     LIPO=$ac_cv_prog_LIPO
7173     if test -n "$LIPO"; then
7174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7175     $as_echo "$LIPO" >&6; }
7176     else
7177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178     $as_echo "no" >&6; }
7179     fi
7180    
7181    
7182     fi
7183     if test -z "$ac_cv_prog_LIPO"; then
7184     ac_ct_LIPO=$LIPO
7185     # Extract the first word of "lipo", so it can be a program name with args.
7186     set dummy lipo; ac_word=$2
7187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188     $as_echo_n "checking for $ac_word... " >&6; }
7189     if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7190     $as_echo_n "(cached) " >&6
7191     else
7192     if test -n "$ac_ct_LIPO"; then
7193     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7194     else
7195     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196     for as_dir in $PATH
7197     do
7198     IFS=$as_save_IFS
7199     test -z "$as_dir" && as_dir=.
7200     for ac_exec_ext in '' $ac_executable_extensions; do
7201     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202     ac_cv_prog_ac_ct_LIPO="lipo"
7203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205     fi
7206 michael 5052 done
7207 michael 5059 done
7208 michael 5052 IFS=$as_save_IFS
7209    
7210     fi
7211     fi
7212 michael 5059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7213     if test -n "$ac_ct_LIPO"; then
7214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7215     $as_echo "$ac_ct_LIPO" >&6; }
7216 michael 5052 else
7217 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218     $as_echo "no" >&6; }
7219 michael 5052 fi
7220    
7221 michael 5059 if test "x$ac_ct_LIPO" = x; then
7222     LIPO=":"
7223     else
7224     case $cross_compiling:$ac_tool_warned in
7225     yes:)
7226     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7227     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7228     ac_tool_warned=yes ;;
7229     esac
7230     LIPO=$ac_ct_LIPO
7231     fi
7232     else
7233     LIPO="$ac_cv_prog_LIPO"
7234     fi
7235 michael 5052
7236 michael 5059 if test -n "$ac_tool_prefix"; then
7237     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7238     set dummy ${ac_tool_prefix}otool; ac_word=$2
7239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240     $as_echo_n "checking for $ac_word... " >&6; }
7241     if ${ac_cv_prog_OTOOL+:} false; then :
7242     $as_echo_n "(cached) " >&6
7243     else
7244     if test -n "$OTOOL"; then
7245     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7246     else
7247     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248     for as_dir in $PATH
7249     do
7250     IFS=$as_save_IFS
7251     test -z "$as_dir" && as_dir=.
7252     for ac_exec_ext in '' $ac_executable_extensions; do
7253     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257     fi
7258     done
7259     done
7260     IFS=$as_save_IFS
7261    
7262 michael 5052 fi
7263 michael 5059 fi
7264     OTOOL=$ac_cv_prog_OTOOL
7265     if test -n "$OTOOL"; then
7266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7267     $as_echo "$OTOOL" >&6; }
7268 michael 5052 else
7269 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270     $as_echo "no" >&6; }
7271     fi
7272    
7273    
7274     fi
7275     if test -z "$ac_cv_prog_OTOOL"; then
7276     ac_ct_OTOOL=$OTOOL
7277     # Extract the first word of "otool", so it can be a program name with args.
7278     set dummy otool; ac_word=$2
7279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280     $as_echo_n "checking for $ac_word... " >&6; }
7281     if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7282     $as_echo_n "(cached) " >&6
7283 michael 5052 else
7284 michael 5059 if test -n "$ac_ct_OTOOL"; then
7285     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7286     else
7287 michael 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288     for as_dir in $PATH
7289     do
7290     IFS=$as_save_IFS
7291     test -z "$as_dir" && as_dir=.
7292 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7293     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294     ac_cv_prog_ac_ct_OTOOL="otool"
7295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 michael 5052 break 2
7297     fi
7298     done
7299 michael 5059 done
7300     IFS=$as_save_IFS
7301    
7302     fi
7303     fi
7304     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7305     if test -n "$ac_ct_OTOOL"; then
7306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7307     $as_echo "$ac_ct_OTOOL" >&6; }
7308     else
7309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310     $as_echo "no" >&6; }
7311     fi
7312    
7313     if test "x$ac_ct_OTOOL" = x; then
7314     OTOOL=":"
7315     else
7316     case $cross_compiling:$ac_tool_warned in
7317     yes:)
7318     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7319     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7320     ac_tool_warned=yes ;;
7321     esac
7322     OTOOL=$ac_ct_OTOOL
7323     fi
7324     else
7325     OTOOL="$ac_cv_prog_OTOOL"
7326     fi
7327    
7328     if test -n "$ac_tool_prefix"; then
7329     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7330     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332     $as_echo_n "checking for $ac_word... " >&6; }
7333     if ${ac_cv_prog_OTOOL64+:} false; then :
7334     $as_echo_n "(cached) " >&6
7335     else
7336     if test -n "$OTOOL64"; then
7337     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7338     else
7339     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340     for as_dir in $PATH
7341     do
7342     IFS=$as_save_IFS
7343     test -z "$as_dir" && as_dir=.
7344     for ac_exec_ext in '' $ac_executable_extensions; do
7345     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348     break 2
7349     fi
7350 michael 5052 done
7351 michael 5059 done
7352 michael 5052 IFS=$as_save_IFS
7353    
7354     fi
7355     fi
7356 michael 5059 OTOOL64=$ac_cv_prog_OTOOL64
7357     if test -n "$OTOOL64"; then
7358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7359     $as_echo "$OTOOL64" >&6; }
7360 michael 5052 else
7361 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362     $as_echo "no" >&6; }
7363 michael 5052 fi
7364    
7365 michael 5059
7366     fi
7367     if test -z "$ac_cv_prog_OTOOL64"; then
7368     ac_ct_OTOOL64=$OTOOL64
7369     # Extract the first word of "otool64", so it can be a program name with args.
7370     set dummy otool64; ac_word=$2
7371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372     $as_echo_n "checking for $ac_word... " >&6; }
7373     if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7374     $as_echo_n "(cached) " >&6
7375     else
7376     if test -n "$ac_ct_OTOOL64"; then
7377     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7378     else
7379     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380     for as_dir in $PATH
7381     do
7382     IFS=$as_save_IFS
7383     test -z "$as_dir" && as_dir=.
7384     for ac_exec_ext in '' $ac_executable_extensions; do
7385     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386     ac_cv_prog_ac_ct_OTOOL64="otool64"
7387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389     fi
7390     done
7391     done
7392     IFS=$as_save_IFS
7393    
7394     fi
7395     fi
7396     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7397     if test -n "$ac_ct_OTOOL64"; then
7398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7399     $as_echo "$ac_ct_OTOOL64" >&6; }
7400     else
7401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402     $as_echo "no" >&6; }
7403     fi
7404    
7405     if test "x$ac_ct_OTOOL64" = x; then
7406     OTOOL64=":"
7407 michael 5052 else
7408     case $cross_compiling:$ac_tool_warned in
7409     yes:)
7410 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7411     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7412 michael 5052 ac_tool_warned=yes ;;
7413     esac
7414 michael 5059 OTOOL64=$ac_ct_OTOOL64
7415 michael 5052 fi
7416     else
7417 michael 5059 OTOOL64="$ac_cv_prog_OTOOL64"
7418 michael 5052 fi
7419    
7420    
7421    
7422 michael 5059
7423    
7424    
7425    
7426    
7427    
7428    
7429    
7430    
7431    
7432    
7433    
7434    
7435    
7436    
7437    
7438    
7439    
7440    
7441    
7442    
7443    
7444    
7445    
7446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7447     $as_echo_n "checking for -single_module linker flag... " >&6; }
7448     if ${lt_cv_apple_cc_single_mod+:} false; then :
7449     $as_echo_n "(cached) " >&6
7450     else
7451     lt_cv_apple_cc_single_mod=no
7452     if test -z "$LT_MULTI_MODULE"; then
7453     # By default we will add the -single_module flag. You can override
7454     # by either setting the environment variable LT_MULTI_MODULE
7455     # non-empty at configure time, or by adding -multi_module to the
7456     # link flags.
7457     rm -rf libconftest.dylib*
7458     echo "int foo(void){return 1;}" > conftest.c
7459     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7460     -dynamiclib -Wl,-single_module conftest.c" >&5
7461     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7462     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7463     _lt_result=$?
7464     # If there is a non-empty error log, and "single_module"
7465     # appears in it, assume the flag caused a linker warning
7466     if test -s conftest.err && $GREP single_module conftest.err; then
7467     cat conftest.err >&5
7468     # Otherwise, if the output was created with a 0 exit code from
7469     # the compiler, it worked.
7470     elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7471     lt_cv_apple_cc_single_mod=yes
7472     else
7473     cat conftest.err >&5
7474     fi
7475     rm -rf libconftest.dylib*
7476     rm -f conftest.*
7477     fi
7478     fi
7479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7480     $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7481    
7482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7483     $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7484     if ${lt_cv_ld_exported_symbols_list+:} false; then :
7485     $as_echo_n "(cached) " >&6
7486     else
7487     lt_cv_ld_exported_symbols_list=no
7488     save_LDFLAGS=$LDFLAGS
7489     echo "_main" > conftest.sym
7490     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7491     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492     /* end confdefs.h. */
7493    
7494     int
7495     main ()
7496     {
7497    
7498     ;
7499     return 0;
7500     }
7501     _ACEOF
7502     if ac_fn_c_try_link "$LINENO"; then :
7503     lt_cv_ld_exported_symbols_list=yes
7504     else
7505     lt_cv_ld_exported_symbols_list=no
7506     fi
7507     rm -f core conftest.err conftest.$ac_objext \
7508     conftest$ac_exeext conftest.$ac_ext
7509     LDFLAGS=$save_LDFLAGS
7510    
7511     fi
7512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7513     $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7514    
7515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7516     $as_echo_n "checking for -force_load linker flag... " >&6; }
7517     if ${lt_cv_ld_force_load+:} false; then :
7518     $as_echo_n "(cached) " >&6
7519     else
7520     lt_cv_ld_force_load=no
7521     cat > conftest.c << _LT_EOF
7522     int forced_loaded() { return 2;}
7523     _LT_EOF
7524     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7525     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7526     echo "$AR cru libconftest.a conftest.o" >&5
7527     $AR cru libconftest.a conftest.o 2>&5
7528     echo "$RANLIB libconftest.a" >&5
7529     $RANLIB libconftest.a 2>&5
7530     cat > conftest.c << _LT_EOF
7531     int main() { return 0;}
7532     _LT_EOF
7533     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7534     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7535     _lt_result=$?
7536     if test -s conftest.err && $GREP force_load conftest.err; then
7537     cat conftest.err >&5
7538     elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7539     lt_cv_ld_force_load=yes
7540     else
7541     cat conftest.err >&5
7542     fi
7543     rm -f conftest.err libconftest.a conftest conftest.c
7544     rm -rf conftest.dSYM
7545    
7546     fi
7547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7548     $as_echo "$lt_cv_ld_force_load" >&6; }
7549     case $host_os in
7550     rhapsody* | darwin1.[012])
7551     _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7552     darwin1.*)
7553     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7554     darwin*) # darwin 5.x on
7555     # if running on 10.5 or later, the deployment target defaults
7556     # to the OS version, if on x86, and 10.4, the deployment
7557     # target defaults to 10.4. Don't you love it?
7558     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7559     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7560     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7561     10.[012][,.]*)
7562     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7563     10.*)
7564     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7565     esac
7566     ;;
7567     esac
7568     if test yes = "$lt_cv_apple_cc_single_mod"; then
7569     _lt_dar_single_mod='$single_module'
7570     fi
7571     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7572     _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7573     else
7574     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7575     fi
7576     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7577     _lt_dsymutil='~$DSYMUTIL $lib || :'
7578     else
7579     _lt_dsymutil=
7580     fi
7581     ;;
7582     esac
7583    
7584     ac_ext=c
7585     ac_cpp='$CPP $CPPFLAGS'
7586     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7587     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7588     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7590     $as_echo_n "checking how to run the C preprocessor... " >&6; }
7591     # On Suns, sometimes $CPP names a directory.
7592     if test -n "$CPP" && test -d "$CPP"; then
7593     CPP=
7594     fi
7595     if test -z "$CPP"; then
7596     if ${ac_cv_prog_CPP+:} false; then :
7597     $as_echo_n "(cached) " >&6
7598     else
7599     # Double quotes because CPP needs to be expanded
7600     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7601     do
7602     ac_preproc_ok=false
7603     for ac_c_preproc_warn_flag in '' yes
7604     do
7605     # Use a header file that comes with gcc, so configuring glibc
7606     # with a fresh cross-compiler works.
7607     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7608     # <limits.h> exists even on freestanding compilers.
7609     # On the NeXT, cc -E runs the code through the compiler's parser,
7610     # not just through cpp. "Syntax error" is here to catch this case.
7611     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612     /* end confdefs.h. */
7613     #ifdef __STDC__
7614     # include <limits.h>
7615     #else
7616     # include <assert.h>
7617     #endif
7618     Syntax error
7619     _ACEOF
7620     if ac_fn_c_try_cpp "$LINENO"; then :
7621    
7622     else
7623     # Broken: fails on valid input.
7624     continue
7625     fi
7626     rm -f conftest.err conftest.i conftest.$ac_ext
7627    
7628     # OK, works on sane cases. Now check whether nonexistent headers
7629     # can be detected and how.
7630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631     /* end confdefs.h. */
7632     #include <ac_nonexistent.h>
7633     _ACEOF
7634     if ac_fn_c_try_cpp "$LINENO"; then :
7635     # Broken: success on invalid input.
7636     continue
7637     else
7638     # Passes both tests.
7639     ac_preproc_ok=:
7640     break
7641     fi
7642     rm -f conftest.err conftest.i conftest.$ac_ext
7643    
7644     done
7645     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7646     rm -f conftest.i conftest.err conftest.$ac_ext
7647     if $ac_preproc_ok; then :
7648     break
7649     fi
7650    
7651     done
7652     ac_cv_prog_CPP=$CPP
7653    
7654     fi
7655     CPP=$ac_cv_prog_CPP
7656     else
7657     ac_cv_prog_CPP=$CPP
7658     fi
7659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7660     $as_echo "$CPP" >&6; }
7661     ac_preproc_ok=false
7662     for ac_c_preproc_warn_flag in '' yes
7663     do
7664     # Use a header file that comes with gcc, so configuring glibc
7665     # with a fresh cross-compiler works.
7666     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667     # <limits.h> exists even on freestanding compilers.
7668     # On the NeXT, cc -E runs the code through the compiler's parser,
7669     # not just through cpp. "Syntax error" is here to catch this case.
7670     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671     /* end confdefs.h. */
7672     #ifdef __STDC__
7673     # include <limits.h>
7674     #else
7675     # include <assert.h>
7676     #endif
7677     Syntax error
7678     _ACEOF
7679     if ac_fn_c_try_cpp "$LINENO"; then :
7680    
7681     else
7682     # Broken: fails on valid input.
7683     continue
7684     fi
7685     rm -f conftest.err conftest.i conftest.$ac_ext
7686    
7687     # OK, works on sane cases. Now check whether nonexistent headers
7688     # can be detected and how.
7689     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690     /* end confdefs.h. */
7691     #include <ac_nonexistent.h>
7692     _ACEOF
7693     if ac_fn_c_try_cpp "$LINENO"; then :
7694     # Broken: success on invalid input.
7695     continue
7696     else
7697     # Passes both tests.
7698     ac_preproc_ok=:
7699     break
7700     fi
7701     rm -f conftest.err conftest.i conftest.$ac_ext
7702    
7703     done
7704     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7705     rm -f conftest.i conftest.err conftest.$ac_ext
7706     if $ac_preproc_ok; then :
7707    
7708     else
7709     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7710     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7711     as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7712     See \`config.log' for more details" "$LINENO" 5; }
7713     fi
7714    
7715     ac_ext=c
7716     ac_cpp='$CPP $CPPFLAGS'
7717     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7720    
7721    
7722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7723     $as_echo_n "checking for ANSI C header files... " >&6; }
7724     if ${ac_cv_header_stdc+:} false; then :
7725     $as_echo_n "(cached) " >&6
7726     else
7727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728     /* end confdefs.h. */
7729     #include <stdlib.h>
7730     #include <stdarg.h>
7731     #include <string.h>
7732     #include <float.h>
7733    
7734     int
7735     main ()
7736     {
7737    
7738     ;
7739     return 0;
7740     }
7741     _ACEOF
7742     if ac_fn_c_try_compile "$LINENO"; then :
7743     ac_cv_header_stdc=yes
7744     else
7745     ac_cv_header_stdc=no
7746     fi
7747     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748    
7749     if test $ac_cv_header_stdc = yes; then
7750     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752     /* end confdefs.h. */
7753     #include <string.h>
7754    
7755     _ACEOF
7756     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7757     $EGREP "memchr" >/dev/null 2>&1; then :
7758    
7759     else
7760     ac_cv_header_stdc=no
7761     fi
7762     rm -f conftest*
7763    
7764     fi
7765    
7766     if test $ac_cv_header_stdc = yes; then
7767     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7768     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769     /* end confdefs.h. */
7770     #include <stdlib.h>
7771    
7772     _ACEOF
7773     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7774     $EGREP "free" >/dev/null 2>&1; then :
7775    
7776     else
7777     ac_cv_header_stdc=no
7778     fi
7779     rm -f conftest*
7780    
7781     fi
7782    
7783     if test $ac_cv_header_stdc = yes; then
7784     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7785     if test "$cross_compiling" = yes; then :
7786     :
7787     else
7788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789     /* end confdefs.h. */
7790     #include <ctype.h>
7791     #include <stdlib.h>
7792     #if ((' ' & 0x0FF) == 0x020)
7793     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7794     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7795     #else
7796     # define ISLOWER(c) \
7797     (('a' <= (c) && (c) <= 'i') \
7798     || ('j' <= (c) && (c) <= 'r') \
7799     || ('s' <= (c) && (c) <= 'z'))
7800     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7801     #endif
7802    
7803     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7804     int
7805     main ()
7806     {
7807     int i;
7808     for (i = 0; i < 256; i++)
7809     if (XOR (islower (i), ISLOWER (i))
7810     || toupper (i) != TOUPPER (i))
7811     return 2;
7812     return 0;
7813     }
7814     _ACEOF
7815     if ac_fn_c_try_run "$LINENO"; then :
7816    
7817     else
7818     ac_cv_header_stdc=no
7819     fi
7820     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7821     conftest.$ac_objext conftest.beam conftest.$ac_ext
7822     fi
7823    
7824     fi
7825     fi
7826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7827     $as_echo "$ac_cv_header_stdc" >&6; }
7828     if test $ac_cv_header_stdc = yes; then
7829    
7830     $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7831    
7832     fi
7833    
7834     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7835     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7836     inttypes.h stdint.h unistd.h
7837     do :
7838     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7839     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7840     "
7841     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7842     cat >>confdefs.h <<_ACEOF
7843     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7844     _ACEOF
7845    
7846     fi
7847    
7848     done
7849    
7850    
7851     for ac_header in dlfcn.h
7852     do :
7853     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7854     "
7855     if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7856     cat >>confdefs.h <<_ACEOF
7857     #define HAVE_DLFCN_H 1
7858     _ACEOF
7859    
7860     fi
7861    
7862     done
7863    
7864    
7865    
7866    
7867    
7868     # Set options
7869    
7870    
7871    
7872     enable_dlopen=no
7873    
7874    
7875     enable_win32_dll=no
7876    
7877    
7878     # Check whether --enable-shared was given.
7879     if test "${enable_shared+set}" = set; then :
7880     enableval=$enable_shared; p=${PACKAGE-default}
7881     case $enableval in
7882     yes) enable_shared=yes ;;
7883     no) enable_shared=no ;;
7884     *)
7885     enable_shared=no
7886     # Look at the argument we got. We use all the common list separators.
7887     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7888     for pkg in $enableval; do
7889     IFS=$lt_save_ifs
7890     if test "X$pkg" = "X$p"; then
7891     enable_shared=yes
7892     fi
7893     done
7894     IFS=$lt_save_ifs
7895     ;;
7896     esac
7897     else
7898     enable_shared=yes
7899     fi
7900    
7901    
7902    
7903    
7904    
7905    
7906    
7907    
7908    
7909     # Check whether --enable-static was given.
7910     if test "${enable_static+set}" = set; then :
7911     enableval=$enable_static; p=${PACKAGE-default}
7912     case $enableval in
7913     yes) enable_static=yes ;;
7914     no) enable_static=no ;;
7915     *)
7916     enable_static=no
7917     # Look at the argument we got. We use all the common list separators.
7918     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7919     for pkg in $enableval; do
7920     IFS=$lt_save_ifs
7921     if test "X$pkg" = "X$p"; then
7922     enable_static=yes
7923     fi
7924     done
7925     IFS=$lt_save_ifs
7926     ;;
7927     esac
7928     else
7929     enable_static=yes
7930     fi
7931    
7932    
7933    
7934    
7935    
7936    
7937    
7938    
7939    
7940    
7941     # Check whether --with-pic was given.
7942     if test "${with_pic+set}" = set; then :
7943     withval=$with_pic; lt_p=${PACKAGE-default}
7944     case $withval in
7945     yes|no) pic_mode=$withval ;;
7946     *)
7947     pic_mode=default
7948     # Look at the argument we got. We use all the common list separators.
7949     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7950     for lt_pkg in $withval; do
7951     IFS=$lt_save_ifs
7952     if test "X$lt_pkg" = "X$lt_p"; then
7953     pic_mode=yes
7954     fi
7955     done
7956     IFS=$lt_save_ifs
7957     ;;
7958     esac
7959     else
7960     pic_mode=default
7961     fi
7962    
7963    
7964    
7965    
7966    
7967    
7968    
7969    
7970     # Check whether --enable-fast-install was given.
7971     if test "${enable_fast_install+set}" = set; then :
7972     enableval=$enable_fast_install; p=${PACKAGE-default}
7973     case $enableval in
7974     yes) enable_fast_install=yes ;;
7975     no) enable_fast_install=no ;;
7976     *)
7977     enable_fast_install=no
7978     # Look at the argument we got. We use all the common list separators.
7979     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7980     for pkg in $enableval; do
7981     IFS=$lt_save_ifs
7982     if test "X$pkg" = "X$p"; then
7983     enable_fast_install=yes
7984     fi
7985     done
7986     IFS=$lt_save_ifs
7987     ;;
7988     esac
7989     else
7990     enable_fast_install=yes
7991     fi
7992    
7993    
7994    
7995    
7996    
7997    
7998    
7999    
8000     shared_archive_member_spec=
8001     case $host,$enable_shared in
8002     power*-*-aix[5-9]*,yes)
8003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8004     $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8005    
8006     # Check whether --with-aix-soname was given.
8007     if test "${with_aix_soname+set}" = set; then :
8008     withval=$with_aix_soname; case $withval in
8009     aix|svr4|both)
8010     ;;
8011     *)
8012     as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8013     ;;
8014     esac
8015     lt_cv_with_aix_soname=$with_aix_soname
8016     else
8017     if ${lt_cv_with_aix_soname+:} false; then :
8018     $as_echo_n "(cached) " >&6
8019     else
8020     lt_cv_with_aix_soname=aix
8021     fi
8022    
8023     with_aix_soname=$lt_cv_with_aix_soname
8024     fi
8025    
8026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8027     $as_echo "$with_aix_soname" >&6; }
8028     if test aix != "$with_aix_soname"; then
8029     # For the AIX way of multilib, we name the shared archive member
8030     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8031     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8032     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8033     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8034     if test 64 = "${OBJECT_MODE-32}"; then
8035     shared_archive_member_spec=shr_64
8036     else
8037     shared_archive_member_spec=shr
8038     fi
8039     fi
8040     ;;
8041     *)
8042     with_aix_soname=aix
8043     ;;
8044     esac
8045    
8046    
8047    
8048    
8049    
8050    
8051    
8052    
8053    
8054    
8055     # This can be used to rebuild libtool when needed
8056     LIBTOOL_DEPS=$ltmain
8057    
8058     # Always use our own libtool.
8059     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8060    
8061    
8062    
8063    
8064    
8065    
8066    
8067    
8068    
8069    
8070    
8071    
8072    
8073    
8074    
8075    
8076    
8077    
8078    
8079    
8080    
8081    
8082    
8083    
8084    
8085    
8086    
8087    
8088    
8089    
8090     test -z "$LN_S" && LN_S="ln -s"
8091    
8092    
8093    
8094    
8095    
8096    
8097    
8098    
8099    
8100    
8101    
8102    
8103    
8104    
8105     if test -n "${ZSH_VERSION+set}"; then
8106     setopt NO_GLOB_SUBST
8107     fi
8108    
8109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8110     $as_echo_n "checking for objdir... " >&6; }
8111     if ${lt_cv_objdir+:} false; then :
8112     $as_echo_n "(cached) " >&6
8113     else
8114     rm -f .libs 2>/dev/null
8115     mkdir .libs 2>/dev/null
8116     if test -d .libs; then
8117     lt_cv_objdir=.libs
8118     else
8119     # MS-DOS does not allow filenames that begin with a dot.
8120     lt_cv_objdir=_libs
8121     fi
8122     rmdir .libs 2>/dev/null
8123     fi
8124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8125     $as_echo "$lt_cv_objdir" >&6; }
8126     objdir=$lt_cv_objdir
8127    
8128    
8129    
8130    
8131    
8132     cat >>confdefs.h <<_ACEOF
8133     #define LT_OBJDIR "$lt_cv_objdir/"
8134     _ACEOF
8135    
8136    
8137    
8138    
8139     case $host_os in
8140     aix3*)
8141     # AIX sometimes has problems with the GCC collect2 program. For some
8142     # reason, if we set the COLLECT_NAMES environment variable, the problems
8143     # vanish in a puff of smoke.
8144     if test set != "${COLLECT_NAMES+set}"; then
8145     COLLECT_NAMES=
8146     export COLLECT_NAMES
8147     fi
8148     ;;
8149     esac
8150    
8151     # Global variables:
8152     ofile=libtool
8153     can_build_shared=yes
8154    
8155     # All known linkers require a '.a' archive for static linking (except MSVC,
8156     # which needs '.lib').
8157     libext=a
8158    
8159     with_gnu_ld=$lt_cv_prog_gnu_ld
8160    
8161     old_CC=$CC
8162     old_CFLAGS=$CFLAGS
8163    
8164 michael 5052 # Set sane defaults for various variables
8165     test -z "$CC" && CC=cc
8166     test -z "$LTCC" && LTCC=$CC
8167     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8168     test -z "$LD" && LD=ld
8169     test -z "$ac_objext" && ac_objext=o
8170    
8171     for cc_temp in $compiler""; do
8172     case $cc_temp in
8173     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8174     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8175     \-*) ;;
8176     *) break;;
8177     esac
8178     done
8179 michael 5059 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8180 michael 5052
8181    
8182     # Only perform the check for file, if the check method requires it
8183 michael 5059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8184 michael 5052 case $deplibs_check_method in
8185     file_magic*)
8186     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8187 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8188     $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8189     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8190     $as_echo_n "(cached) " >&6
8191 michael 5052 else
8192     case $MAGIC_CMD in
8193     [\\/*] | ?:[\\/]*)
8194 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8195 michael 5052 ;;
8196     *)
8197 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8198     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8199 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8200     for ac_dir in $ac_dummy; do
8201 michael 5059 IFS=$lt_save_ifs
8202 michael 5052 test -z "$ac_dir" && ac_dir=.
8203 michael 5059 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8204     lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8205 michael 5052 if test -n "$file_magic_test_file"; then
8206     case $deplibs_check_method in
8207     "file_magic "*)
8208     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8209 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8210 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8211     $EGREP "$file_magic_regex" > /dev/null; then
8212     :
8213     else
8214 michael 5059 cat <<_LT_EOF 1>&2
8215 michael 5052
8216     *** Warning: the command libtool uses to detect shared libraries,
8217     *** $file_magic_cmd, produces output that libtool cannot recognize.
8218     *** The result is that libtool may fail to recognize shared libraries
8219     *** as such. This will affect the creation of libtool libraries that
8220     *** depend on shared libraries, but programs linked with such libtool
8221     *** libraries will work regardless of this problem. Nevertheless, you
8222     *** may want to report the problem to your system manager and/or to
8223     *** bug-libtool@gnu.org
8224    
8225 michael 5059 _LT_EOF
8226 michael 5052 fi ;;
8227     esac
8228     fi
8229     break
8230     fi
8231     done
8232 michael 5059 IFS=$lt_save_ifs
8233     MAGIC_CMD=$lt_save_MAGIC_CMD
8234 michael 5052 ;;
8235     esac
8236     fi
8237    
8238 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8239 michael 5052 if test -n "$MAGIC_CMD"; then
8240 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8241     $as_echo "$MAGIC_CMD" >&6; }
8242 michael 5052 else
8243 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244     $as_echo "no" >&6; }
8245 michael 5052 fi
8246    
8247 michael 5059
8248    
8249    
8250    
8251 michael 5052 if test -z "$lt_cv_path_MAGIC_CMD"; then
8252     if test -n "$ac_tool_prefix"; then
8253 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8254     $as_echo_n "checking for file... " >&6; }
8255     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8256     $as_echo_n "(cached) " >&6
8257 michael 5052 else
8258     case $MAGIC_CMD in
8259     [\\/*] | ?:[\\/]*)
8260 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8261 michael 5052 ;;
8262     *)
8263 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8264     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8265 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8266     for ac_dir in $ac_dummy; do
8267 michael 5059 IFS=$lt_save_ifs
8268 michael 5052 test -z "$ac_dir" && ac_dir=.
8269 michael 5059 if test -f "$ac_dir/file"; then
8270     lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8271 michael 5052 if test -n "$file_magic_test_file"; then
8272     case $deplibs_check_method in
8273     "file_magic "*)
8274     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8275 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8276 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8277     $EGREP "$file_magic_regex" > /dev/null; then
8278     :
8279     else
8280 michael 5059 cat <<_LT_EOF 1>&2
8281 michael 5052
8282     *** Warning: the command libtool uses to detect shared libraries,
8283     *** $file_magic_cmd, produces output that libtool cannot recognize.
8284     *** The result is that libtool may fail to recognize shared libraries
8285     *** as such. This will affect the creation of libtool libraries that
8286     *** depend on shared libraries, but programs linked with such libtool
8287     *** libraries will work regardless of this problem. Nevertheless, you
8288     *** may want to report the problem to your system manager and/or to
8289     *** bug-libtool@gnu.org
8290    
8291 michael 5059 _LT_EOF
8292 michael 5052 fi ;;
8293     esac
8294     fi
8295     break
8296     fi
8297     done
8298 michael 5059 IFS=$lt_save_ifs
8299     MAGIC_CMD=$lt_save_MAGIC_CMD
8300 michael 5052 ;;
8301     esac
8302     fi
8303    
8304 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8305 michael 5052 if test -n "$MAGIC_CMD"; then
8306 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8307     $as_echo "$MAGIC_CMD" >&6; }
8308 michael 5052 else
8309 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310     $as_echo "no" >&6; }
8311 michael 5052 fi
8312    
8313 michael 5059
8314 michael 5052 else
8315     MAGIC_CMD=:
8316     fi
8317     fi
8318    
8319     fi
8320     ;;
8321     esac
8322    
8323 michael 5059 # Use C for the default configuration in the libtool script
8324 michael 5052
8325 michael 5059 lt_save_CC=$CC
8326 michael 5052 ac_ext=c
8327     ac_cpp='$CPP $CPPFLAGS'
8328     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8329     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8330     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8331    
8332    
8333     # Source file extension for C test sources.
8334     ac_ext=c
8335    
8336     # Object file extension for compiled C test sources.
8337     objext=o
8338     objext=$objext
8339    
8340     # Code to be used in simple compile tests
8341 michael 5059 lt_simple_compile_test_code="int some_variable = 0;"
8342 michael 5052
8343     # Code to be used in simple link tests
8344 michael 5059 lt_simple_link_test_code='int main(){return(0);}'
8345 michael 5052
8346    
8347 michael 5059
8348    
8349    
8350    
8351    
8352 michael 5052 # If no C compiler was specified, use CC.
8353     LTCC=${LTCC-"$CC"}
8354    
8355     # If no C compiler flags were specified, use CFLAGS.
8356     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8357    
8358     # Allow CC to be a program name with arguments.
8359     compiler=$CC
8360    
8361 michael 5059 # Save the default compiler, since it gets overwritten when the other
8362     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8363     compiler_DEFAULT=$CC
8364 michael 5052
8365     # save warnings/boilerplate of simple test code
8366     ac_outfile=conftest.$ac_objext
8367 michael 5059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8368 michael 5052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8369     _lt_compiler_boilerplate=`cat conftest.err`
8370 michael 5059 $RM conftest*
8371 michael 5052
8372     ac_outfile=conftest.$ac_objext
8373 michael 5059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8374 michael 5052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8375     _lt_linker_boilerplate=`cat conftest.err`
8376 michael 5059 $RM -r conftest*
8377 michael 5052
8378    
8379 michael 5059 if test -n "$compiler"; then
8380 michael 5052
8381     lt_prog_compiler_no_builtin_flag=
8382    
8383 michael 5059 if test yes = "$GCC"; then
8384     case $cc_basename in
8385     nvcc*)
8386     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8387     *)
8388     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8389     esac
8390 michael 5052
8391 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8392     $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8393     if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8394     $as_echo_n "(cached) " >&6
8395 michael 5052 else
8396     lt_cv_prog_compiler_rtti_exceptions=no
8397 michael 5059 ac_outfile=conftest.$ac_objext
8398     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8399     lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8400 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8401     # (2) before a word containing "conftest.", or (3) at the end.
8402     # Note that $ac_compile itself does not contain backslashes and begins
8403     # with a dollar sign (not a hyphen), so the echo should work correctly.
8404     # The option is referenced via a variable to avoid confusing sed.
8405     lt_compile=`echo "$ac_compile" | $SED \
8406     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8407     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8408     -e 's:$: $lt_compiler_flag:'`
8409 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8410 michael 5052 (eval "$lt_compile" 2>conftest.err)
8411     ac_status=$?
8412     cat conftest.err >&5
8413 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8415     # The compiler can only warn and ignore the option if not recognized
8416     # So say no if there are warnings other than the usual output.
8417 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8418 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8419     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8420     lt_cv_prog_compiler_rtti_exceptions=yes
8421     fi
8422     fi
8423 michael 5059 $RM conftest*
8424 michael 5052
8425     fi
8426 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8427     $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8428 michael 5052
8429 michael 5059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8430 michael 5052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8431     else
8432     :
8433     fi
8434    
8435     fi
8436    
8437 michael 5059
8438    
8439    
8440    
8441    
8442     lt_prog_compiler_wl=
8443 michael 5052 lt_prog_compiler_pic=
8444     lt_prog_compiler_static=
8445    
8446    
8447 michael 5059 if test yes = "$GCC"; then
8448 michael 5052 lt_prog_compiler_wl='-Wl,'
8449     lt_prog_compiler_static='-static'
8450    
8451     case $host_os in
8452     aix*)
8453     # All AIX code is PIC.
8454 michael 5059 if test ia64 = "$host_cpu"; then
8455 michael 5052 # AIX 5 now supports IA64 processor
8456     lt_prog_compiler_static='-Bstatic'
8457     fi
8458 michael 5059 lt_prog_compiler_pic='-fPIC'
8459 michael 5052 ;;
8460    
8461     amigaos*)
8462 michael 5059 case $host_cpu in
8463     powerpc)
8464     # see comment about AmigaOS4 .so support
8465     lt_prog_compiler_pic='-fPIC'
8466     ;;
8467     m68k)
8468     # FIXME: we need at least 68020 code to build shared libraries, but
8469     # adding the '-m68020' flag to GCC prevents building anything better,
8470     # like '-m68040'.
8471     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8472     ;;
8473     esac
8474 michael 5052 ;;
8475    
8476 michael 5059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8477 michael 5052 # PIC is the default for these OSes.
8478     ;;
8479    
8480 michael 5059 mingw* | cygwin* | pw32* | os2* | cegcc*)
8481 michael 5052 # This hack is so that the source file can tell whether it is being
8482     # built for inclusion in a dll (and should export symbols for example).
8483 michael 5059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8484     # (--disable-auto-import) libraries
8485 michael 5052 lt_prog_compiler_pic='-DDLL_EXPORT'
8486 michael 5059 case $host_os in
8487     os2*)
8488     lt_prog_compiler_static='$wl-static'
8489     ;;
8490     esac
8491 michael 5052 ;;
8492    
8493     darwin* | rhapsody*)
8494     # PIC is the default on this platform
8495     # Common symbols not allowed in MH_DYLIB files
8496     lt_prog_compiler_pic='-fno-common'
8497     ;;
8498    
8499 michael 5059 haiku*)
8500     # PIC is the default for Haiku.
8501     # The "-static" flag exists, but is broken.
8502     lt_prog_compiler_static=
8503     ;;
8504    
8505     hpux*)
8506     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8507     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8508     # sets the default TLS model and affects inlining.
8509     case $host_cpu in
8510     hppa*64*)
8511     # +Z the default
8512     ;;
8513     *)
8514     lt_prog_compiler_pic='-fPIC'
8515     ;;
8516     esac
8517     ;;
8518    
8519     interix[3-9]*)
8520 michael 5052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8521     # Instead, we relocate shared libraries at runtime.
8522     ;;
8523    
8524     msdosdjgpp*)
8525     # Just because we use GCC doesn't mean we suddenly get shared libraries
8526     # on systems that don't support them.
8527     lt_prog_compiler_can_build_shared=no
8528     enable_shared=no
8529     ;;
8530    
8531 michael 5059 *nto* | *qnx*)
8532     # QNX uses GNU C++, but need to define -shared option too, otherwise
8533     # it will coredump.
8534     lt_prog_compiler_pic='-fPIC -shared'
8535     ;;
8536    
8537 michael 5052 sysv4*MP*)
8538     if test -d /usr/nec; then
8539     lt_prog_compiler_pic=-Kconform_pic
8540     fi
8541     ;;
8542    
8543     *)
8544     lt_prog_compiler_pic='-fPIC'
8545     ;;
8546     esac
8547 michael 5059
8548     case $cc_basename in
8549     nvcc*) # Cuda Compiler Driver 2.2
8550     lt_prog_compiler_wl='-Xlinker '
8551     if test -n "$lt_prog_compiler_pic"; then
8552     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8553     fi
8554     ;;
8555     esac
8556 michael 5052 else
8557     # PORTME Check for flag to pass linker flags through the system compiler.
8558     case $host_os in
8559     aix*)
8560     lt_prog_compiler_wl='-Wl,'
8561 michael 5059 if test ia64 = "$host_cpu"; then
8562 michael 5052 # AIX 5 now supports IA64 processor
8563     lt_prog_compiler_static='-Bstatic'
8564     else
8565     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8566     fi
8567     ;;
8568    
8569 michael 5059 darwin* | rhapsody*)
8570     # PIC is the default on this platform
8571     # Common symbols not allowed in MH_DYLIB files
8572     lt_prog_compiler_pic='-fno-common'
8573     case $cc_basename in
8574     nagfor*)
8575     # NAG Fortran compiler
8576     lt_prog_compiler_wl='-Wl,-Wl,,'
8577     lt_prog_compiler_pic='-PIC'
8578     lt_prog_compiler_static='-Bstatic'
8579     ;;
8580     esac
8581     ;;
8582    
8583     mingw* | cygwin* | pw32* | os2* | cegcc*)
8584 michael 5052 # This hack is so that the source file can tell whether it is being
8585     # built for inclusion in a dll (and should export symbols for example).
8586     lt_prog_compiler_pic='-DDLL_EXPORT'
8587 michael 5059 case $host_os in
8588     os2*)
8589     lt_prog_compiler_static='$wl-static'
8590     ;;
8591     esac
8592 michael 5052 ;;
8593    
8594     hpux9* | hpux10* | hpux11*)
8595     lt_prog_compiler_wl='-Wl,'
8596     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8597     # not for PA HP-UX.
8598     case $host_cpu in
8599     hppa*64*|ia64*)
8600     # +Z the default
8601     ;;
8602     *)
8603     lt_prog_compiler_pic='+Z'
8604     ;;
8605     esac
8606     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8607 michael 5059 lt_prog_compiler_static='$wl-a ${wl}archive'
8608 michael 5052 ;;
8609    
8610     irix5* | irix6* | nonstopux*)
8611     lt_prog_compiler_wl='-Wl,'
8612     # PIC (with -KPIC) is the default.
8613     lt_prog_compiler_static='-non_shared'
8614     ;;
8615    
8616 michael 5059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8617 michael 5052 case $cc_basename in
8618 michael 5059 # old Intel for x86_64, which still supported -KPIC.
8619     ecc*)
8620 michael 5052 lt_prog_compiler_wl='-Wl,'
8621     lt_prog_compiler_pic='-KPIC'
8622     lt_prog_compiler_static='-static'
8623     ;;
8624 michael 5059 # icc used to be incompatible with GCC.
8625     # ICC 10 doesn't accept -KPIC any more.
8626     icc* | ifort*)
8627     lt_prog_compiler_wl='-Wl,'
8628     lt_prog_compiler_pic='-fPIC'
8629     lt_prog_compiler_static='-static'
8630     ;;
8631     # Lahey Fortran 8.1.
8632     lf95*)
8633     lt_prog_compiler_wl='-Wl,'
8634     lt_prog_compiler_pic='--shared'
8635     lt_prog_compiler_static='--static'
8636     ;;
8637     nagfor*)
8638     # NAG Fortran compiler
8639     lt_prog_compiler_wl='-Wl,-Wl,,'
8640     lt_prog_compiler_pic='-PIC'
8641     lt_prog_compiler_static='-Bstatic'
8642     ;;
8643     tcc*)
8644     # Fabrice Bellard et al's Tiny C Compiler
8645     lt_prog_compiler_wl='-Wl,'
8646     lt_prog_compiler_pic='-fPIC'
8647     lt_prog_compiler_static='-static'
8648     ;;
8649     pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8650 michael 5052 # Portland Group compilers (*not* the Pentium gcc compiler,
8651     # which looks to be a dead project)
8652     lt_prog_compiler_wl='-Wl,'
8653     lt_prog_compiler_pic='-fpic'
8654     lt_prog_compiler_static='-Bstatic'
8655     ;;
8656     ccc*)
8657     lt_prog_compiler_wl='-Wl,'
8658     # All Alpha code is PIC.
8659     lt_prog_compiler_static='-non_shared'
8660     ;;
8661 michael 5059 xl* | bgxl* | bgf* | mpixl*)
8662     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8663     lt_prog_compiler_wl='-Wl,'
8664     lt_prog_compiler_pic='-qpic'
8665     lt_prog_compiler_static='-qstaticlink'
8666     ;;
8667     *)
8668     case `$CC -V 2>&1 | sed 5q` in
8669     *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8670     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8671     lt_prog_compiler_pic='-KPIC'
8672     lt_prog_compiler_static='-Bstatic'
8673     lt_prog_compiler_wl=''
8674     ;;
8675     *Sun\ F* | *Sun*Fortran*)
8676     lt_prog_compiler_pic='-KPIC'
8677     lt_prog_compiler_static='-Bstatic'
8678     lt_prog_compiler_wl='-Qoption ld '
8679     ;;
8680     *Sun\ C*)
8681     # Sun C 5.9
8682     lt_prog_compiler_pic='-KPIC'
8683     lt_prog_compiler_static='-Bstatic'
8684     lt_prog_compiler_wl='-Wl,'
8685     ;;
8686     *Intel*\ [CF]*Compiler*)
8687     lt_prog_compiler_wl='-Wl,'
8688     lt_prog_compiler_pic='-fPIC'
8689     lt_prog_compiler_static='-static'
8690     ;;
8691     *Portland\ Group*)
8692     lt_prog_compiler_wl='-Wl,'
8693     lt_prog_compiler_pic='-fpic'
8694     lt_prog_compiler_static='-Bstatic'
8695     ;;
8696     esac
8697     ;;
8698 michael 5052 esac
8699     ;;
8700    
8701 michael 5059 newsos6)
8702     lt_prog_compiler_pic='-KPIC'
8703     lt_prog_compiler_static='-Bstatic'
8704     ;;
8705    
8706     *nto* | *qnx*)
8707     # QNX uses GNU C++, but need to define -shared option too, otherwise
8708     # it will coredump.
8709     lt_prog_compiler_pic='-fPIC -shared'
8710     ;;
8711    
8712 michael 5052 osf3* | osf4* | osf5*)
8713     lt_prog_compiler_wl='-Wl,'
8714     # All OSF/1 code is PIC.
8715     lt_prog_compiler_static='-non_shared'
8716     ;;
8717    
8718 michael 5059 rdos*)
8719     lt_prog_compiler_static='-non_shared'
8720     ;;
8721    
8722 michael 5052 solaris*)
8723     lt_prog_compiler_pic='-KPIC'
8724     lt_prog_compiler_static='-Bstatic'
8725     case $cc_basename in
8726 michael 5059 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8727 michael 5052 lt_prog_compiler_wl='-Qoption ld ';;
8728     *)
8729     lt_prog_compiler_wl='-Wl,';;
8730     esac
8731     ;;
8732    
8733     sunos4*)
8734     lt_prog_compiler_wl='-Qoption ld '
8735     lt_prog_compiler_pic='-PIC'
8736     lt_prog_compiler_static='-Bstatic'
8737     ;;
8738    
8739     sysv4 | sysv4.2uw2* | sysv4.3*)
8740     lt_prog_compiler_wl='-Wl,'
8741     lt_prog_compiler_pic='-KPIC'
8742     lt_prog_compiler_static='-Bstatic'
8743     ;;
8744    
8745     sysv4*MP*)
8746 michael 5059 if test -d /usr/nec; then
8747 michael 5052 lt_prog_compiler_pic='-Kconform_pic'
8748     lt_prog_compiler_static='-Bstatic'
8749     fi
8750     ;;
8751    
8752     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8753     lt_prog_compiler_wl='-Wl,'
8754     lt_prog_compiler_pic='-KPIC'
8755     lt_prog_compiler_static='-Bstatic'
8756     ;;
8757    
8758     unicos*)
8759     lt_prog_compiler_wl='-Wl,'
8760     lt_prog_compiler_can_build_shared=no
8761     ;;
8762    
8763     uts4*)
8764     lt_prog_compiler_pic='-pic'
8765     lt_prog_compiler_static='-Bstatic'
8766     ;;
8767    
8768     *)
8769     lt_prog_compiler_can_build_shared=no
8770     ;;
8771     esac
8772     fi
8773    
8774 michael 5059 case $host_os in
8775     # For platforms that do not support PIC, -DPIC is meaningless:
8776     *djgpp*)
8777     lt_prog_compiler_pic=
8778     ;;
8779     *)
8780     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8781     ;;
8782     esac
8783 michael 5052
8784 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8785     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8786     if ${lt_cv_prog_compiler_pic+:} false; then :
8787     $as_echo_n "(cached) " >&6
8788     else
8789     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8790     fi
8791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8792     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8793     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8794    
8795 michael 5052 #
8796     # Check to make sure the PIC flag actually works.
8797     #
8798     if test -n "$lt_prog_compiler_pic"; then
8799 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8800     $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8801     if ${lt_cv_prog_compiler_pic_works+:} false; then :
8802     $as_echo_n "(cached) " >&6
8803 michael 5052 else
8804 michael 5059 lt_cv_prog_compiler_pic_works=no
8805     ac_outfile=conftest.$ac_objext
8806     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807     lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8808 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8809     # (2) before a word containing "conftest.", or (3) at the end.
8810     # Note that $ac_compile itself does not contain backslashes and begins
8811     # with a dollar sign (not a hyphen), so the echo should work correctly.
8812     # The option is referenced via a variable to avoid confusing sed.
8813     lt_compile=`echo "$ac_compile" | $SED \
8814     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816     -e 's:$: $lt_compiler_flag:'`
8817 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8818 michael 5052 (eval "$lt_compile" 2>conftest.err)
8819     ac_status=$?
8820     cat conftest.err >&5
8821 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8823     # The compiler can only warn and ignore the option if not recognized
8824     # So say no if there are warnings other than the usual output.
8825 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8826 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8827     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8828 michael 5059 lt_cv_prog_compiler_pic_works=yes
8829 michael 5052 fi
8830     fi
8831 michael 5059 $RM conftest*
8832 michael 5052
8833     fi
8834 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8835     $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8836 michael 5052
8837 michael 5059 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8838 michael 5052 case $lt_prog_compiler_pic in
8839     "" | " "*) ;;
8840     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8841     esac
8842     else
8843     lt_prog_compiler_pic=
8844     lt_prog_compiler_can_build_shared=no
8845     fi
8846    
8847     fi
8848    
8849 michael 5059
8850    
8851    
8852    
8853    
8854    
8855    
8856    
8857    
8858    
8859 michael 5052 #
8860     # Check to make sure the static flag actually works.
8861     #
8862     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8863 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8864     $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8865     if ${lt_cv_prog_compiler_static_works+:} false; then :
8866     $as_echo_n "(cached) " >&6
8867 michael 5052 else
8868 michael 5059 lt_cv_prog_compiler_static_works=no
8869     save_LDFLAGS=$LDFLAGS
8870 michael 5052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8871 michael 5059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8872 michael 5052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8873     # The linker can only warn and ignore the option if not recognized
8874     # So say no if there are warnings
8875     if test -s conftest.err; then
8876     # Append any errors to the config.log.
8877     cat conftest.err 1>&5
8878 michael 5059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8879 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8880     if diff conftest.exp conftest.er2 >/dev/null; then
8881 michael 5059 lt_cv_prog_compiler_static_works=yes
8882 michael 5052 fi
8883     else
8884 michael 5059 lt_cv_prog_compiler_static_works=yes
8885 michael 5052 fi
8886     fi
8887 michael 5059 $RM -r conftest*
8888     LDFLAGS=$save_LDFLAGS
8889 michael 5052
8890     fi
8891 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8892     $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8893 michael 5052
8894 michael 5059 if test yes = "$lt_cv_prog_compiler_static_works"; then
8895 michael 5052 :
8896     else
8897     lt_prog_compiler_static=
8898     fi
8899    
8900    
8901 michael 5059
8902    
8903    
8904    
8905    
8906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8907     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8908     if ${lt_cv_prog_compiler_c_o+:} false; then :
8909     $as_echo_n "(cached) " >&6
8910 michael 5052 else
8911     lt_cv_prog_compiler_c_o=no
8912 michael 5059 $RM -r conftest 2>/dev/null
8913 michael 5052 mkdir conftest
8914     cd conftest
8915     mkdir out
8916 michael 5059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8917 michael 5052
8918     lt_compiler_flag="-o out/conftest2.$ac_objext"
8919     # Insert the option either (1) after the last *FLAGS variable, or
8920     # (2) before a word containing "conftest.", or (3) at the end.
8921     # Note that $ac_compile itself does not contain backslashes and begins
8922     # with a dollar sign (not a hyphen), so the echo should work correctly.
8923     lt_compile=`echo "$ac_compile" | $SED \
8924     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8925     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8926     -e 's:$: $lt_compiler_flag:'`
8927 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8928 michael 5052 (eval "$lt_compile" 2>out/conftest.err)
8929     ac_status=$?
8930     cat out/conftest.err >&5
8931 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 michael 5052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8933     then
8934     # The compiler can only warn and ignore the option if not recognized
8935     # So say no if there are warnings
8936 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8937 michael 5052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8938     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8939     lt_cv_prog_compiler_c_o=yes
8940     fi
8941     fi
8942     chmod u+w . 2>&5
8943 michael 5059 $RM conftest*
8944 michael 5052 # SGI C++ compiler will create directory out/ii_files/ for
8945     # template instantiation
8946 michael 5059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8947     $RM out/* && rmdir out
8948 michael 5052 cd ..
8949 michael 5059 $RM -r conftest
8950     $RM conftest*
8951 michael 5052
8952     fi
8953 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8954     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8955 michael 5052
8956    
8957 michael 5059
8958    
8959    
8960    
8961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8962     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8963     if ${lt_cv_prog_compiler_c_o+:} false; then :
8964     $as_echo_n "(cached) " >&6
8965     else
8966     lt_cv_prog_compiler_c_o=no
8967     $RM -r conftest 2>/dev/null
8968     mkdir conftest
8969     cd conftest
8970     mkdir out
8971     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8972    
8973     lt_compiler_flag="-o out/conftest2.$ac_objext"
8974     # Insert the option either (1) after the last *FLAGS variable, or
8975     # (2) before a word containing "conftest.", or (3) at the end.
8976     # Note that $ac_compile itself does not contain backslashes and begins
8977     # with a dollar sign (not a hyphen), so the echo should work correctly.
8978     lt_compile=`echo "$ac_compile" | $SED \
8979     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8980     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8981     -e 's:$: $lt_compiler_flag:'`
8982     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8983     (eval "$lt_compile" 2>out/conftest.err)
8984     ac_status=$?
8985     cat out/conftest.err >&5
8986     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987     if (exit $ac_status) && test -s out/conftest2.$ac_objext
8988     then
8989     # The compiler can only warn and ignore the option if not recognized
8990     # So say no if there are warnings
8991     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8992     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8993     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8994     lt_cv_prog_compiler_c_o=yes
8995     fi
8996     fi
8997     chmod u+w . 2>&5
8998     $RM conftest*
8999     # SGI C++ compiler will create directory out/ii_files/ for
9000     # template instantiation
9001     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9002     $RM out/* && rmdir out
9003     cd ..
9004     $RM -r conftest
9005     $RM conftest*
9006    
9007     fi
9008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9009     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9010    
9011    
9012    
9013    
9014     hard_links=nottested
9015     if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9016 michael 5052 # do not overwrite the value of need_locks provided by the user
9017 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9018     $as_echo_n "checking if we can lock with hard links... " >&6; }
9019 michael 5052 hard_links=yes
9020 michael 5059 $RM conftest*
9021 michael 5052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9022     touch conftest.a
9023     ln conftest.a conftest.b 2>&5 || hard_links=no
9024     ln conftest.a conftest.b 2>/dev/null && hard_links=no
9025 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9026     $as_echo "$hard_links" >&6; }
9027     if test no = "$hard_links"; then
9028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9029     $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9030 michael 5052 need_locks=warn
9031     fi
9032     else
9033     need_locks=no
9034     fi
9035    
9036    
9037 michael 5059
9038    
9039    
9040    
9041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9042     $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9043    
9044 michael 5052 runpath_var=
9045     allow_undefined_flag=
9046 michael 5059 always_export_symbols=no
9047 michael 5052 archive_cmds=
9048     archive_expsym_cmds=
9049 michael 5059 compiler_needs_object=no
9050     enable_shared_with_static_runtimes=no
9051 michael 5052 export_dynamic_flag_spec=
9052 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9053     hardcode_automatic=no
9054     hardcode_direct=no
9055     hardcode_direct_absolute=no
9056 michael 5052 hardcode_libdir_flag_spec=
9057     hardcode_libdir_separator=
9058     hardcode_minus_L=no
9059     hardcode_shlibpath_var=unsupported
9060 michael 5059 inherit_rpath=no
9061 michael 5052 link_all_deplibs=unknown
9062     module_cmds=
9063     module_expsym_cmds=
9064 michael 5059 old_archive_from_new_cmds=
9065     old_archive_from_expsyms_cmds=
9066     thread_safe_flag_spec=
9067     whole_archive_flag_spec=
9068 michael 5052 # include_expsyms should be a list of space-separated symbols to be *always*
9069     # included in the symbol list
9070     include_expsyms=
9071     # exclude_expsyms can be an extended regexp of symbols to exclude
9072 michael 5059 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9073     # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9074     # as well as any symbol that contains 'd'.
9075     exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9076 michael 5052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9077     # platforms (ab)use it in PIC code, but their linkers get confused if
9078     # the symbol is explicitly referenced. Since portable code cannot
9079     # rely on this symbol name, it's probably fine to never include it in
9080     # preloaded symbol tables.
9081 michael 5059 # Exclude shared library initialization/finalization symbols.
9082 michael 5052 extract_expsyms_cmds=
9083    
9084     case $host_os in
9085 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9086 michael 5052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9087     # When not using gcc, we currently assume that we are using
9088     # Microsoft Visual C++.
9089 michael 5059 if test yes != "$GCC"; then
9090 michael 5052 with_gnu_ld=no
9091     fi
9092     ;;
9093     interix*)
9094     # we just hope/assume this is gcc and not c89 (= MSVC++)
9095     with_gnu_ld=yes
9096     ;;
9097 michael 5059 openbsd* | bitrig*)
9098 michael 5052 with_gnu_ld=no
9099     ;;
9100     esac
9101    
9102     ld_shlibs=yes
9103 michael 5059
9104     # On some targets, GNU ld is compatible enough with the native linker
9105     # that we're better off using the native interface for both.
9106     lt_use_gnu_ld_interface=no
9107     if test yes = "$with_gnu_ld"; then
9108     case $host_os in
9109     aix*)
9110     # The AIX port of GNU ld has always aspired to compatibility
9111     # with the native linker. However, as the warning in the GNU ld
9112     # block says, versions before 2.19.5* couldn't really create working
9113     # shared libraries, regardless of the interface used.
9114     case `$LD -v 2>&1` in
9115     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9116     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9117     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9118     *)
9119     lt_use_gnu_ld_interface=yes
9120     ;;
9121     esac
9122     ;;
9123     *)
9124     lt_use_gnu_ld_interface=yes
9125     ;;
9126     esac
9127     fi
9128    
9129     if test yes = "$lt_use_gnu_ld_interface"; then
9130 michael 5052 # If archive_cmds runs LD, not CC, wlarc should be empty
9131 michael 5059 wlarc='$wl'
9132 michael 5052
9133     # Set some defaults for GNU ld with shared library support. These
9134     # are reset later if shared libraries are not supported. Putting them
9135     # here allows them to be overridden if necessary.
9136     runpath_var=LD_RUN_PATH
9137 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9138     export_dynamic_flag_spec='$wl--export-dynamic'
9139 michael 5052 # ancient GNU ld didn't support --whole-archive et. al.
9140 michael 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9141     whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9142     else
9143     whole_archive_flag_spec=
9144 michael 5052 fi
9145     supports_anon_versioning=no
9146 michael 5059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9147     *GNU\ gold*) supports_anon_versioning=yes ;;
9148 michael 5052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9149     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9150     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9151     *\ 2.11.*) ;; # other 2.11 versions
9152     *) supports_anon_versioning=yes ;;
9153     esac
9154    
9155     # See if GNU ld supports shared libraries.
9156     case $host_os in
9157 michael 5059 aix[3-9]*)
9158 michael 5052 # On AIX/PPC, the GNU linker is very broken
9159 michael 5059 if test ia64 != "$host_cpu"; then
9160 michael 5052 ld_shlibs=no
9161 michael 5059 cat <<_LT_EOF 1>&2
9162 michael 5052
9163 michael 5059 *** Warning: the GNU linker, at least up to release 2.19, is reported
9164 michael 5052 *** to be unable to reliably create shared libraries on AIX.
9165     *** Therefore, libtool is disabling shared libraries support. If you
9166 michael 5059 *** really care for shared libraries, you may want to install binutils
9167     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9168     *** You will then need to restart the configuration process.
9169 michael 5052
9170 michael 5059 _LT_EOF
9171 michael 5052 fi
9172     ;;
9173    
9174     amigaos*)
9175 michael 5059 case $host_cpu in
9176     powerpc)
9177     # see comment about AmigaOS4 .so support
9178     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9179     archive_expsym_cmds=''
9180     ;;
9181     m68k)
9182     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)'
9183     hardcode_libdir_flag_spec='-L$libdir'
9184     hardcode_minus_L=yes
9185     ;;
9186     esac
9187 michael 5052 ;;
9188    
9189     beos*)
9190 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9191 michael 5052 allow_undefined_flag=unsupported
9192     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9193     # support --undefined. This deserves some investigation. FIXME
9194 michael 5059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9195 michael 5052 else
9196     ld_shlibs=no
9197     fi
9198     ;;
9199    
9200 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9201     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9202 michael 5052 # as there is no search path for DLLs.
9203     hardcode_libdir_flag_spec='-L$libdir'
9204 michael 5059 export_dynamic_flag_spec='$wl--export-all-symbols'
9205 michael 5052 allow_undefined_flag=unsupported
9206     always_export_symbols=no
9207     enable_shared_with_static_runtimes=yes
9208 michael 5059 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'
9209     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9210 michael 5052
9211 michael 5059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9212     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9213     # If the export-symbols file already is a .def file, use it as
9214     # is; otherwise, prepend EXPORTS...
9215     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9216     cp $export_symbols $output_objdir/$soname.def;
9217     else
9218     echo EXPORTS > $output_objdir/$soname.def;
9219     cat $export_symbols >> $output_objdir/$soname.def;
9220     fi~
9221     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9222 michael 5052 else
9223     ld_shlibs=no
9224     fi
9225     ;;
9226    
9227 michael 5059 haiku*)
9228     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9229     link_all_deplibs=yes
9230     ;;
9231    
9232     os2*)
9233     hardcode_libdir_flag_spec='-L$libdir'
9234     hardcode_minus_L=yes
9235     allow_undefined_flag=unsupported
9236     shrext_cmds=.dll
9237     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9238     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9239     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9240     $ECHO EXPORTS >> $output_objdir/$libname.def~
9241     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9242     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9243     emximp -o $lib $output_objdir/$libname.def'
9244     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9245     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9246     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9247     $ECHO EXPORTS >> $output_objdir/$libname.def~
9248     prefix_cmds="$SED"~
9249     if test EXPORTS = "`$SED 1q $export_symbols`"; then
9250     prefix_cmds="$prefix_cmds -e 1d";
9251     fi~
9252     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9253     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9254     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9255     emximp -o $lib $output_objdir/$libname.def'
9256     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9257     enable_shared_with_static_runtimes=yes
9258     ;;
9259    
9260     interix[3-9]*)
9261 michael 5052 hardcode_direct=no
9262     hardcode_shlibpath_var=no
9263 michael 5059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9264     export_dynamic_flag_spec='$wl-E'
9265 michael 5052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9266     # Instead, shared libraries are loaded at an image base (0x10000000 by
9267     # default) and relocated if they conflict, which is a slow very memory
9268     # consuming and fragmenting process. To avoid this, we pick a random,
9269     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9270     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9271 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9272     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'
9273 michael 5052 ;;
9274    
9275 michael 5059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9276     tmp_diet=no
9277     if test linux-dietlibc = "$host_os"; then
9278     case $cc_basename in
9279     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9280     esac
9281     fi
9282     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9283     && test no = "$tmp_diet"
9284     then
9285     tmp_addflag=' $pic_flag'
9286     tmp_sharedflag='-shared'
9287 michael 5052 case $cc_basename,$host_cpu in
9288 michael 5059 pgcc*) # Portland Group C compiler
9289     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'
9290 michael 5052 tmp_addflag=' $pic_flag'
9291     ;;
9292 michael 5059 pgf77* | pgf90* | pgf95* | pgfortran*)
9293     # Portland Group f77 and f90 compilers
9294     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'
9295 michael 5052 tmp_addflag=' $pic_flag -Mnomain' ;;
9296 michael 5059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9297 michael 5052 tmp_addflag=' -i_dynamic' ;;
9298     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9299     tmp_addflag=' -i_dynamic -nofor_main' ;;
9300     ifc* | ifort*) # Intel Fortran compiler
9301     tmp_addflag=' -nofor_main' ;;
9302 michael 5059 lf95*) # Lahey Fortran 8.1
9303     whole_archive_flag_spec=
9304     tmp_sharedflag='--shared' ;;
9305     nagfor*) # NAGFOR 5.3
9306     tmp_sharedflag='-Wl,-shared' ;;
9307     xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9308     tmp_sharedflag='-qmkshrobj'
9309     tmp_addflag= ;;
9310     nvcc*) # Cuda Compiler Driver 2.2
9311     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'
9312     compiler_needs_object=yes
9313     ;;
9314 michael 5052 esac
9315 michael 5059 case `$CC -V 2>&1 | sed 5q` in
9316     *Sun\ C*) # Sun C 5.9
9317     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'
9318     compiler_needs_object=yes
9319     tmp_sharedflag='-G' ;;
9320     *Sun\ F*) # Sun Fortran 8.3
9321     tmp_sharedflag='-G' ;;
9322     esac
9323     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9324 michael 5052
9325 michael 5059 if test yes = "$supports_anon_versioning"; then
9326     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9327     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9328     echo "local: *; };" >> $output_objdir/$libname.ver~
9329     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9330     fi
9331    
9332     case $cc_basename in
9333     tcc*)
9334     export_dynamic_flag_spec='-rdynamic'
9335     ;;
9336     xlf* | bgf* | bgxlf* | mpixlf*)
9337     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9338     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9339     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9340     archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9341     if test yes = "$supports_anon_versioning"; then
9342     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9343     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9344     echo "local: *; };" >> $output_objdir/$libname.ver~
9345     $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9346     fi
9347     ;;
9348     esac
9349 michael 5052 else
9350 michael 5059 ld_shlibs=no
9351 michael 5052 fi
9352     ;;
9353    
9354 michael 5059 netbsd*)
9355     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9356 michael 5052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9357     wlarc=
9358     else
9359 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9360     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9361 michael 5052 fi
9362     ;;
9363    
9364     solaris*)
9365 michael 5059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9366 michael 5052 ld_shlibs=no
9367 michael 5059 cat <<_LT_EOF 1>&2
9368 michael 5052
9369     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9370     *** create shared libraries on Solaris systems. Therefore, libtool
9371     *** is disabling shared libraries support. We urge you to upgrade GNU
9372     *** binutils to release 2.9.1 or newer. Another option is to modify
9373     *** your PATH or compiler configuration so that the native linker is
9374     *** used, and then restart.
9375    
9376 michael 5059 _LT_EOF
9377     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9378     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9379     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9380 michael 5052 else
9381     ld_shlibs=no
9382     fi
9383     ;;
9384    
9385     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9386     case `$LD -v 2>&1` in
9387     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9388     ld_shlibs=no
9389     cat <<_LT_EOF 1>&2
9390    
9391 michael 5059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9392 michael 5052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9393     *** is disabling shared libraries support. We urge you to upgrade GNU
9394     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9395     *** your PATH or compiler configuration so that the native linker is
9396     *** used, and then restart.
9397    
9398     _LT_EOF
9399     ;;
9400     *)
9401 michael 5059 # For security reasons, it is highly recommended that you always
9402     # use absolute paths for naming shared libraries, and exclude the
9403     # DT_RUNPATH tag from executables and libraries. But doing so
9404     # requires that you compile everything twice, which is a pain.
9405     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9406     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9407     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9408     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9409 michael 5052 else
9410     ld_shlibs=no
9411     fi
9412     ;;
9413     esac
9414     ;;
9415    
9416     sunos4*)
9417     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9418     wlarc=
9419     hardcode_direct=yes
9420     hardcode_shlibpath_var=no
9421     ;;
9422    
9423     *)
9424 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9425     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9426     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9427 michael 5052 else
9428     ld_shlibs=no
9429     fi
9430     ;;
9431     esac
9432    
9433 michael 5059 if test no = "$ld_shlibs"; then
9434 michael 5052 runpath_var=
9435     hardcode_libdir_flag_spec=
9436     export_dynamic_flag_spec=
9437     whole_archive_flag_spec=
9438     fi
9439     else
9440     # PORTME fill in a description of your system's linker (not GNU ld)
9441     case $host_os in
9442     aix3*)
9443     allow_undefined_flag=unsupported
9444     always_export_symbols=yes
9445     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'
9446     # Note: this linker hardcodes the directories in LIBPATH if there
9447     # are no directories specified by -L.
9448     hardcode_minus_L=yes
9449 michael 5059 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9450 michael 5052 # Neither direct hardcoding nor static linking is supported with a
9451     # broken collect2.
9452     hardcode_direct=unsupported
9453     fi
9454     ;;
9455    
9456 michael 5059 aix[4-9]*)
9457     if test ia64 = "$host_cpu"; then
9458 michael 5052 # On IA64, the linker does run time linking by default, so we don't
9459     # have to do anything special.
9460     aix_use_runtimelinking=no
9461     exp_sym_flag='-Bexport'
9462 michael 5059 no_entry_flag=
9463 michael 5052 else
9464     # If we're using GNU nm, then we don't want the "-C" option.
9465 michael 5059 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9466     # Without the "-l" option, or with the "-B" option, AIX nm treats
9467     # weak defined symbols like other global defined symbols, whereas
9468     # GNU nm marks them as "W".
9469     # While the 'weak' keyword is ignored in the Export File, we need
9470     # it in the Import File for the 'aix-soname' feature, so we have
9471     # to replace the "-B" option with "-P" for AIX nm.
9472     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9473     export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9474 michael 5052 else
9475 michael 5059 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9476 michael 5052 fi
9477     aix_use_runtimelinking=no
9478    
9479     # Test if we are trying to use run time linking or normal
9480     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9481 michael 5059 # have runtime linking enabled, and use it for executables.
9482     # For shared libraries, we enable/disable runtime linking
9483     # depending on the kind of the shared library created -
9484     # when "with_aix_soname,aix_use_runtimelinking" is:
9485     # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9486     # "aix,yes" lib.so shared, rtl:yes, for executables
9487     # lib.a static archive
9488     # "both,no" lib.so.V(shr.o) shared, rtl:yes
9489     # lib.a(lib.so.V) shared, rtl:no, for executables
9490     # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9491     # lib.a(lib.so.V) shared, rtl:no
9492     # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9493     # lib.a static archive
9494     case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9495 michael 5052 for ld_flag in $LDFLAGS; do
9496 michael 5059 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9497     aix_use_runtimelinking=yes
9498     break
9499     fi
9500 michael 5052 done
9501 michael 5059 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9502     # With aix-soname=svr4, we create the lib.so.V shared archives only,
9503     # so we don't have lib.a shared libs to link our executables.
9504     # We have to force runtime linking in this case.
9505     aix_use_runtimelinking=yes
9506     LDFLAGS="$LDFLAGS -Wl,-brtl"
9507     fi
9508 michael 5052 ;;
9509     esac
9510    
9511     exp_sym_flag='-bexport'
9512     no_entry_flag='-bnoentry'
9513     fi
9514    
9515     # When large executables or shared objects are built, AIX ld can
9516     # have problems creating the table of contents. If linking a library
9517     # or program results in "error TOC overflow" add -mminimal-toc to
9518     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9519     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9520    
9521     archive_cmds=''
9522     hardcode_direct=yes
9523 michael 5059 hardcode_direct_absolute=yes
9524 michael 5052 hardcode_libdir_separator=':'
9525     link_all_deplibs=yes
9526 michael 5059 file_list_spec='$wl-f,'
9527     case $with_aix_soname,$aix_use_runtimelinking in
9528     aix,*) ;; # traditional, no import file
9529     svr4,* | *,yes) # use import file
9530     # The Import File defines what to hardcode.
9531     hardcode_direct=no
9532     hardcode_direct_absolute=no
9533     ;;
9534     esac
9535 michael 5052
9536 michael 5059 if test yes = "$GCC"; then
9537 michael 5052 case $host_os in aix4.[012]|aix4.[012].*)
9538     # We only want to do this on AIX 4.2 and lower, the check
9539     # below for broken collect2 doesn't work under 4.3+
9540 michael 5059 collect2name=`$CC -print-prog-name=collect2`
9541     if test -f "$collect2name" &&
9542     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9543 michael 5052 then
9544 michael 5059 # We have reworked collect2
9545     :
9546 michael 5052 else
9547 michael 5059 # We have old collect2
9548     hardcode_direct=unsupported
9549     # It fails to find uninstalled libraries when the uninstalled
9550     # path is not listed in the libpath. Setting hardcode_minus_L
9551     # to unsupported forces relinking
9552     hardcode_minus_L=yes
9553     hardcode_libdir_flag_spec='-L$libdir'
9554     hardcode_libdir_separator=
9555 michael 5052 fi
9556     ;;
9557     esac
9558     shared_flag='-shared'
9559 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9560     shared_flag="$shared_flag "'$wl-G'
9561 michael 5052 fi
9562 michael 5059 # Need to ensure runtime linking is disabled for the traditional
9563     # shared library, or the linker may eventually find shared libraries
9564     # /with/ Import File - we do not want to mix them.
9565     shared_flag_aix='-shared'
9566     shared_flag_svr4='-shared $wl-G'
9567 michael 5052 else
9568     # not using gcc
9569 michael 5059 if test ia64 = "$host_cpu"; then
9570     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9571     # chokes on -Wl,-G. The following line is correct:
9572 michael 5052 shared_flag='-G'
9573     else
9574 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9575     shared_flag='$wl-G'
9576 michael 5052 else
9577 michael 5059 shared_flag='$wl-bM:SRE'
9578 michael 5052 fi
9579 michael 5059 shared_flag_aix='$wl-bM:SRE'
9580     shared_flag_svr4='$wl-G'
9581 michael 5052 fi
9582     fi
9583    
9584 michael 5059 export_dynamic_flag_spec='$wl-bexpall'
9585 michael 5052 # It seems that -bexpall does not export symbols beginning with
9586     # underscore (_), so it is better to generate a list of symbols to export.
9587     always_export_symbols=yes
9588 michael 5059 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9589 michael 5052 # Warning - without using the other runtime loading flags (-brtl),
9590     # -berok will link without error, but may produce a broken library.
9591     allow_undefined_flag='-berok'
9592 michael 5059 # Determine the default libpath from the value encoded in an
9593     # empty executable.
9594     if test set = "${lt_cv_aix_libpath+set}"; then
9595     aix_libpath=$lt_cv_aix_libpath
9596     else
9597     if ${lt_cv_aix_libpath_+:} false; then :
9598     $as_echo_n "(cached) " >&6
9599     else
9600     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 michael 5052 /* end confdefs.h. */
9602    
9603     int
9604     main ()
9605     {
9606    
9607     ;
9608     return 0;
9609     }
9610     _ACEOF
9611 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9612 michael 5052
9613 michael 5059 lt_aix_libpath_sed='
9614     /Import File Strings/,/^$/ {
9615     /^0/ {
9616     s/^0 *\([^ ]*\) *$/\1/
9617     p
9618     }
9619     }'
9620     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621     # Check for a 64-bit object if we didn't find anything.
9622     if test -z "$lt_cv_aix_libpath_"; then
9623     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624     fi
9625     fi
9626     rm -f core conftest.err conftest.$ac_objext \
9627     conftest$ac_exeext conftest.$ac_ext
9628     if test -z "$lt_cv_aix_libpath_"; then
9629     lt_cv_aix_libpath_=/usr/lib:/lib
9630     fi
9631 michael 5052
9632 michael 5059 fi
9633 michael 5052
9634 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9635 michael 5052 fi
9636    
9637 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9638     archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9639     else
9640     if test ia64 = "$host_cpu"; then
9641     hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9642 michael 5052 allow_undefined_flag="-z nodefs"
9643 michael 5059 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"
9644 michael 5052 else
9645 michael 5059 # Determine the default libpath from the value encoded in an
9646     # empty executable.
9647     if test set = "${lt_cv_aix_libpath+set}"; then
9648     aix_libpath=$lt_cv_aix_libpath
9649     else
9650     if ${lt_cv_aix_libpath_+:} false; then :
9651     $as_echo_n "(cached) " >&6
9652     else
9653     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 michael 5052 /* end confdefs.h. */
9655    
9656     int
9657     main ()
9658     {
9659    
9660     ;
9661     return 0;
9662     }
9663     _ACEOF
9664 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9665 michael 5052
9666 michael 5059 lt_aix_libpath_sed='
9667     /Import File Strings/,/^$/ {
9668     /^0/ {
9669     s/^0 *\([^ ]*\) *$/\1/
9670     p
9671     }
9672     }'
9673     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9674     # Check for a 64-bit object if we didn't find anything.
9675     if test -z "$lt_cv_aix_libpath_"; then
9676     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677     fi
9678     fi
9679     rm -f core conftest.err conftest.$ac_objext \
9680     conftest$ac_exeext conftest.$ac_ext
9681     if test -z "$lt_cv_aix_libpath_"; then
9682     lt_cv_aix_libpath_=/usr/lib:/lib
9683     fi
9684 michael 5052
9685 michael 5059 fi
9686 michael 5052
9687 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9688 michael 5052 fi
9689    
9690 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9691 michael 5052 # Warning - without using the other run time loading flags,
9692     # -berok will link without error, but may produce a broken library.
9693 michael 5059 no_undefined_flag=' $wl-bernotok'
9694     allow_undefined_flag=' $wl-berok'
9695     if test yes = "$with_gnu_ld"; then
9696     # We only use this code for GNU lds that support --whole-archive.
9697     whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9698     else
9699     # Exported symbols can be pulled into shared objects from archives
9700     whole_archive_flag_spec='$convenience'
9701     fi
9702 michael 5052 archive_cmds_need_lc=yes
9703 michael 5059 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9704     # -brtl affects multiple linker settings, -berok does not and is overridden later
9705     compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9706     if test svr4 != "$with_aix_soname"; then
9707     # This is similar to how AIX traditionally builds its shared libraries.
9708     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9709     fi
9710     if test aix != "$with_aix_soname"; then
9711     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9712     else
9713     # used by -dlpreopen to get the symbols
9714     archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9715     fi
9716     archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9717 michael 5052 fi
9718     fi
9719     ;;
9720    
9721     amigaos*)
9722 michael 5059 case $host_cpu in
9723     powerpc)
9724     # see comment about AmigaOS4 .so support
9725     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9726     archive_expsym_cmds=''
9727     ;;
9728     m68k)
9729     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)'
9730     hardcode_libdir_flag_spec='-L$libdir'
9731     hardcode_minus_L=yes
9732     ;;
9733     esac
9734 michael 5052 ;;
9735    
9736     bsdi[45]*)
9737     export_dynamic_flag_spec=-rdynamic
9738     ;;
9739    
9740 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9741 michael 5052 # When not using gcc, we currently assume that we are using
9742     # Microsoft Visual C++.
9743     # hardcode_libdir_flag_spec is actually meaningless, as there is
9744     # no search path for DLLs.
9745 michael 5059 case $cc_basename in
9746     cl*)
9747     # Native MSVC
9748     hardcode_libdir_flag_spec=' '
9749     allow_undefined_flag=unsupported
9750     always_export_symbols=yes
9751     file_list_spec='@'
9752     # Tell ltmain to make .lib files, not .a files.
9753     libext=lib
9754     # Tell ltmain to make .dll files, not .so files.
9755     shrext_cmds=.dll
9756     # FIXME: Setting linknames here is a bad hack.
9757     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9758     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9759     cp "$export_symbols" "$output_objdir/$soname.def";
9760     echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9761     else
9762     $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9763     fi~
9764     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9765     linknames='
9766     # The linker will not automatically build a static lib if we build a DLL.
9767     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9768     enable_shared_with_static_runtimes=yes
9769     exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9770     export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9771     # Don't use ranlib
9772     old_postinstall_cmds='chmod 644 $oldlib'
9773     postlink_cmds='lt_outputfile="@OUTPUT@"~
9774     lt_tool_outputfile="@TOOL_OUTPUT@"~
9775     case $lt_outputfile in
9776     *.exe|*.EXE) ;;
9777     *)
9778     lt_outputfile=$lt_outputfile.exe
9779     lt_tool_outputfile=$lt_tool_outputfile.exe
9780     ;;
9781     esac~
9782     if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9783     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9784     $RM "$lt_outputfile.manifest";
9785     fi'
9786     ;;
9787     *)
9788     # Assume MSVC wrapper
9789     hardcode_libdir_flag_spec=' '
9790     allow_undefined_flag=unsupported
9791     # Tell ltmain to make .lib files, not .a files.
9792     libext=lib
9793     # Tell ltmain to make .dll files, not .so files.
9794     shrext_cmds=.dll
9795     # FIXME: Setting linknames here is a bad hack.
9796     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9797     # The linker will automatically build a .lib file if we build a DLL.
9798     old_archive_from_new_cmds='true'
9799     # FIXME: Should let the user specify the lib program.
9800     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9801     enable_shared_with_static_runtimes=yes
9802     ;;
9803     esac
9804 michael 5052 ;;
9805    
9806     darwin* | rhapsody*)
9807 michael 5059
9808    
9809     archive_cmds_need_lc=no
9810     hardcode_direct=no
9811     hardcode_automatic=yes
9812     hardcode_shlibpath_var=unsupported
9813     if test yes = "$lt_cv_ld_force_load"; then
9814     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\"`'
9815    
9816     else
9817     whole_archive_flag_spec=''
9818     fi
9819     link_all_deplibs=yes
9820     allow_undefined_flag=$_lt_dar_allow_undefined
9821     case $cc_basename in
9822     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9823     *) _lt_dar_can_shared=$GCC ;;
9824     esac
9825     if test yes = "$_lt_dar_can_shared"; then
9826     output_verbose_link_cmd=func_echo_all
9827     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9828     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9829     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"
9830     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"
9831    
9832     else
9833     ld_shlibs=no
9834     fi
9835    
9836 michael 5052 ;;
9837    
9838     dgux*)
9839     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9840     hardcode_libdir_flag_spec='-L$libdir'
9841     hardcode_shlibpath_var=no
9842     ;;
9843    
9844     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9845     # support. Future versions do this automatically, but an explicit c++rt0.o
9846     # does not break anything, and helps significantly (at the cost of a little
9847     # extra space).
9848     freebsd2.2*)
9849     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9850     hardcode_libdir_flag_spec='-R$libdir'
9851     hardcode_direct=yes
9852     hardcode_shlibpath_var=no
9853     ;;
9854    
9855     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9856 michael 5059 freebsd2.*)
9857 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9858     hardcode_direct=yes
9859     hardcode_minus_L=yes
9860     hardcode_shlibpath_var=no
9861     ;;
9862    
9863     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9864     freebsd* | dragonfly*)
9865 michael 5059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9866 michael 5052 hardcode_libdir_flag_spec='-R$libdir'
9867     hardcode_direct=yes
9868     hardcode_shlibpath_var=no
9869     ;;
9870    
9871     hpux9*)
9872 michael 5059 if test yes = "$GCC"; then
9873     archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9874 michael 5052 else
9875 michael 5059 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9876 michael 5052 fi
9877 michael 5059 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9878 michael 5052 hardcode_libdir_separator=:
9879     hardcode_direct=yes
9880    
9881     # hardcode_minus_L: Not really in the search PATH,
9882     # but as the default location of the library.
9883     hardcode_minus_L=yes
9884 michael 5059 export_dynamic_flag_spec='$wl-E'
9885 michael 5052 ;;
9886    
9887     hpux10*)
9888 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9889     archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9890 michael 5052 else
9891     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9892     fi
9893 michael 5059 if test no = "$with_gnu_ld"; then
9894     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9895 michael 5052 hardcode_libdir_separator=:
9896     hardcode_direct=yes
9897 michael 5059 hardcode_direct_absolute=yes
9898     export_dynamic_flag_spec='$wl-E'
9899 michael 5052 # hardcode_minus_L: Not really in the search PATH,
9900     # but as the default location of the library.
9901     hardcode_minus_L=yes
9902     fi
9903     ;;
9904    
9905     hpux11*)
9906 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9907 michael 5052 case $host_cpu in
9908     hppa*64*)
9909 michael 5059 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9910 michael 5052 ;;
9911     ia64*)
9912 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9913 michael 5052 ;;
9914     *)
9915 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9916 michael 5052 ;;
9917     esac
9918     else
9919     case $host_cpu in
9920     hppa*64*)
9921 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9922 michael 5052 ;;
9923     ia64*)
9924 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9925 michael 5052 ;;
9926     *)
9927 michael 5059
9928     # Older versions of the 11.00 compiler do not understand -b yet
9929     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9931     $as_echo_n "checking if $CC understands -b... " >&6; }
9932     if ${lt_cv_prog_compiler__b+:} false; then :
9933     $as_echo_n "(cached) " >&6
9934     else
9935     lt_cv_prog_compiler__b=no
9936     save_LDFLAGS=$LDFLAGS
9937     LDFLAGS="$LDFLAGS -b"
9938     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9939     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9940     # The linker can only warn and ignore the option if not recognized
9941     # So say no if there are warnings
9942     if test -s conftest.err; then
9943     # Append any errors to the config.log.
9944     cat conftest.err 1>&5
9945     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9946     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9947     if diff conftest.exp conftest.er2 >/dev/null; then
9948     lt_cv_prog_compiler__b=yes
9949     fi
9950     else
9951     lt_cv_prog_compiler__b=yes
9952     fi
9953     fi
9954     $RM -r conftest*
9955     LDFLAGS=$save_LDFLAGS
9956    
9957     fi
9958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9959     $as_echo "$lt_cv_prog_compiler__b" >&6; }
9960    
9961     if test yes = "$lt_cv_prog_compiler__b"; then
9962     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9963     else
9964     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9965     fi
9966    
9967 michael 5052 ;;
9968     esac
9969     fi
9970 michael 5059 if test no = "$with_gnu_ld"; then
9971     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9972 michael 5052 hardcode_libdir_separator=:
9973    
9974     case $host_cpu in
9975     hppa*64*|ia64*)
9976     hardcode_direct=no
9977     hardcode_shlibpath_var=no
9978     ;;
9979     *)
9980     hardcode_direct=yes
9981 michael 5059 hardcode_direct_absolute=yes
9982     export_dynamic_flag_spec='$wl-E'
9983 michael 5052
9984     # hardcode_minus_L: Not really in the search PATH,
9985     # but as the default location of the library.
9986     hardcode_minus_L=yes
9987     ;;
9988     esac
9989     fi
9990     ;;
9991    
9992     irix5* | irix6* | nonstopux*)
9993 michael 5059 if test yes = "$GCC"; then
9994     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'
9995     # Try to use the -exported_symbol ld option, if it does not
9996     # work, assume that -exports_file does not work either and
9997     # implicitly export all symbols.
9998     # This should be the same for all languages, so no per-tag cache variable.
9999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10000     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10001     if ${lt_cv_irix_exported_symbol+:} false; then :
10002     $as_echo_n "(cached) " >&6
10003     else
10004     save_LDFLAGS=$LDFLAGS
10005     LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007     /* end confdefs.h. */
10008     int foo (void) { return 0; }
10009     _ACEOF
10010     if ac_fn_c_try_link "$LINENO"; then :
10011     lt_cv_irix_exported_symbol=yes
10012     else
10013     lt_cv_irix_exported_symbol=no
10014     fi
10015     rm -f core conftest.err conftest.$ac_objext \
10016     conftest$ac_exeext conftest.$ac_ext
10017     LDFLAGS=$save_LDFLAGS
10018     fi
10019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10020     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10021     if test yes = "$lt_cv_irix_exported_symbol"; then
10022     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'
10023     fi
10024 michael 5052 else
10025 michael 5059 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'
10026     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'
10027 michael 5052 fi
10028 michael 5059 archive_cmds_need_lc='no'
10029     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10030 michael 5052 hardcode_libdir_separator=:
10031 michael 5059 inherit_rpath=yes
10032 michael 5052 link_all_deplibs=yes
10033     ;;
10034    
10035 michael 5059 linux*)
10036     case $cc_basename in
10037     tcc*)
10038     # Fabrice Bellard et al's Tiny C Compiler
10039     ld_shlibs=yes
10040     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10041     ;;
10042     esac
10043     ;;
10044    
10045     netbsd*)
10046     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10047 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10048     else
10049     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10050     fi
10051     hardcode_libdir_flag_spec='-R$libdir'
10052     hardcode_direct=yes
10053     hardcode_shlibpath_var=no
10054     ;;
10055    
10056     newsos6)
10057     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058     hardcode_direct=yes
10059 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10060 michael 5052 hardcode_libdir_separator=:
10061     hardcode_shlibpath_var=no
10062     ;;
10063    
10064 michael 5059 *nto* | *qnx*)
10065     ;;
10066    
10067     openbsd* | bitrig*)
10068     if test -f /usr/libexec/ld.so; then
10069     hardcode_direct=yes
10070     hardcode_shlibpath_var=no
10071     hardcode_direct_absolute=yes
10072     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10073     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10074     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10075     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10076     export_dynamic_flag_spec='$wl-E'
10077     else
10078     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10079     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10080     fi
10081 michael 5052 else
10082 michael 5059 ld_shlibs=no
10083 michael 5052 fi
10084     ;;
10085    
10086     os2*)
10087     hardcode_libdir_flag_spec='-L$libdir'
10088     hardcode_minus_L=yes
10089     allow_undefined_flag=unsupported
10090 michael 5059 shrext_cmds=.dll
10091     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10092     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10093     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10094     $ECHO EXPORTS >> $output_objdir/$libname.def~
10095     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10096     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10097     emximp -o $lib $output_objdir/$libname.def'
10098     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10099     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10100     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10101     $ECHO EXPORTS >> $output_objdir/$libname.def~
10102     prefix_cmds="$SED"~
10103     if test EXPORTS = "`$SED 1q $export_symbols`"; then
10104     prefix_cmds="$prefix_cmds -e 1d";
10105     fi~
10106     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10107     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10108     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10109     emximp -o $lib $output_objdir/$libname.def'
10110     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10111     enable_shared_with_static_runtimes=yes
10112 michael 5052 ;;
10113    
10114     osf3*)
10115 michael 5059 if test yes = "$GCC"; then
10116     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10117     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'
10118 michael 5052 else
10119     allow_undefined_flag=' -expect_unresolved \*'
10120 michael 5059 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'
10121 michael 5052 fi
10122 michael 5059 archive_cmds_need_lc='no'
10123     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10124 michael 5052 hardcode_libdir_separator=:
10125     ;;
10126    
10127     osf4* | osf5*) # as osf3* with the addition of -msym flag
10128 michael 5059 if test yes = "$GCC"; then
10129     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10130     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'
10131     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10132 michael 5052 else
10133     allow_undefined_flag=' -expect_unresolved \*'
10134 michael 5059 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'
10135     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~
10136     $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'
10137 michael 5052
10138     # Both c and cxx compiler support -rpath directly
10139     hardcode_libdir_flag_spec='-rpath $libdir'
10140     fi
10141 michael 5059 archive_cmds_need_lc='no'
10142 michael 5052 hardcode_libdir_separator=:
10143     ;;
10144    
10145     solaris*)
10146 michael 5059 no_undefined_flag=' -z defs'
10147     if test yes = "$GCC"; then
10148     wlarc='$wl'
10149     archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10150     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10151     $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'
10152 michael 5052 else
10153 michael 5059 case `$CC -V 2>&1` in
10154     *"Compilers 5.0"*)
10155     wlarc=''
10156     archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10158     $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10159     ;;
10160     *)
10161     wlarc='$wl'
10162     archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10163     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10164     $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10165     ;;
10166     esac
10167 michael 5052 fi
10168     hardcode_libdir_flag_spec='-R$libdir'
10169     hardcode_shlibpath_var=no
10170     case $host_os in
10171     solaris2.[0-5] | solaris2.[0-5].*) ;;
10172     *)
10173 michael 5059 # The compiler driver will combine and reorder linker options,
10174     # but understands '-z linker_flag'. GCC discards it without '$wl',
10175     # but is careful enough not to reorder.
10176     # Supported since Solaris 2.6 (maybe 2.5.1?)
10177     if test yes = "$GCC"; then
10178     whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10179     else
10180     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10181     fi
10182     ;;
10183 michael 5052 esac
10184     link_all_deplibs=yes
10185     ;;
10186    
10187     sunos4*)
10188 michael 5059 if test sequent = "$host_vendor"; then
10189 michael 5052 # Use $CC to link under sequent, because it throws in some extra .o
10190     # files that make .init and .fini sections work.
10191 michael 5059 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10192 michael 5052 else
10193     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10194     fi
10195     hardcode_libdir_flag_spec='-L$libdir'
10196     hardcode_direct=yes
10197     hardcode_minus_L=yes
10198     hardcode_shlibpath_var=no
10199     ;;
10200    
10201     sysv4)
10202     case $host_vendor in
10203     sni)
10204     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10205     hardcode_direct=yes # is this really true???
10206     ;;
10207     siemens)
10208     ## LD is ld it makes a PLAMLIB
10209     ## CC just makes a GrossModule.
10210     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10211     reload_cmds='$CC -r -o $output$reload_objs'
10212     hardcode_direct=no
10213     ;;
10214     motorola)
10215     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10217     ;;
10218     esac
10219     runpath_var='LD_RUN_PATH'
10220     hardcode_shlibpath_var=no
10221     ;;
10222    
10223     sysv4.3*)
10224     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225     hardcode_shlibpath_var=no
10226     export_dynamic_flag_spec='-Bexport'
10227     ;;
10228    
10229     sysv4*MP*)
10230     if test -d /usr/nec; then
10231     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232     hardcode_shlibpath_var=no
10233     runpath_var=LD_RUN_PATH
10234     hardcode_runpath_var=yes
10235     ld_shlibs=yes
10236     fi
10237     ;;
10238    
10239 michael 5059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10240     no_undefined_flag='$wl-z,text'
10241 michael 5052 archive_cmds_need_lc=no
10242     hardcode_shlibpath_var=no
10243     runpath_var='LD_RUN_PATH'
10244    
10245 michael 5059 if test yes = "$GCC"; then
10246     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 michael 5052 else
10249 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 michael 5052 fi
10252     ;;
10253    
10254     sysv5* | sco3.2v5* | sco5v6*)
10255 michael 5059 # Note: We CANNOT use -z defs as we might desire, because we do not
10256 michael 5052 # link with -lc, and that would cause any symbols used from libc to
10257     # always be unresolved, which means just about no library would
10258     # ever link correctly. If we're not using GNU ld we use -z text
10259     # though, which does catch some bad symbols but isn't as heavy-handed
10260     # as -z defs.
10261 michael 5059 no_undefined_flag='$wl-z,text'
10262     allow_undefined_flag='$wl-z,nodefs'
10263 michael 5052 archive_cmds_need_lc=no
10264     hardcode_shlibpath_var=no
10265 michael 5059 hardcode_libdir_flag_spec='$wl-R,$libdir'
10266 michael 5052 hardcode_libdir_separator=':'
10267     link_all_deplibs=yes
10268 michael 5059 export_dynamic_flag_spec='$wl-Bexport'
10269 michael 5052 runpath_var='LD_RUN_PATH'
10270    
10271 michael 5059 if test yes = "$GCC"; then
10272     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 michael 5052 else
10275 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 michael 5052 fi
10278     ;;
10279    
10280     uts4*)
10281     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10282     hardcode_libdir_flag_spec='-L$libdir'
10283     hardcode_shlibpath_var=no
10284     ;;
10285    
10286     *)
10287     ld_shlibs=no
10288     ;;
10289     esac
10290 michael 5059
10291     if test sni = "$host_vendor"; then
10292     case $host in
10293     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10294     export_dynamic_flag_spec='$wl-Blargedynsym'
10295     ;;
10296     esac
10297     fi
10298 michael 5052 fi
10299    
10300 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10301     $as_echo "$ld_shlibs" >&6; }
10302     test no = "$ld_shlibs" && can_build_shared=no
10303 michael 5052
10304 michael 5059 with_gnu_ld=$with_gnu_ld
10305    
10306    
10307    
10308    
10309    
10310    
10311    
10312    
10313    
10314    
10315    
10316    
10317    
10318    
10319    
10320 michael 5052 #
10321     # Do we need to explicitly link libc?
10322     #
10323     case "x$archive_cmds_need_lc" in
10324     x|xyes)
10325     # Assume -lc should be added
10326     archive_cmds_need_lc=yes
10327    
10328 michael 5059 if test yes,yes = "$GCC,$enable_shared"; then
10329 michael 5052 case $archive_cmds in
10330     *'~'*)
10331     # FIXME: we may have to deal with multi-command sequences.
10332     ;;
10333     '$CC '*)
10334     # Test whether the compiler implicitly links with -lc since on some
10335     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10336     # to ld, don't add -lc before -lgcc.
10337 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10338     $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10339     if ${lt_cv_archive_cmds_need_lc+:} false; then :
10340     $as_echo_n "(cached) " >&6
10341     else
10342     $RM conftest*
10343     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10344 michael 5052
10345 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10346 michael 5052 (eval $ac_compile) 2>&5
10347     ac_status=$?
10348 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10349     test $ac_status = 0; } 2>conftest.err; then
10350     soname=conftest
10351     lib=conftest
10352     libobjs=conftest.$ac_objext
10353     deplibs=
10354     wl=$lt_prog_compiler_wl
10355     pic_flag=$lt_prog_compiler_pic
10356     compiler_flags=-v
10357     linker_flags=-v
10358     verstring=
10359     output_objdir=.
10360     libname=conftest
10361     lt_save_allow_undefined_flag=$allow_undefined_flag
10362     allow_undefined_flag=
10363     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10364     (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10365 michael 5052 ac_status=$?
10366 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10367     test $ac_status = 0; }
10368     then
10369     lt_cv_archive_cmds_need_lc=no
10370     else
10371     lt_cv_archive_cmds_need_lc=yes
10372     fi
10373     allow_undefined_flag=$lt_save_allow_undefined_flag
10374     else
10375     cat conftest.err 1>&5
10376     fi
10377     $RM conftest*
10378    
10379     fi
10380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10381     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10382     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10383 michael 5052 ;;
10384     esac
10385     fi
10386     ;;
10387     esac
10388    
10389 michael 5059
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415    
10416    
10417    
10418    
10419    
10420    
10421    
10422    
10423    
10424    
10425    
10426    
10427    
10428    
10429    
10430    
10431    
10432    
10433    
10434    
10435    
10436    
10437    
10438    
10439    
10440    
10441    
10442    
10443    
10444    
10445    
10446    
10447    
10448    
10449    
10450    
10451    
10452    
10453    
10454    
10455    
10456    
10457    
10458    
10459    
10460    
10461    
10462    
10463    
10464    
10465    
10466    
10467    
10468    
10469    
10470    
10471    
10472    
10473    
10474    
10475    
10476    
10477    
10478    
10479    
10480    
10481    
10482    
10483    
10484    
10485    
10486    
10487    
10488    
10489    
10490    
10491    
10492    
10493    
10494    
10495    
10496    
10497    
10498    
10499    
10500    
10501    
10502    
10503    
10504    
10505    
10506    
10507    
10508    
10509    
10510    
10511    
10512    
10513    
10514    
10515    
10516    
10517    
10518    
10519    
10520    
10521    
10522    
10523    
10524    
10525    
10526    
10527    
10528    
10529    
10530    
10531    
10532    
10533    
10534    
10535    
10536    
10537    
10538    
10539    
10540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10541     $as_echo_n "checking dynamic linker characteristics... " >&6; }
10542    
10543     if test yes = "$GCC"; then
10544     case $host_os in
10545     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10546     *) lt_awk_arg='/^libraries:/' ;;
10547     esac
10548     case $host_os in
10549     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10550     *) lt_sed_strip_eq='s|=/|/|g' ;;
10551     esac
10552     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10553     case $lt_search_path_spec in
10554     *\;*)
10555     # if the path contains ";" then we assume it to be the separator
10556     # otherwise default to the standard path separator (i.e. ":") - it is
10557     # assumed that no part of a normal pathname contains ";" but that should
10558     # okay in the real world where ";" in dirpaths is itself problematic.
10559     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10560     ;;
10561     *)
10562     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10563     ;;
10564     esac
10565     # Ok, now we have the path, separated by spaces, we can step through it
10566     # and add multilib dir if necessary...
10567     lt_tmp_lt_search_path_spec=
10568     lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10569     # ...but if some path component already ends with the multilib dir we assume
10570     # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10571     case "$lt_multi_os_dir; $lt_search_path_spec " in
10572     "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10573     lt_multi_os_dir=
10574     ;;
10575     esac
10576     for lt_sys_path in $lt_search_path_spec; do
10577     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10578     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10579     elif test -n "$lt_multi_os_dir"; then
10580     test -d "$lt_sys_path" && \
10581     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10582     fi
10583     done
10584     lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10585     BEGIN {RS = " "; FS = "/|\n";} {
10586     lt_foo = "";
10587     lt_count = 0;
10588     for (lt_i = NF; lt_i > 0; lt_i--) {
10589     if ($lt_i != "" && $lt_i != ".") {
10590     if ($lt_i == "..") {
10591     lt_count++;
10592     } else {
10593     if (lt_count == 0) {
10594     lt_foo = "/" $lt_i lt_foo;
10595     } else {
10596     lt_count--;
10597     }
10598     }
10599     }
10600     }
10601     if (lt_foo != "") { lt_freq[lt_foo]++; }
10602     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10603     }'`
10604     # AWK program above erroneously prepends '/' to C:/dos/paths
10605     # for these hosts.
10606     case $host_os in
10607     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10608     $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10609     esac
10610     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10611     else
10612     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10613     fi
10614 michael 5052 library_names_spec=
10615     libname_spec='lib$name'
10616     soname_spec=
10617 michael 5059 shrext_cmds=.so
10618 michael 5052 postinstall_cmds=
10619     postuninstall_cmds=
10620     finish_cmds=
10621     finish_eval=
10622     shlibpath_var=
10623     shlibpath_overrides_runpath=unknown
10624     version_type=none
10625     dynamic_linker="$host_os ld.so"
10626     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10627     need_lib_prefix=unknown
10628     hardcode_into_libs=no
10629    
10630     # when you set need_version to no, make sure it does not cause -set_version
10631     # flags to be left without arguments
10632     need_version=unknown
10633    
10634     case $host_os in
10635     aix3*)
10636 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10637     library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10638 michael 5052 shlibpath_var=LIBPATH
10639    
10640     # AIX 3 has no versioning support, so we append a major version to the name.
10641 michael 5059 soname_spec='$libname$release$shared_ext$major'
10642 michael 5052 ;;
10643    
10644 michael 5059 aix[4-9]*)
10645     version_type=linux # correct to gnu/linux during the next big refactor
10646 michael 5052 need_lib_prefix=no
10647     need_version=no
10648     hardcode_into_libs=yes
10649 michael 5059 if test ia64 = "$host_cpu"; then
10650 michael 5052 # AIX 5 supports IA64
10651 michael 5059 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10652 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10653     else
10654     # With GCC up to 2.95.x, collect2 would create an import file
10655     # for dependence libraries. The import file would start with
10656 michael 5059 # the line '#! .'. This would cause the generated library to
10657     # depend on '.', always an invalid library. This was fixed in
10658 michael 5052 # development snapshots of GCC prior to 3.0.
10659     case $host_os in
10660     aix4 | aix4.[01] | aix4.[01].*)
10661     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10662     echo ' yes '
10663 michael 5059 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10664 michael 5052 :
10665     else
10666     can_build_shared=no
10667     fi
10668     ;;
10669     esac
10670 michael 5059 # Using Import Files as archive members, it is possible to support
10671     # filename-based versioning of shared library archives on AIX. While
10672     # this would work for both with and without runtime linking, it will
10673     # prevent static linking of such archives. So we do filename-based
10674     # shared library versioning with .so extension only, which is used
10675     # when both runtime linking and shared linking is enabled.
10676     # Unfortunately, runtime linking may impact performance, so we do
10677     # not want this to be the default eventually. Also, we use the
10678     # versioned .so libs for executables only if there is the -brtl
10679     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10680     # To allow for filename-based versioning support, we need to create
10681     # libNAME.so.V as an archive file, containing:
10682     # *) an Import File, referring to the versioned filename of the
10683     # archive as well as the shared archive member, telling the
10684     # bitwidth (32 or 64) of that shared object, and providing the
10685     # list of exported symbols of that shared object, eventually
10686     # decorated with the 'weak' keyword
10687     # *) the shared object with the F_LOADONLY flag set, to really avoid
10688     # it being seen by the linker.
10689     # At run time we better use the real file rather than another symlink,
10690     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10691    
10692     case $with_aix_soname,$aix_use_runtimelinking in
10693     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10694 michael 5052 # soname into executable. Probably we can add versioning support to
10695     # collect2, so additional links can be useful in future.
10696 michael 5059 aix,yes) # traditional libtool
10697     dynamic_linker='AIX unversionable lib.so'
10698 michael 5052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10699     # instead of lib<name>.a to let people know that these are not
10700     # typical AIX shared libraries.
10701 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10702     ;;
10703     aix,no) # traditional AIX only
10704     dynamic_linker='AIX lib.a(lib.so.V)'
10705 michael 5052 # We preserve .a as extension for shared libraries through AIX4.2
10706     # and later when we are not doing run time linking.
10707 michael 5059 library_names_spec='$libname$release.a $libname.a'
10708     soname_spec='$libname$release$shared_ext$major'
10709     ;;
10710     svr4,*) # full svr4 only
10711     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10712     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10713     # We do not specify a path in Import Files, so LIBPATH fires.
10714     shlibpath_overrides_runpath=yes
10715     ;;
10716     *,yes) # both, prefer svr4
10717     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10718     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10719     # unpreferred sharedlib libNAME.a needs extra handling
10720     postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10721     postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10722     # We do not specify a path in Import Files, so LIBPATH fires.
10723     shlibpath_overrides_runpath=yes
10724     ;;
10725     *,no) # both, prefer aix
10726     dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10727     library_names_spec='$libname$release.a $libname.a'
10728     soname_spec='$libname$release$shared_ext$major'
10729     # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10730     postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10731     postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10732     ;;
10733     esac
10734 michael 5052 shlibpath_var=LIBPATH
10735     fi
10736     ;;
10737    
10738     amigaos*)
10739 michael 5059 case $host_cpu in
10740     powerpc)
10741     # Since July 2007 AmigaOS4 officially supports .so libraries.
10742     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10743     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744     ;;
10745     m68k)
10746     library_names_spec='$libname.ixlibrary $libname.a'
10747     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10748     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10749     ;;
10750     esac
10751 michael 5052 ;;
10752    
10753     beos*)
10754 michael 5059 library_names_spec='$libname$shared_ext'
10755 michael 5052 dynamic_linker="$host_os ld.so"
10756     shlibpath_var=LIBRARY_PATH
10757     ;;
10758    
10759     bsdi[45]*)
10760 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10761 michael 5052 need_version=no
10762 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10763     soname_spec='$libname$release$shared_ext$major'
10764 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10765     shlibpath_var=LD_LIBRARY_PATH
10766     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10767     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10768     # the default ld.so.conf also contains /usr/contrib/lib and
10769     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10770     # libtool to hard-code these into programs
10771     ;;
10772    
10773 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
10774 michael 5052 version_type=windows
10775 michael 5059 shrext_cmds=.dll
10776 michael 5052 need_version=no
10777     need_lib_prefix=no
10778    
10779 michael 5059 case $GCC,$cc_basename in
10780     yes,*)
10781     # gcc
10782 michael 5052 library_names_spec='$libname.dll.a'
10783     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10784 michael 5059 postinstall_cmds='base_file=`basename \$file`~
10785     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10786 michael 5052 dldir=$destdir/`dirname \$dlpath`~
10787     test -d \$dldir || mkdir -p \$dldir~
10788     $install_prog $dir/$dlname \$dldir/$dlname~
10789 michael 5059 chmod a+x \$dldir/$dlname~
10790     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10791     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10792     fi'
10793 michael 5052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10794     dlpath=$dir/\$dldll~
10795 michael 5059 $RM \$dlpath'
10796 michael 5052 shlibpath_overrides_runpath=yes
10797    
10798     case $host_os in
10799     cygwin*)
10800     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10801 michael 5059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10802    
10803     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10804 michael 5052 ;;
10805 michael 5059 mingw* | cegcc*)
10806 michael 5052 # MinGW DLLs use traditional 'lib' prefix
10807 michael 5059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10808 michael 5052 ;;
10809     pw32*)
10810     # pw32 DLLs use 'pw' prefix rather than 'lib'
10811 michael 5059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10812 michael 5052 ;;
10813     esac
10814 michael 5059 dynamic_linker='Win32 ld.exe'
10815 michael 5052 ;;
10816    
10817 michael 5059 *,cl*)
10818     # Native MSVC
10819     libname_spec='$name'
10820     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10821     library_names_spec='$libname.dll.lib'
10822    
10823     case $build_os in
10824     mingw*)
10825     sys_lib_search_path_spec=
10826     lt_save_ifs=$IFS
10827     IFS=';'
10828     for lt_path in $LIB
10829     do
10830     IFS=$lt_save_ifs
10831     # Let DOS variable expansion print the short 8.3 style file name.
10832     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10833     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10834     done
10835     IFS=$lt_save_ifs
10836     # Convert to MSYS style.
10837     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10838     ;;
10839     cygwin*)
10840     # Convert to unix form, then to dos form, then back to unix form
10841     # but this time dos style (no spaces!) so that the unix form looks
10842     # like /cygdrive/c/PROGRA~1:/cygdr...
10843     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10844     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10845     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10846     ;;
10847     *)
10848     sys_lib_search_path_spec=$LIB
10849     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10850     # It is most probably a Windows format PATH.
10851     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10852     else
10853     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10854     fi
10855     # FIXME: find the short name or the path components, as spaces are
10856     # common. (e.g. "Program Files" -> "PROGRA~1")
10857     ;;
10858     esac
10859    
10860     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10861     postinstall_cmds='base_file=`basename \$file`~
10862     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10863     dldir=$destdir/`dirname \$dlpath`~
10864     test -d \$dldir || mkdir -p \$dldir~
10865     $install_prog $dir/$dlname \$dldir/$dlname'
10866     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10867     dlpath=$dir/\$dldll~
10868     $RM \$dlpath'
10869     shlibpath_overrides_runpath=yes
10870     dynamic_linker='Win32 link.exe'
10871     ;;
10872    
10873 michael 5052 *)
10874 michael 5059 # Assume MSVC wrapper
10875     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10876     dynamic_linker='Win32 ld.exe'
10877 michael 5052 ;;
10878     esac
10879     # FIXME: first we should search . and the directory the executable is in
10880     shlibpath_var=PATH
10881     ;;
10882    
10883     darwin* | rhapsody*)
10884     dynamic_linker="$host_os dyld"
10885     version_type=darwin
10886     need_lib_prefix=no
10887     need_version=no
10888 michael 5059 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10889     soname_spec='$libname$release$major$shared_ext'
10890 michael 5052 shlibpath_overrides_runpath=yes
10891     shlibpath_var=DYLD_LIBRARY_PATH
10892     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10893 michael 5059
10894     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10895 michael 5052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10896     ;;
10897    
10898     dgux*)
10899 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10900 michael 5052 need_lib_prefix=no
10901     need_version=no
10902 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10903     soname_spec='$libname$release$shared_ext$major'
10904 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10905     ;;
10906    
10907     freebsd* | dragonfly*)
10908     # DragonFly does not have aout. When/if they implement a new
10909     # versioning mechanism, adjust this.
10910     if test -x /usr/bin/objformat; then
10911     objformat=`/usr/bin/objformat`
10912     else
10913     case $host_os in
10914 michael 5059 freebsd[23].*) objformat=aout ;;
10915 michael 5052 *) objformat=elf ;;
10916     esac
10917     fi
10918     version_type=freebsd-$objformat
10919     case $version_type in
10920     freebsd-elf*)
10921 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10922 michael 5052 need_version=no
10923     need_lib_prefix=no
10924     ;;
10925     freebsd-*)
10926 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10927 michael 5052 need_version=yes
10928     ;;
10929     esac
10930     shlibpath_var=LD_LIBRARY_PATH
10931     case $host_os in
10932 michael 5059 freebsd2.*)
10933 michael 5052 shlibpath_overrides_runpath=yes
10934     ;;
10935     freebsd3.[01]* | freebsdelf3.[01]*)
10936     shlibpath_overrides_runpath=yes
10937     hardcode_into_libs=yes
10938     ;;
10939     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10940     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10941     shlibpath_overrides_runpath=no
10942     hardcode_into_libs=yes
10943     ;;
10944 michael 5059 *) # from 4.6 on, and DragonFly
10945 michael 5052 shlibpath_overrides_runpath=yes
10946     hardcode_into_libs=yes
10947     ;;
10948     esac
10949     ;;
10950    
10951 michael 5059 haiku*)
10952     version_type=linux # correct to gnu/linux during the next big refactor
10953 michael 5052 need_lib_prefix=no
10954     need_version=no
10955 michael 5059 dynamic_linker="$host_os runtime_loader"
10956     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10957     soname_spec='$libname$release$shared_ext$major'
10958     shlibpath_var=LIBRARY_PATH
10959     shlibpath_overrides_runpath=no
10960     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10961 michael 5052 hardcode_into_libs=yes
10962     ;;
10963    
10964     hpux9* | hpux10* | hpux11*)
10965     # Give a soname corresponding to the major version so that dld.sl refuses to
10966     # link against other versions.
10967     version_type=sunos
10968     need_lib_prefix=no
10969     need_version=no
10970     case $host_cpu in
10971     ia64*)
10972     shrext_cmds='.so'
10973     hardcode_into_libs=yes
10974     dynamic_linker="$host_os dld.so"
10975     shlibpath_var=LD_LIBRARY_PATH
10976     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10977 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10978     soname_spec='$libname$release$shared_ext$major'
10979     if test 32 = "$HPUX_IA64_MODE"; then
10980 michael 5052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10981     else
10982     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10983     fi
10984     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10985     ;;
10986 michael 5059 hppa*64*)
10987 michael 5052 shrext_cmds='.sl'
10988 michael 5059 hardcode_into_libs=yes
10989 michael 5052 dynamic_linker="$host_os dld.sl"
10990 michael 5059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10991     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10992     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10993     soname_spec='$libname$release$shared_ext$major'
10994     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10995     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10996     ;;
10997     *)
10998     shrext_cmds='.sl'
10999     dynamic_linker="$host_os dld.sl"
11000 michael 5052 shlibpath_var=SHLIB_PATH
11001     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11002 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11003     soname_spec='$libname$release$shared_ext$major'
11004 michael 5052 ;;
11005     esac
11006 michael 5059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11007 michael 5052 postinstall_cmds='chmod 555 $lib'
11008 michael 5059 # or fails outright, so override atomically:
11009     install_override_mode=555
11010 michael 5052 ;;
11011    
11012 michael 5059 interix[3-9]*)
11013     version_type=linux # correct to gnu/linux during the next big refactor
11014 michael 5052 need_lib_prefix=no
11015     need_version=no
11016 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11017     soname_spec='$libname$release$shared_ext$major'
11018 michael 5052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11019     shlibpath_var=LD_LIBRARY_PATH
11020     shlibpath_overrides_runpath=no
11021     hardcode_into_libs=yes
11022     ;;
11023    
11024     irix5* | irix6* | nonstopux*)
11025     case $host_os in
11026     nonstopux*) version_type=nonstopux ;;
11027     *)
11028 michael 5059 if test yes = "$lt_cv_prog_gnu_ld"; then
11029     version_type=linux # correct to gnu/linux during the next big refactor
11030 michael 5052 else
11031     version_type=irix
11032     fi ;;
11033     esac
11034     need_lib_prefix=no
11035     need_version=no
11036 michael 5059 soname_spec='$libname$release$shared_ext$major'
11037     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11038 michael 5052 case $host_os in
11039     irix5* | nonstopux*)
11040     libsuff= shlibsuff=
11041     ;;
11042     *)
11043     case $LD in # libtool.m4 will add one of these switches to LD
11044     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11045     libsuff= shlibsuff= libmagic=32-bit;;
11046     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11047     libsuff=32 shlibsuff=N32 libmagic=N32;;
11048     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11049     libsuff=64 shlibsuff=64 libmagic=64-bit;;
11050     *) libsuff= shlibsuff= libmagic=never-match;;
11051     esac
11052     ;;
11053     esac
11054     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11055     shlibpath_overrides_runpath=no
11056 michael 5059 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11057     sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11058 michael 5052 hardcode_into_libs=yes
11059     ;;
11060    
11061     # No shared lib support for Linux oldld, aout, or coff.
11062     linux*oldld* | linux*aout* | linux*coff*)
11063     dynamic_linker=no
11064     ;;
11065    
11066 michael 5059 linux*android*)
11067     version_type=none # Android doesn't support versioned libraries.
11068 michael 5052 need_lib_prefix=no
11069     need_version=no
11070 michael 5059 library_names_spec='$libname$release$shared_ext'
11071     soname_spec='$libname$release$shared_ext'
11072     finish_cmds=
11073     shlibpath_var=LD_LIBRARY_PATH
11074     shlibpath_overrides_runpath=yes
11075    
11076     # This implies no fast_install, which is unacceptable.
11077     # Some rework will be needed to allow for fast_install
11078     # before this can be enabled.
11079     hardcode_into_libs=yes
11080    
11081     dynamic_linker='Android linker'
11082     # Don't embed -rpath directories since the linker doesn't support them.
11083     hardcode_libdir_flag_spec='-L$libdir'
11084     ;;
11085    
11086     # This must be glibc/ELF.
11087     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11088     version_type=linux # correct to gnu/linux during the next big refactor
11089     need_lib_prefix=no
11090     need_version=no
11091     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11092     soname_spec='$libname$release$shared_ext$major'
11093 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11094     shlibpath_var=LD_LIBRARY_PATH
11095     shlibpath_overrides_runpath=no
11096 michael 5059
11097     # Some binutils ld are patched to set DT_RUNPATH
11098     if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11099     $as_echo_n "(cached) " >&6
11100     else
11101     lt_cv_shlibpath_overrides_runpath=no
11102     save_LDFLAGS=$LDFLAGS
11103     save_libdir=$libdir
11104     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11105     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107     /* end confdefs.h. */
11108    
11109     int
11110     main ()
11111     {
11112    
11113     ;
11114     return 0;
11115     }
11116     _ACEOF
11117     if ac_fn_c_try_link "$LINENO"; then :
11118     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11119     lt_cv_shlibpath_overrides_runpath=yes
11120     fi
11121     fi
11122     rm -f core conftest.err conftest.$ac_objext \
11123     conftest$ac_exeext conftest.$ac_ext
11124     LDFLAGS=$save_LDFLAGS
11125     libdir=$save_libdir
11126    
11127     fi
11128    
11129     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11130    
11131 michael 5052 # This implies no fast_install, which is unacceptable.
11132     # Some rework will be needed to allow for fast_install
11133     # before this can be enabled.
11134     hardcode_into_libs=yes
11135    
11136     # Append ld.so.conf contents to the search path
11137     if test -f /etc/ld.so.conf; then
11138 michael 5059 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' ' '`
11139 michael 5052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11140     fi
11141    
11142     # We used to test for /lib/ld.so.1 and disable shared libraries on
11143     # powerpc, because MkLinux only supported shared libraries with the
11144     # GNU dynamic linker. Since this was broken with cross compilers,
11145     # most powerpc-linux boxes support dynamic linking these days and
11146     # people can always --disable-shared, the test was removed, and we
11147     # assume the GNU/Linux dynamic linker is in use.
11148     dynamic_linker='GNU/Linux ld.so'
11149     ;;
11150    
11151     netbsd*)
11152     version_type=sunos
11153     need_lib_prefix=no
11154     need_version=no
11155 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11156     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11157 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11158     dynamic_linker='NetBSD (a.out) ld.so'
11159     else
11160 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161     soname_spec='$libname$release$shared_ext$major'
11162 michael 5052 dynamic_linker='NetBSD ld.elf_so'
11163     fi
11164     shlibpath_var=LD_LIBRARY_PATH
11165     shlibpath_overrides_runpath=yes
11166     hardcode_into_libs=yes
11167     ;;
11168    
11169     newsos6)
11170 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11171     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11172 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11173     shlibpath_overrides_runpath=yes
11174     ;;
11175    
11176 michael 5059 *nto* | *qnx*)
11177     version_type=qnx
11178 michael 5052 need_lib_prefix=no
11179     need_version=no
11180 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11181     soname_spec='$libname$release$shared_ext$major'
11182 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11183 michael 5059 shlibpath_overrides_runpath=no
11184     hardcode_into_libs=yes
11185     dynamic_linker='ldqnx.so'
11186 michael 5052 ;;
11187    
11188 michael 5059 openbsd* | bitrig*)
11189 michael 5052 version_type=sunos
11190 michael 5059 sys_lib_dlsearch_path_spec=/usr/lib
11191 michael 5052 need_lib_prefix=no
11192 michael 5059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11193     need_version=no
11194     else
11195     need_version=yes
11196     fi
11197     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11198 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11199     shlibpath_var=LD_LIBRARY_PATH
11200 michael 5059 shlibpath_overrides_runpath=yes
11201 michael 5052 ;;
11202    
11203     os2*)
11204     libname_spec='$name'
11205 michael 5059 version_type=windows
11206     shrext_cmds=.dll
11207     need_version=no
11208 michael 5052 need_lib_prefix=no
11209 michael 5059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11210     soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11211     v=$($ECHO $release$versuffix | tr -d .-);
11212     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11213     $ECHO $n$v`$shared_ext'
11214     library_names_spec='${libname}_dll.$libext'
11215 michael 5052 dynamic_linker='OS/2 ld.exe'
11216 michael 5059 shlibpath_var=BEGINLIBPATH
11217     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11218     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11219     postinstall_cmds='base_file=`basename \$file`~
11220     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11221     dldir=$destdir/`dirname \$dlpath`~
11222     test -d \$dldir || mkdir -p \$dldir~
11223     $install_prog $dir/$dlname \$dldir/$dlname~
11224     chmod a+x \$dldir/$dlname~
11225     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11226     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11227     fi'
11228     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11229     dlpath=$dir/\$dldll~
11230     $RM \$dlpath'
11231 michael 5052 ;;
11232    
11233     osf3* | osf4* | osf5*)
11234     version_type=osf
11235     need_lib_prefix=no
11236     need_version=no
11237 michael 5059 soname_spec='$libname$release$shared_ext$major'
11238     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11239 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11240     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11241 michael 5059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11242 michael 5052 ;;
11243    
11244 michael 5059 rdos*)
11245     dynamic_linker=no
11246     ;;
11247    
11248 michael 5052 solaris*)
11249 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11250 michael 5052 need_lib_prefix=no
11251     need_version=no
11252 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11253     soname_spec='$libname$release$shared_ext$major'
11254 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11255     shlibpath_overrides_runpath=yes
11256     hardcode_into_libs=yes
11257     # ldd complains unless libraries are executable
11258     postinstall_cmds='chmod +x $lib'
11259     ;;
11260    
11261     sunos4*)
11262     version_type=sunos
11263 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11264 michael 5052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11265     shlibpath_var=LD_LIBRARY_PATH
11266     shlibpath_overrides_runpath=yes
11267 michael 5059 if test yes = "$with_gnu_ld"; then
11268 michael 5052 need_lib_prefix=no
11269     fi
11270     need_version=yes
11271     ;;
11272    
11273     sysv4 | sysv4.3*)
11274 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11275     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11276     soname_spec='$libname$release$shared_ext$major'
11277 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11278     case $host_vendor in
11279     sni)
11280     shlibpath_overrides_runpath=no
11281     need_lib_prefix=no
11282     runpath_var=LD_RUN_PATH
11283     ;;
11284     siemens)
11285     need_lib_prefix=no
11286     ;;
11287     motorola)
11288     need_lib_prefix=no
11289     need_version=no
11290     shlibpath_overrides_runpath=no
11291     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11292     ;;
11293     esac
11294     ;;
11295    
11296     sysv4*MP*)
11297 michael 5059 if test -d /usr/nec; then
11298     version_type=linux # correct to gnu/linux during the next big refactor
11299     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11300     soname_spec='$libname$shared_ext.$major'
11301 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11302     fi
11303     ;;
11304    
11305     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11306 michael 5059 version_type=sco
11307 michael 5052 need_lib_prefix=no
11308     need_version=no
11309 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11310     soname_spec='$libname$release$shared_ext$major'
11311 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11312 michael 5059 shlibpath_overrides_runpath=yes
11313 michael 5052 hardcode_into_libs=yes
11314 michael 5059 if test yes = "$with_gnu_ld"; then
11315 michael 5052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11316     else
11317     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11318     case $host_os in
11319     sco3.2v5*)
11320     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11321     ;;
11322     esac
11323     fi
11324     sys_lib_dlsearch_path_spec='/usr/lib'
11325     ;;
11326    
11327 michael 5059 tpf*)
11328     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11329     version_type=linux # correct to gnu/linux during the next big refactor
11330     need_lib_prefix=no
11331     need_version=no
11332     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11333     shlibpath_var=LD_LIBRARY_PATH
11334     shlibpath_overrides_runpath=no
11335     hardcode_into_libs=yes
11336     ;;
11337    
11338 michael 5052 uts4*)
11339 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11340     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11341     soname_spec='$libname$release$shared_ext$major'
11342 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11343     ;;
11344    
11345     *)
11346     dynamic_linker=no
11347     ;;
11348     esac
11349 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11350     $as_echo "$dynamic_linker" >&6; }
11351     test no = "$dynamic_linker" && can_build_shared=no
11352 michael 5052
11353     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11354 michael 5059 if test yes = "$GCC"; then
11355 michael 5052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11356     fi
11357    
11358 michael 5059 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11359     sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11360     fi
11361     if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11362     sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11363     fi
11364    
11365    
11366    
11367    
11368    
11369    
11370    
11371    
11372    
11373    
11374    
11375    
11376    
11377    
11378    
11379    
11380    
11381    
11382    
11383    
11384    
11385    
11386    
11387    
11388    
11389    
11390    
11391    
11392    
11393    
11394    
11395    
11396    
11397    
11398    
11399    
11400    
11401    
11402    
11403    
11404    
11405    
11406    
11407    
11408    
11409    
11410    
11411    
11412    
11413    
11414    
11415    
11416    
11417    
11418    
11419    
11420    
11421    
11422    
11423    
11424    
11425    
11426    
11427    
11428    
11429    
11430    
11431    
11432    
11433    
11434    
11435    
11436    
11437    
11438    
11439    
11440    
11441    
11442    
11443    
11444    
11445    
11446    
11447    
11448    
11449    
11450    
11451    
11452    
11453    
11454    
11455    
11456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11457     $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11458 michael 5052 hardcode_action=
11459 michael 5059 if test -n "$hardcode_libdir_flag_spec" ||
11460     test -n "$runpath_var" ||
11461     test yes = "$hardcode_automatic"; then
11462 michael 5052
11463 michael 5059 # We can hardcode non-existent directories.
11464     if test no != "$hardcode_direct" &&
11465 michael 5052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11466     # have to relink, otherwise we might link with an installed library
11467     # when we should be linking with a yet-to-be-installed one
11468 michael 5059 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11469     test no != "$hardcode_minus_L"; then
11470 michael 5052 # Linking always hardcodes the temporary library directory.
11471     hardcode_action=relink
11472     else
11473     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11474     hardcode_action=immediate
11475     fi
11476     else
11477     # We cannot hardcode anything, or else we can only hardcode existing
11478     # directories.
11479     hardcode_action=unsupported
11480     fi
11481 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11482     $as_echo "$hardcode_action" >&6; }
11483 michael 5052
11484 michael 5059 if test relink = "$hardcode_action" ||
11485     test yes = "$inherit_rpath"; then
11486 michael 5052 # Fast installation is not supported
11487     enable_fast_install=no
11488 michael 5059 elif test yes = "$shlibpath_overrides_runpath" ||
11489     test no = "$enable_shared"; then
11490 michael 5052 # Fast installation is not necessary
11491     enable_fast_install=needless
11492     fi
11493    
11494    
11495 michael 5059
11496    
11497    
11498    
11499     if test yes != "$enable_dlopen"; then
11500 michael 5052 enable_dlopen=unknown
11501     enable_dlopen_self=unknown
11502     enable_dlopen_self_static=unknown
11503     else
11504     lt_cv_dlopen=no
11505     lt_cv_dlopen_libs=
11506    
11507     case $host_os in
11508     beos*)
11509 michael 5059 lt_cv_dlopen=load_add_on
11510 michael 5052 lt_cv_dlopen_libs=
11511     lt_cv_dlopen_self=yes
11512     ;;
11513    
11514 michael 5059 mingw* | pw32* | cegcc*)
11515     lt_cv_dlopen=LoadLibrary
11516 michael 5052 lt_cv_dlopen_libs=
11517 michael 5059 ;;
11518 michael 5052
11519     cygwin*)
11520 michael 5059 lt_cv_dlopen=dlopen
11521 michael 5052 lt_cv_dlopen_libs=
11522 michael 5059 ;;
11523 michael 5052
11524     darwin*)
11525 michael 5059 # if libdl is installed we need to link against it
11526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11527     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11528     if ${ac_cv_lib_dl_dlopen+:} false; then :
11529     $as_echo_n "(cached) " >&6
11530 michael 5052 else
11531     ac_check_lib_save_LIBS=$LIBS
11532     LIBS="-ldl $LIBS"
11533 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 michael 5052 /* end confdefs.h. */
11535    
11536     /* Override any GCC internal prototype to avoid an error.
11537     Use char because int might match the return type of a GCC
11538     builtin and then its argument prototype would still apply. */
11539     #ifdef __cplusplus
11540     extern "C"
11541     #endif
11542     char dlopen ();
11543     int
11544     main ()
11545     {
11546     return dlopen ();
11547     ;
11548     return 0;
11549     }
11550     _ACEOF
11551 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11552 michael 5052 ac_cv_lib_dl_dlopen=yes
11553     else
11554 michael 5059 ac_cv_lib_dl_dlopen=no
11555 michael 5052 fi
11556     rm -f core conftest.err conftest.$ac_objext \
11557 michael 5059 conftest$ac_exeext conftest.$ac_ext
11558 michael 5052 LIBS=$ac_check_lib_save_LIBS
11559     fi
11560 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11561     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11562     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11563     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11564 michael 5052 else
11565    
11566 michael 5059 lt_cv_dlopen=dyld
11567 michael 5052 lt_cv_dlopen_libs=
11568     lt_cv_dlopen_self=yes
11569    
11570     fi
11571    
11572 michael 5059 ;;
11573 michael 5052
11574 michael 5059 tpf*)
11575     # Don't try to run any link tests for TPF. We know it's impossible
11576     # because TPF is a cross-compiler, and we know how we open DSOs.
11577     lt_cv_dlopen=dlopen
11578     lt_cv_dlopen_libs=
11579     lt_cv_dlopen_self=no
11580     ;;
11581    
11582 michael 5052 *)
11583 michael 5059 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11584     if test "x$ac_cv_func_shl_load" = xyes; then :
11585     lt_cv_dlopen=shl_load
11586 michael 5052 else
11587 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11588     $as_echo_n "checking for shl_load in -ldld... " >&6; }
11589     if ${ac_cv_lib_dld_shl_load+:} false; then :
11590     $as_echo_n "(cached) " >&6
11591 michael 5052 else
11592     ac_check_lib_save_LIBS=$LIBS
11593     LIBS="-ldld $LIBS"
11594 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 michael 5052 /* end confdefs.h. */
11596    
11597     /* Override any GCC internal prototype to avoid an error.
11598     Use char because int might match the return type of a GCC
11599     builtin and then its argument prototype would still apply. */
11600     #ifdef __cplusplus
11601     extern "C"
11602     #endif
11603     char shl_load ();
11604     int
11605     main ()
11606     {
11607     return shl_load ();
11608     ;
11609     return 0;
11610     }
11611     _ACEOF
11612 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11613 michael 5052 ac_cv_lib_dld_shl_load=yes
11614     else
11615 michael 5059 ac_cv_lib_dld_shl_load=no
11616 michael 5052 fi
11617     rm -f core conftest.err conftest.$ac_objext \
11618 michael 5059 conftest$ac_exeext conftest.$ac_ext
11619 michael 5052 LIBS=$ac_check_lib_save_LIBS
11620     fi
11621 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11622     $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11623     if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11624     lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11625 michael 5052 else
11626 michael 5059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11627     if test "x$ac_cv_func_dlopen" = xyes; then :
11628     lt_cv_dlopen=dlopen
11629 michael 5052 else
11630 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11631     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11632     if ${ac_cv_lib_dl_dlopen+:} false; then :
11633     $as_echo_n "(cached) " >&6
11634 michael 5052 else
11635     ac_check_lib_save_LIBS=$LIBS
11636     LIBS="-ldl $LIBS"
11637 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 michael 5052 /* end confdefs.h. */
11639    
11640     /* Override any GCC internal prototype to avoid an error.
11641     Use char because int might match the return type of a GCC
11642     builtin and then its argument prototype would still apply. */
11643     #ifdef __cplusplus
11644     extern "C"
11645     #endif
11646     char dlopen ();
11647     int
11648     main ()
11649     {
11650     return dlopen ();
11651     ;
11652     return 0;
11653     }
11654     _ACEOF
11655 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11656 michael 5052 ac_cv_lib_dl_dlopen=yes
11657     else
11658 michael 5059 ac_cv_lib_dl_dlopen=no
11659 michael 5052 fi
11660     rm -f core conftest.err conftest.$ac_objext \
11661 michael 5059 conftest$ac_exeext conftest.$ac_ext
11662 michael 5052 LIBS=$ac_check_lib_save_LIBS
11663     fi
11664 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11665     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11666     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11667     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11668 michael 5052 else
11669 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11670     $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11671     if ${ac_cv_lib_svld_dlopen+:} false; then :
11672     $as_echo_n "(cached) " >&6
11673 michael 5052 else
11674     ac_check_lib_save_LIBS=$LIBS
11675     LIBS="-lsvld $LIBS"
11676 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 michael 5052 /* end confdefs.h. */
11678    
11679     /* Override any GCC internal prototype to avoid an error.
11680     Use char because int might match the return type of a GCC
11681     builtin and then its argument prototype would still apply. */
11682     #ifdef __cplusplus
11683     extern "C"
11684     #endif
11685     char dlopen ();
11686     int
11687     main ()
11688     {
11689     return dlopen ();
11690     ;
11691     return 0;
11692     }
11693     _ACEOF
11694 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11695 michael 5052 ac_cv_lib_svld_dlopen=yes
11696     else
11697 michael 5059 ac_cv_lib_svld_dlopen=no
11698 michael 5052 fi
11699     rm -f core conftest.err conftest.$ac_objext \
11700 michael 5059 conftest$ac_exeext conftest.$ac_ext
11701 michael 5052 LIBS=$ac_check_lib_save_LIBS
11702     fi
11703 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11704     $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11705     if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11706     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11707 michael 5052 else
11708 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11709     $as_echo_n "checking for dld_link in -ldld... " >&6; }
11710     if ${ac_cv_lib_dld_dld_link+:} false; then :
11711     $as_echo_n "(cached) " >&6
11712 michael 5052 else
11713     ac_check_lib_save_LIBS=$LIBS
11714     LIBS="-ldld $LIBS"
11715 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 michael 5052 /* end confdefs.h. */
11717    
11718     /* Override any GCC internal prototype to avoid an error.
11719     Use char because int might match the return type of a GCC
11720     builtin and then its argument prototype would still apply. */
11721     #ifdef __cplusplus
11722     extern "C"
11723     #endif
11724     char dld_link ();
11725     int
11726     main ()
11727     {
11728     return dld_link ();
11729     ;
11730     return 0;
11731     }
11732     _ACEOF
11733 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11734 michael 5052 ac_cv_lib_dld_dld_link=yes
11735     else
11736 michael 5059 ac_cv_lib_dld_dld_link=no
11737 michael 5052 fi
11738     rm -f core conftest.err conftest.$ac_objext \
11739 michael 5059 conftest$ac_exeext conftest.$ac_ext
11740 michael 5052 LIBS=$ac_check_lib_save_LIBS
11741     fi
11742 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11743     $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11744     if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11745     lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11746 michael 5052 fi
11747    
11748    
11749     fi
11750    
11751    
11752     fi
11753    
11754    
11755     fi
11756    
11757    
11758     fi
11759    
11760    
11761     fi
11762    
11763     ;;
11764     esac
11765    
11766 michael 5059 if test no = "$lt_cv_dlopen"; then
11767     enable_dlopen=no
11768     else
11769 michael 5052 enable_dlopen=yes
11770     fi
11771    
11772     case $lt_cv_dlopen in
11773     dlopen)
11774 michael 5059 save_CPPFLAGS=$CPPFLAGS
11775     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11776 michael 5052
11777 michael 5059 save_LDFLAGS=$LDFLAGS
11778 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11779    
11780 michael 5059 save_LIBS=$LIBS
11781 michael 5052 LIBS="$lt_cv_dlopen_libs $LIBS"
11782    
11783 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11784     $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11785     if ${lt_cv_dlopen_self+:} false; then :
11786     $as_echo_n "(cached) " >&6
11787 michael 5052 else
11788 michael 5059 if test yes = "$cross_compiling"; then :
11789 michael 5052 lt_cv_dlopen_self=cross
11790     else
11791     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11792     lt_status=$lt_dlunknown
11793 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11794     #line $LINENO "configure"
11795 michael 5052 #include "confdefs.h"
11796    
11797     #if HAVE_DLFCN_H
11798     #include <dlfcn.h>
11799     #endif
11800    
11801     #include <stdio.h>
11802    
11803     #ifdef RTLD_GLOBAL
11804     # define LT_DLGLOBAL RTLD_GLOBAL
11805     #else
11806     # ifdef DL_GLOBAL
11807     # define LT_DLGLOBAL DL_GLOBAL
11808     # else
11809     # define LT_DLGLOBAL 0
11810     # endif
11811     #endif
11812    
11813     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11814     find out it does not work in some platform. */
11815     #ifndef LT_DLLAZY_OR_NOW
11816     # ifdef RTLD_LAZY
11817     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11818     # else
11819     # ifdef DL_LAZY
11820     # define LT_DLLAZY_OR_NOW DL_LAZY
11821     # else
11822     # ifdef RTLD_NOW
11823     # define LT_DLLAZY_OR_NOW RTLD_NOW
11824     # else
11825     # ifdef DL_NOW
11826     # define LT_DLLAZY_OR_NOW DL_NOW
11827     # else
11828     # define LT_DLLAZY_OR_NOW 0
11829     # endif
11830     # endif
11831     # endif
11832     # endif
11833     #endif
11834    
11835 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11836     correspondingly for the symbols needed. */
11837     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11838     int fnord () __attribute__((visibility("default")));
11839 michael 5052 #endif
11840    
11841 michael 5059 int fnord () { return 42; }
11842 michael 5052 int main ()
11843     {
11844     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11845     int status = $lt_dlunknown;
11846    
11847     if (self)
11848     {
11849     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11850 michael 5059 else
11851     {
11852     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11853     else puts (dlerror ());
11854     }
11855 michael 5052 /* dlclose (self); */
11856     }
11857     else
11858     puts (dlerror ());
11859    
11860 michael 5059 return status;
11861 michael 5052 }
11862 michael 5059 _LT_EOF
11863     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11864 michael 5052 (eval $ac_link) 2>&5
11865     ac_status=$?
11866 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11867     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11868 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11869     lt_status=$?
11870     case x$lt_status in
11871     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11872     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11873     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11874     esac
11875     else :
11876     # compilation failed
11877     lt_cv_dlopen_self=no
11878     fi
11879     fi
11880     rm -fr conftest*
11881    
11882    
11883     fi
11884 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11885     $as_echo "$lt_cv_dlopen_self" >&6; }
11886 michael 5052
11887 michael 5059 if test yes = "$lt_cv_dlopen_self"; then
11888 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11889 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11890     $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11891     if ${lt_cv_dlopen_self_static+:} false; then :
11892     $as_echo_n "(cached) " >&6
11893 michael 5052 else
11894 michael 5059 if test yes = "$cross_compiling"; then :
11895 michael 5052 lt_cv_dlopen_self_static=cross
11896     else
11897     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11898     lt_status=$lt_dlunknown
11899 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11900     #line $LINENO "configure"
11901 michael 5052 #include "confdefs.h"
11902    
11903     #if HAVE_DLFCN_H
11904     #include <dlfcn.h>
11905     #endif
11906    
11907     #include <stdio.h>
11908    
11909     #ifdef RTLD_GLOBAL
11910     # define LT_DLGLOBAL RTLD_GLOBAL
11911     #else
11912     # ifdef DL_GLOBAL
11913     # define LT_DLGLOBAL DL_GLOBAL
11914     # else
11915     # define LT_DLGLOBAL 0
11916     # endif
11917     #endif
11918    
11919     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11920     find out it does not work in some platform. */
11921     #ifndef LT_DLLAZY_OR_NOW
11922     # ifdef RTLD_LAZY
11923     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11924     # else
11925     # ifdef DL_LAZY
11926     # define LT_DLLAZY_OR_NOW DL_LAZY
11927     # else
11928     # ifdef RTLD_NOW
11929     # define LT_DLLAZY_OR_NOW RTLD_NOW
11930     # else
11931     # ifdef DL_NOW
11932     # define LT_DLLAZY_OR_NOW DL_NOW
11933     # else
11934     # define LT_DLLAZY_OR_NOW 0
11935     # endif
11936     # endif
11937     # endif
11938     # endif
11939     #endif
11940    
11941 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11942     correspondingly for the symbols needed. */
11943     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11944     int fnord () __attribute__((visibility("default")));
11945 michael 5052 #endif
11946    
11947 michael 5059 int fnord () { return 42; }
11948 michael 5052 int main ()
11949     {
11950     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11951     int status = $lt_dlunknown;
11952    
11953     if (self)
11954     {
11955     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11956 michael 5059 else
11957     {
11958     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11959     else puts (dlerror ());
11960     }
11961 michael 5052 /* dlclose (self); */
11962     }
11963     else
11964     puts (dlerror ());
11965    
11966 michael 5059 return status;
11967 michael 5052 }
11968 michael 5059 _LT_EOF
11969     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11970 michael 5052 (eval $ac_link) 2>&5
11971     ac_status=$?
11972 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11974 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11975     lt_status=$?
11976     case x$lt_status in
11977     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11978     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11979     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11980     esac
11981     else :
11982     # compilation failed
11983     lt_cv_dlopen_self_static=no
11984     fi
11985     fi
11986     rm -fr conftest*
11987    
11988    
11989     fi
11990 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11991     $as_echo "$lt_cv_dlopen_self_static" >&6; }
11992 michael 5052 fi
11993    
11994 michael 5059 CPPFLAGS=$save_CPPFLAGS
11995     LDFLAGS=$save_LDFLAGS
11996     LIBS=$save_LIBS
11997 michael 5052 ;;
11998     esac
11999    
12000     case $lt_cv_dlopen_self in
12001     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12002     *) enable_dlopen_self=unknown ;;
12003     esac
12004    
12005     case $lt_cv_dlopen_self_static in
12006     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12007     *) enable_dlopen_self_static=unknown ;;
12008     esac
12009     fi
12010    
12011    
12012    
12013    
12014    
12015    
12016    
12017    
12018    
12019    
12020    
12021    
12022    
12023    
12024    
12025    
12026    
12027 michael 5059 striplib=
12028     old_striplib=
12029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12030     $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12031     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12032     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12033     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12035     $as_echo "yes" >&6; }
12036 michael 5052 else
12037 michael 5059 # FIXME - insert some real tests, host_os isn't really good enough
12038 michael 5052 case $host_os in
12039 michael 5059 darwin*)
12040     if test -n "$STRIP"; then
12041     striplib="$STRIP -x"
12042     old_striplib="$STRIP -S"
12043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044     $as_echo "yes" >&6; }
12045 michael 5052 else
12046 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047     $as_echo "no" >&6; }
12048 michael 5052 fi
12049     ;;
12050     *)
12051 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052     $as_echo "no" >&6; }
12053 michael 5052 ;;
12054     esac
12055     fi
12056    
12057    
12058    
12059    
12060    
12061    
12062    
12063    
12064    
12065    
12066    
12067    
12068 michael 5059 # Report what library types will actually be built
12069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12070     $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12072     $as_echo "$can_build_shared" >&6; }
12073 michael 5052
12074 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12075     $as_echo_n "checking whether to build shared libraries... " >&6; }
12076     test no = "$can_build_shared" && enable_shared=no
12077 michael 5052
12078 michael 5059 # On AIX, shared libraries and static libraries use the same namespace, and
12079     # are all built from PIC.
12080 michael 5052 case $host_os in
12081 michael 5059 aix3*)
12082     test yes = "$enable_shared" && enable_static=no
12083     if test -n "$RANLIB"; then
12084     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12085     postinstall_cmds='$RANLIB $lib'
12086 michael 5052 fi
12087     ;;
12088    
12089 michael 5059 aix[4-9]*)
12090     if test ia64 != "$host_cpu"; then
12091     case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12092     yes,aix,yes) ;; # shared object as lib.so file only
12093     yes,svr4,*) ;; # shared object as lib.so archive member only
12094     yes,*) enable_static=no ;; # shared object in lib.a archive as well
12095 michael 5052 esac
12096     fi
12097     ;;
12098     esac
12099 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12100     $as_echo "$enable_shared" >&6; }
12101 michael 5052
12102 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12103     $as_echo_n "checking whether to build static libraries... " >&6; }
12104     # Make sure either enable_shared or enable_static is yes.
12105     test yes = "$enable_shared" || enable_static=yes
12106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12107     $as_echo "$enable_static" >&6; }
12108 michael 5052
12109    
12110    
12111    
12112     fi
12113     ac_ext=c
12114     ac_cpp='$CPP $CPPFLAGS'
12115     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12116     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12117     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12118    
12119 michael 5059 CC=$lt_save_CC
12120 michael 5052
12121    
12122    
12123    
12124    
12125    
12126    
12127    
12128    
12129    
12130    
12131    
12132    
12133    
12134    
12135 michael 5059 ac_config_commands="$ac_config_commands libtool"
12136 michael 5052
12137    
12138    
12139    
12140 michael 5059 # Only expand once:
12141 michael 5052
12142    
12143    
12144    
12145 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12146     $as_echo_n "checking for ANSI C header files... " >&6; }
12147     if ${ac_cv_header_stdc+:} false; then :
12148     $as_echo_n "(cached) " >&6
12149 michael 5052 else
12150 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 michael 5052 /* end confdefs.h. */
12152     #include <stdlib.h>
12153     #include <stdarg.h>
12154     #include <string.h>
12155     #include <float.h>
12156    
12157     int
12158     main ()
12159     {
12160    
12161     ;
12162     return 0;
12163     }
12164     _ACEOF
12165 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12166 michael 5052 ac_cv_header_stdc=yes
12167     else
12168 michael 5059 ac_cv_header_stdc=no
12169 michael 5052 fi
12170     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171    
12172     if test $ac_cv_header_stdc = yes; then
12173     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12174 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 michael 5052 /* end confdefs.h. */
12176     #include <string.h>
12177    
12178     _ACEOF
12179     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12180 michael 5059 $EGREP "memchr" >/dev/null 2>&1; then :
12181    
12182 michael 5052 else
12183     ac_cv_header_stdc=no
12184     fi
12185     rm -f conftest*
12186    
12187     fi
12188    
12189     if test $ac_cv_header_stdc = yes; then
12190     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12191 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 michael 5052 /* end confdefs.h. */
12193     #include <stdlib.h>
12194    
12195     _ACEOF
12196     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12197 michael 5059 $EGREP "free" >/dev/null 2>&1; then :
12198    
12199 michael 5052 else
12200     ac_cv_header_stdc=no
12201     fi
12202     rm -f conftest*
12203    
12204     fi
12205    
12206     if test $ac_cv_header_stdc = yes; then
12207     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12208 michael 5059 if test "$cross_compiling" = yes; then :
12209 michael 5052 :
12210     else
12211 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 michael 5052 /* end confdefs.h. */
12213     #include <ctype.h>
12214     #include <stdlib.h>
12215     #if ((' ' & 0x0FF) == 0x020)
12216     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12217     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12218     #else
12219     # define ISLOWER(c) \
12220     (('a' <= (c) && (c) <= 'i') \
12221     || ('j' <= (c) && (c) <= 'r') \
12222     || ('s' <= (c) && (c) <= 'z'))
12223     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12224     #endif
12225    
12226     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12227     int
12228     main ()
12229     {
12230     int i;
12231     for (i = 0; i < 256; i++)
12232     if (XOR (islower (i), ISLOWER (i))
12233     || toupper (i) != TOUPPER (i))
12234     return 2;
12235     return 0;
12236     }
12237     _ACEOF
12238 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
12239    
12240 michael 5052 else
12241 michael 5059 ac_cv_header_stdc=no
12242 michael 5052 fi
12243 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12244     conftest.$ac_objext conftest.beam conftest.$ac_ext
12245 michael 5052 fi
12246    
12247     fi
12248     fi
12249 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12250     $as_echo "$ac_cv_header_stdc" >&6; }
12251 michael 5052 if test $ac_cv_header_stdc = yes; then
12252    
12253 michael 5059 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12254 michael 5052
12255     fi
12256    
12257    
12258     for ac_header in sys/poll.h
12259 michael 5059 do :
12260     ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
12261     if test "x$ac_cv_header_sys_poll_h" = xyes; then :
12262 michael 5052 cat >>confdefs.h <<_ACEOF
12263 michael 5059 #define HAVE_SYS_POLL_H 1
12264 michael 5052 _ACEOF
12265     have_poll_sys_h=yes
12266     else
12267     have_sys_poll_h=no
12268     fi
12269    
12270     done
12271    
12272    
12273     for ac_header in fcntl.h sys/time.h unistd.h strings.h
12274 michael 5059 do :
12275     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12276     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12277     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12278 michael 5052 cat >>confdefs.h <<_ACEOF
12279 michael 5059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12280 michael 5052 _ACEOF
12281    
12282     fi
12283    
12284     done
12285    
12286    
12287 michael 5059 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12288     if test "x$ac_cv_type_size_t" = xyes; then :
12289 michael 5052
12290     else
12291    
12292     cat >>confdefs.h <<_ACEOF
12293     #define size_t unsigned int
12294     _ACEOF
12295    
12296     fi
12297    
12298 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12299     $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12300     if ${ac_cv_header_time+:} false; then :
12301     $as_echo_n "(cached) " >&6
12302 michael 5052 else
12303 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 michael 5052 /* end confdefs.h. */
12305     #include <sys/types.h>
12306     #include <sys/time.h>
12307     #include <time.h>
12308    
12309     int
12310     main ()
12311     {
12312     if ((struct tm *) 0)
12313     return 0;
12314     ;
12315     return 0;
12316     }
12317     _ACEOF
12318 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12319 michael 5052 ac_cv_header_time=yes
12320     else
12321 michael 5059 ac_cv_header_time=no
12322 michael 5052 fi
12323     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324     fi
12325 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12326     $as_echo "$ac_cv_header_time" >&6; }
12327 michael 5052 if test $ac_cv_header_time = yes; then
12328    
12329 michael 5059 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12330 michael 5052
12331     fi
12332    
12333 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12334     $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12335     if ${ac_cv_struct_tm+:} false; then :
12336     $as_echo_n "(cached) " >&6
12337 michael 5052 else
12338 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 michael 5052 /* end confdefs.h. */
12340     #include <sys/types.h>
12341     #include <time.h>
12342    
12343     int
12344     main ()
12345     {
12346 michael 5059 struct tm tm;
12347     int *p = &tm.tm_sec;
12348     return !p;
12349 michael 5052 ;
12350     return 0;
12351     }
12352     _ACEOF
12353 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12354 michael 5052 ac_cv_struct_tm=time.h
12355     else
12356 michael 5059 ac_cv_struct_tm=sys/time.h
12357 michael 5052 fi
12358     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359     fi
12360 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12361     $as_echo "$ac_cv_struct_tm" >&6; }
12362 michael 5052 if test $ac_cv_struct_tm = sys/time.h; then
12363    
12364 michael 5059 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12365 michael 5052
12366     fi
12367    
12368    
12369    
12370     for ac_prog in 'bison -y' byacc
12371     do
12372     # Extract the first word of "$ac_prog", so it can be a program name with args.
12373     set dummy $ac_prog; ac_word=$2
12374 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375     $as_echo_n "checking for $ac_word... " >&6; }
12376     if ${ac_cv_prog_YACC+:} false; then :
12377     $as_echo_n "(cached) " >&6
12378 michael 5052 else
12379     if test -n "$YACC"; then
12380     ac_cv_prog_YACC="$YACC" # Let the user override the test.
12381     else
12382     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383     for as_dir in $PATH
12384     do
12385     IFS=$as_save_IFS
12386     test -z "$as_dir" && as_dir=.
12387 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12388     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389 michael 5052 ac_cv_prog_YACC="$ac_prog"
12390 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 michael 5052 break 2
12392     fi
12393     done
12394 michael 5059 done
12395 michael 5052 IFS=$as_save_IFS
12396    
12397     fi
12398     fi
12399     YACC=$ac_cv_prog_YACC
12400     if test -n "$YACC"; then
12401 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12402     $as_echo "$YACC" >&6; }
12403 michael 5052 else
12404 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405     $as_echo "no" >&6; }
12406 michael 5052 fi
12407    
12408    
12409     test -n "$YACC" && break
12410     done
12411     test -n "$YACC" || YACC="yacc"
12412    
12413    
12414     for ac_prog in flex lex
12415     do
12416     # Extract the first word of "$ac_prog", so it can be a program name with args.
12417     set dummy $ac_prog; ac_word=$2
12418 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419     $as_echo_n "checking for $ac_word... " >&6; }
12420     if ${ac_cv_prog_LEX+:} false; then :
12421     $as_echo_n "(cached) " >&6
12422 michael 5052 else
12423     if test -n "$LEX"; then
12424     ac_cv_prog_LEX="$LEX" # Let the user override the test.
12425     else
12426     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427     for as_dir in $PATH
12428     do
12429     IFS=$as_save_IFS
12430     test -z "$as_dir" && as_dir=.
12431 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12432     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12433 michael 5052 ac_cv_prog_LEX="$ac_prog"
12434 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12435 michael 5052 break 2
12436     fi
12437     done
12438 michael 5059 done
12439 michael 5052 IFS=$as_save_IFS
12440    
12441     fi
12442     fi
12443     LEX=$ac_cv_prog_LEX
12444     if test -n "$LEX"; then
12445 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12446     $as_echo "$LEX" >&6; }
12447 michael 5052 else
12448 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449     $as_echo "no" >&6; }
12450 michael 5052 fi
12451    
12452    
12453     test -n "$LEX" && break
12454     done
12455     test -n "$LEX" || LEX=":"
12456    
12457 michael 5059 if test "x$LEX" != "x:"; then
12458     cat >conftest.l <<_ACEOF
12459     %%
12460     a { ECHO; }
12461     b { REJECT; }
12462     c { yymore (); }
12463     d { yyless (1); }
12464     e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12465     yyless ((input () != 0)); }
12466     f { unput (yytext[0]); }
12467     . { BEGIN INITIAL; }
12468     %%
12469     #ifdef YYTEXT_POINTER
12470     extern char *yytext;
12471 michael 5052 #endif
12472     int
12473 michael 5059 main (void)
12474 michael 5052 {
12475 michael 5059 return ! yylex () + ! yywrap ();
12476 michael 5052 }
12477     _ACEOF
12478 michael 5059 { { ac_try="$LEX conftest.l"
12479 michael 5052 case "(($ac_try" in
12480     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481     *) ac_try_echo=$ac_try;;
12482     esac
12483 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12484     $as_echo "$ac_try_echo"; } >&5
12485     (eval "$LEX conftest.l") 2>&5
12486 michael 5052 ac_status=$?
12487 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12488     test $ac_status = 0; }
12489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12490     $as_echo_n "checking lex output file root... " >&6; }
12491     if ${ac_cv_prog_lex_root+:} false; then :
12492     $as_echo_n "(cached) " >&6
12493 michael 5052 else
12494    
12495 michael 5059 if test -f lex.yy.c; then
12496     ac_cv_prog_lex_root=lex.yy
12497     elif test -f lexyy.c; then
12498     ac_cv_prog_lex_root=lexyy
12499     else
12500     as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12501 michael 5052 fi
12502 michael 5059 fi
12503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12504     $as_echo "$ac_cv_prog_lex_root" >&6; }
12505     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12506 michael 5052
12507 michael 5059 if test -z "${LEXLIB+set}"; then
12508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12509     $as_echo_n "checking lex library... " >&6; }
12510     if ${ac_cv_lib_lex+:} false; then :
12511     $as_echo_n "(cached) " >&6
12512 michael 5052 else
12513 michael 5059
12514     ac_save_LIBS=$LIBS
12515     ac_cv_lib_lex='none needed'
12516     for ac_lib in '' -lfl -ll; do
12517     LIBS="$ac_lib $ac_save_LIBS"
12518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 michael 5052 /* end confdefs.h. */
12520 michael 5059 `cat $LEX_OUTPUT_ROOT.c`
12521 michael 5052 _ACEOF
12522 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12523     ac_cv_lib_lex=$ac_lib
12524 michael 5052 fi
12525     rm -f core conftest.err conftest.$ac_objext \
12526 michael 5059 conftest$ac_exeext conftest.$ac_ext
12527     test "$ac_cv_lib_lex" != 'none needed' && break
12528     done
12529     LIBS=$ac_save_LIBS
12530 michael 5052
12531     fi
12532 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12533     $as_echo "$ac_cv_lib_lex" >&6; }
12534     test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12535 michael 5052 fi
12536    
12537    
12538 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12539     $as_echo_n "checking whether yytext is a pointer... " >&6; }
12540     if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12541     $as_echo_n "(cached) " >&6
12542 michael 5052 else
12543     # POSIX says lex can declare yytext either as a pointer or an array; the
12544 michael 5059 # default is implementation-dependent. Figure out which it is, since
12545 michael 5052 # not all implementations provide the %pointer and %array declarations.
12546     ac_cv_prog_lex_yytext_pointer=no
12547     ac_save_LIBS=$LIBS
12548 michael 5059 LIBS="$LEXLIB $ac_save_LIBS"
12549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550     /* end confdefs.h. */
12551    
12552     #define YYTEXT_POINTER 1
12553 michael 5052 `cat $LEX_OUTPUT_ROOT.c`
12554     _ACEOF
12555 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12556 michael 5052 ac_cv_prog_lex_yytext_pointer=yes
12557     fi
12558     rm -f core conftest.err conftest.$ac_objext \
12559 michael 5059 conftest$ac_exeext conftest.$ac_ext
12560 michael 5052 LIBS=$ac_save_LIBS
12561    
12562     fi
12563 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12564     $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12565 michael 5052 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12566    
12567 michael 5059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12568 michael 5052
12569     fi
12570 michael 5059 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12571 michael 5052
12572     fi
12573     if test "$LEX" = :; then
12574     LEX=${am_missing_run}flex
12575     fi
12576    
12577 michael 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12578     $as_echo_n "checking for library containing socket... " >&6; }
12579     if ${ac_cv_search_socket+:} false; then :
12580     $as_echo_n "(cached) " >&6
12581     else
12582     ac_func_search_save_LIBS=$LIBS
12583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584     /* end confdefs.h. */
12585 michael 5052
12586 michael 5062 /* Override any GCC internal prototype to avoid an error.
12587     Use char because int might match the return type of a GCC
12588     builtin and then its argument prototype would still apply. */
12589     #ifdef __cplusplus
12590     extern "C"
12591     #endif
12592     char socket ();
12593     int
12594     main ()
12595     {
12596     return socket ();
12597     ;
12598     return 0;
12599     }
12600     _ACEOF
12601     for ac_lib in '' socket; do
12602     if test -z "$ac_lib"; then
12603     ac_res="none required"
12604     else
12605     ac_res=-l$ac_lib
12606     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12607     fi
12608     if ac_fn_c_try_link "$LINENO"; then :
12609     ac_cv_search_socket=$ac_res
12610     fi
12611     rm -f core conftest.err conftest.$ac_objext \
12612     conftest$ac_exeext
12613     if ${ac_cv_search_socket+:} false; then :
12614     break
12615     fi
12616     done
12617     if ${ac_cv_search_socket+:} false; then :
12618    
12619     else
12620     ac_cv_search_socket=no
12621     fi
12622     rm conftest.$ac_ext
12623     LIBS=$ac_func_search_save_LIBS
12624     fi
12625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12626     $as_echo "$ac_cv_search_socket" >&6; }
12627     ac_res=$ac_cv_search_socket
12628     if test "$ac_res" != no; then :
12629     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12630    
12631     else
12632     as_fn_error $? "socket library not found" "$LINENO" 5
12633     fi
12634    
12635     ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12636     if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12637    
12638     else
12639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12640     $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12641     if ${ac_cv_search_getaddrinfo+:} false; then :
12642     $as_echo_n "(cached) " >&6
12643     else
12644     ac_func_search_save_LIBS=$LIBS
12645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646     /* end confdefs.h. */
12647    
12648     /* Override any GCC internal prototype to avoid an error.
12649     Use char because int might match the return type of a GCC
12650     builtin and then its argument prototype would still apply. */
12651     #ifdef __cplusplus
12652     extern "C"
12653     #endif
12654     char getaddrinfo ();
12655     int
12656     main ()
12657     {
12658     return getaddrinfo ();
12659     ;
12660     return 0;
12661     }
12662     _ACEOF
12663     for ac_lib in '' nsl; do
12664     if test -z "$ac_lib"; then
12665     ac_res="none required"
12666     else
12667     ac_res=-l$ac_lib
12668     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12669     fi
12670     if ac_fn_c_try_link "$LINENO"; then :
12671     ac_cv_search_getaddrinfo=$ac_res
12672     fi
12673     rm -f core conftest.err conftest.$ac_objext \
12674     conftest$ac_exeext
12675     if ${ac_cv_search_getaddrinfo+:} false; then :
12676     break
12677     fi
12678     done
12679     if ${ac_cv_search_getaddrinfo+:} false; then :
12680    
12681     else
12682     ac_cv_search_getaddrinfo=no
12683     fi
12684     rm conftest.$ac_ext
12685     LIBS=$ac_func_search_save_LIBS
12686     fi
12687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12688     $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12689     ac_res=$ac_cv_search_getaddrinfo
12690     if test "$ac_res" != no; then :
12691     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12692    
12693     fi
12694    
12695     fi
12696    
12697     ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12698     if test "x$ac_cv_func_getnameinfo" = xyes; then :
12699    
12700     else
12701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12702     $as_echo_n "checking for library containing getnameinfo... " >&6; }
12703     if ${ac_cv_search_getnameinfo+:} false; then :
12704     $as_echo_n "(cached) " >&6
12705     else
12706     ac_func_search_save_LIBS=$LIBS
12707     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708     /* end confdefs.h. */
12709    
12710     /* Override any GCC internal prototype to avoid an error.
12711     Use char because int might match the return type of a GCC
12712     builtin and then its argument prototype would still apply. */
12713     #ifdef __cplusplus
12714     extern "C"
12715     #endif
12716     char getnameinfo ();
12717     int
12718     main ()
12719     {
12720     return getnameinfo ();
12721     ;
12722     return 0;
12723     }
12724     _ACEOF
12725     for ac_lib in '' nsl; do
12726     if test -z "$ac_lib"; then
12727     ac_res="none required"
12728     else
12729     ac_res=-l$ac_lib
12730     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12731     fi
12732     if ac_fn_c_try_link "$LINENO"; then :
12733     ac_cv_search_getnameinfo=$ac_res
12734     fi
12735     rm -f core conftest.err conftest.$ac_objext \
12736     conftest$ac_exeext
12737     if ${ac_cv_search_getnameinfo+:} false; then :
12738     break
12739     fi
12740     done
12741     if ${ac_cv_search_getnameinfo+:} false; then :
12742    
12743     else
12744     ac_cv_search_getnameinfo=no
12745     fi
12746     rm conftest.$ac_ext
12747     LIBS=$ac_func_search_save_LIBS
12748     fi
12749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12750     $as_echo "$ac_cv_search_getnameinfo" >&6; }
12751     ac_res=$ac_cv_search_getnameinfo
12752     if test "$ac_res" != no; then :
12753     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12754    
12755     fi
12756    
12757     fi
12758    
12759    
12760 michael 5064 for ac_func in strlcpy strlcat inet_aton inet_pton socket strdup strstr
12761 michael 5059 do :
12762     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12763     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12764     if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12765     cat >>confdefs.h <<_ACEOF
12766     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12767 michael 5052 _ACEOF
12768    
12769     fi
12770 michael 5059 done
12771 michael 5052
12772    
12773 michael 5110 for ac_func in gethostbyname
12774 michael 5059 do :
12775 michael 5110 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12776     if test "x$ac_cv_func_gethostbyname" = xyes; then :
12777 michael 5052 cat >>confdefs.h <<_ACEOF
12778 michael 5110 #define HAVE_GETHOSTBYNAME 1
12779 michael 5052 _ACEOF
12780    
12781     fi
12782     done
12783    
12784    
12785 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12786     $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12787     if ${ac_cv_c_bigendian+:} false; then :
12788     $as_echo_n "(cached) " >&6
12789 michael 5052 else
12790 michael 5059 ac_cv_c_bigendian=unknown
12791     # See if we're dealing with a universal compiler.
12792     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 michael 5052 /* end confdefs.h. */
12794 michael 5059 #ifndef __APPLE_CC__
12795     not a universal capable compiler
12796     #endif
12797     typedef int dummy;
12798 michael 5052
12799     _ACEOF
12800 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12801 michael 5052
12802 michael 5059 # Check for potential -arch flags. It is not universal unless
12803     # there are at least two -arch flags with different values.
12804     ac_arch=
12805     ac_prev=
12806     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12807     if test -n "$ac_prev"; then
12808     case $ac_word in
12809     i?86 | x86_64 | ppc | ppc64)
12810     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12811     ac_arch=$ac_word
12812     else
12813     ac_cv_c_bigendian=universal
12814     break
12815     fi
12816     ;;
12817     esac
12818     ac_prev=
12819     elif test "x$ac_word" = "x-arch"; then
12820     ac_prev=arch
12821     fi
12822     done
12823 michael 5052 fi
12824 michael 5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825     if test $ac_cv_c_bigendian = unknown; then
12826     # See if sys/param.h defines the BYTE_ORDER macro.
12827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 michael 5052 /* end confdefs.h. */
12829     #include <sys/types.h>
12830 michael 5059 #include <sys/param.h>
12831 michael 5052
12832     int
12833     main ()
12834     {
12835 michael 5059 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12836     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12837     && LITTLE_ENDIAN)
12838     bogus endian macros
12839     #endif
12840 michael 5052
12841     ;
12842     return 0;
12843     }
12844     _ACEOF
12845 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12846 michael 5052 # It does; now see whether it defined to BIG_ENDIAN or not.
12847 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 michael 5052 /* end confdefs.h. */
12849     #include <sys/types.h>
12850 michael 5059 #include <sys/param.h>
12851 michael 5052
12852     int
12853     main ()
12854     {
12855     #if BYTE_ORDER != BIG_ENDIAN
12856 michael 5059 not big endian
12857     #endif
12858 michael 5052
12859     ;
12860     return 0;
12861     }
12862     _ACEOF
12863 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12864 michael 5052 ac_cv_c_bigendian=yes
12865     else
12866     ac_cv_c_bigendian=no
12867     fi
12868     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869     fi
12870     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 michael 5059 fi
12872     if test $ac_cv_c_bigendian = unknown; then
12873     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 michael 5052 /* end confdefs.h. */
12876 michael 5059 #include <limits.h>
12877 michael 5052
12878     int
12879     main ()
12880     {
12881 michael 5059 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12882     bogus endian macros
12883     #endif
12884 michael 5052
12885     ;
12886     return 0;
12887     }
12888     _ACEOF
12889 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12890     # It does; now see whether it defined to _BIG_ENDIAN or not.
12891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 michael 5052 /* end confdefs.h. */
12893 michael 5059 #include <limits.h>
12894 michael 5052
12895     int
12896     main ()
12897     {
12898 michael 5059 #ifndef _BIG_ENDIAN
12899     not big endian
12900     #endif
12901 michael 5052
12902     ;
12903     return 0;
12904     }
12905     _ACEOF
12906 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12907     ac_cv_c_bigendian=yes
12908 michael 5052 else
12909 michael 5059 ac_cv_c_bigendian=no
12910 michael 5052 fi
12911     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12912     fi
12913     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914 michael 5059 fi
12915     if test $ac_cv_c_bigendian = unknown; then
12916     # Compile a test program.
12917     if test "$cross_compiling" = yes; then :
12918     # Try to guess by grepping values from an object file.
12919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920     /* end confdefs.h. */
12921     short int ascii_mm[] =
12922     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12923     short int ascii_ii[] =
12924     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12925     int use_ascii (int i) {
12926     return ascii_mm[i] + ascii_ii[i];
12927     }
12928     short int ebcdic_ii[] =
12929     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12930     short int ebcdic_mm[] =
12931     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12932     int use_ebcdic (int i) {
12933     return ebcdic_mm[i] + ebcdic_ii[i];
12934     }
12935     extern int foo;
12936 michael 5052
12937     int
12938     main ()
12939     {
12940 michael 5059 return use_ascii (foo) == use_ebcdic (foo);
12941 michael 5052 ;
12942     return 0;
12943     }
12944     _ACEOF
12945 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12946     if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12947     ac_cv_c_bigendian=yes
12948     fi
12949     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12950     if test "$ac_cv_c_bigendian" = unknown; then
12951     ac_cv_c_bigendian=no
12952     else
12953     # finding both strings is unlikely to happen, but who knows?
12954     ac_cv_c_bigendian=unknown
12955     fi
12956     fi
12957 michael 5052 fi
12958     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959     else
12960 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 michael 5052 /* end confdefs.h. */
12962     $ac_includes_default
12963     int
12964     main ()
12965     {
12966    
12967 michael 5059 /* Are we little or big endian? From Harbison&Steele. */
12968     union
12969     {
12970     long int l;
12971     char c[sizeof (long int)];
12972     } u;
12973     u.l = 1;
12974     return u.c[sizeof (long int) - 1] == 1;
12975 michael 5052
12976     ;
12977     return 0;
12978     }
12979     _ACEOF
12980 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
12981     ac_cv_c_bigendian=no
12982 michael 5052 else
12983 michael 5059 ac_cv_c_bigendian=yes
12984 michael 5052 fi
12985 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12986     conftest.$ac_objext conftest.beam conftest.$ac_ext
12987 michael 5052 fi
12988 michael 5059
12989     fi
12990 michael 5052 fi
12991 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12992     $as_echo "$ac_cv_c_bigendian" >&6; }
12993     case $ac_cv_c_bigendian in #(
12994     yes)
12995     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12996     ;; #(
12997     no)
12998     ;; #(
12999     universal)
13000 michael 5052
13001 michael 5059 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13002 michael 5052
13003 michael 5059 ;; #(
13004     *)
13005     as_fn_error $? "unknown endianness
13006     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13007     esac
13008 michael 5052
13009    
13010    
13011    
13012    
13013     subdirs="$subdirs src/libopm"
13014    
13015    
13016 michael 5065 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13017 michael 5052
13018     cat >confcache <<\_ACEOF
13019     # This file is a shell script that caches the results of configure
13020     # tests run on this system so they can be shared between configure
13021     # scripts and configure runs, see configure's option --config-cache.
13022     # It is not useful on other systems. If it contains results you don't
13023     # want to keep, you may remove or edit it.
13024     #
13025     # config.status only pays attention to the cache file if you give it
13026     # the --recheck option to rerun configure.
13027     #
13028     # `ac_cv_env_foo' variables (set or unset) will be overridden when
13029     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13030     # following values.
13031    
13032     _ACEOF
13033    
13034     # The following way of writing the cache mishandles newlines in values,
13035     # but we know of no workaround that is simple, portable, and efficient.
13036     # So, we kill variables containing newlines.
13037     # Ultrix sh set writes to stderr and can't be redirected directly,
13038     # and sets the high bit in the cache file unless we assign to the vars.
13039     (
13040     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13041     eval ac_val=\$$ac_var
13042     case $ac_val in #(
13043     *${as_nl}*)
13044     case $ac_var in #(
13045 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13046     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13047 michael 5052 esac
13048     case $ac_var in #(
13049     _ | IFS | as_nl) ;; #(
13050 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13051     *) { eval $ac_var=; unset $ac_var;} ;;
13052 michael 5052 esac ;;
13053     esac
13054     done
13055    
13056     (set) 2>&1 |
13057     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13058     *${as_nl}ac_space=\ *)
13059 michael 5059 # `set' does not quote correctly, so add quotes: double-quote
13060     # substitution turns \\\\ into \\, and sed turns \\ into \.
13061 michael 5052 sed -n \
13062     "s/'/'\\\\''/g;
13063     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13064     ;; #(
13065     *)
13066     # `set' quotes correctly as required by POSIX, so do not add quotes.
13067     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13068     ;;
13069     esac |
13070     sort
13071     ) |
13072     sed '
13073     /^ac_cv_env_/b end
13074     t clear
13075     :clear
13076     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13077     t end
13078     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13079     :end' >>confcache
13080     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13081     if test -w "$cache_file"; then
13082 michael 5059 if test "x$cache_file" != "x/dev/null"; then
13083     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13084     $as_echo "$as_me: updating cache $cache_file" >&6;}
13085     if test ! -f "$cache_file" || test -h "$cache_file"; then
13086     cat confcache >"$cache_file"
13087     else
13088     case $cache_file in #(
13089     */* | ?:*)
13090     mv -f confcache "$cache_file"$$ &&
13091     mv -f "$cache_file"$$ "$cache_file" ;; #(
13092     *)
13093     mv -f confcache "$cache_file" ;;
13094     esac
13095     fi
13096     fi
13097 michael 5052 else
13098 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13099     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13100 michael 5052 fi
13101     fi
13102     rm -f confcache
13103    
13104     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13105     # Let make expand exec_prefix.
13106     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13107    
13108     DEFS=-DHAVE_CONFIG_H
13109    
13110     ac_libobjs=
13111     ac_ltlibobjs=
13112 michael 5145 U=
13113 michael 5052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13114     # 1. Remove the extension, and $U if already installed.
13115     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13116 michael 5059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13117 michael 5052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13118     # will be set to the directory where LIBOBJS objects are built.
13119 michael 5059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13120     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13121 michael 5052 done
13122     LIBOBJS=$ac_libobjs
13123    
13124     LTLIBOBJS=$ac_ltlibobjs
13125    
13126    
13127 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13128     $as_echo_n "checking that generated files are newer than configure... " >&6; }
13129     if test -n "$am_sleep_pid"; then
13130     # Hide warnings about reused PIDs.
13131     wait $am_sleep_pid 2>/dev/null
13132     fi
13133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13134     $as_echo "done" >&6; }
13135     if test -n "$EXEEXT"; then
13136     am__EXEEXT_TRUE=
13137     am__EXEEXT_FALSE='#'
13138     else
13139     am__EXEEXT_TRUE='#'
13140     am__EXEEXT_FALSE=
13141     fi
13142    
13143 michael 5052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13144 michael 5059 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13145     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13146 michael 5052 fi
13147     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13148 michael 5059 as_fn_error $? "conditional \"AMDEP\" was never defined.
13149     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13150 michael 5052 fi
13151     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13152 michael 5059 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13153     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13154 michael 5052 fi
13155    
13156 michael 5059
13157     : "${CONFIG_STATUS=./config.status}"
13158     ac_write_fail=0
13159 michael 5052 ac_clean_files_save=$ac_clean_files
13160     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13161 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13162     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13163     as_write_fail=0
13164     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13165 michael 5052 #! $SHELL
13166     # Generated by $as_me.
13167     # Run this file to recreate the current configuration.
13168     # Compiler output produced by configure, useful for debugging
13169     # configure, is in config.log if it exists.
13170    
13171     debug=false
13172     ac_cs_recheck=false
13173     ac_cs_silent=false
13174 michael 5059
13175 michael 5052 SHELL=\${CONFIG_SHELL-$SHELL}
13176 michael 5059 export SHELL
13177     _ASEOF
13178     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13179     ## -------------------- ##
13180     ## M4sh Initialization. ##
13181     ## -------------------- ##
13182 michael 5052
13183 michael 5059 # Be more Bourne compatible
13184     DUALCASE=1; export DUALCASE # for MKS sh
13185     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13186 michael 5052 emulate sh
13187     NULLCMD=:
13188 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13189 michael 5052 # is contrary to our usage. Disable this feature.
13190     alias -g '${1+"$@"}'='"$@"'
13191     setopt NO_GLOB_SUBST
13192     else
13193 michael 5059 case `(set -o) 2>/dev/null` in #(
13194     *posix*) :
13195     set -o posix ;; #(
13196     *) :
13197     ;;
13198     esac
13199 michael 5052 fi
13200    
13201    
13202 michael 5059 as_nl='
13203     '
13204     export as_nl
13205     # Printing a long string crashes Solaris 7 /usr/bin/printf.
13206     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13207     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13208     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13209     # Prefer a ksh shell builtin over an external printf program on Solaris,
13210     # but without wasting forks for bash or zsh.
13211     if test -z "$BASH_VERSION$ZSH_VERSION" \
13212     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13213     as_echo='print -r --'
13214     as_echo_n='print -rn --'
13215     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13216     as_echo='printf %s\n'
13217     as_echo_n='printf %s'
13218     else
13219     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13220     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13221     as_echo_n='/usr/ucb/echo -n'
13222 michael 5052 else
13223 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13224     as_echo_n_body='eval
13225     arg=$1;
13226     case $arg in #(
13227     *"$as_nl"*)
13228     expr "X$arg" : "X\\(.*\\)$as_nl";
13229     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13230     esac;
13231     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13232     '
13233     export as_echo_n_body
13234     as_echo_n='sh -c $as_echo_n_body as_echo'
13235 michael 5052 fi
13236 michael 5059 export as_echo_body
13237     as_echo='sh -c $as_echo_body as_echo'
13238 michael 5052 fi
13239    
13240 michael 5059 # The user is always right.
13241     if test "${PATH_SEPARATOR+set}" != set; then
13242     PATH_SEPARATOR=:
13243     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13244     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13245     PATH_SEPARATOR=';'
13246     }
13247 michael 5052 fi
13248    
13249    
13250     # IFS
13251     # We need space, tab and new line, in precisely that order. Quoting is
13252     # there to prevent editors from complaining about space-tab.
13253     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13254     # splitting by setting IFS to empty value.)
13255     IFS=" "" $as_nl"
13256    
13257     # Find who we are. Look in the path if we contain no directory separator.
13258 michael 5059 as_myself=
13259     case $0 in #((
13260 michael 5052 *[\\/]* ) as_myself=$0 ;;
13261     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262     for as_dir in $PATH
13263     do
13264     IFS=$as_save_IFS
13265     test -z "$as_dir" && as_dir=.
13266 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13267     done
13268 michael 5052 IFS=$as_save_IFS
13269    
13270     ;;
13271     esac
13272     # We did not find ourselves, most probably we were run as `sh COMMAND'
13273     # in which case we are not to be found in the path.
13274     if test "x$as_myself" = x; then
13275     as_myself=$0
13276     fi
13277     if test ! -f "$as_myself"; then
13278 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13279     exit 1
13280 michael 5052 fi
13281    
13282 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
13283     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13284     # suppresses any "Segmentation fault" message there. '((' could
13285     # trigger a bug in pdksh 5.2.14.
13286     for as_var in BASH_ENV ENV MAIL MAILPATH
13287     do eval test x\${$as_var+set} = xset \
13288     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13289 michael 5052 done
13290     PS1='$ '
13291     PS2='> '
13292     PS4='+ '
13293    
13294     # NLS nuisances.
13295 michael 5059 LC_ALL=C
13296     export LC_ALL
13297     LANGUAGE=C
13298     export LANGUAGE
13299    
13300     # CDPATH.
13301     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13302    
13303    
13304     # as_fn_error STATUS ERROR [LINENO LOG_FD]
13305     # ----------------------------------------
13306     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13307     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13308     # script with STATUS, using 1 if that was 0.
13309     as_fn_error ()
13310     {
13311     as_status=$1; test $as_status -eq 0 && as_status=1
13312     if test "$4"; then
13313     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13314     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13315 michael 5052 fi
13316 michael 5059 $as_echo "$as_me: error: $2" >&2
13317     as_fn_exit $as_status
13318     } # as_fn_error
13319 michael 5052
13320 michael 5059
13321     # as_fn_set_status STATUS
13322     # -----------------------
13323     # Set $? to STATUS, without forking.
13324     as_fn_set_status ()
13325     {
13326     return $1
13327     } # as_fn_set_status
13328    
13329     # as_fn_exit STATUS
13330     # -----------------
13331     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13332     as_fn_exit ()
13333     {
13334     set +e
13335     as_fn_set_status $1
13336     exit $1
13337     } # as_fn_exit
13338    
13339     # as_fn_unset VAR
13340     # ---------------
13341     # Portably unset VAR.
13342     as_fn_unset ()
13343     {
13344     { eval $1=; unset $1;}
13345     }
13346     as_unset=as_fn_unset
13347     # as_fn_append VAR VALUE
13348     # ----------------------
13349     # Append the text in VALUE to the end of the definition contained in VAR. Take
13350     # advantage of any shell optimizations that allow amortized linear growth over
13351     # repeated appends, instead of the typical quadratic growth present in naive
13352     # implementations.
13353     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13354     eval 'as_fn_append ()
13355     {
13356     eval $1+=\$2
13357     }'
13358     else
13359     as_fn_append ()
13360     {
13361     eval $1=\$$1\$2
13362     }
13363     fi # as_fn_append
13364    
13365     # as_fn_arith ARG...
13366     # ------------------
13367     # Perform arithmetic evaluation on the ARGs, and store the result in the
13368     # global $as_val. Take advantage of shells that can avoid forks. The arguments
13369     # must be portable across $(()) and expr.
13370     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13371     eval 'as_fn_arith ()
13372     {
13373     as_val=$(( $* ))
13374     }'
13375     else
13376     as_fn_arith ()
13377     {
13378     as_val=`expr "$@" || test $? -eq 1`
13379     }
13380     fi # as_fn_arith
13381    
13382    
13383 michael 5052 if expr a : '\(a\)' >/dev/null 2>&1 &&
13384     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13385     as_expr=expr
13386     else
13387     as_expr=false
13388     fi
13389    
13390     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13391     as_basename=basename
13392     else
13393     as_basename=false
13394     fi
13395    
13396 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13397     as_dirname=dirname
13398     else
13399     as_dirname=false
13400     fi
13401 michael 5052
13402     as_me=`$as_basename -- "$0" ||
13403     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13404     X"$0" : 'X\(//\)$' \| \
13405     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13406 michael 5059 $as_echo X/"$0" |
13407 michael 5052 sed '/^.*\/\([^/][^/]*\)\/*$/{
13408     s//\1/
13409     q
13410     }
13411     /^X\/\(\/\/\)$/{
13412     s//\1/
13413     q
13414     }
13415     /^X\/\(\/\).*/{
13416     s//\1/
13417     q
13418     }
13419     s/.*/./; q'`
13420    
13421 michael 5059 # Avoid depending upon Character Ranges.
13422     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13423     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13424     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13425     as_cr_digits='0123456789'
13426     as_cr_alnum=$as_cr_Letters$as_cr_digits
13427 michael 5052
13428     ECHO_C= ECHO_N= ECHO_T=
13429 michael 5059 case `echo -n x` in #(((((
13430 michael 5052 -n*)
13431 michael 5059 case `echo 'xy\c'` in
13432 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13433 michael 5059 xy) ECHO_C='\c';;
13434     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13435     ECHO_T=' ';;
13436 michael 5052 esac;;
13437     *)
13438     ECHO_N='-n';;
13439     esac
13440    
13441     rm -f conf$$ conf$$.exe conf$$.file
13442     if test -d conf$$.dir; then
13443     rm -f conf$$.dir/conf$$.file
13444     else
13445     rm -f conf$$.dir
13446 michael 5059 mkdir conf$$.dir 2>/dev/null
13447 michael 5052 fi
13448 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
13449     if ln -s conf$$.file conf$$ 2>/dev/null; then
13450     as_ln_s='ln -s'
13451     # ... but there are two gotchas:
13452     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13453     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13454     # In both cases, we have to default to `cp -pR'.
13455     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13456     as_ln_s='cp -pR'
13457     elif ln conf$$.file conf$$ 2>/dev/null; then
13458     as_ln_s=ln
13459     else
13460     as_ln_s='cp -pR'
13461     fi
13462 michael 5052 else
13463 michael 5059 as_ln_s='cp -pR'
13464 michael 5052 fi
13465     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13466     rmdir conf$$.dir 2>/dev/null
13467    
13468 michael 5059
13469     # as_fn_mkdir_p
13470     # -------------
13471     # Create "$as_dir" as a directory, including parents if necessary.
13472     as_fn_mkdir_p ()
13473     {
13474    
13475     case $as_dir in #(
13476     -*) as_dir=./$as_dir;;
13477     esac
13478     test -d "$as_dir" || eval $as_mkdir_p || {
13479     as_dirs=
13480     while :; do
13481     case $as_dir in #(
13482     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13483     *) as_qdir=$as_dir;;
13484     esac
13485     as_dirs="'$as_qdir' $as_dirs"
13486     as_dir=`$as_dirname -- "$as_dir" ||
13487     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13488     X"$as_dir" : 'X\(//\)[^/]' \| \
13489     X"$as_dir" : 'X\(//\)$' \| \
13490     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13491     $as_echo X"$as_dir" |
13492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13493     s//\1/
13494     q
13495     }
13496     /^X\(\/\/\)[^/].*/{
13497     s//\1/
13498     q
13499     }
13500     /^X\(\/\/\)$/{
13501     s//\1/
13502     q
13503     }
13504     /^X\(\/\).*/{
13505     s//\1/
13506     q
13507     }
13508     s/.*/./; q'`
13509     test -d "$as_dir" && break
13510     done
13511     test -z "$as_dirs" || eval "mkdir $as_dirs"
13512     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13513    
13514    
13515     } # as_fn_mkdir_p
13516 michael 5052 if mkdir -p . 2>/dev/null; then
13517 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
13518 michael 5052 else
13519     test -d ./-p && rmdir ./-p
13520     as_mkdir_p=false
13521     fi
13522    
13523    
13524 michael 5059 # as_fn_executable_p FILE
13525     # -----------------------
13526     # Test if FILE is an executable regular file.
13527     as_fn_executable_p ()
13528     {
13529     test -f "$1" && test -x "$1"
13530     } # as_fn_executable_p
13531     as_test_x='test -x'
13532     as_executable_p=as_fn_executable_p
13533    
13534 michael 5052 # Sed expression to map a string onto a valid CPP name.
13535     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13536    
13537     # Sed expression to map a string onto a valid variable name.
13538     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13539    
13540    
13541     exec 6>&1
13542 michael 5059 ## ----------------------------------- ##
13543     ## Main body of $CONFIG_STATUS script. ##
13544     ## ----------------------------------- ##
13545     _ASEOF
13546     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13547 michael 5052
13548 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13549     # Save the log message, to keep $0 and so on meaningful, and to
13550 michael 5052 # report actual input values of CONFIG_FILES etc. instead of their
13551     # values after options handling.
13552     ac_log="
13553 michael 5061 This file was extended by hopm $as_me 1.0.0beta1, which was
13554 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
13555 michael 5052
13556     CONFIG_FILES = $CONFIG_FILES
13557     CONFIG_HEADERS = $CONFIG_HEADERS
13558     CONFIG_LINKS = $CONFIG_LINKS
13559     CONFIG_COMMANDS = $CONFIG_COMMANDS
13560     $ $0 $@
13561    
13562     on `(hostname || uname -n) 2>/dev/null | sed 1q`
13563     "
13564    
13565     _ACEOF
13566    
13567 michael 5059 case $ac_config_files in *"
13568     "*) set x $ac_config_files; shift; ac_config_files=$*;;
13569     esac
13570    
13571     case $ac_config_headers in *"
13572     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13573     esac
13574    
13575    
13576     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13577 michael 5052 # Files that config.status was made for.
13578     config_files="$ac_config_files"
13579     config_headers="$ac_config_headers"
13580     config_commands="$ac_config_commands"
13581    
13582     _ACEOF
13583    
13584 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13585 michael 5052 ac_cs_usage="\
13586 michael 5059 \`$as_me' instantiates files and other configuration actions
13587     from templates according to the current configuration. Unless the files
13588     and actions are specified as TAGs, all are instantiated by default.
13589 michael 5052
13590 michael 5059 Usage: $0 [OPTION]... [TAG]...
13591 michael 5052
13592     -h, --help print this help, then exit
13593 michael 5059 -V, --version print version number and configuration settings, then exit
13594     --config print configuration, then exit
13595     -q, --quiet, --silent
13596     do not print progress messages
13597 michael 5052 -d, --debug don't remove temporary files
13598     --recheck update $as_me by reconfiguring in the same conditions
13599 michael 5059 --file=FILE[:TEMPLATE]
13600     instantiate the configuration file FILE
13601     --header=FILE[:TEMPLATE]
13602     instantiate the configuration header FILE
13603 michael 5052
13604     Configuration files:
13605     $config_files
13606    
13607     Configuration headers:
13608     $config_headers
13609    
13610     Configuration commands:
13611     $config_commands
13612    
13613 michael 5059 Report bugs to the package provider."
13614 michael 5052
13615     _ACEOF
13616 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13617     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13618 michael 5052 ac_cs_version="\\
13619 michael 5061 hopm config.status 1.0.0beta1
13620 michael 5059 configured by $0, generated by GNU Autoconf 2.69,
13621     with options \\"\$ac_cs_config\\"
13622 michael 5052
13623 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
13624 michael 5052 This config.status script is free software; the Free Software Foundation
13625     gives unlimited permission to copy, distribute and modify it."
13626    
13627     ac_pwd='$ac_pwd'
13628     srcdir='$srcdir'
13629     INSTALL='$INSTALL'
13630 michael 5059 MKDIR_P='$MKDIR_P'
13631     AWK='$AWK'
13632     test -n "\$AWK" || AWK=awk
13633 michael 5052 _ACEOF
13634    
13635 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13636     # The default lists apply if the user does not specify any file.
13637 michael 5052 ac_need_defaults=:
13638     while test $# != 0
13639     do
13640     case $1 in
13641 michael 5059 --*=?*)
13642 michael 5052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13643     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13644     ac_shift=:
13645     ;;
13646 michael 5059 --*=)
13647     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13648     ac_optarg=
13649     ac_shift=:
13650     ;;
13651 michael 5052 *)
13652     ac_option=$1
13653     ac_optarg=$2
13654     ac_shift=shift
13655     ;;
13656     esac
13657    
13658     case $ac_option in
13659     # Handling of the options.
13660     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13661     ac_cs_recheck=: ;;
13662     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13663 michael 5059 $as_echo "$ac_cs_version"; exit ;;
13664     --config | --confi | --conf | --con | --co | --c )
13665     $as_echo "$ac_cs_config"; exit ;;
13666 michael 5052 --debug | --debu | --deb | --de | --d | -d )
13667     debug=: ;;
13668     --file | --fil | --fi | --f )
13669     $ac_shift
13670 michael 5059 case $ac_optarg in
13671     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13672     '') as_fn_error $? "missing file argument" ;;
13673     esac
13674     as_fn_append CONFIG_FILES " '$ac_optarg'"
13675 michael 5052 ac_need_defaults=false;;
13676     --header | --heade | --head | --hea )
13677     $ac_shift
13678 michael 5059 case $ac_optarg in
13679     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13680     esac
13681     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13682 michael 5052 ac_need_defaults=false;;
13683     --he | --h)
13684     # Conflict between --help and --header
13685 michael 5059 as_fn_error $? "ambiguous option: \`$1'
13686     Try \`$0 --help' for more information.";;
13687 michael 5052 --help | --hel | -h )
13688 michael 5059 $as_echo "$ac_cs_usage"; exit ;;
13689 michael 5052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13690     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13691     ac_cs_silent=: ;;
13692    
13693     # This is an error.
13694 michael 5059 -*) as_fn_error $? "unrecognized option: \`$1'
13695     Try \`$0 --help' for more information." ;;
13696 michael 5052
13697 michael 5059 *) as_fn_append ac_config_targets " $1"
13698 michael 5052 ac_need_defaults=false ;;
13699    
13700     esac
13701     shift
13702     done
13703    
13704     ac_configure_extra_args=
13705    
13706     if $ac_cs_silent; then
13707     exec 6>/dev/null
13708     ac_configure_extra_args="$ac_configure_extra_args --silent"
13709     fi
13710    
13711     _ACEOF
13712 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13713 michael 5052 if \$ac_cs_recheck; then
13714 michael 5059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13715     shift
13716     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13717     CONFIG_SHELL='$SHELL'
13718 michael 5052 export CONFIG_SHELL
13719 michael 5059 exec "\$@"
13720 michael 5052 fi
13721    
13722     _ACEOF
13723 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13724 michael 5052 exec 5>>config.log
13725     {
13726     echo
13727     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13728     ## Running $as_me. ##
13729     _ASBOX
13730 michael 5059 $as_echo "$ac_log"
13731 michael 5052 } >&5
13732    
13733     _ACEOF
13734 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13735 michael 5052 #
13736     # INIT-COMMANDS
13737     #
13738     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13739    
13740 michael 5059
13741     # The HP-UX ksh and POSIX shell print the target directory to stdout
13742     # if CDPATH is set.
13743     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13744    
13745     sed_quote_subst='$sed_quote_subst'
13746     double_quote_subst='$double_quote_subst'
13747     delay_variable_subst='$delay_variable_subst'
13748     macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13749     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13750     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13751     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13752     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13753     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13754     shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13755     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13756     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13757     PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13758     host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13759     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13760     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13761     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13762     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13763     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13764     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13765     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13766     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13767     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13768     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13769     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13770     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13771     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13772     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13773     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13774     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13775     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13776     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13777     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13778     lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13779     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13780     reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13781     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13782     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13783     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13784     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13785     file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13786     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13787     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13788     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13789     AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13790     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13791     archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13792     STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13793     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13794     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13795     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13796     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13797     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13798     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13799     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13800     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13801     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13802     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13803     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13804     lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13805     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13806     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"`'
13807     lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13808     nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13809     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13810     lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13811     objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13812     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13813     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13814     lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13815     lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13816     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13817     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13818     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13819     MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13820     DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13821     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13822     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13823     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13824     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13825     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13826     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13827     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13828     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13829     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13830     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13831     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13832     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13833     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13834     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13835     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13836     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13837     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13838     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13839     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13840     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13841     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13842     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13843     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13844     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13845     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13846     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13847     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13848     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13849     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13850     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13851     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13852     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13853     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13854     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13855     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13856     postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13857     file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13858     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13859     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13860     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13861     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13862     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13863     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13864     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13865     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13866     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13867     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13868     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13869     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13870     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13871     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13872     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13873     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13874     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13875     sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13876     hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13877     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13878     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13879     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13880     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13881     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13882    
13883     LTCC='$LTCC'
13884     LTCFLAGS='$LTCFLAGS'
13885     compiler='$compiler_DEFAULT'
13886    
13887     # A function that is used when there is no print builtin or printf.
13888     func_fallback_echo ()
13889     {
13890     eval 'cat <<_LTECHO_EOF
13891     \$1
13892     _LTECHO_EOF'
13893     }
13894    
13895     # Quote evaled strings.
13896     for var in SHELL \
13897     ECHO \
13898     PATH_SEPARATOR \
13899     SED \
13900     GREP \
13901     EGREP \
13902     FGREP \
13903     LD \
13904     NM \
13905     LN_S \
13906     lt_SP2NL \
13907     lt_NL2SP \
13908     reload_flag \
13909     OBJDUMP \
13910     deplibs_check_method \
13911     file_magic_cmd \
13912     file_magic_glob \
13913     want_nocaseglob \
13914     DLLTOOL \
13915     sharedlib_from_linklib_cmd \
13916     AR \
13917     AR_FLAGS \
13918     archiver_list_spec \
13919     STRIP \
13920     RANLIB \
13921     CC \
13922     CFLAGS \
13923     compiler \
13924     lt_cv_sys_global_symbol_pipe \
13925     lt_cv_sys_global_symbol_to_cdecl \
13926     lt_cv_sys_global_symbol_to_import \
13927     lt_cv_sys_global_symbol_to_c_name_address \
13928     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13929     lt_cv_nm_interface \
13930     nm_file_list_spec \
13931     lt_cv_truncate_bin \
13932     lt_prog_compiler_no_builtin_flag \
13933     lt_prog_compiler_pic \
13934     lt_prog_compiler_wl \
13935     lt_prog_compiler_static \
13936     lt_cv_prog_compiler_c_o \
13937     need_locks \
13938     MANIFEST_TOOL \
13939     DSYMUTIL \
13940     NMEDIT \
13941     LIPO \
13942     OTOOL \
13943     OTOOL64 \
13944     shrext_cmds \
13945     export_dynamic_flag_spec \
13946     whole_archive_flag_spec \
13947     compiler_needs_object \
13948     with_gnu_ld \
13949     allow_undefined_flag \
13950     no_undefined_flag \
13951     hardcode_libdir_flag_spec \
13952     hardcode_libdir_separator \
13953     exclude_expsyms \
13954     include_expsyms \
13955     file_list_spec \
13956     variables_saved_for_relink \
13957     libname_spec \
13958     library_names_spec \
13959     soname_spec \
13960     install_override_mode \
13961     finish_eval \
13962     old_striplib \
13963     striplib; do
13964     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13965     *[\\\\\\\`\\"\\\$]*)
13966     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13967     ;;
13968     *)
13969     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13970     ;;
13971     esac
13972     done
13973    
13974     # Double-quote double-evaled strings.
13975     for var in reload_cmds \
13976     old_postinstall_cmds \
13977     old_postuninstall_cmds \
13978     old_archive_cmds \
13979     extract_expsyms_cmds \
13980     old_archive_from_new_cmds \
13981     old_archive_from_expsyms_cmds \
13982     archive_cmds \
13983     archive_expsym_cmds \
13984     module_cmds \
13985     module_expsym_cmds \
13986     export_symbols_cmds \
13987     prelink_cmds \
13988     postlink_cmds \
13989     postinstall_cmds \
13990     postuninstall_cmds \
13991     finish_cmds \
13992     sys_lib_search_path_spec \
13993     sys_lib_dlsearch_path_spec; do
13994     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13995     *[\\\\\\\`\\"\\\$]*)
13996     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13997     ;;
13998     *)
13999     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14000     ;;
14001     esac
14002     done
14003    
14004     ac_aux_dir='$ac_aux_dir'
14005    
14006     # See if we are running on zsh, and set the options that allow our
14007     # commands through without removal of \ escapes INIT.
14008     if test -n "\${ZSH_VERSION+set}"; then
14009     setopt NO_GLOB_SUBST
14010     fi
14011    
14012    
14013     PACKAGE='$PACKAGE'
14014     VERSION='$VERSION'
14015     RM='$RM'
14016     ofile='$ofile'
14017    
14018    
14019    
14020    
14021 michael 5052 _ACEOF
14022    
14023 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14024 michael 5052
14025     # Handling of arguments.
14026     for ac_config_target in $ac_config_targets
14027     do
14028     case $ac_config_target in
14029     "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
14030     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14031 michael 5059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14032 michael 5052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14033 michael 5065 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14034 michael 5052 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14035    
14036 michael 5059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14037 michael 5052 esac
14038     done
14039    
14040    
14041     # If the user did not use the arguments to specify the items to instantiate,
14042     # then the envvar interface is used. Set only those that are not.
14043     # We use the long form for the default assignment because of an extremely
14044     # bizarre bug on SunOS 4.1.3.
14045     if $ac_need_defaults; then
14046     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14047     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14048     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14049     fi
14050    
14051     # Have a temporary directory for convenience. Make it in the build tree
14052     # simply because there is no reason against having it here, and in addition,
14053     # creating and moving files from /tmp can sometimes cause problems.
14054     # Hook for its removal unless debugging.
14055     # Note that there is a small window in which the directory will not be cleaned:
14056     # after its creation but before its name has been assigned to `$tmp'.
14057     $debug ||
14058     {
14059 michael 5059 tmp= ac_tmp=
14060 michael 5052 trap 'exit_status=$?
14061 michael 5059 : "${ac_tmp:=$tmp}"
14062     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14063 michael 5052 ' 0
14064 michael 5059 trap 'as_fn_exit 1' 1 2 13 15
14065 michael 5052 }
14066     # Create a (secure) tmp directory for tmp files.
14067    
14068     {
14069     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14070 michael 5059 test -d "$tmp"
14071 michael 5052 } ||
14072     {
14073     tmp=./conf$$-$RANDOM
14074     (umask 077 && mkdir "$tmp")
14075 michael 5059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14076     ac_tmp=$tmp
14077 michael 5052
14078 michael 5059 # Set up the scripts for CONFIG_FILES section.
14079     # No need to generate them if there are no CONFIG_FILES.
14080     # This happens for instance with `./config.status config.h'.
14081 michael 5052 if test -n "$CONFIG_FILES"; then
14082    
14083 michael 5059
14084     ac_cr=`echo X | tr X '\015'`
14085     # On cygwin, bash can eat \r inside `` if the user requested igncr.
14086     # But we know of no other shell where ac_cr would be empty at this
14087     # point, so we can use a bashism as a fallback.
14088     if test "x$ac_cr" = x; then
14089     eval ac_cr=\$\'\\r\'
14090     fi
14091     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14092     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14093     ac_cs_awk_cr='\\r'
14094     else
14095     ac_cs_awk_cr=$ac_cr
14096     fi
14097    
14098     echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14099 michael 5052 _ACEOF
14100    
14101    
14102 michael 5059 {
14103     echo "cat >conf$$subs.awk <<_ACEOF" &&
14104     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14105     echo "_ACEOF"
14106     } >conf$$subs.sh ||
14107     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14108     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14109 michael 5052 ac_delim='%!_!# '
14110     for ac_last_try in false false false false false :; do
14111 michael 5059 . ./conf$$subs.sh ||
14112     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14113 michael 5052
14114 michael 5059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14115     if test $ac_delim_n = $ac_delim_num; then
14116 michael 5052 break
14117     elif $ac_last_try; then
14118 michael 5059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14119 michael 5052 else
14120     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14121     fi
14122     done
14123 michael 5059 rm -f conf$$subs.sh
14124 michael 5052
14125 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14126     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14127     _ACEOF
14128     sed -n '
14129     h
14130     s/^/S["/; s/!.*/"]=/
14131     p
14132     g
14133     s/^[^!]*!//
14134     :repl
14135     t repl
14136     s/'"$ac_delim"'$//
14137     t delim
14138     :nl
14139     h
14140     s/\(.\{148\}\)..*/\1/
14141     t more1
14142     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14143     p
14144     n
14145     b repl
14146     :more1
14147     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14148     p
14149     g
14150     s/.\{148\}//
14151     t nl
14152     :delim
14153     h
14154     s/\(.\{148\}\)..*/\1/
14155     t more2
14156     s/["\\]/\\&/g; s/^/"/; s/$/"/
14157     p
14158     b
14159     :more2
14160     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14161     p
14162     g
14163     s/.\{148\}//
14164     t delim
14165     ' <conf$$subs.awk | sed '
14166     /^[^""]/{
14167     N
14168     s/\n//
14169     }
14170     ' >>$CONFIG_STATUS || ac_write_fail=1
14171     rm -f conf$$subs.awk
14172     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14173     _ACAWK
14174     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14175     for (key in S) S_is_set[key] = 1
14176     FS = ""
14177 michael 5052
14178 michael 5059 }
14179     {
14180     line = $ 0
14181     nfields = split(line, field, "@")
14182     substed = 0
14183     len = length(field[1])
14184     for (i = 2; i < nfields; i++) {
14185     key = field[i]
14186     keylen = length(key)
14187     if (S_is_set[key]) {
14188     value = S[key]
14189     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14190     len += length(value) + length(field[++i])
14191     substed = 1
14192     } else
14193     len += 1 + keylen
14194     }
14195    
14196     print line
14197     }
14198    
14199     _ACAWK
14200 michael 5052 _ACEOF
14201 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14202     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14203     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14204     else
14205     cat
14206     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14207     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14208 michael 5052 _ACEOF
14209    
14210 michael 5059 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14211     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14212     # trailing colons and then remove the whole line if VPATH becomes empty
14213     # (actually we leave an empty line to preserve line numbers).
14214     if test "x$srcdir" = x.; then
14215     ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14216     h
14217     s///
14218     s/^/:/
14219     s/[ ]*$/:/
14220     s/:\$(srcdir):/:/g
14221     s/:\${srcdir}:/:/g
14222     s/:@srcdir@:/:/g
14223     s/^:*//
14224     s/:*$//
14225     x
14226     s/\(=[ ]*\).*/\1/
14227     G
14228     s/\n//
14229     s/^[^=]*=[ ]*$//
14230     }'
14231     fi
14232 michael 5052
14233 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14234     fi # test -n "$CONFIG_FILES"
14235    
14236     # Set up the scripts for CONFIG_HEADERS section.
14237     # No need to generate them if there are no CONFIG_HEADERS.
14238     # This happens for instance with `./config.status Makefile'.
14239     if test -n "$CONFIG_HEADERS"; then
14240     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14241     BEGIN {
14242 michael 5052 _ACEOF
14243    
14244 michael 5059 # Transform confdefs.h into an awk script `defines.awk', embedded as
14245     # here-document in config.status, that substitutes the proper values into
14246     # config.h.in to produce config.h.
14247    
14248     # Create a delimiter string that does not exist in confdefs.h, to ease
14249     # handling of long lines.
14250     ac_delim='%!_!# '
14251     for ac_last_try in false false :; do
14252     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14253     if test -z "$ac_tt"; then
14254 michael 5052 break
14255     elif $ac_last_try; then
14256 michael 5059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14257 michael 5052 else
14258     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14259     fi
14260     done
14261    
14262 michael 5059 # For the awk script, D is an array of macro values keyed by name,
14263     # likewise P contains macro parameters if any. Preserve backslash
14264     # newline sequences.
14265 michael 5052
14266 michael 5059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14267     sed -n '
14268     s/.\{148\}/&'"$ac_delim"'/g
14269     t rset
14270     :rset
14271     s/^[ ]*#[ ]*define[ ][ ]*/ /
14272     t def
14273     d
14274     :def
14275     s/\\$//
14276     t bsnl
14277     s/["\\]/\\&/g
14278     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14279     D["\1"]=" \3"/p
14280     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14281     d
14282     :bsnl
14283     s/["\\]/\\&/g
14284     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14285     D["\1"]=" \3\\\\\\n"\\/p
14286     t cont
14287     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14288     t cont
14289     d
14290     :cont
14291     n
14292     s/.\{148\}/&'"$ac_delim"'/g
14293     t clear
14294     :clear
14295     s/\\$//
14296     t bsnlc
14297     s/["\\]/\\&/g; s/^/"/; s/$/"/p
14298     d
14299     :bsnlc
14300     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14301     b cont
14302     ' <confdefs.h | sed '
14303     s/'"$ac_delim"'/"\\\
14304     "/g' >>$CONFIG_STATUS || ac_write_fail=1
14305    
14306     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307     for (key in D) D_is_set[key] = 1
14308     FS = ""
14309     }
14310     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14311     line = \$ 0
14312     split(line, arg, " ")
14313     if (arg[1] == "#") {
14314     defundef = arg[2]
14315     mac1 = arg[3]
14316     } else {
14317     defundef = substr(arg[1], 2)
14318     mac1 = arg[2]
14319     }
14320     split(mac1, mac2, "(") #)
14321     macro = mac2[1]
14322     prefix = substr(line, 1, index(line, defundef) - 1)
14323     if (D_is_set[macro]) {
14324     # Preserve the white space surrounding the "#".
14325     print prefix "define", macro P[macro] D[macro]
14326     next
14327     } else {
14328     # Replace #undef with comments. This is necessary, for example,
14329     # in the case of _POSIX_SOURCE, which is predefined and required
14330     # on some systems where configure will not decide to define it.
14331     if (defundef == "undef") {
14332     print "/*", prefix defundef, macro, "*/"
14333     next
14334     }
14335     }
14336     }
14337     { print }
14338     _ACAWK
14339 michael 5052 _ACEOF
14340 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14341     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14342     fi # test -n "$CONFIG_HEADERS"
14343 michael 5052
14344    
14345 michael 5059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14346     shift
14347     for ac_tag
14348 michael 5052 do
14349     case $ac_tag in
14350     :[FHLC]) ac_mode=$ac_tag; continue;;
14351     esac
14352     case $ac_mode$ac_tag in
14353     :[FHL]*:*);;
14354 michael 5059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14355 michael 5052 :[FH]-) ac_tag=-:-;;
14356     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14357     esac
14358     ac_save_IFS=$IFS
14359     IFS=:
14360     set x $ac_tag
14361     IFS=$ac_save_IFS
14362     shift
14363     ac_file=$1
14364     shift
14365    
14366     case $ac_mode in
14367     :L) ac_source=$1;;
14368     :[FH])
14369     ac_file_inputs=
14370     for ac_f
14371     do
14372     case $ac_f in
14373 michael 5059 -) ac_f="$ac_tmp/stdin";;
14374 michael 5052 *) # Look for the file first in the build tree, then in the source tree
14375     # (if the path is not absolute). The absolute path cannot be DOS-style,
14376     # because $ac_f cannot contain `:'.
14377     test -f "$ac_f" ||
14378     case $ac_f in
14379     [\\/$]*) false;;
14380     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14381     esac ||
14382 michael 5059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14383 michael 5052 esac
14384 michael 5059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14385     as_fn_append ac_file_inputs " '$ac_f'"
14386 michael 5052 done
14387    
14388     # Let's still pretend it is `configure' which instantiates (i.e., don't
14389     # use $as_me), people would be surprised to read:
14390     # /* config.h. Generated by config.status. */
14391 michael 5059 configure_input='Generated from '`
14392     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14393     `' by configure.'
14394 michael 5052 if test x"$ac_file" != x-; then
14395     configure_input="$ac_file. $configure_input"
14396 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14397     $as_echo "$as_me: creating $ac_file" >&6;}
14398 michael 5052 fi
14399 michael 5059 # Neutralize special characters interpreted by sed in replacement strings.
14400     case $configure_input in #(
14401     *\&* | *\|* | *\\* )
14402     ac_sed_conf_input=`$as_echo "$configure_input" |
14403     sed 's/[\\\\&|]/\\\\&/g'`;; #(
14404     *) ac_sed_conf_input=$configure_input;;
14405     esac
14406 michael 5052
14407     case $ac_tag in
14408 michael 5059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14409     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14410 michael 5052 esac
14411     ;;
14412     esac
14413    
14414     ac_dir=`$as_dirname -- "$ac_file" ||
14415     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14416     X"$ac_file" : 'X\(//\)[^/]' \| \
14417     X"$ac_file" : 'X\(//\)$' \| \
14418     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14419 michael 5059 $as_echo X"$ac_file" |
14420 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14421     s//\1/
14422     q
14423     }
14424     /^X\(\/\/\)[^/].*/{
14425     s//\1/
14426     q
14427     }
14428     /^X\(\/\/\)$/{
14429     s//\1/
14430     q
14431     }
14432     /^X\(\/\).*/{
14433     s//\1/
14434     q
14435     }
14436     s/.*/./; q'`
14437 michael 5059 as_dir="$ac_dir"; as_fn_mkdir_p
14438 michael 5052 ac_builddir=.
14439    
14440     case "$ac_dir" in
14441     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14442     *)
14443 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14444 michael 5052 # A ".." for each directory in $ac_dir_suffix.
14445 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14446 michael 5052 case $ac_top_builddir_sub in
14447     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14448     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14449     esac ;;
14450     esac
14451     ac_abs_top_builddir=$ac_pwd
14452     ac_abs_builddir=$ac_pwd$ac_dir_suffix
14453     # for backward compatibility:
14454     ac_top_builddir=$ac_top_build_prefix
14455    
14456     case $srcdir in
14457     .) # We are building in place.
14458     ac_srcdir=.
14459     ac_top_srcdir=$ac_top_builddir_sub
14460     ac_abs_top_srcdir=$ac_pwd ;;
14461     [\\/]* | ?:[\\/]* ) # Absolute name.
14462     ac_srcdir=$srcdir$ac_dir_suffix;
14463     ac_top_srcdir=$srcdir
14464     ac_abs_top_srcdir=$srcdir ;;
14465     *) # Relative name.
14466     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14467     ac_top_srcdir=$ac_top_build_prefix$srcdir
14468     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14469     esac
14470     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14471    
14472    
14473     case $ac_mode in
14474     :F)
14475     #
14476     # CONFIG_FILE
14477     #
14478    
14479     case $INSTALL in
14480     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14481     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14482     esac
14483 michael 5059 ac_MKDIR_P=$MKDIR_P
14484     case $MKDIR_P in
14485     [\\/$]* | ?:[\\/]* ) ;;
14486     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14487     esac
14488 michael 5052 _ACEOF
14489    
14490 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14491 michael 5052 # If the template does not know about datarootdir, expand it.
14492     # FIXME: This hack should be removed a few years after 2.60.
14493     ac_datarootdir_hack=; ac_datarootdir_seen=
14494 michael 5059 ac_sed_dataroot='
14495     /datarootdir/ {
14496 michael 5052 p
14497     q
14498     }
14499     /@datadir@/p
14500     /@docdir@/p
14501     /@infodir@/p
14502     /@localedir@/p
14503 michael 5059 /@mandir@/p'
14504     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14505 michael 5052 *datarootdir*) ac_datarootdir_seen=yes;;
14506     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14507 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14508     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14509 michael 5052 _ACEOF
14510 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14511 michael 5052 ac_datarootdir_hack='
14512     s&@datadir@&$datadir&g
14513     s&@docdir@&$docdir&g
14514     s&@infodir@&$infodir&g
14515     s&@localedir@&$localedir&g
14516     s&@mandir@&$mandir&g
14517 michael 5059 s&\\\${datarootdir}&$datarootdir&g' ;;
14518 michael 5052 esac
14519     _ACEOF
14520    
14521     # Neutralize VPATH when `$srcdir' = `.'.
14522     # Shell code in configure.ac might set extrasub.
14523     # FIXME: do we really want to maintain this feature?
14524 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14525     ac_sed_extra="$ac_vpsub
14526 michael 5052 $extrasub
14527     _ACEOF
14528 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14529 michael 5052 :t
14530     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14531 michael 5059 s|@configure_input@|$ac_sed_conf_input|;t t
14532 michael 5052 s&@top_builddir@&$ac_top_builddir_sub&;t t
14533 michael 5059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14534 michael 5052 s&@srcdir@&$ac_srcdir&;t t
14535     s&@abs_srcdir@&$ac_abs_srcdir&;t t
14536     s&@top_srcdir@&$ac_top_srcdir&;t t
14537     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14538     s&@builddir@&$ac_builddir&;t t
14539     s&@abs_builddir@&$ac_abs_builddir&;t t
14540     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14541     s&@INSTALL@&$ac_INSTALL&;t t
14542 michael 5059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14543 michael 5052 $ac_datarootdir_hack
14544 michael 5059 "
14545     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14546     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14547 michael 5052
14548     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14549 michael 5059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14550     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14551     "$ac_tmp/out"`; test -z "$ac_out"; } &&
14552     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14553     which seems to be undefined. Please make sure it is defined" >&5
14554     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14555     which seems to be undefined. Please make sure it is defined" >&2;}
14556 michael 5052
14557 michael 5059 rm -f "$ac_tmp/stdin"
14558 michael 5052 case $ac_file in
14559 michael 5059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14560     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14561     esac \
14562     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14563 michael 5052 ;;
14564     :H)
14565     #
14566     # CONFIG_HEADER
14567     #
14568     if test x"$ac_file" != x-; then
14569 michael 5059 {
14570     $as_echo "/* $configure_input */" \
14571     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14572     } >"$ac_tmp/config.h" \
14573     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14574     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14575     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14576     $as_echo "$as_me: $ac_file is unchanged" >&6;}
14577 michael 5052 else
14578 michael 5059 rm -f "$ac_file"
14579     mv "$ac_tmp/config.h" "$ac_file" \
14580     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14581 michael 5052 fi
14582     else
14583 michael 5059 $as_echo "/* $configure_input */" \
14584     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14585     || as_fn_error $? "could not create -" "$LINENO" 5
14586 michael 5052 fi
14587 michael 5059 # Compute "$ac_file"'s index in $config_headers.
14588     _am_arg="$ac_file"
14589 michael 5052 _am_stamp_count=1
14590     for _am_header in $config_headers :; do
14591     case $_am_header in
14592 michael 5059 $_am_arg | $_am_arg:* )
14593 michael 5052 break ;;
14594     * )
14595     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14596     esac
14597     done
14598 michael 5059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14599     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14600     X"$_am_arg" : 'X\(//\)[^/]' \| \
14601     X"$_am_arg" : 'X\(//\)$' \| \
14602     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14603     $as_echo X"$_am_arg" |
14604 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14605     s//\1/
14606     q
14607     }
14608     /^X\(\/\/\)[^/].*/{
14609     s//\1/
14610     q
14611     }
14612     /^X\(\/\/\)$/{
14613     s//\1/
14614     q
14615     }
14616     /^X\(\/\).*/{
14617     s//\1/
14618     q
14619     }
14620     s/.*/./; q'`/stamp-h$_am_stamp_count
14621     ;;
14622    
14623 michael 5059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14624     $as_echo "$as_me: executing $ac_file commands" >&6;}
14625 michael 5052 ;;
14626     esac
14627    
14628    
14629     case $ac_file$ac_mode in
14630 michael 5059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14631     # Older Autoconf quotes --file arguments for eval, but not when files
14632     # are listed without --file. Let's play safe and only enable the eval
14633     # if we detect the quoting.
14634     case $CONFIG_FILES in
14635     *\'*) eval set x "$CONFIG_FILES" ;;
14636     *) set x $CONFIG_FILES ;;
14637     esac
14638     shift
14639     for mf
14640     do
14641     # Strip MF so we end up with the name of the file.
14642     mf=`echo "$mf" | sed -e 's/:.*$//'`
14643     # Check whether this is an Automake generated Makefile or not.
14644     # We used to match only the files named 'Makefile.in', but
14645     # some people rename them; so instead we look at the file content.
14646     # Grep'ing the first line is not enough: some people post-process
14647     # each Makefile.in and add a new line on top of each file to say so.
14648     # Grep'ing the whole file is not good either: AIX grep has a line
14649     # limit of 2048, but all sed's we know have understand at least 4000.
14650     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14651     dirpart=`$as_dirname -- "$mf" ||
14652 michael 5052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14653     X"$mf" : 'X\(//\)[^/]' \| \
14654     X"$mf" : 'X\(//\)$' \| \
14655     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14656 michael 5059 $as_echo X"$mf" |
14657 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14658     s//\1/
14659     q
14660     }
14661     /^X\(\/\/\)[^/].*/{
14662     s//\1/
14663     q
14664     }
14665     /^X\(\/\/\)$/{
14666     s//\1/
14667     q
14668     }
14669     /^X\(\/\).*/{
14670     s//\1/
14671     q
14672     }
14673     s/.*/./; q'`
14674 michael 5059 else
14675     continue
14676     fi
14677     # Extract the definition of DEPDIR, am__include, and am__quote
14678     # from the Makefile without running 'make'.
14679     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14680     test -z "$DEPDIR" && continue
14681     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14682     test -z "$am__include" && continue
14683     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14684     # Find all dependency output files, they are included files with
14685     # $(DEPDIR) in their names. We invoke sed twice because it is the
14686     # simplest approach to changing $(DEPDIR) to its actual value in the
14687     # expansion.
14688     for file in `sed -n "
14689     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14690     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14691     # Make sure the directory exists.
14692     test -f "$dirpart/$file" && continue
14693     fdir=`$as_dirname -- "$file" ||
14694 michael 5052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14695     X"$file" : 'X\(//\)[^/]' \| \
14696     X"$file" : 'X\(//\)$' \| \
14697     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14698 michael 5059 $as_echo X"$file" |
14699 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14700     s//\1/
14701     q
14702     }
14703     /^X\(\/\/\)[^/].*/{
14704     s//\1/
14705     q
14706     }
14707     /^X\(\/\/\)$/{
14708     s//\1/
14709     q
14710     }
14711     /^X\(\/\).*/{
14712     s//\1/
14713     q
14714     }
14715     s/.*/./; q'`
14716 michael 5059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14717     # echo "creating $dirpart/$file"
14718     echo '# dummy' > "$dirpart/$file"
14719 michael 5052 done
14720     done
14721 michael 5059 }
14722 michael 5052 ;;
14723 michael 5059 "libtool":C)
14724 michael 5052
14725 michael 5059 # See if we are running on zsh, and set the options that allow our
14726     # commands through without removal of \ escapes.
14727     if test -n "${ZSH_VERSION+set}"; then
14728     setopt NO_GLOB_SUBST
14729     fi
14730    
14731     cfgfile=${ofile}T
14732     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14733     $RM "$cfgfile"
14734    
14735     cat <<_LT_EOF >> "$cfgfile"
14736     #! $SHELL
14737     # Generated automatically by $as_me ($PACKAGE) $VERSION
14738     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14739     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14740    
14741     # Provide generalized library-building support services.
14742     # Written by Gordon Matzigkeit, 1996
14743    
14744     # Copyright (C) 2014 Free Software Foundation, Inc.
14745     # This is free software; see the source for copying conditions. There is NO
14746     # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14747    
14748     # GNU Libtool is free software; you can redistribute it and/or modify
14749     # it under the terms of the GNU General Public License as published by
14750     # the Free Software Foundation; either version 2 of of the License, or
14751     # (at your option) any later version.
14752     #
14753     # As a special exception to the GNU General Public License, if you
14754     # distribute this file as part of a program or library that is built
14755     # using GNU Libtool, you may include this file under the same
14756     # distribution terms that you use for the rest of that program.
14757     #
14758     # GNU Libtool is distributed in the hope that it will be useful, but
14759     # WITHOUT ANY WARRANTY; without even the implied warranty of
14760     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14761     # GNU General Public License for more details.
14762     #
14763     # You should have received a copy of the GNU General Public License
14764     # along with this program. If not, see <http://www.gnu.org/licenses/>.
14765    
14766    
14767     # The names of the tagged configurations supported by this script.
14768     available_tags=''
14769    
14770     # ### BEGIN LIBTOOL CONFIG
14771    
14772     # Which release of libtool.m4 was used?
14773     macro_version=$macro_version
14774     macro_revision=$macro_revision
14775    
14776     # Whether or not to build shared libraries.
14777     build_libtool_libs=$enable_shared
14778    
14779     # Whether or not to build static libraries.
14780     build_old_libs=$enable_static
14781    
14782     # What type of objects to build.
14783     pic_mode=$pic_mode
14784    
14785     # Whether or not to optimize for fast installation.
14786     fast_install=$enable_fast_install
14787    
14788     # Shared archive member basename,for filename based shared library versioning on AIX.
14789     shared_archive_member_spec=$shared_archive_member_spec
14790    
14791     # Shell to use when invoking shell scripts.
14792     SHELL=$lt_SHELL
14793    
14794     # An echo program that protects backslashes.
14795     ECHO=$lt_ECHO
14796    
14797     # The PATH separator for the build system.
14798     PATH_SEPARATOR=$lt_PATH_SEPARATOR
14799    
14800     # The host system.
14801     host_alias=$host_alias
14802     host=$host
14803     host_os=$host_os
14804    
14805     # The build system.
14806     build_alias=$build_alias
14807     build=$build
14808     build_os=$build_os
14809    
14810     # A sed program that does not truncate output.
14811     SED=$lt_SED
14812    
14813     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14814     Xsed="\$SED -e 1s/^X//"
14815    
14816     # A grep program that handles long lines.
14817     GREP=$lt_GREP
14818    
14819     # An ERE matcher.
14820     EGREP=$lt_EGREP
14821    
14822     # A literal string matcher.
14823     FGREP=$lt_FGREP
14824    
14825     # A BSD- or MS-compatible name lister.
14826     NM=$lt_NM
14827    
14828     # Whether we need soft or hard links.
14829     LN_S=$lt_LN_S
14830    
14831     # What is the maximum length of a command?
14832     max_cmd_len=$max_cmd_len
14833    
14834     # Object file suffix (normally "o").
14835     objext=$ac_objext
14836    
14837     # Executable file suffix (normally "").
14838     exeext=$exeext
14839    
14840     # whether the shell understands "unset".
14841     lt_unset=$lt_unset
14842    
14843     # turn spaces into newlines.
14844     SP2NL=$lt_lt_SP2NL
14845    
14846     # turn newlines into spaces.
14847     NL2SP=$lt_lt_NL2SP
14848    
14849     # convert \$build file names to \$host format.
14850     to_host_file_cmd=$lt_cv_to_host_file_cmd
14851    
14852     # convert \$build files to toolchain format.
14853     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14854    
14855     # An object symbol dumper.
14856     OBJDUMP=$lt_OBJDUMP
14857    
14858     # Method to check whether dependent libraries are shared objects.
14859     deplibs_check_method=$lt_deplibs_check_method
14860    
14861     # Command to use when deplibs_check_method = "file_magic".
14862     file_magic_cmd=$lt_file_magic_cmd
14863    
14864     # How to find potential files when deplibs_check_method = "file_magic".
14865     file_magic_glob=$lt_file_magic_glob
14866    
14867     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14868     want_nocaseglob=$lt_want_nocaseglob
14869    
14870     # DLL creation program.
14871     DLLTOOL=$lt_DLLTOOL
14872    
14873     # Command to associate shared and link libraries.
14874     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14875    
14876     # The archiver.
14877     AR=$lt_AR
14878    
14879     # Flags to create an archive.
14880     AR_FLAGS=$lt_AR_FLAGS
14881    
14882     # How to feed a file listing to the archiver.
14883     archiver_list_spec=$lt_archiver_list_spec
14884    
14885     # A symbol stripping program.
14886     STRIP=$lt_STRIP
14887    
14888     # Commands used to install an old-style archive.
14889     RANLIB=$lt_RANLIB
14890     old_postinstall_cmds=$lt_old_postinstall_cmds
14891     old_postuninstall_cmds=$lt_old_postuninstall_cmds
14892    
14893     # Whether to use a lock for old archive extraction.
14894     lock_old_archive_extraction=$lock_old_archive_extraction
14895    
14896     # A C compiler.
14897     LTCC=$lt_CC
14898    
14899     # LTCC compiler flags.
14900     LTCFLAGS=$lt_CFLAGS
14901    
14902     # Take the output of nm and produce a listing of raw symbols and C names.
14903     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14904    
14905     # Transform the output of nm in a proper C declaration.
14906     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14907    
14908     # Transform the output of nm into a list of symbols to manually relocate.
14909     global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14910    
14911     # Transform the output of nm in a C name address pair.
14912     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14913    
14914     # Transform the output of nm in a C name address pair when lib prefix is needed.
14915     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14916    
14917     # The name lister interface.
14918     nm_interface=$lt_lt_cv_nm_interface
14919    
14920     # Specify filename containing input files for \$NM.
14921     nm_file_list_spec=$lt_nm_file_list_spec
14922    
14923     # The root where to search for dependent libraries,and where our libraries should be installed.
14924     lt_sysroot=$lt_sysroot
14925    
14926     # Command to truncate a binary pipe.
14927     lt_truncate_bin=$lt_lt_cv_truncate_bin
14928    
14929     # The name of the directory that contains temporary libtool files.
14930     objdir=$objdir
14931    
14932     # Used to examine libraries when file_magic_cmd begins with "file".
14933     MAGIC_CMD=$MAGIC_CMD
14934    
14935     # Must we lock files when doing compilation?
14936     need_locks=$lt_need_locks
14937    
14938     # Manifest tool.
14939     MANIFEST_TOOL=$lt_MANIFEST_TOOL
14940    
14941     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14942     DSYMUTIL=$lt_DSYMUTIL
14943    
14944     # Tool to change global to local symbols on Mac OS X.
14945     NMEDIT=$lt_NMEDIT
14946    
14947     # Tool to manipulate fat objects and archives on Mac OS X.
14948     LIPO=$lt_LIPO
14949    
14950     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14951     OTOOL=$lt_OTOOL
14952    
14953     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14954     OTOOL64=$lt_OTOOL64
14955    
14956     # Old archive suffix (normally "a").
14957     libext=$libext
14958    
14959     # Shared library suffix (normally ".so").
14960     shrext_cmds=$lt_shrext_cmds
14961    
14962     # The commands to extract the exported symbol list from a shared archive.
14963     extract_expsyms_cmds=$lt_extract_expsyms_cmds
14964    
14965     # Variables whose values should be saved in libtool wrapper scripts and
14966     # restored at link time.
14967     variables_saved_for_relink=$lt_variables_saved_for_relink
14968    
14969     # Do we need the "lib" prefix for modules?
14970     need_lib_prefix=$need_lib_prefix
14971    
14972     # Do we need a version for libraries?
14973     need_version=$need_version
14974    
14975     # Library versioning type.
14976     version_type=$version_type
14977    
14978     # Shared library runtime path variable.
14979     runpath_var=$runpath_var
14980    
14981     # Shared library path variable.
14982     shlibpath_var=$shlibpath_var
14983    
14984     # Is shlibpath searched before the hard-coded library search path?
14985     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14986    
14987     # Format of library name prefix.
14988     libname_spec=$lt_libname_spec
14989    
14990     # List of archive names. First name is the real one, the rest are links.
14991     # The last name is the one that the linker finds with -lNAME
14992     library_names_spec=$lt_library_names_spec
14993    
14994     # The coded name of the library, if different from the real name.
14995     soname_spec=$lt_soname_spec
14996    
14997     # Permission mode override for installation of shared libraries.
14998     install_override_mode=$lt_install_override_mode
14999    
15000     # Command to use after installation of a shared archive.
15001     postinstall_cmds=$lt_postinstall_cmds
15002    
15003     # Command to use after uninstallation of a shared archive.
15004     postuninstall_cmds=$lt_postuninstall_cmds
15005    
15006     # Commands used to finish a libtool library installation in a directory.
15007     finish_cmds=$lt_finish_cmds
15008    
15009     # As "finish_cmds", except a single script fragment to be evaled but
15010     # not shown.
15011     finish_eval=$lt_finish_eval
15012    
15013     # Whether we should hardcode library paths into libraries.
15014     hardcode_into_libs=$hardcode_into_libs
15015    
15016     # Compile-time system search path for libraries.
15017     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15018    
15019     # Run-time system search path for libraries.
15020     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15021    
15022     # Whether dlopen is supported.
15023     dlopen_support=$enable_dlopen
15024    
15025     # Whether dlopen of programs is supported.
15026     dlopen_self=$enable_dlopen_self
15027    
15028     # Whether dlopen of statically linked programs is supported.
15029     dlopen_self_static=$enable_dlopen_self_static
15030    
15031     # Commands to strip libraries.
15032     old_striplib=$lt_old_striplib
15033     striplib=$lt_striplib
15034    
15035    
15036     # The linker used to build libraries.
15037     LD=$lt_LD
15038    
15039     # How to create reloadable object files.
15040     reload_flag=$lt_reload_flag
15041     reload_cmds=$lt_reload_cmds
15042    
15043     # Commands used to build an old-style archive.
15044     old_archive_cmds=$lt_old_archive_cmds
15045    
15046     # A language specific compiler.
15047     CC=$lt_compiler
15048    
15049     # Is the compiler the GNU compiler?
15050     with_gcc=$GCC
15051    
15052     # Compiler flag to turn off builtin functions.
15053     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15054    
15055     # Additional compiler flags for building library objects.
15056     pic_flag=$lt_lt_prog_compiler_pic
15057    
15058     # How to pass a linker flag through the compiler.
15059     wl=$lt_lt_prog_compiler_wl
15060    
15061     # Compiler flag to prevent dynamic linking.
15062     link_static_flag=$lt_lt_prog_compiler_static
15063    
15064     # Does compiler simultaneously support -c and -o options?
15065     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15066    
15067     # Whether or not to add -lc for building shared libraries.
15068     build_libtool_need_lc=$archive_cmds_need_lc
15069    
15070     # Whether or not to disallow shared libs when runtime libs are static.
15071     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15072    
15073     # Compiler flag to allow reflexive dlopens.
15074     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15075    
15076     # Compiler flag to generate shared objects directly from archives.
15077     whole_archive_flag_spec=$lt_whole_archive_flag_spec
15078    
15079     # Whether the compiler copes with passing no objects directly.
15080     compiler_needs_object=$lt_compiler_needs_object
15081    
15082     # Create an old-style archive from a shared archive.
15083     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15084    
15085     # Create a temporary old-style archive to link instead of a shared archive.
15086     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15087    
15088     # Commands used to build a shared archive.
15089     archive_cmds=$lt_archive_cmds
15090     archive_expsym_cmds=$lt_archive_expsym_cmds
15091    
15092     # Commands used to build a loadable module if different from building
15093     # a shared archive.
15094     module_cmds=$lt_module_cmds
15095     module_expsym_cmds=$lt_module_expsym_cmds
15096    
15097     # Whether we are building with GNU ld or not.
15098     with_gnu_ld=$lt_with_gnu_ld
15099    
15100     # Flag that allows shared libraries with undefined symbols to be built.
15101     allow_undefined_flag=$lt_allow_undefined_flag
15102    
15103     # Flag that enforces no undefined symbols.
15104     no_undefined_flag=$lt_no_undefined_flag
15105    
15106     # Flag to hardcode \$libdir into a binary during linking.
15107     # This must work even if \$libdir does not exist
15108     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15109    
15110     # Whether we need a single "-rpath" flag with a separated argument.
15111     hardcode_libdir_separator=$lt_hardcode_libdir_separator
15112    
15113     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15114     # DIR into the resulting binary.
15115     hardcode_direct=$hardcode_direct
15116    
15117     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15118     # DIR into the resulting binary and the resulting library dependency is
15119     # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15120     # library is relocated.
15121     hardcode_direct_absolute=$hardcode_direct_absolute
15122    
15123     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15124     # into the resulting binary.
15125     hardcode_minus_L=$hardcode_minus_L
15126    
15127     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15128     # into the resulting binary.
15129     hardcode_shlibpath_var=$hardcode_shlibpath_var
15130    
15131     # Set to "yes" if building a shared library automatically hardcodes DIR
15132     # into the library and all subsequent libraries and executables linked
15133     # against it.
15134     hardcode_automatic=$hardcode_automatic
15135    
15136     # Set to yes if linker adds runtime paths of dependent libraries
15137     # to runtime path list.
15138     inherit_rpath=$inherit_rpath
15139    
15140     # Whether libtool must link a program against all its dependency libraries.
15141     link_all_deplibs=$link_all_deplibs
15142    
15143     # Set to "yes" if exported symbols are required.
15144     always_export_symbols=$always_export_symbols
15145    
15146     # The commands to list exported symbols.
15147     export_symbols_cmds=$lt_export_symbols_cmds
15148    
15149     # Symbols that should not be listed in the preloaded symbols.
15150     exclude_expsyms=$lt_exclude_expsyms
15151    
15152     # Symbols that must always be exported.
15153     include_expsyms=$lt_include_expsyms
15154    
15155     # Commands necessary for linking programs (against libraries) with templates.
15156     prelink_cmds=$lt_prelink_cmds
15157    
15158     # Commands necessary for finishing linking programs.
15159     postlink_cmds=$lt_postlink_cmds
15160    
15161     # Specify filename containing input files.
15162     file_list_spec=$lt_file_list_spec
15163    
15164     # How to hardcode a shared library path into an executable.
15165     hardcode_action=$hardcode_action
15166    
15167     # ### END LIBTOOL CONFIG
15168    
15169     _LT_EOF
15170    
15171     case $host_os in
15172     aix3*)
15173     cat <<\_LT_EOF >> "$cfgfile"
15174     # AIX sometimes has problems with the GCC collect2 program. For some
15175     # reason, if we set the COLLECT_NAMES environment variable, the problems
15176     # vanish in a puff of smoke.
15177     if test set != "${COLLECT_NAMES+set}"; then
15178     COLLECT_NAMES=
15179     export COLLECT_NAMES
15180     fi
15181     _LT_EOF
15182     ;;
15183 michael 5052 esac
15184 michael 5059
15185    
15186     ltmain=$ac_aux_dir/ltmain.sh
15187    
15188    
15189     # We use sed instead of cat because bash on DJGPP gets confused if
15190     # if finds mixed CR/LF and LF-only lines. Since sed operates in
15191     # text mode, it properly converts lines to CR/LF. This bash problem
15192     # is reportedly fixed, but why not run on old versions too?
15193     sed '$q' "$ltmain" >> "$cfgfile" \
15194     || (rm -f "$cfgfile"; exit 1)
15195    
15196     mv -f "$cfgfile" "$ofile" ||
15197     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15198     chmod +x "$ofile"
15199    
15200     ;;
15201    
15202     esac
15203 michael 5052 done # for ac_tag
15204    
15205    
15206 michael 5059 as_fn_exit 0
15207 michael 5052 _ACEOF
15208     ac_clean_files=$ac_clean_files_save
15209    
15210 michael 5059 test $ac_write_fail = 0 ||
15211     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15212 michael 5052
15213 michael 5059
15214 michael 5052 # configure is writing to config.log, and then calls config.status.
15215     # config.status does its own redirection, appending to config.log.
15216     # Unfortunately, on DOS this fails, as config.log is still kept open
15217     # by configure, so config.status won't be able to write to it; its
15218     # output is simply discarded. So we exec the FD to /dev/null,
15219     # effectively closing config.log, so it can be properly (re)opened and
15220     # appended to by config.status. When coming back to configure, we
15221     # need to make the FD available again.
15222     if test "$no_create" != yes; then
15223     ac_cs_success=:
15224     ac_config_status_args=
15225     test "$silent" = yes &&
15226     ac_config_status_args="$ac_config_status_args --quiet"
15227     exec 5>/dev/null
15228     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15229     exec 5>>config.log
15230     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15231     # would make configure fail if this is the last instruction.
15232 michael 5059 $ac_cs_success || as_fn_exit 1
15233 michael 5052 fi
15234    
15235     #
15236     # CONFIG_SUBDIRS section.
15237     #
15238     if test "$no_recursion" != yes; then
15239    
15240 michael 5059 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15241     # so they do not pile up.
15242 michael 5052 ac_sub_configure_args=
15243     ac_prev=
15244     eval "set x $ac_configure_args"
15245     shift
15246     for ac_arg
15247     do
15248     if test -n "$ac_prev"; then
15249     ac_prev=
15250     continue
15251     fi
15252     case $ac_arg in
15253     -cache-file | --cache-file | --cache-fil | --cache-fi \
15254     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15255     ac_prev=cache_file ;;
15256     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15257     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15258     | --c=*)
15259     ;;
15260     --config-cache | -C)
15261     ;;
15262     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15263     ac_prev=srcdir ;;
15264     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15265     ;;
15266     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15267     ac_prev=prefix ;;
15268     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15269     ;;
15270 michael 5059 --disable-option-checking)
15271     ;;
15272 michael 5052 *)
15273     case $ac_arg in
15274 michael 5059 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15275 michael 5052 esac
15276 michael 5059 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15277 michael 5052 esac
15278     done
15279    
15280     # Always prepend --prefix to ensure using the same prefix
15281     # in subdir configurations.
15282     ac_arg="--prefix=$prefix"
15283     case $ac_arg in
15284 michael 5059 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15285 michael 5052 esac
15286 michael 5059 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15287 michael 5052
15288 michael 5059 # Pass --silent
15289     if test "$silent" = yes; then
15290     ac_sub_configure_args="--silent $ac_sub_configure_args"
15291     fi
15292    
15293     # Always prepend --disable-option-checking to silence warnings, since
15294     # different subdirs can have different --enable and --with options.
15295     ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15296    
15297 michael 5052 ac_popdir=`pwd`
15298     for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15299    
15300     # Do not complain, so a configure script can configure whichever
15301     # parts of a large source tree are present.
15302     test -d "$srcdir/$ac_dir" || continue
15303    
15304     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15305 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15306     $as_echo "$ac_msg" >&6
15307     as_dir="$ac_dir"; as_fn_mkdir_p
15308 michael 5052 ac_builddir=.
15309    
15310     case "$ac_dir" in
15311     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15312     *)
15313 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15314 michael 5052 # A ".." for each directory in $ac_dir_suffix.
15315 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15316 michael 5052 case $ac_top_builddir_sub in
15317     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15318     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15319     esac ;;
15320     esac
15321     ac_abs_top_builddir=$ac_pwd
15322     ac_abs_builddir=$ac_pwd$ac_dir_suffix
15323     # for backward compatibility:
15324     ac_top_builddir=$ac_top_build_prefix
15325    
15326     case $srcdir in
15327     .) # We are building in place.
15328     ac_srcdir=.
15329     ac_top_srcdir=$ac_top_builddir_sub
15330     ac_abs_top_srcdir=$ac_pwd ;;
15331     [\\/]* | ?:[\\/]* ) # Absolute name.
15332     ac_srcdir=$srcdir$ac_dir_suffix;
15333     ac_top_srcdir=$srcdir
15334     ac_abs_top_srcdir=$srcdir ;;
15335     *) # Relative name.
15336     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15337     ac_top_srcdir=$ac_top_build_prefix$srcdir
15338     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15339     esac
15340     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15341    
15342    
15343     cd "$ac_dir"
15344    
15345     # Check for guested configure; otherwise get Cygnus style configure.
15346     if test -f "$ac_srcdir/configure.gnu"; then
15347     ac_sub_configure=$ac_srcdir/configure.gnu
15348     elif test -f "$ac_srcdir/configure"; then
15349     ac_sub_configure=$ac_srcdir/configure
15350     elif test -f "$ac_srcdir/configure.in"; then
15351     # This should be Cygnus configure.
15352     ac_sub_configure=$ac_aux_dir/configure
15353     else
15354 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15355     $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15356 michael 5052 ac_sub_configure=
15357     fi
15358    
15359     # The recursion is here.
15360     if test -n "$ac_sub_configure"; then
15361     # Make the cache file name correct relative to the subdirectory.
15362     case $cache_file in
15363     [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15364     *) # Relative name.
15365     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15366     esac
15367    
15368 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15369     $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15370 michael 5052 # The eval makes quoting arguments work.
15371     eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15372     --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15373 michael 5059 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15374 michael 5052 fi
15375    
15376     cd "$ac_popdir"
15377     done
15378     fi
15379 michael 5059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15380     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15381     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15382     fi
15383 michael 5052
15384    
15385    
15386 michael 5110 echo "###############################################################################"
15387     echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
15388 michael 5052 echo
15389 michael 5110 echo "HOPM will be installed in ${prefix}. To change this, run:"
15390 michael 5052 echo " ./configure --prefix=DIRECTORY"
15391 michael 5110 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id