Annotation of embedaddon/pcre/configure, revision 1.1.1.3
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.3 ! misho 3: # Generated by GNU Autoconf 2.68 for PCRE 8.31.
1.1 misho 4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175: test \$(( 1 + 1 )) = 2 || exit 1
176:
177: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181: PATH=/empty FPATH=/empty; export PATH FPATH
182: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184: if (eval "$as_required") 2>/dev/null; then :
185: as_have_required=yes
186: else
187: as_have_required=no
188: fi
189: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190:
191: else
192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193: as_found=false
194: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195: do
196: IFS=$as_save_IFS
197: test -z "$as_dir" && as_dir=.
198: as_found=:
199: case $as_dir in #(
200: /*)
201: for as_base in sh bash ksh sh5; do
202: # Try only shells that exist, to save several forks.
203: as_shell=$as_dir/$as_base
204: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206: CONFIG_SHELL=$as_shell as_have_required=yes
207: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208: break 2
209: fi
210: fi
211: done;;
212: esac
213: as_found=false
214: done
215: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217: CONFIG_SHELL=$SHELL as_have_required=yes
218: fi; }
219: IFS=$as_save_IFS
220:
221:
222: if test "x$CONFIG_SHELL" != x; then :
223: # We cannot yet assume a decent shell, so we have to provide a
224: # neutralization value for shells without unset; and this also
225: # works around shells that cannot unset nonexistent variables.
226: # Preserve -v and -x to the replacement shell.
227: BASH_ENV=/dev/null
228: ENV=/dev/null
229: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230: export CONFIG_SHELL
231: case $- in # ((((
232: *v*x* | *x*v* ) as_opts=-vx ;;
233: *v* ) as_opts=-v ;;
234: *x* ) as_opts=-x ;;
235: * ) as_opts= ;;
236: esac
237: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238: fi
239:
240: if test x$as_have_required = xno; then :
241: $as_echo "$0: This script requires a shell more modern than all"
242: $as_echo "$0: the shells that I found on your system."
243: if test x${ZSH_VERSION+set} = xset ; then
244: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246: else
247: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248: $0: including any error possibly output before this
249: $0: message. Then install a modern shell, or manually run
250: $0: the script under such a shell if you do have one."
251: fi
252: exit 1
253: fi
254: fi
255: fi
256: SHELL=${CONFIG_SHELL-/bin/sh}
257: export SHELL
258: # Unset more variables known to interfere with behavior of common tools.
259: CLICOLOR_FORCE= GREP_OPTIONS=
260: unset CLICOLOR_FORCE GREP_OPTIONS
261:
262: ## --------------------- ##
263: ## M4sh Shell Functions. ##
264: ## --------------------- ##
265: # as_fn_unset VAR
266: # ---------------
267: # Portably unset VAR.
268: as_fn_unset ()
269: {
270: { eval $1=; unset $1;}
271: }
272: as_unset=as_fn_unset
273:
274: # as_fn_set_status STATUS
275: # -----------------------
276: # Set $? to STATUS, without forking.
277: as_fn_set_status ()
278: {
279: return $1
280: } # as_fn_set_status
281:
282: # as_fn_exit STATUS
283: # -----------------
284: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285: as_fn_exit ()
286: {
287: set +e
288: as_fn_set_status $1
289: exit $1
290: } # as_fn_exit
291:
292: # as_fn_mkdir_p
293: # -------------
294: # Create "$as_dir" as a directory, including parents if necessary.
295: as_fn_mkdir_p ()
296: {
297:
298: case $as_dir in #(
299: -*) as_dir=./$as_dir;;
300: esac
301: test -d "$as_dir" || eval $as_mkdir_p || {
302: as_dirs=
303: while :; do
304: case $as_dir in #(
305: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306: *) as_qdir=$as_dir;;
307: esac
308: as_dirs="'$as_qdir' $as_dirs"
309: as_dir=`$as_dirname -- "$as_dir" ||
310: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311: X"$as_dir" : 'X\(//\)[^/]' \| \
312: X"$as_dir" : 'X\(//\)$' \| \
313: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314: $as_echo X"$as_dir" |
315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\/\)[^/].*/{
320: s//\1/
321: q
322: }
323: /^X\(\/\/\)$/{
324: s//\1/
325: q
326: }
327: /^X\(\/\).*/{
328: s//\1/
329: q
330: }
331: s/.*/./; q'`
332: test -d "$as_dir" && break
333: done
334: test -z "$as_dirs" || eval "mkdir $as_dirs"
335: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336:
337:
338: } # as_fn_mkdir_p
339: # as_fn_append VAR VALUE
340: # ----------------------
341: # Append the text in VALUE to the end of the definition contained in VAR. Take
342: # advantage of any shell optimizations that allow amortized linear growth over
343: # repeated appends, instead of the typical quadratic growth present in naive
344: # implementations.
345: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346: eval 'as_fn_append ()
347: {
348: eval $1+=\$2
349: }'
350: else
351: as_fn_append ()
352: {
353: eval $1=\$$1\$2
354: }
355: fi # as_fn_append
356:
357: # as_fn_arith ARG...
358: # ------------------
359: # Perform arithmetic evaluation on the ARGs, and store the result in the
360: # global $as_val. Take advantage of shells that can avoid forks. The arguments
361: # must be portable across $(()) and expr.
362: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363: eval 'as_fn_arith ()
364: {
365: as_val=$(( $* ))
366: }'
367: else
368: as_fn_arith ()
369: {
370: as_val=`expr "$@" || test $? -eq 1`
371: }
372: fi # as_fn_arith
373:
374:
375: # as_fn_error STATUS ERROR [LINENO LOG_FD]
376: # ----------------------------------------
377: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379: # script with STATUS, using 1 if that was 0.
380: as_fn_error ()
381: {
382: as_status=$1; test $as_status -eq 0 && as_status=1
383: if test "$4"; then
384: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386: fi
387: $as_echo "$as_me: error: $2" >&2
388: as_fn_exit $as_status
389: } # as_fn_error
390:
391: if expr a : '\(a\)' >/dev/null 2>&1 &&
392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
404: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405: as_dirname=dirname
406: else
407: as_dirname=false
408: fi
409:
410: as_me=`$as_basename -- "$0" ||
411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
413: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414: $as_echo X/"$0" |
415: sed '/^.*\/\([^/][^/]*\)\/*$/{
416: s//\1/
417: q
418: }
419: /^X\/\(\/\/\)$/{
420: s//\1/
421: q
422: }
423: /^X\/\(\/\).*/{
424: s//\1/
425: q
426: }
427: s/.*/./; q'`
428:
429: # Avoid depending upon Character Ranges.
430: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433: as_cr_digits='0123456789'
434: as_cr_alnum=$as_cr_Letters$as_cr_digits
435:
436:
437: as_lineno_1=$LINENO as_lineno_1a=$LINENO
438: as_lineno_2=$LINENO as_lineno_2a=$LINENO
439: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442: sed -n '
443: p
444: /[$]LINENO/=
445: ' <$as_myself |
446: sed '
447: s/[$]LINENO.*/&-/
448: t lineno
449: b
450: :lineno
451: N
452: :loop
453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454: t loop
455: s/-\n.*//
456: ' >$as_me.lineno &&
457: chmod +x "$as_me.lineno" ||
458: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459:
460: # Don't try to exec as it changes $[0], causing all sort of problems
461: # (the dirname of $[0] is not the place where we might find the
462: # original and so on. Autoconf is especially sensitive to this).
463: . "./$as_me.lineno"
464: # Exit status is that of the last command.
465: exit
466: }
467:
468: ECHO_C= ECHO_N= ECHO_T=
469: case `echo -n x` in #(((((
470: -n*)
471: case `echo 'xy\c'` in
472: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473: xy) ECHO_C='\c';;
474: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475: ECHO_T=' ';;
476: esac;;
477: *)
478: ECHO_N='-n';;
479: esac
480:
481: rm -f conf$$ conf$$.exe conf$$.file
482: if test -d conf$$.dir; then
483: rm -f conf$$.dir/conf$$.file
484: else
485: rm -f conf$$.dir
486: mkdir conf$$.dir 2>/dev/null
487: fi
488: if (echo >conf$$.file) 2>/dev/null; then
489: if ln -s conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s='ln -s'
491: # ... but there are two gotchas:
492: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494: # In both cases, we have to default to `cp -p'.
495: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496: as_ln_s='cp -p'
497: elif ln conf$$.file conf$$ 2>/dev/null; then
498: as_ln_s=ln
499: else
500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
504: fi
505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506: rmdir conf$$.dir 2>/dev/null
507:
508: if mkdir -p . 2>/dev/null; then
509: as_mkdir_p='mkdir -p "$as_dir"'
510: else
511: test -d ./-p && rmdir ./-p
512: as_mkdir_p=false
513: fi
514:
515: if test -x / >/dev/null 2>&1; then
516: as_test_x='test -x'
517: else
518: if ls -dL / >/dev/null 2>&1; then
519: as_ls_L_option=L
520: else
521: as_ls_L_option=
522: fi
523: as_test_x='
524: eval sh -c '\''
525: if test -d "$1"; then
526: test -d "$1/.";
527: else
528: case $1 in #(
529: -*)set "./$1";;
530: esac;
531: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532: ???[sx]*):;;*)false;;esac;fi
533: '\'' sh
534: '
535: fi
536: as_executable_p=$as_test_x
537:
538: # Sed expression to map a string onto a valid CPP name.
539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540:
541: # Sed expression to map a string onto a valid variable name.
542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543:
544: SHELL=${CONFIG_SHELL-/bin/sh}
545:
546:
547: test -n "$DJDIR" || exec 7<&0 </dev/null
548: exec 6>&1
549:
550: # Name of the host.
551: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552: # so uname gets run too.
553: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554:
555: #
556: # Initializations.
557: #
558: ac_default_prefix=/usr/local
559: ac_clean_files=
560: ac_config_libobj_dir=.
561: LIBOBJS=
562: cross_compiling=no
563: subdirs=
564: MFLAGS=
565: MAKEFLAGS=
566:
567: # Identity of this package.
568: PACKAGE_NAME='PCRE'
569: PACKAGE_TARNAME='pcre'
1.1.1.3 ! misho 570: PACKAGE_VERSION='8.31'
! 571: PACKAGE_STRING='PCRE 8.31'
1.1 misho 572: PACKAGE_BUGREPORT=''
573: PACKAGE_URL=''
574:
575: ac_unique_file="pcre.h.in"
576: # Factoring default headers for most tests.
577: ac_includes_default="\
578: #include <stdio.h>
579: #ifdef HAVE_SYS_TYPES_H
580: # include <sys/types.h>
581: #endif
582: #ifdef HAVE_SYS_STAT_H
583: # include <sys/stat.h>
584: #endif
585: #ifdef STDC_HEADERS
586: # include <stdlib.h>
587: # include <stddef.h>
588: #else
589: # ifdef HAVE_STDLIB_H
590: # include <stdlib.h>
591: # endif
592: #endif
593: #ifdef HAVE_STRING_H
594: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595: # include <memory.h>
596: # endif
597: # include <string.h>
598: #endif
599: #ifdef HAVE_STRINGS_H
600: # include <strings.h>
601: #endif
602: #ifdef HAVE_INTTYPES_H
603: # include <inttypes.h>
604: #endif
605: #ifdef HAVE_STDINT_H
606: # include <stdint.h>
607: #endif
608: #ifdef HAVE_UNISTD_H
609: # include <unistd.h>
610: #endif"
611:
612: ac_subst_vars='am__EXEEXT_FALSE
613: am__EXEEXT_TRUE
614: LTLIBOBJS
615: LIBOBJS
616: LIBBZ2
617: LIBZ
618: DISTCHECK_CONFIGURE_FLAGS
619: EXTRA_LIBPCRECPP_LDFLAGS
620: EXTRA_LIBPCREPOSIX_LDFLAGS
1.1.1.2 misho 621: EXTRA_LIBPCRE16_LDFLAGS
1.1 misho 622: EXTRA_LIBPCRE_LDFLAGS
623: PCRE_STATIC_CFLAG
1.1.1.2 misho 624: LIBREADLINE
625: WITH_UTF_FALSE
626: WITH_UTF_TRUE
1.1 misho 627: WITH_JIT_FALSE
628: WITH_JIT_TRUE
629: WITH_REBUILD_CHARTABLES_FALSE
630: WITH_REBUILD_CHARTABLES_TRUE
631: WITH_PCRE_CPP_FALSE
632: WITH_PCRE_CPP_TRUE
1.1.1.2 misho 633: WITH_PCRE16_FALSE
634: WITH_PCRE16_TRUE
635: WITH_PCRE8_FALSE
636: WITH_PCRE8_TRUE
1.1 misho 637: pcre_have_bits_type_traits
638: pcre_have_type_traits
639: pcre_have_ulong_long
640: pcre_have_long_long
641: enable_cpp
1.1.1.2 misho 642: enable_pcre16
643: enable_pcre8
1.1 misho 644: PCRE_DATE
645: PCRE_PRERELEASE
646: PCRE_MINOR
647: PCRE_MAJOR
648: CXXCPP
649: OTOOL64
650: OTOOL
651: LIPO
652: NMEDIT
653: DSYMUTIL
654: MANIFEST_TOOL
655: RANLIB
656: ac_ct_AR
657: AR
658: LN_S
659: NM
660: ac_ct_DUMPBIN
661: DUMPBIN
662: LD
663: FGREP
664: SED
665: LIBTOOL
666: OBJDUMP
667: DLLTOOL
668: AS
669: host_os
670: host_vendor
671: host_cpu
672: host
673: build_os
674: build_vendor
675: build_cpu
676: build
677: EGREP
678: GREP
679: CPP
680: am__fastdepCXX_FALSE
681: am__fastdepCXX_TRUE
682: CXXDEPMODE
683: ac_ct_CXX
684: CXXFLAGS
685: CXX
686: am__fastdepCC_FALSE
687: am__fastdepCC_TRUE
688: CCDEPMODE
689: AMDEPBACKSLASH
690: AMDEP_FALSE
691: AMDEP_TRUE
692: am__quote
693: am__include
694: DEPDIR
695: OBJEXT
696: EXEEXT
697: ac_ct_CC
698: CPPFLAGS
699: LDFLAGS
700: CFLAGS
701: CC
1.1.1.2 misho 702: AM_BACKSLASH
703: AM_DEFAULT_VERBOSITY
1.1 misho 704: am__untar
705: am__tar
706: AMTAR
707: am__leading_dot
708: SET_MAKE
709: AWK
710: mkdir_p
711: MKDIR_P
712: INSTALL_STRIP_PROGRAM
713: STRIP
714: install_sh
715: MAKEINFO
716: AUTOHEADER
717: AUTOMAKE
718: AUTOCONF
719: ACLOCAL
720: VERSION
721: PACKAGE
722: CYGPATH_W
723: am__isrc
724: INSTALL_DATA
725: INSTALL_SCRIPT
726: INSTALL_PROGRAM
727: target_alias
728: host_alias
729: build_alias
730: LIBS
731: ECHO_T
732: ECHO_N
733: ECHO_C
734: DEFS
735: mandir
736: localedir
737: libdir
738: psdir
739: pdfdir
740: dvidir
741: htmldir
742: infodir
743: docdir
744: oldincludedir
745: includedir
746: localstatedir
747: sharedstatedir
748: sysconfdir
749: datadir
750: datarootdir
751: libexecdir
752: sbindir
753: bindir
754: program_transform_name
755: prefix
756: exec_prefix
757: PACKAGE_URL
758: PACKAGE_BUGREPORT
759: PACKAGE_STRING
760: PACKAGE_VERSION
761: PACKAGE_TARNAME
762: PACKAGE_NAME
763: PATH_SEPARATOR
764: SHELL'
765: ac_subst_files=''
766: ac_user_opts='
767: enable_option_checking
1.1.1.2 misho 768: enable_silent_rules
1.1 misho 769: enable_dependency_tracking
770: enable_shared
771: enable_static
772: with_pic
773: enable_fast_install
774: with_gnu_ld
775: with_sysroot
776: enable_libtool_lock
1.1.1.2 misho 777: enable_pcre8
778: enable_pcre16
1.1 misho 779: enable_cpp
780: enable_jit
781: enable_pcregrep_jit
782: enable_rebuild_chartables
783: enable_utf8
1.1.1.2 misho 784: enable_utf
1.1 misho 785: enable_unicode_properties
786: enable_newline_is_cr
787: enable_newline_is_lf
788: enable_newline_is_crlf
789: enable_newline_is_anycrlf
790: enable_newline_is_any
791: enable_bsr_anycrlf
792: enable_ebcdic
793: enable_stack_for_recursion
794: enable_pcregrep_libz
795: enable_pcregrep_libbz2
796: with_pcregrep_bufsize
1.1.1.3 ! misho 797: enable_pcretest_libedit
1.1 misho 798: enable_pcretest_libreadline
799: with_posix_malloc_threshold
800: with_link_size
801: with_match_limit
802: with_match_limit_recursion
803: '
804: ac_precious_vars='build_alias
805: host_alias
806: target_alias
807: CC
808: CFLAGS
809: LDFLAGS
810: LIBS
811: CPPFLAGS
812: CXX
813: CXXFLAGS
814: CCC
815: CPP
816: CXXCPP'
817:
818:
819: # Initialize some variables set by options.
820: ac_init_help=
821: ac_init_version=false
822: ac_unrecognized_opts=
823: ac_unrecognized_sep=
824: # The variables have the same names as the options, with
825: # dashes changed to underlines.
826: cache_file=/dev/null
827: exec_prefix=NONE
828: no_create=
829: no_recursion=
830: prefix=NONE
831: program_prefix=NONE
832: program_suffix=NONE
833: program_transform_name=s,x,x,
834: silent=
835: site=
836: srcdir=
837: verbose=
838: x_includes=NONE
839: x_libraries=NONE
840:
841: # Installation directory options.
842: # These are left unexpanded so users can "make install exec_prefix=/foo"
843: # and all the variables that are supposed to be based on exec_prefix
844: # by default will actually change.
845: # Use braces instead of parens because sh, perl, etc. also accept them.
846: # (The list follows the same order as the GNU Coding Standards.)
847: bindir='${exec_prefix}/bin'
848: sbindir='${exec_prefix}/sbin'
849: libexecdir='${exec_prefix}/libexec'
850: datarootdir='${prefix}/share'
851: datadir='${datarootdir}'
852: sysconfdir='${prefix}/etc'
853: sharedstatedir='${prefix}/com'
854: localstatedir='${prefix}/var'
855: includedir='${prefix}/include'
856: oldincludedir='/usr/include'
857: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858: infodir='${datarootdir}/info'
859: htmldir='${docdir}'
860: dvidir='${docdir}'
861: pdfdir='${docdir}'
862: psdir='${docdir}'
863: libdir='${exec_prefix}/lib'
864: localedir='${datarootdir}/locale'
865: mandir='${datarootdir}/man'
866:
867: ac_prev=
868: ac_dashdash=
869: for ac_option
870: do
871: # If the previous option needs an argument, assign it.
872: if test -n "$ac_prev"; then
873: eval $ac_prev=\$ac_option
874: ac_prev=
875: continue
876: fi
877:
878: case $ac_option in
879: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880: *=) ac_optarg= ;;
881: *) ac_optarg=yes ;;
882: esac
883:
884: # Accept the important Cygnus configure options, so we can diagnose typos.
885:
886: case $ac_dashdash$ac_option in
887: --)
888: ac_dashdash=yes ;;
889:
890: -bindir | --bindir | --bindi | --bind | --bin | --bi)
891: ac_prev=bindir ;;
892: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893: bindir=$ac_optarg ;;
894:
895: -build | --build | --buil | --bui | --bu)
896: ac_prev=build_alias ;;
897: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898: build_alias=$ac_optarg ;;
899:
900: -cache-file | --cache-file | --cache-fil | --cache-fi \
901: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902: ac_prev=cache_file ;;
903: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905: cache_file=$ac_optarg ;;
906:
907: --config-cache | -C)
908: cache_file=config.cache ;;
909:
910: -datadir | --datadir | --datadi | --datad)
911: ac_prev=datadir ;;
912: -datadir=* | --datadir=* | --datadi=* | --datad=*)
913: datadir=$ac_optarg ;;
914:
915: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916: | --dataroo | --dataro | --datar)
917: ac_prev=datarootdir ;;
918: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920: datarootdir=$ac_optarg ;;
921:
922: -disable-* | --disable-*)
923: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924: # Reject names that are not valid shell variable names.
925: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926: as_fn_error $? "invalid feature name: $ac_useropt"
927: ac_useropt_orig=$ac_useropt
928: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929: case $ac_user_opts in
930: *"
931: "enable_$ac_useropt"
932: "*) ;;
933: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934: ac_unrecognized_sep=', ';;
935: esac
936: eval enable_$ac_useropt=no ;;
937:
938: -docdir | --docdir | --docdi | --doc | --do)
939: ac_prev=docdir ;;
940: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941: docdir=$ac_optarg ;;
942:
943: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944: ac_prev=dvidir ;;
945: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946: dvidir=$ac_optarg ;;
947:
948: -enable-* | --enable-*)
949: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950: # Reject names that are not valid shell variable names.
951: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952: as_fn_error $? "invalid feature name: $ac_useropt"
953: ac_useropt_orig=$ac_useropt
954: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955: case $ac_user_opts in
956: *"
957: "enable_$ac_useropt"
958: "*) ;;
959: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960: ac_unrecognized_sep=', ';;
961: esac
962: eval enable_$ac_useropt=\$ac_optarg ;;
963:
964: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966: | --exec | --exe | --ex)
967: ac_prev=exec_prefix ;;
968: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970: | --exec=* | --exe=* | --ex=*)
971: exec_prefix=$ac_optarg ;;
972:
973: -gas | --gas | --ga | --g)
974: # Obsolete; use --with-gas.
975: with_gas=yes ;;
976:
977: -help | --help | --hel | --he | -h)
978: ac_init_help=long ;;
979: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980: ac_init_help=recursive ;;
981: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982: ac_init_help=short ;;
983:
984: -host | --host | --hos | --ho)
985: ac_prev=host_alias ;;
986: -host=* | --host=* | --hos=* | --ho=*)
987: host_alias=$ac_optarg ;;
988:
989: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990: ac_prev=htmldir ;;
991: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992: | --ht=*)
993: htmldir=$ac_optarg ;;
994:
995: -includedir | --includedir | --includedi | --included | --include \
996: | --includ | --inclu | --incl | --inc)
997: ac_prev=includedir ;;
998: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999: | --includ=* | --inclu=* | --incl=* | --inc=*)
1000: includedir=$ac_optarg ;;
1001:
1002: -infodir | --infodir | --infodi | --infod | --info | --inf)
1003: ac_prev=infodir ;;
1004: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005: infodir=$ac_optarg ;;
1006:
1007: -libdir | --libdir | --libdi | --libd)
1008: ac_prev=libdir ;;
1009: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010: libdir=$ac_optarg ;;
1011:
1012: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013: | --libexe | --libex | --libe)
1014: ac_prev=libexecdir ;;
1015: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016: | --libexe=* | --libex=* | --libe=*)
1017: libexecdir=$ac_optarg ;;
1018:
1019: -localedir | --localedir | --localedi | --localed | --locale)
1020: ac_prev=localedir ;;
1021: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022: localedir=$ac_optarg ;;
1023:
1024: -localstatedir | --localstatedir | --localstatedi | --localstated \
1025: | --localstate | --localstat | --localsta | --localst | --locals)
1026: ac_prev=localstatedir ;;
1027: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029: localstatedir=$ac_optarg ;;
1030:
1031: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032: ac_prev=mandir ;;
1033: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034: mandir=$ac_optarg ;;
1035:
1036: -nfp | --nfp | --nf)
1037: # Obsolete; use --without-fp.
1038: with_fp=no ;;
1039:
1040: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041: | --no-cr | --no-c | -n)
1042: no_create=yes ;;
1043:
1044: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046: no_recursion=yes ;;
1047:
1048: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050: | --oldin | --oldi | --old | --ol | --o)
1051: ac_prev=oldincludedir ;;
1052: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055: oldincludedir=$ac_optarg ;;
1056:
1057: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058: ac_prev=prefix ;;
1059: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060: prefix=$ac_optarg ;;
1061:
1062: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063: | --program-pre | --program-pr | --program-p)
1064: ac_prev=program_prefix ;;
1065: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067: program_prefix=$ac_optarg ;;
1068:
1069: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070: | --program-suf | --program-su | --program-s)
1071: ac_prev=program_suffix ;;
1072: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074: program_suffix=$ac_optarg ;;
1075:
1076: -program-transform-name | --program-transform-name \
1077: | --program-transform-nam | --program-transform-na \
1078: | --program-transform-n | --program-transform- \
1079: | --program-transform | --program-transfor \
1080: | --program-transfo | --program-transf \
1081: | --program-trans | --program-tran \
1082: | --progr-tra | --program-tr | --program-t)
1083: ac_prev=program_transform_name ;;
1084: -program-transform-name=* | --program-transform-name=* \
1085: | --program-transform-nam=* | --program-transform-na=* \
1086: | --program-transform-n=* | --program-transform-=* \
1087: | --program-transform=* | --program-transfor=* \
1088: | --program-transfo=* | --program-transf=* \
1089: | --program-trans=* | --program-tran=* \
1090: | --progr-tra=* | --program-tr=* | --program-t=*)
1091: program_transform_name=$ac_optarg ;;
1092:
1093: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094: ac_prev=pdfdir ;;
1095: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096: pdfdir=$ac_optarg ;;
1097:
1098: -psdir | --psdir | --psdi | --psd | --ps)
1099: ac_prev=psdir ;;
1100: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101: psdir=$ac_optarg ;;
1102:
1103: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104: | -silent | --silent | --silen | --sile | --sil)
1105: silent=yes ;;
1106:
1107: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108: ac_prev=sbindir ;;
1109: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110: | --sbi=* | --sb=*)
1111: sbindir=$ac_optarg ;;
1112:
1113: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115: | --sharedst | --shareds | --shared | --share | --shar \
1116: | --sha | --sh)
1117: ac_prev=sharedstatedir ;;
1118: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121: | --sha=* | --sh=*)
1122: sharedstatedir=$ac_optarg ;;
1123:
1124: -site | --site | --sit)
1125: ac_prev=site ;;
1126: -site=* | --site=* | --sit=*)
1127: site=$ac_optarg ;;
1128:
1129: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130: ac_prev=srcdir ;;
1131: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132: srcdir=$ac_optarg ;;
1133:
1134: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135: | --syscon | --sysco | --sysc | --sys | --sy)
1136: ac_prev=sysconfdir ;;
1137: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139: sysconfdir=$ac_optarg ;;
1140:
1141: -target | --target | --targe | --targ | --tar | --ta | --t)
1142: ac_prev=target_alias ;;
1143: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144: target_alias=$ac_optarg ;;
1145:
1146: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147: verbose=yes ;;
1148:
1149: -version | --version | --versio | --versi | --vers | -V)
1150: ac_init_version=: ;;
1151:
1152: -with-* | --with-*)
1153: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154: # Reject names that are not valid shell variable names.
1155: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156: as_fn_error $? "invalid package name: $ac_useropt"
1157: ac_useropt_orig=$ac_useropt
1158: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159: case $ac_user_opts in
1160: *"
1161: "with_$ac_useropt"
1162: "*) ;;
1163: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164: ac_unrecognized_sep=', ';;
1165: esac
1166: eval with_$ac_useropt=\$ac_optarg ;;
1167:
1168: -without-* | --without-*)
1169: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170: # Reject names that are not valid shell variable names.
1171: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172: as_fn_error $? "invalid package name: $ac_useropt"
1173: ac_useropt_orig=$ac_useropt
1174: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175: case $ac_user_opts in
1176: *"
1177: "with_$ac_useropt"
1178: "*) ;;
1179: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180: ac_unrecognized_sep=', ';;
1181: esac
1182: eval with_$ac_useropt=no ;;
1183:
1184: --x)
1185: # Obsolete; use --with-x.
1186: with_x=yes ;;
1187:
1188: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189: | --x-incl | --x-inc | --x-in | --x-i)
1190: ac_prev=x_includes ;;
1191: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193: x_includes=$ac_optarg ;;
1194:
1195: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197: ac_prev=x_libraries ;;
1198: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200: x_libraries=$ac_optarg ;;
1201:
1202: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203: Try \`$0 --help' for more information"
1204: ;;
1205:
1206: *=*)
1207: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208: # Reject names that are not valid shell variable names.
1209: case $ac_envvar in #(
1210: '' | [0-9]* | *[!_$as_cr_alnum]* )
1211: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212: esac
1213: eval $ac_envvar=\$ac_optarg
1214: export $ac_envvar ;;
1215:
1216: *)
1217: # FIXME: should be removed in autoconf 3.0.
1218: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222: ;;
1223:
1224: esac
1225: done
1226:
1227: if test -n "$ac_prev"; then
1228: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229: as_fn_error $? "missing argument to $ac_option"
1230: fi
1231:
1232: if test -n "$ac_unrecognized_opts"; then
1233: case $enable_option_checking in
1234: no) ;;
1235: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237: esac
1238: fi
1239:
1240: # Check all directory arguments for consistency.
1241: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242: datadir sysconfdir sharedstatedir localstatedir includedir \
1243: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244: libdir localedir mandir
1245: do
1246: eval ac_val=\$$ac_var
1247: # Remove trailing slashes.
1248: case $ac_val in
1249: */ )
1250: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251: eval $ac_var=\$ac_val;;
1252: esac
1253: # Be sure to have absolute directory names.
1254: case $ac_val in
1255: [\\/$]* | ?:[\\/]* ) continue;;
1256: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257: esac
1258: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259: done
1260:
1261: # There might be people who depend on the old broken behavior: `$host'
1262: # used to hold the argument of --host etc.
1263: # FIXME: To remove some day.
1264: build=$build_alias
1265: host=$host_alias
1266: target=$target_alias
1267:
1268: # FIXME: To remove some day.
1269: if test "x$host_alias" != x; then
1270: if test "x$build_alias" = x; then
1271: cross_compiling=maybe
1272: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1273: If a cross compiler is detected then cross compile mode will be used" >&2
1274: elif test "x$build_alias" != "x$host_alias"; then
1275: cross_compiling=yes
1276: fi
1277: fi
1278:
1279: ac_tool_prefix=
1280: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281:
1282: test "$silent" = yes && exec 6>/dev/null
1283:
1284:
1285: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286: ac_ls_di=`ls -di .` &&
1287: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288: as_fn_error $? "working directory cannot be determined"
1289: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290: as_fn_error $? "pwd does not report name of working directory"
1291:
1292:
1293: # Find the source files, if location was not specified.
1294: if test -z "$srcdir"; then
1295: ac_srcdir_defaulted=yes
1296: # Try the directory containing this script, then the parent directory.
1297: ac_confdir=`$as_dirname -- "$as_myself" ||
1298: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299: X"$as_myself" : 'X\(//\)[^/]' \| \
1300: X"$as_myself" : 'X\(//\)$' \| \
1301: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302: $as_echo X"$as_myself" |
1303: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304: s//\1/
1305: q
1306: }
1307: /^X\(\/\/\)[^/].*/{
1308: s//\1/
1309: q
1310: }
1311: /^X\(\/\/\)$/{
1312: s//\1/
1313: q
1314: }
1315: /^X\(\/\).*/{
1316: s//\1/
1317: q
1318: }
1319: s/.*/./; q'`
1320: srcdir=$ac_confdir
1321: if test ! -r "$srcdir/$ac_unique_file"; then
1322: srcdir=..
1323: fi
1324: else
1325: ac_srcdir_defaulted=no
1326: fi
1327: if test ! -r "$srcdir/$ac_unique_file"; then
1328: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330: fi
1331: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332: ac_abs_confdir=`(
1333: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334: pwd)`
1335: # When building in place, set srcdir=.
1336: if test "$ac_abs_confdir" = "$ac_pwd"; then
1337: srcdir=.
1338: fi
1339: # Remove unnecessary trailing slashes from srcdir.
1340: # Double slashes in file names in object file debugging info
1341: # mess up M-x gdb in Emacs.
1342: case $srcdir in
1343: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344: esac
1345: for ac_var in $ac_precious_vars; do
1346: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347: eval ac_env_${ac_var}_value=\$${ac_var}
1348: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350: done
1351:
1352: #
1353: # Report the --help message.
1354: #
1355: if test "$ac_init_help" = "long"; then
1356: # Omit some internal or obsolete options to make the list less imposing.
1357: # This message is too long to be a string in the A/UX 3.1 sh.
1358: cat <<_ACEOF
1.1.1.3 ! misho 1359: \`configure' configures PCRE 8.31 to adapt to many kinds of systems.
1.1 misho 1360:
1361: Usage: $0 [OPTION]... [VAR=VALUE]...
1362:
1363: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364: VAR=VALUE. See below for descriptions of some of the useful variables.
1365:
1366: Defaults for the options are specified in brackets.
1367:
1368: Configuration:
1369: -h, --help display this help and exit
1370: --help=short display options specific to this package
1371: --help=recursive display the short help of all the included packages
1372: -V, --version display version information and exit
1373: -q, --quiet, --silent do not print \`checking ...' messages
1374: --cache-file=FILE cache test results in FILE [disabled]
1375: -C, --config-cache alias for \`--cache-file=config.cache'
1376: -n, --no-create do not create output files
1377: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378:
1379: Installation directories:
1380: --prefix=PREFIX install architecture-independent files in PREFIX
1381: [$ac_default_prefix]
1382: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383: [PREFIX]
1384:
1385: By default, \`make install' will install all the files in
1386: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388: for instance \`--prefix=\$HOME'.
1389:
1390: For better control, use the options below.
1391:
1392: Fine tuning of the installation directories:
1393: --bindir=DIR user executables [EPREFIX/bin]
1394: --sbindir=DIR system admin executables [EPREFIX/sbin]
1395: --libexecdir=DIR program executables [EPREFIX/libexec]
1396: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399: --libdir=DIR object code libraries [EPREFIX/lib]
1400: --includedir=DIR C header files [PREFIX/include]
1401: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404: --infodir=DIR info documentation [DATAROOTDIR/info]
1405: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406: --mandir=DIR man documentation [DATAROOTDIR/man]
1407: --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1408: --htmldir=DIR html documentation [DOCDIR]
1409: --dvidir=DIR dvi documentation [DOCDIR]
1410: --pdfdir=DIR pdf documentation [DOCDIR]
1411: --psdir=DIR ps documentation [DOCDIR]
1412: _ACEOF
1413:
1414: cat <<\_ACEOF
1415:
1416: Program names:
1417: --program-prefix=PREFIX prepend PREFIX to installed program names
1418: --program-suffix=SUFFIX append SUFFIX to installed program names
1419: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420:
1421: System types:
1422: --build=BUILD configure for building on BUILD [guessed]
1423: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424: _ACEOF
1425: fi
1426:
1427: if test -n "$ac_init_help"; then
1428: case $ac_init_help in
1.1.1.3 ! misho 1429: short | recursive ) echo "Configuration of PCRE 8.31:";;
1.1 misho 1430: esac
1431: cat <<\_ACEOF
1432:
1433: Optional Features:
1434: --disable-option-checking ignore unrecognized --enable/--with options
1435: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.2 misho 1437: --enable-silent-rules less verbose build output (undo: `make V=1')
1438: --disable-silent-rules verbose build output (undo: `make V=0')
1.1 misho 1439: --disable-dependency-tracking speeds up one-time build
1440: --enable-dependency-tracking do not reject slow dependency extractors
1441: --enable-shared[=PKGS] build shared libraries [default=yes]
1442: --enable-static[=PKGS] build static libraries [default=yes]
1443: --enable-fast-install[=PKGS]
1444: optimize for fast installation [default=yes]
1445: --disable-libtool-lock avoid locking (might break parallel builds)
1.1.1.2 misho 1446: --disable-pcre8 disable 8 bit character support
1447: --enable-pcre16 enable 16 bit character support
1.1 misho 1448: --disable-cpp disable C++ support
1449: --enable-jit enable Just-In-Time compiling support
1450: --disable-pcregrep-jit disable JIT support in pcregrep
1451: --enable-rebuild-chartables
1452: rebuild character tables in current locale
1.1.1.2 misho 1453: --enable-utf8 another name for --enable-utf. Kept only for
1454: compatibility reasons
1455: --enable-utf enable UTF-8/16 support (incompatible with
1.1 misho 1456: --enable-ebcdic)
1457: --enable-unicode-properties
1458: enable Unicode properties support (implies
1.1.1.2 misho 1459: --enable-utf)
1.1 misho 1460: --enable-newline-is-cr use CR as newline character
1461: --enable-newline-is-lf use LF as newline character (default)
1462: --enable-newline-is-crlf
1463: use CRLF as newline sequence
1464: --enable-newline-is-anycrlf
1465: use CR, LF, or CRLF as newline sequence
1466: --enable-newline-is-any use any valid Unicode newline sequence
1467: --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1468: --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1.1.1.2 misho 1469: with --enable-utf; use only in (uncommon) EBCDIC
1.1 misho 1470: environments; it implies --enable-rebuild-chartables
1471: --disable-stack-for-recursion
1472: don't use stack recursion when matching
1473: --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1474: --enable-pcregrep-libbz2
1475: link pcregrep with libbz2 to handle .bz2 files
1.1.1.3 ! misho 1476: --enable-pcretest-libedit
! 1477: link pcretest with libedit
1.1 misho 1478: --enable-pcretest-libreadline
1479: link pcretest with libreadline
1480:
1481: Optional Packages:
1482: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484: --with-pic try to use only PIC/non-PIC objects [default=use
1485: both]
1486: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487: --with-sysroot=DIR Search for dependent libraries within DIR
1488: (or the compiler's sysroot if not specified).
1489: --with-pcregrep-bufsize=N
1490: pcregrep buffer size (default=20480)
1491: --with-posix-malloc-threshold=NBYTES
1492: threshold for POSIX malloc usage (default=10)
1493: --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1494: --with-match-limit=N default limit on internal looping (default=10000000)
1495: --with-match-limit-recursion=N
1496: default limit on internal recursion
1497: (default=MATCH_LIMIT)
1498:
1499: Some influential environment variables:
1500: CC C compiler command
1501: CFLAGS C compiler flags
1502: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503: nonstandard directory <lib dir>
1504: LIBS libraries to pass to the linker, e.g. -l<library>
1505: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506: you have headers in a nonstandard directory <include dir>
1507: CXX C++ compiler command
1508: CXXFLAGS C++ compiler flags
1509: CPP C preprocessor
1510: CXXCPP C++ preprocessor
1511:
1512: Use these variables to override the choices made by `configure' or to help
1513: it to find libraries and programs with nonstandard names/locations.
1514:
1515: Report bugs to the package provider.
1516: _ACEOF
1517: ac_status=$?
1518: fi
1519:
1520: if test "$ac_init_help" = "recursive"; then
1521: # If there are subdirs, report their specific --help.
1522: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523: test -d "$ac_dir" ||
1524: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525: continue
1526: ac_builddir=.
1527:
1528: case "$ac_dir" in
1529: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530: *)
1531: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532: # A ".." for each directory in $ac_dir_suffix.
1533: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534: case $ac_top_builddir_sub in
1535: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537: esac ;;
1538: esac
1539: ac_abs_top_builddir=$ac_pwd
1540: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541: # for backward compatibility:
1542: ac_top_builddir=$ac_top_build_prefix
1543:
1544: case $srcdir in
1545: .) # We are building in place.
1546: ac_srcdir=.
1547: ac_top_srcdir=$ac_top_builddir_sub
1548: ac_abs_top_srcdir=$ac_pwd ;;
1549: [\\/]* | ?:[\\/]* ) # Absolute name.
1550: ac_srcdir=$srcdir$ac_dir_suffix;
1551: ac_top_srcdir=$srcdir
1552: ac_abs_top_srcdir=$srcdir ;;
1553: *) # Relative name.
1554: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555: ac_top_srcdir=$ac_top_build_prefix$srcdir
1556: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557: esac
1558: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559:
1560: cd "$ac_dir" || { ac_status=$?; continue; }
1561: # Check for guested configure.
1562: if test -f "$ac_srcdir/configure.gnu"; then
1563: echo &&
1564: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565: elif test -f "$ac_srcdir/configure"; then
1566: echo &&
1567: $SHELL "$ac_srcdir/configure" --help=recursive
1568: else
1569: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570: fi || ac_status=$?
1571: cd "$ac_pwd" || { ac_status=$?; break; }
1572: done
1573: fi
1574:
1575: test -n "$ac_init_help" && exit $ac_status
1576: if $ac_init_version; then
1577: cat <<\_ACEOF
1.1.1.3 ! misho 1578: PCRE configure 8.31
1.1 misho 1579: generated by GNU Autoconf 2.68
1580:
1581: Copyright (C) 2010 Free Software Foundation, Inc.
1582: This configure script is free software; the Free Software Foundation
1583: gives unlimited permission to copy, distribute and modify it.
1584: _ACEOF
1585: exit
1586: fi
1587:
1588: ## ------------------------ ##
1589: ## Autoconf initialization. ##
1590: ## ------------------------ ##
1591:
1592: # ac_fn_c_try_compile LINENO
1593: # --------------------------
1594: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595: ac_fn_c_try_compile ()
1596: {
1597: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598: rm -f conftest.$ac_objext
1599: if { { ac_try="$ac_compile"
1600: case "(($ac_try" in
1601: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602: *) ac_try_echo=$ac_try;;
1603: esac
1604: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605: $as_echo "$ac_try_echo"; } >&5
1606: (eval "$ac_compile") 2>conftest.err
1607: ac_status=$?
1608: if test -s conftest.err; then
1609: grep -v '^ *+' conftest.err >conftest.er1
1610: cat conftest.er1 >&5
1611: mv -f conftest.er1 conftest.err
1612: fi
1613: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614: test $ac_status = 0; } && {
1615: test -z "$ac_c_werror_flag" ||
1616: test ! -s conftest.err
1617: } && test -s conftest.$ac_objext; then :
1618: ac_retval=0
1619: else
1620: $as_echo "$as_me: failed program was:" >&5
1621: sed 's/^/| /' conftest.$ac_ext >&5
1622:
1623: ac_retval=1
1624: fi
1625: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626: as_fn_set_status $ac_retval
1627:
1628: } # ac_fn_c_try_compile
1629:
1630: # ac_fn_cxx_try_compile LINENO
1631: # ----------------------------
1632: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633: ac_fn_cxx_try_compile ()
1634: {
1635: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636: rm -f conftest.$ac_objext
1637: if { { ac_try="$ac_compile"
1638: case "(($ac_try" in
1639: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640: *) ac_try_echo=$ac_try;;
1641: esac
1642: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643: $as_echo "$ac_try_echo"; } >&5
1644: (eval "$ac_compile") 2>conftest.err
1645: ac_status=$?
1646: if test -s conftest.err; then
1647: grep -v '^ *+' conftest.err >conftest.er1
1648: cat conftest.er1 >&5
1649: mv -f conftest.er1 conftest.err
1650: fi
1651: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652: test $ac_status = 0; } && {
1653: test -z "$ac_cxx_werror_flag" ||
1654: test ! -s conftest.err
1655: } && test -s conftest.$ac_objext; then :
1656: ac_retval=0
1657: else
1658: $as_echo "$as_me: failed program was:" >&5
1659: sed 's/^/| /' conftest.$ac_ext >&5
1660:
1661: ac_retval=1
1662: fi
1663: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664: as_fn_set_status $ac_retval
1665:
1666: } # ac_fn_cxx_try_compile
1667:
1668: # ac_fn_c_try_cpp LINENO
1669: # ----------------------
1670: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1671: ac_fn_c_try_cpp ()
1672: {
1673: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674: if { { ac_try="$ac_cpp conftest.$ac_ext"
1675: case "(($ac_try" in
1676: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677: *) ac_try_echo=$ac_try;;
1678: esac
1679: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680: $as_echo "$ac_try_echo"; } >&5
1681: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1682: ac_status=$?
1683: if test -s conftest.err; then
1684: grep -v '^ *+' conftest.err >conftest.er1
1685: cat conftest.er1 >&5
1686: mv -f conftest.er1 conftest.err
1687: fi
1688: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689: test $ac_status = 0; } > conftest.i && {
1690: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1691: test ! -s conftest.err
1692: }; then :
1693: ac_retval=0
1694: else
1695: $as_echo "$as_me: failed program was:" >&5
1696: sed 's/^/| /' conftest.$ac_ext >&5
1697:
1698: ac_retval=1
1699: fi
1700: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701: as_fn_set_status $ac_retval
1702:
1703: } # ac_fn_c_try_cpp
1704:
1705: # ac_fn_c_try_run LINENO
1706: # ----------------------
1707: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708: # that executables *can* be run.
1709: ac_fn_c_try_run ()
1710: {
1711: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712: if { { ac_try="$ac_link"
1713: case "(($ac_try" in
1714: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715: *) ac_try_echo=$ac_try;;
1716: esac
1717: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718: $as_echo "$ac_try_echo"; } >&5
1719: (eval "$ac_link") 2>&5
1720: ac_status=$?
1721: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723: { { case "(($ac_try" in
1724: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725: *) ac_try_echo=$ac_try;;
1726: esac
1727: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728: $as_echo "$ac_try_echo"; } >&5
1729: (eval "$ac_try") 2>&5
1730: ac_status=$?
1731: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732: test $ac_status = 0; }; }; then :
1733: ac_retval=0
1734: else
1735: $as_echo "$as_me: program exited with status $ac_status" >&5
1736: $as_echo "$as_me: failed program was:" >&5
1737: sed 's/^/| /' conftest.$ac_ext >&5
1738:
1739: ac_retval=$ac_status
1740: fi
1741: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743: as_fn_set_status $ac_retval
1744:
1745: } # ac_fn_c_try_run
1746:
1747: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748: # -------------------------------------------------------
1749: # Tests whether HEADER exists and can be compiled using the include files in
1750: # INCLUDES, setting the cache variable VAR accordingly.
1751: ac_fn_c_check_header_compile ()
1752: {
1753: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755: $as_echo_n "checking for $2... " >&6; }
1756: if eval \${$3+:} false; then :
1757: $as_echo_n "(cached) " >&6
1758: else
1759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760: /* end confdefs.h. */
1761: $4
1762: #include <$2>
1763: _ACEOF
1764: if ac_fn_c_try_compile "$LINENO"; then :
1765: eval "$3=yes"
1766: else
1767: eval "$3=no"
1768: fi
1769: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770: fi
1771: eval ac_res=\$$3
1772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773: $as_echo "$ac_res" >&6; }
1774: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775:
1776: } # ac_fn_c_check_header_compile
1777:
1778: # ac_fn_c_find_intX_t LINENO BITS VAR
1779: # -----------------------------------
1780: # Finds a signed integer type with width BITS, setting cache variable VAR
1781: # accordingly.
1782: ac_fn_c_find_intX_t ()
1783: {
1784: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1786: $as_echo_n "checking for int$2_t... " >&6; }
1787: if eval \${$3+:} false; then :
1788: $as_echo_n "(cached) " >&6
1789: else
1790: eval "$3=no"
1791: # Order is important - never check a type that is potentially smaller
1792: # than half of the expected target width.
1793: for ac_type in int$2_t 'int' 'long int' \
1794: 'long long int' 'short int' 'signed char'; do
1795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796: /* end confdefs.h. */
1797: $ac_includes_default
1798: enum { N = $2 / 2 - 1 };
1799: int
1800: main ()
1801: {
1802: static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1803: test_array [0] = 0
1804:
1805: ;
1806: return 0;
1807: }
1808: _ACEOF
1809: if ac_fn_c_try_compile "$LINENO"; then :
1810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811: /* end confdefs.h. */
1812: $ac_includes_default
1813: enum { N = $2 / 2 - 1 };
1814: int
1815: main ()
1816: {
1817: static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1818: < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1819: test_array [0] = 0
1820:
1821: ;
1822: return 0;
1823: }
1824: _ACEOF
1825: if ac_fn_c_try_compile "$LINENO"; then :
1826:
1827: else
1828: case $ac_type in #(
1829: int$2_t) :
1830: eval "$3=yes" ;; #(
1831: *) :
1832: eval "$3=\$ac_type" ;;
1833: esac
1834: fi
1835: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836: fi
1837: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838: if eval test \"x\$"$3"\" = x"no"; then :
1839:
1840: else
1841: break
1842: fi
1843: done
1844: fi
1845: eval ac_res=\$$3
1846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847: $as_echo "$ac_res" >&6; }
1848: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849:
1850: } # ac_fn_c_find_intX_t
1851:
1852: # ac_fn_c_try_link LINENO
1853: # -----------------------
1854: # Try to link conftest.$ac_ext, and return whether this succeeded.
1855: ac_fn_c_try_link ()
1856: {
1857: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858: rm -f conftest.$ac_objext conftest$ac_exeext
1859: if { { ac_try="$ac_link"
1860: case "(($ac_try" in
1861: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862: *) ac_try_echo=$ac_try;;
1863: esac
1864: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865: $as_echo "$ac_try_echo"; } >&5
1866: (eval "$ac_link") 2>conftest.err
1867: ac_status=$?
1868: if test -s conftest.err; then
1869: grep -v '^ *+' conftest.err >conftest.er1
1870: cat conftest.er1 >&5
1871: mv -f conftest.er1 conftest.err
1872: fi
1873: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874: test $ac_status = 0; } && {
1875: test -z "$ac_c_werror_flag" ||
1876: test ! -s conftest.err
1877: } && test -s conftest$ac_exeext && {
1878: test "$cross_compiling" = yes ||
1879: $as_test_x conftest$ac_exeext
1880: }; then :
1881: ac_retval=0
1882: else
1883: $as_echo "$as_me: failed program was:" >&5
1884: sed 's/^/| /' conftest.$ac_ext >&5
1885:
1886: ac_retval=1
1887: fi
1888: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1889: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1890: # interfere with the next link command; also delete a directory that is
1891: # left behind by Apple's compiler. We do this before executing the actions.
1892: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894: as_fn_set_status $ac_retval
1895:
1896: } # ac_fn_c_try_link
1897:
1898: # ac_fn_c_check_func LINENO FUNC VAR
1899: # ----------------------------------
1900: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1901: ac_fn_c_check_func ()
1902: {
1903: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905: $as_echo_n "checking for $2... " >&6; }
1906: if eval \${$3+:} false; then :
1907: $as_echo_n "(cached) " >&6
1908: else
1909: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910: /* end confdefs.h. */
1911: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1912: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1913: #define $2 innocuous_$2
1914:
1915: /* System header to define __stub macros and hopefully few prototypes,
1916: which can conflict with char $2 (); below.
1917: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1918: <limits.h> exists even on freestanding compilers. */
1919:
1920: #ifdef __STDC__
1921: # include <limits.h>
1922: #else
1923: # include <assert.h>
1924: #endif
1925:
1926: #undef $2
1927:
1928: /* Override any GCC internal prototype to avoid an error.
1929: Use char because int might match the return type of a GCC
1930: builtin and then its argument prototype would still apply. */
1931: #ifdef __cplusplus
1932: extern "C"
1933: #endif
1934: char $2 ();
1935: /* The GNU C library defines this for functions which it implements
1936: to always fail with ENOSYS. Some functions are actually named
1937: something starting with __ and the normal name is an alias. */
1938: #if defined __stub_$2 || defined __stub___$2
1939: choke me
1940: #endif
1941:
1942: int
1943: main ()
1944: {
1945: return $2 ();
1946: ;
1947: return 0;
1948: }
1949: _ACEOF
1950: if ac_fn_c_try_link "$LINENO"; then :
1951: eval "$3=yes"
1952: else
1953: eval "$3=no"
1954: fi
1955: rm -f core conftest.err conftest.$ac_objext \
1956: conftest$ac_exeext conftest.$ac_ext
1957: fi
1958: eval ac_res=\$$3
1959: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960: $as_echo "$ac_res" >&6; }
1961: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962:
1963: } # ac_fn_c_check_func
1964:
1965: # ac_fn_cxx_try_cpp LINENO
1966: # ------------------------
1967: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1968: ac_fn_cxx_try_cpp ()
1969: {
1970: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971: if { { ac_try="$ac_cpp conftest.$ac_ext"
1972: case "(($ac_try" in
1973: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974: *) ac_try_echo=$ac_try;;
1975: esac
1976: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977: $as_echo "$ac_try_echo"; } >&5
1978: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1979: ac_status=$?
1980: if test -s conftest.err; then
1981: grep -v '^ *+' conftest.err >conftest.er1
1982: cat conftest.er1 >&5
1983: mv -f conftest.er1 conftest.err
1984: fi
1985: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986: test $ac_status = 0; } > conftest.i && {
1987: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1988: test ! -s conftest.err
1989: }; then :
1990: ac_retval=0
1991: else
1992: $as_echo "$as_me: failed program was:" >&5
1993: sed 's/^/| /' conftest.$ac_ext >&5
1994:
1995: ac_retval=1
1996: fi
1997: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998: as_fn_set_status $ac_retval
1999:
2000: } # ac_fn_cxx_try_cpp
2001:
2002: # ac_fn_cxx_try_link LINENO
2003: # -------------------------
2004: # Try to link conftest.$ac_ext, and return whether this succeeded.
2005: ac_fn_cxx_try_link ()
2006: {
2007: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008: rm -f conftest.$ac_objext conftest$ac_exeext
2009: if { { ac_try="$ac_link"
2010: case "(($ac_try" in
2011: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012: *) ac_try_echo=$ac_try;;
2013: esac
2014: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015: $as_echo "$ac_try_echo"; } >&5
2016: (eval "$ac_link") 2>conftest.err
2017: ac_status=$?
2018: if test -s conftest.err; then
2019: grep -v '^ *+' conftest.err >conftest.er1
2020: cat conftest.er1 >&5
2021: mv -f conftest.er1 conftest.err
2022: fi
2023: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024: test $ac_status = 0; } && {
2025: test -z "$ac_cxx_werror_flag" ||
2026: test ! -s conftest.err
2027: } && test -s conftest$ac_exeext && {
2028: test "$cross_compiling" = yes ||
2029: $as_test_x conftest$ac_exeext
2030: }; then :
2031: ac_retval=0
2032: else
2033: $as_echo "$as_me: failed program was:" >&5
2034: sed 's/^/| /' conftest.$ac_ext >&5
2035:
2036: ac_retval=1
2037: fi
2038: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2039: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2040: # interfere with the next link command; also delete a directory that is
2041: # left behind by Apple's compiler. We do this before executing the actions.
2042: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044: as_fn_set_status $ac_retval
2045:
2046: } # ac_fn_cxx_try_link
2047:
2048: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2049: # -------------------------------------------------------
2050: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2051: # the include files in INCLUDES and setting the cache variable VAR
2052: # accordingly.
2053: ac_fn_c_check_header_mongrel ()
2054: {
2055: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056: if eval \${$3+:} false; then :
2057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058: $as_echo_n "checking for $2... " >&6; }
2059: if eval \${$3+:} false; then :
2060: $as_echo_n "(cached) " >&6
2061: fi
2062: eval ac_res=\$$3
2063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064: $as_echo "$ac_res" >&6; }
2065: else
2066: # Is the header compilable?
2067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2068: $as_echo_n "checking $2 usability... " >&6; }
2069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070: /* end confdefs.h. */
2071: $4
2072: #include <$2>
2073: _ACEOF
2074: if ac_fn_c_try_compile "$LINENO"; then :
2075: ac_header_compiler=yes
2076: else
2077: ac_header_compiler=no
2078: fi
2079: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2081: $as_echo "$ac_header_compiler" >&6; }
2082:
2083: # Is the header present?
2084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2085: $as_echo_n "checking $2 presence... " >&6; }
2086: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087: /* end confdefs.h. */
2088: #include <$2>
2089: _ACEOF
2090: if ac_fn_c_try_cpp "$LINENO"; then :
2091: ac_header_preproc=yes
2092: else
2093: ac_header_preproc=no
2094: fi
2095: rm -f conftest.err conftest.i conftest.$ac_ext
2096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2097: $as_echo "$ac_header_preproc" >&6; }
2098:
2099: # So? What about this header?
2100: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2101: yes:no: )
2102: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2103: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2104: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2106: ;;
2107: no:yes:* )
2108: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2109: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2110: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2111: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2112: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2113: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2114: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2115: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2116: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2118: ;;
2119: esac
2120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121: $as_echo_n "checking for $2... " >&6; }
2122: if eval \${$3+:} false; then :
2123: $as_echo_n "(cached) " >&6
2124: else
2125: eval "$3=\$ac_header_compiler"
2126: fi
2127: eval ac_res=\$$3
2128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129: $as_echo "$ac_res" >&6; }
2130: fi
2131: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132:
2133: } # ac_fn_c_check_header_mongrel
2134:
2135: # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2136: # ---------------------------------------------------------
2137: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2138: # the include files in INCLUDES and setting the cache variable VAR
2139: # accordingly.
2140: ac_fn_cxx_check_header_mongrel ()
2141: {
2142: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143: if eval \${$3+:} false; then :
2144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145: $as_echo_n "checking for $2... " >&6; }
2146: if eval \${$3+:} false; then :
2147: $as_echo_n "(cached) " >&6
2148: fi
2149: eval ac_res=\$$3
2150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151: $as_echo "$ac_res" >&6; }
2152: else
2153: # Is the header compilable?
2154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2155: $as_echo_n "checking $2 usability... " >&6; }
2156: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157: /* end confdefs.h. */
2158: $4
2159: #include <$2>
2160: _ACEOF
2161: if ac_fn_cxx_try_compile "$LINENO"; then :
2162: ac_header_compiler=yes
2163: else
2164: ac_header_compiler=no
2165: fi
2166: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2168: $as_echo "$ac_header_compiler" >&6; }
2169:
2170: # Is the header present?
2171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2172: $as_echo_n "checking $2 presence... " >&6; }
2173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174: /* end confdefs.h. */
2175: #include <$2>
2176: _ACEOF
2177: if ac_fn_cxx_try_cpp "$LINENO"; then :
2178: ac_header_preproc=yes
2179: else
2180: ac_header_preproc=no
2181: fi
2182: rm -f conftest.err conftest.i conftest.$ac_ext
2183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2184: $as_echo "$ac_header_preproc" >&6; }
2185:
2186: # So? What about this header?
2187: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2188: yes:no: )
2189: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2190: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2191: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193: ;;
2194: no:yes:* )
2195: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2196: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2197: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2198: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2199: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2200: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2201: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2202: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2203: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2204: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205: ;;
2206: esac
2207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208: $as_echo_n "checking for $2... " >&6; }
2209: if eval \${$3+:} false; then :
2210: $as_echo_n "(cached) " >&6
2211: else
2212: eval "$3=\$ac_header_compiler"
2213: fi
2214: eval ac_res=\$$3
2215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216: $as_echo "$ac_res" >&6; }
2217: fi
2218: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219:
2220: } # ac_fn_cxx_check_header_mongrel
2221:
2222: # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2223: # ---------------------------------------------
2224: # Tests whether TYPE exists after having included INCLUDES, setting cache
2225: # variable VAR accordingly.
2226: ac_fn_cxx_check_type ()
2227: {
2228: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230: $as_echo_n "checking for $2... " >&6; }
2231: if eval \${$3+:} false; then :
2232: $as_echo_n "(cached) " >&6
2233: else
2234: eval "$3=no"
2235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236: /* end confdefs.h. */
2237: $4
2238: int
2239: main ()
2240: {
2241: if (sizeof ($2))
2242: return 0;
2243: ;
2244: return 0;
2245: }
2246: _ACEOF
2247: if ac_fn_cxx_try_compile "$LINENO"; then :
2248: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249: /* end confdefs.h. */
2250: $4
2251: int
2252: main ()
2253: {
2254: if (sizeof (($2)))
2255: return 0;
2256: ;
2257: return 0;
2258: }
2259: _ACEOF
2260: if ac_fn_cxx_try_compile "$LINENO"; then :
2261:
2262: else
2263: eval "$3=yes"
2264: fi
2265: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266: fi
2267: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268: fi
2269: eval ac_res=\$$3
2270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271: $as_echo "$ac_res" >&6; }
2272: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273:
2274: } # ac_fn_cxx_check_type
2275:
2276: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2277: # -------------------------------------------
2278: # Tests whether TYPE exists after having included INCLUDES, setting cache
2279: # variable VAR accordingly.
2280: ac_fn_c_check_type ()
2281: {
2282: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2284: $as_echo_n "checking for $2... " >&6; }
2285: if eval \${$3+:} false; then :
2286: $as_echo_n "(cached) " >&6
2287: else
2288: eval "$3=no"
2289: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290: /* end confdefs.h. */
2291: $4
2292: int
2293: main ()
2294: {
2295: if (sizeof ($2))
2296: return 0;
2297: ;
2298: return 0;
2299: }
2300: _ACEOF
2301: if ac_fn_c_try_compile "$LINENO"; then :
2302: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303: /* end confdefs.h. */
2304: $4
2305: int
2306: main ()
2307: {
2308: if (sizeof (($2)))
2309: return 0;
2310: ;
2311: return 0;
2312: }
2313: _ACEOF
2314: if ac_fn_c_try_compile "$LINENO"; then :
2315:
2316: else
2317: eval "$3=yes"
2318: fi
2319: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320: fi
2321: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322: fi
2323: eval ac_res=\$$3
2324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325: $as_echo "$ac_res" >&6; }
2326: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327:
2328: } # ac_fn_c_check_type
2329: cat >config.log <<_ACEOF
2330: This file contains any messages produced by compilers while
2331: running configure, to aid debugging if configure makes a mistake.
2332:
1.1.1.3 ! misho 2333: It was created by PCRE $as_me 8.31, which was
1.1 misho 2334: generated by GNU Autoconf 2.68. Invocation command line was
2335:
2336: $ $0 $@
2337:
2338: _ACEOF
2339: exec 5>>config.log
2340: {
2341: cat <<_ASUNAME
2342: ## --------- ##
2343: ## Platform. ##
2344: ## --------- ##
2345:
2346: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2347: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2348: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2349: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2350: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2351:
2352: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2353: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2354:
2355: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2356: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2357: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2358: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2359: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2360: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2361: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2362:
2363: _ASUNAME
2364:
2365: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366: for as_dir in $PATH
2367: do
2368: IFS=$as_save_IFS
2369: test -z "$as_dir" && as_dir=.
2370: $as_echo "PATH: $as_dir"
2371: done
2372: IFS=$as_save_IFS
2373:
2374: } >&5
2375:
2376: cat >&5 <<_ACEOF
2377:
2378:
2379: ## ----------- ##
2380: ## Core tests. ##
2381: ## ----------- ##
2382:
2383: _ACEOF
2384:
2385:
2386: # Keep a trace of the command line.
2387: # Strip out --no-create and --no-recursion so they do not pile up.
2388: # Strip out --silent because we don't want to record it for future runs.
2389: # Also quote any args containing shell meta-characters.
2390: # Make two passes to allow for proper duplicate-argument suppression.
2391: ac_configure_args=
2392: ac_configure_args0=
2393: ac_configure_args1=
2394: ac_must_keep_next=false
2395: for ac_pass in 1 2
2396: do
2397: for ac_arg
2398: do
2399: case $ac_arg in
2400: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2401: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2402: | -silent | --silent | --silen | --sile | --sil)
2403: continue ;;
2404: *\'*)
2405: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2406: esac
2407: case $ac_pass in
2408: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2409: 2)
2410: as_fn_append ac_configure_args1 " '$ac_arg'"
2411: if test $ac_must_keep_next = true; then
2412: ac_must_keep_next=false # Got value, back to normal.
2413: else
2414: case $ac_arg in
2415: *=* | --config-cache | -C | -disable-* | --disable-* \
2416: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2417: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2418: | -with-* | --with-* | -without-* | --without-* | --x)
2419: case "$ac_configure_args0 " in
2420: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2421: esac
2422: ;;
2423: -* ) ac_must_keep_next=true ;;
2424: esac
2425: fi
2426: as_fn_append ac_configure_args " '$ac_arg'"
2427: ;;
2428: esac
2429: done
2430: done
2431: { ac_configure_args0=; unset ac_configure_args0;}
2432: { ac_configure_args1=; unset ac_configure_args1;}
2433:
2434: # When interrupted or exit'd, cleanup temporary files, and complete
2435: # config.log. We remove comments because anyway the quotes in there
2436: # would cause problems or look ugly.
2437: # WARNING: Use '\'' to represent an apostrophe within the trap.
2438: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2439: trap 'exit_status=$?
2440: # Save into config.log some information that might help in debugging.
2441: {
2442: echo
2443:
2444: $as_echo "## ---------------- ##
2445: ## Cache variables. ##
2446: ## ---------------- ##"
2447: echo
2448: # The following way of writing the cache mishandles newlines in values,
2449: (
2450: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2451: eval ac_val=\$$ac_var
2452: case $ac_val in #(
2453: *${as_nl}*)
2454: case $ac_var in #(
2455: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2456: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2457: esac
2458: case $ac_var in #(
2459: _ | IFS | as_nl) ;; #(
2460: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2461: *) { eval $ac_var=; unset $ac_var;} ;;
2462: esac ;;
2463: esac
2464: done
2465: (set) 2>&1 |
2466: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2467: *${as_nl}ac_space=\ *)
2468: sed -n \
2469: "s/'\''/'\''\\\\'\'''\''/g;
2470: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2471: ;; #(
2472: *)
2473: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2474: ;;
2475: esac |
2476: sort
2477: )
2478: echo
2479:
2480: $as_echo "## ----------------- ##
2481: ## Output variables. ##
2482: ## ----------------- ##"
2483: echo
2484: for ac_var in $ac_subst_vars
2485: do
2486: eval ac_val=\$$ac_var
2487: case $ac_val in
2488: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489: esac
2490: $as_echo "$ac_var='\''$ac_val'\''"
2491: done | sort
2492: echo
2493:
2494: if test -n "$ac_subst_files"; then
2495: $as_echo "## ------------------- ##
2496: ## File substitutions. ##
2497: ## ------------------- ##"
2498: echo
2499: for ac_var in $ac_subst_files
2500: do
2501: eval ac_val=\$$ac_var
2502: case $ac_val in
2503: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504: esac
2505: $as_echo "$ac_var='\''$ac_val'\''"
2506: done | sort
2507: echo
2508: fi
2509:
2510: if test -s confdefs.h; then
2511: $as_echo "## ----------- ##
2512: ## confdefs.h. ##
2513: ## ----------- ##"
2514: echo
2515: cat confdefs.h
2516: echo
2517: fi
2518: test "$ac_signal" != 0 &&
2519: $as_echo "$as_me: caught signal $ac_signal"
2520: $as_echo "$as_me: exit $exit_status"
2521: } >&5
2522: rm -f core *.core core.conftest.* &&
2523: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2524: exit $exit_status
2525: ' 0
2526: for ac_signal in 1 2 13 15; do
2527: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2528: done
2529: ac_signal=0
2530:
2531: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2532: rm -f -r conftest* confdefs.h
2533:
2534: $as_echo "/* confdefs.h */" > confdefs.h
2535:
2536: # Predefined preprocessor variables.
2537:
2538: cat >>confdefs.h <<_ACEOF
2539: #define PACKAGE_NAME "$PACKAGE_NAME"
2540: _ACEOF
2541:
2542: cat >>confdefs.h <<_ACEOF
2543: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2544: _ACEOF
2545:
2546: cat >>confdefs.h <<_ACEOF
2547: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2548: _ACEOF
2549:
2550: cat >>confdefs.h <<_ACEOF
2551: #define PACKAGE_STRING "$PACKAGE_STRING"
2552: _ACEOF
2553:
2554: cat >>confdefs.h <<_ACEOF
2555: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2556: _ACEOF
2557:
2558: cat >>confdefs.h <<_ACEOF
2559: #define PACKAGE_URL "$PACKAGE_URL"
2560: _ACEOF
2561:
2562:
2563: # Let the site file select an alternate cache file if it wants to.
2564: # Prefer an explicitly selected file to automatically selected ones.
2565: ac_site_file1=NONE
2566: ac_site_file2=NONE
2567: if test -n "$CONFIG_SITE"; then
2568: # We do not want a PATH search for config.site.
2569: case $CONFIG_SITE in #((
2570: -*) ac_site_file1=./$CONFIG_SITE;;
2571: */*) ac_site_file1=$CONFIG_SITE;;
2572: *) ac_site_file1=./$CONFIG_SITE;;
2573: esac
2574: elif test "x$prefix" != xNONE; then
2575: ac_site_file1=$prefix/share/config.site
2576: ac_site_file2=$prefix/etc/config.site
2577: else
2578: ac_site_file1=$ac_default_prefix/share/config.site
2579: ac_site_file2=$ac_default_prefix/etc/config.site
2580: fi
2581: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2582: do
2583: test "x$ac_site_file" = xNONE && continue
2584: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2585: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2586: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2587: sed 's/^/| /' "$ac_site_file" >&5
2588: . "$ac_site_file" \
2589: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2590: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591: as_fn_error $? "failed to load site script $ac_site_file
2592: See \`config.log' for more details" "$LINENO" 5; }
2593: fi
2594: done
2595:
2596: if test -r "$cache_file"; then
2597: # Some versions of bash will fail to source /dev/null (special files
2598: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2599: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2600: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2601: $as_echo "$as_me: loading cache $cache_file" >&6;}
2602: case $cache_file in
2603: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2604: *) . "./$cache_file";;
2605: esac
2606: fi
2607: else
2608: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2609: $as_echo "$as_me: creating cache $cache_file" >&6;}
2610: >$cache_file
2611: fi
2612:
2613: # Check that the precious variables saved in the cache have kept the same
2614: # value.
2615: ac_cache_corrupted=false
2616: for ac_var in $ac_precious_vars; do
2617: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2618: eval ac_new_set=\$ac_env_${ac_var}_set
2619: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2620: eval ac_new_val=\$ac_env_${ac_var}_value
2621: case $ac_old_set,$ac_new_set in
2622: set,)
2623: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2624: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2625: ac_cache_corrupted=: ;;
2626: ,set)
2627: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2628: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2629: ac_cache_corrupted=: ;;
2630: ,);;
2631: *)
2632: if test "x$ac_old_val" != "x$ac_new_val"; then
2633: # differences in whitespace do not lead to failure.
2634: ac_old_val_w=`echo x $ac_old_val`
2635: ac_new_val_w=`echo x $ac_new_val`
2636: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2637: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2638: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2639: ac_cache_corrupted=:
2640: else
2641: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2642: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2643: eval $ac_var=\$ac_old_val
2644: fi
2645: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2646: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2647: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2648: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2649: fi;;
2650: esac
2651: # Pass precious variables to config.status.
2652: if test "$ac_new_set" = set; then
2653: case $ac_new_val in
2654: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2655: *) ac_arg=$ac_var=$ac_new_val ;;
2656: esac
2657: case " $ac_configure_args " in
2658: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2659: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2660: esac
2661: fi
2662: done
2663: if $ac_cache_corrupted; then
2664: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2667: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2668: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2669: fi
2670: ## -------------------- ##
2671: ## Main body of script. ##
2672: ## -------------------- ##
2673:
2674: ac_ext=c
2675: ac_cpp='$CPP $CPPFLAGS'
2676: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679:
2680:
2681:
2682: am__api_version='1.11'
2683:
2684: ac_aux_dir=
2685: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2686: if test -f "$ac_dir/install-sh"; then
2687: ac_aux_dir=$ac_dir
2688: ac_install_sh="$ac_aux_dir/install-sh -c"
2689: break
2690: elif test -f "$ac_dir/install.sh"; then
2691: ac_aux_dir=$ac_dir
2692: ac_install_sh="$ac_aux_dir/install.sh -c"
2693: break
2694: elif test -f "$ac_dir/shtool"; then
2695: ac_aux_dir=$ac_dir
2696: ac_install_sh="$ac_aux_dir/shtool install -c"
2697: break
2698: fi
2699: done
2700: if test -z "$ac_aux_dir"; then
2701: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2702: fi
2703:
2704: # These three variables are undocumented and unsupported,
2705: # and are intended to be withdrawn in a future Autoconf release.
2706: # They can cause serious problems if a builder's source tree is in a directory
2707: # whose full name contains unusual characters.
2708: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2709: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2710: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2711:
2712:
2713: # Find a good install program. We prefer a C program (faster),
2714: # so one script is as good as another. But avoid the broken or
2715: # incompatible versions:
2716: # SysV /etc/install, /usr/sbin/install
2717: # SunOS /usr/etc/install
2718: # IRIX /sbin/install
2719: # AIX /bin/install
2720: # AmigaOS /C/install, which installs bootblocks on floppy discs
2721: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2722: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2723: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2724: # OS/2's system install, which has a completely different semantic
2725: # ./install, which can be erroneously created by make from ./install.sh.
2726: # Reject install programs that cannot install multiple files.
2727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2728: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2729: if test -z "$INSTALL"; then
2730: if ${ac_cv_path_install+:} false; then :
2731: $as_echo_n "(cached) " >&6
2732: else
2733: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734: for as_dir in $PATH
2735: do
2736: IFS=$as_save_IFS
2737: test -z "$as_dir" && as_dir=.
2738: # Account for people who put trailing slashes in PATH elements.
2739: case $as_dir/ in #((
2740: ./ | .// | /[cC]/* | \
2741: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2742: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2743: /usr/ucb/* ) ;;
2744: *)
2745: # OSF1 and SCO ODT 3.0 have their own names for install.
2746: # Don't use installbsd from OSF since it installs stuff as root
2747: # by default.
2748: for ac_prog in ginstall scoinst install; do
2749: for ac_exec_ext in '' $ac_executable_extensions; do
2750: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2751: if test $ac_prog = install &&
2752: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2753: # AIX install. It has an incompatible calling convention.
2754: :
2755: elif test $ac_prog = install &&
2756: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2757: # program-specific install script used by HP pwplus--don't use.
2758: :
2759: else
2760: rm -rf conftest.one conftest.two conftest.dir
2761: echo one > conftest.one
2762: echo two > conftest.two
2763: mkdir conftest.dir
2764: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2765: test -s conftest.one && test -s conftest.two &&
2766: test -s conftest.dir/conftest.one &&
2767: test -s conftest.dir/conftest.two
2768: then
2769: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2770: break 3
2771: fi
2772: fi
2773: fi
2774: done
2775: done
2776: ;;
2777: esac
2778:
2779: done
2780: IFS=$as_save_IFS
2781:
2782: rm -rf conftest.one conftest.two conftest.dir
2783:
2784: fi
2785: if test "${ac_cv_path_install+set}" = set; then
2786: INSTALL=$ac_cv_path_install
2787: else
2788: # As a last resort, use the slow shell script. Don't cache a
2789: # value for INSTALL within a source directory, because that will
2790: # break other packages using the cache if that directory is
2791: # removed, or if the value is a relative name.
2792: INSTALL=$ac_install_sh
2793: fi
2794: fi
2795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2796: $as_echo "$INSTALL" >&6; }
2797:
2798: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2799: # It thinks the first close brace ends the variable substitution.
2800: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2801:
2802: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2803:
2804: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2805:
2806: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2807: $as_echo_n "checking whether build environment is sane... " >&6; }
2808: # Just in case
2809: sleep 1
2810: echo timestamp > conftest.file
2811: # Reject unsafe characters in $srcdir or the absolute working directory
2812: # name. Accept space and tab only in the latter.
2813: am_lf='
2814: '
2815: case `pwd` in
2816: *[\\\"\#\$\&\'\`$am_lf]*)
2817: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2818: esac
2819: case $srcdir in
2820: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2821: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2822: esac
2823:
2824: # Do `set' in a subshell so we don't clobber the current shell's
2825: # arguments. Must try -L first in case configure is actually a
2826: # symlink; some systems play weird games with the mod time of symlinks
2827: # (eg FreeBSD returns the mod time of the symlink's containing
2828: # directory).
2829: if (
2830: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2831: if test "$*" = "X"; then
2832: # -L didn't work.
2833: set X `ls -t "$srcdir/configure" conftest.file`
2834: fi
2835: rm -f conftest.file
2836: if test "$*" != "X $srcdir/configure conftest.file" \
2837: && test "$*" != "X conftest.file $srcdir/configure"; then
2838:
2839: # If neither matched, then we have a broken ls. This can happen
2840: # if, for instance, CONFIG_SHELL is bash and it inherits a
2841: # broken ls alias from the environment. This has actually
2842: # happened. Such a system could not be considered "sane".
2843: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2844: alias in your environment" "$LINENO" 5
2845: fi
2846:
2847: test "$2" = conftest.file
2848: )
2849: then
2850: # Ok.
2851: :
2852: else
2853: as_fn_error $? "newly created file is older than distributed files!
2854: Check your system clock" "$LINENO" 5
2855: fi
2856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857: $as_echo "yes" >&6; }
2858: test "$program_prefix" != NONE &&
2859: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2860: # Use a double $ so make ignores it.
2861: test "$program_suffix" != NONE &&
2862: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2863: # Double any \ or $.
2864: # By default was `s,x,x', remove it if useless.
2865: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2866: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2867:
2868: # expand $ac_aux_dir to an absolute path
2869: am_aux_dir=`cd $ac_aux_dir && pwd`
2870:
2871: if test x"${MISSING+set}" != xset; then
2872: case $am_aux_dir in
2873: *\ * | *\ *)
2874: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2875: *)
2876: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2877: esac
2878: fi
2879: # Use eval to expand $SHELL
2880: if eval "$MISSING --run true"; then
2881: am_missing_run="$MISSING --run "
2882: else
2883: am_missing_run=
2884: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2885: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2886: fi
2887:
2888: if test x"${install_sh}" != xset; then
2889: case $am_aux_dir in
2890: *\ * | *\ *)
2891: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2892: *)
2893: install_sh="\${SHELL} $am_aux_dir/install-sh"
2894: esac
2895: fi
2896:
2897: # Installed binaries are usually stripped using `strip' when the user
2898: # run `make install-strip'. However `strip' might not be the right
2899: # tool to use in cross-compilation environments, therefore Automake
2900: # will honor the `STRIP' environment variable to overrule this program.
2901: if test "$cross_compiling" != no; then
2902: if test -n "$ac_tool_prefix"; then
2903: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2904: set dummy ${ac_tool_prefix}strip; ac_word=$2
2905: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906: $as_echo_n "checking for $ac_word... " >&6; }
2907: if ${ac_cv_prog_STRIP+:} false; then :
2908: $as_echo_n "(cached) " >&6
2909: else
2910: if test -n "$STRIP"; then
2911: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2912: else
2913: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914: for as_dir in $PATH
2915: do
2916: IFS=$as_save_IFS
2917: test -z "$as_dir" && as_dir=.
2918: for ac_exec_ext in '' $ac_executable_extensions; do
2919: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2921: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922: break 2
2923: fi
2924: done
2925: done
2926: IFS=$as_save_IFS
2927:
2928: fi
2929: fi
2930: STRIP=$ac_cv_prog_STRIP
2931: if test -n "$STRIP"; then
2932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2933: $as_echo "$STRIP" >&6; }
2934: else
2935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936: $as_echo "no" >&6; }
2937: fi
2938:
2939:
2940: fi
2941: if test -z "$ac_cv_prog_STRIP"; then
2942: ac_ct_STRIP=$STRIP
2943: # Extract the first word of "strip", so it can be a program name with args.
2944: set dummy strip; ac_word=$2
2945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946: $as_echo_n "checking for $ac_word... " >&6; }
2947: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2948: $as_echo_n "(cached) " >&6
2949: else
2950: if test -n "$ac_ct_STRIP"; then
2951: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2952: else
2953: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954: for as_dir in $PATH
2955: do
2956: IFS=$as_save_IFS
2957: test -z "$as_dir" && as_dir=.
2958: for ac_exec_ext in '' $ac_executable_extensions; do
2959: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960: ac_cv_prog_ac_ct_STRIP="strip"
2961: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962: break 2
2963: fi
2964: done
2965: done
2966: IFS=$as_save_IFS
2967:
2968: fi
2969: fi
2970: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2971: if test -n "$ac_ct_STRIP"; then
2972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2973: $as_echo "$ac_ct_STRIP" >&6; }
2974: else
2975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976: $as_echo "no" >&6; }
2977: fi
2978:
2979: if test "x$ac_ct_STRIP" = x; then
2980: STRIP=":"
2981: else
2982: case $cross_compiling:$ac_tool_warned in
2983: yes:)
2984: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986: ac_tool_warned=yes ;;
2987: esac
2988: STRIP=$ac_ct_STRIP
2989: fi
2990: else
2991: STRIP="$ac_cv_prog_STRIP"
2992: fi
2993:
2994: fi
2995: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2996:
2997: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2998: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2999: if test -z "$MKDIR_P"; then
3000: if ${ac_cv_path_mkdir+:} false; then :
3001: $as_echo_n "(cached) " >&6
3002: else
3003: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3005: do
3006: IFS=$as_save_IFS
3007: test -z "$as_dir" && as_dir=.
3008: for ac_prog in mkdir gmkdir; do
3009: for ac_exec_ext in '' $ac_executable_extensions; do
3010: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3011: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3012: 'mkdir (GNU coreutils) '* | \
3013: 'mkdir (coreutils) '* | \
3014: 'mkdir (fileutils) '4.1*)
3015: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3016: break 3;;
3017: esac
3018: done
3019: done
3020: done
3021: IFS=$as_save_IFS
3022:
3023: fi
3024:
3025: test -d ./--version && rmdir ./--version
3026: if test "${ac_cv_path_mkdir+set}" = set; then
3027: MKDIR_P="$ac_cv_path_mkdir -p"
3028: else
3029: # As a last resort, use the slow shell script. Don't cache a
3030: # value for MKDIR_P within a source directory, because that will
3031: # break other packages using the cache if that directory is
3032: # removed, or if the value is a relative name.
3033: MKDIR_P="$ac_install_sh -d"
3034: fi
3035: fi
3036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3037: $as_echo "$MKDIR_P" >&6; }
3038:
3039: mkdir_p="$MKDIR_P"
3040: case $mkdir_p in
3041: [\\/$]* | ?:[\\/]*) ;;
3042: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3043: esac
3044:
3045: for ac_prog in gawk mawk nawk awk
3046: do
3047: # Extract the first word of "$ac_prog", so it can be a program name with args.
3048: set dummy $ac_prog; ac_word=$2
3049: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050: $as_echo_n "checking for $ac_word... " >&6; }
3051: if ${ac_cv_prog_AWK+:} false; then :
3052: $as_echo_n "(cached) " >&6
3053: else
3054: if test -n "$AWK"; then
3055: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3056: else
3057: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058: for as_dir in $PATH
3059: do
3060: IFS=$as_save_IFS
3061: test -z "$as_dir" && as_dir=.
3062: for ac_exec_ext in '' $ac_executable_extensions; do
3063: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064: ac_cv_prog_AWK="$ac_prog"
3065: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066: break 2
3067: fi
3068: done
3069: done
3070: IFS=$as_save_IFS
3071:
3072: fi
3073: fi
3074: AWK=$ac_cv_prog_AWK
3075: if test -n "$AWK"; then
3076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3077: $as_echo "$AWK" >&6; }
3078: else
3079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080: $as_echo "no" >&6; }
3081: fi
3082:
3083:
3084: test -n "$AWK" && break
3085: done
3086:
3087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3088: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3089: set x ${MAKE-make}
3090: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3091: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3092: $as_echo_n "(cached) " >&6
3093: else
3094: cat >conftest.make <<\_ACEOF
3095: SHELL = /bin/sh
3096: all:
3097: @echo '@@@%%%=$(MAKE)=@@@%%%'
3098: _ACEOF
3099: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3100: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3101: *@@@%%%=?*=@@@%%%*)
3102: eval ac_cv_prog_make_${ac_make}_set=yes;;
3103: *)
3104: eval ac_cv_prog_make_${ac_make}_set=no;;
3105: esac
3106: rm -f conftest.make
3107: fi
3108: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110: $as_echo "yes" >&6; }
3111: SET_MAKE=
3112: else
3113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114: $as_echo "no" >&6; }
3115: SET_MAKE="MAKE=${MAKE-make}"
3116: fi
3117:
3118: rm -rf .tst 2>/dev/null
3119: mkdir .tst 2>/dev/null
3120: if test -d .tst; then
3121: am__leading_dot=.
3122: else
3123: am__leading_dot=_
3124: fi
3125: rmdir .tst 2>/dev/null
3126:
3127: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3128: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3129: # is not polluted with repeated "-I."
3130: am__isrc=' -I$(srcdir)'
3131: # test to see if srcdir already configured
3132: if test -f $srcdir/config.status; then
3133: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3134: fi
3135: fi
3136:
3137: # test whether we have cygpath
3138: if test -z "$CYGPATH_W"; then
3139: if (cygpath --version) >/dev/null 2>/dev/null; then
3140: CYGPATH_W='cygpath -w'
3141: else
3142: CYGPATH_W=echo
3143: fi
3144: fi
3145:
3146:
3147: # Define the identity of the package.
3148: PACKAGE='pcre'
1.1.1.3 ! misho 3149: VERSION='8.31'
1.1 misho 3150:
3151:
3152: cat >>confdefs.h <<_ACEOF
3153: #define PACKAGE "$PACKAGE"
3154: _ACEOF
3155:
3156:
3157: cat >>confdefs.h <<_ACEOF
3158: #define VERSION "$VERSION"
3159: _ACEOF
3160:
3161: # Some tools Automake needs.
3162:
3163: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3164:
3165:
3166: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3167:
3168:
3169: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3170:
3171:
3172: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3173:
3174:
3175: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3176:
3177: # We need awk for the "check" target. The system "awk" is bad on
3178: # some platforms.
3179: # Always define AMTAR for backward compatibility.
3180:
3181: AMTAR=${AMTAR-"${am_missing_run}tar"}
3182:
3183: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3184:
3185:
3186:
3187:
3188:
1.1.1.2 misho 3189: # Check whether --enable-silent-rules was given.
3190: if test "${enable_silent_rules+set}" = set; then :
3191: enableval=$enable_silent_rules;
3192: fi
3193:
3194: case $enable_silent_rules in
3195: yes) AM_DEFAULT_VERBOSITY=0;;
3196: no) AM_DEFAULT_VERBOSITY=1;;
3197: *) AM_DEFAULT_VERBOSITY=0;;
3198: esac
3199: AM_BACKSLASH='\'
3200:
1.1 misho 3201: ac_config_headers="$ac_config_headers config.h"
3202:
3203:
3204: # This was added at the suggestion of libtoolize (03-Jan-10)
3205:
3206:
3207: # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
3208: # "-g" for any other compiler. There doesn't seem to be a standard way of
3209: # getting rid of the -g (which I don't think is needed for a production
3210: # library). This fudge seems to achieve the necessary. First, we remember the
3211: # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
3212: # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
3213: # set, they will be set to Autoconf's defaults. Afterwards, if the original
3214: # values were not set, remove the -g from the Autoconf defaults.
3215: # (PH 02-May-07)
3216:
3217: remember_set_CFLAGS="$CFLAGS"
3218: remember_set_CXXFLAGS="$CXXFLAGS"
3219:
3220: ac_ext=c
3221: ac_cpp='$CPP $CPPFLAGS'
3222: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225: if test -n "$ac_tool_prefix"; then
3226: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229: $as_echo_n "checking for $ac_word... " >&6; }
3230: if ${ac_cv_prog_CC+:} false; then :
3231: $as_echo_n "(cached) " >&6
3232: else
3233: if test -n "$CC"; then
3234: ac_cv_prog_CC="$CC" # Let the user override the test.
3235: else
3236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237: for as_dir in $PATH
3238: do
3239: IFS=$as_save_IFS
3240: test -z "$as_dir" && as_dir=.
3241: for ac_exec_ext in '' $ac_executable_extensions; do
3242: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3244: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245: break 2
3246: fi
3247: done
3248: done
3249: IFS=$as_save_IFS
3250:
3251: fi
3252: fi
3253: CC=$ac_cv_prog_CC
3254: if test -n "$CC"; then
3255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256: $as_echo "$CC" >&6; }
3257: else
3258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259: $as_echo "no" >&6; }
3260: fi
3261:
3262:
3263: fi
3264: if test -z "$ac_cv_prog_CC"; then
3265: ac_ct_CC=$CC
3266: # Extract the first word of "gcc", so it can be a program name with args.
3267: set dummy gcc; ac_word=$2
3268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269: $as_echo_n "checking for $ac_word... " >&6; }
3270: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3271: $as_echo_n "(cached) " >&6
3272: else
3273: if test -n "$ac_ct_CC"; then
3274: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275: else
3276: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277: for as_dir in $PATH
3278: do
3279: IFS=$as_save_IFS
3280: test -z "$as_dir" && as_dir=.
3281: for ac_exec_ext in '' $ac_executable_extensions; do
3282: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283: ac_cv_prog_ac_ct_CC="gcc"
3284: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285: break 2
3286: fi
3287: done
3288: done
3289: IFS=$as_save_IFS
3290:
3291: fi
3292: fi
3293: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294: if test -n "$ac_ct_CC"; then
3295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296: $as_echo "$ac_ct_CC" >&6; }
3297: else
3298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299: $as_echo "no" >&6; }
3300: fi
3301:
3302: if test "x$ac_ct_CC" = x; then
3303: CC=""
3304: else
3305: case $cross_compiling:$ac_tool_warned in
3306: yes:)
3307: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309: ac_tool_warned=yes ;;
3310: esac
3311: CC=$ac_ct_CC
3312: fi
3313: else
3314: CC="$ac_cv_prog_CC"
3315: fi
3316:
3317: if test -z "$CC"; then
3318: if test -n "$ac_tool_prefix"; then
3319: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320: set dummy ${ac_tool_prefix}cc; ac_word=$2
3321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322: $as_echo_n "checking for $ac_word... " >&6; }
3323: if ${ac_cv_prog_CC+:} false; then :
3324: $as_echo_n "(cached) " >&6
3325: else
3326: if test -n "$CC"; then
3327: ac_cv_prog_CC="$CC" # Let the user override the test.
3328: else
3329: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330: for as_dir in $PATH
3331: do
3332: IFS=$as_save_IFS
3333: test -z "$as_dir" && as_dir=.
3334: for ac_exec_ext in '' $ac_executable_extensions; do
3335: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336: ac_cv_prog_CC="${ac_tool_prefix}cc"
3337: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338: break 2
3339: fi
3340: done
3341: done
3342: IFS=$as_save_IFS
3343:
3344: fi
3345: fi
3346: CC=$ac_cv_prog_CC
3347: if test -n "$CC"; then
3348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349: $as_echo "$CC" >&6; }
3350: else
3351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352: $as_echo "no" >&6; }
3353: fi
3354:
3355:
3356: fi
3357: fi
3358: if test -z "$CC"; then
3359: # Extract the first word of "cc", so it can be a program name with args.
3360: set dummy cc; ac_word=$2
3361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362: $as_echo_n "checking for $ac_word... " >&6; }
3363: if ${ac_cv_prog_CC+:} false; then :
3364: $as_echo_n "(cached) " >&6
3365: else
3366: if test -n "$CC"; then
3367: ac_cv_prog_CC="$CC" # Let the user override the test.
3368: else
3369: ac_prog_rejected=no
3370: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371: for as_dir in $PATH
3372: do
3373: IFS=$as_save_IFS
3374: test -z "$as_dir" && as_dir=.
3375: for ac_exec_ext in '' $ac_executable_extensions; do
3376: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378: ac_prog_rejected=yes
3379: continue
3380: fi
3381: ac_cv_prog_CC="cc"
3382: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383: break 2
3384: fi
3385: done
3386: done
3387: IFS=$as_save_IFS
3388:
3389: if test $ac_prog_rejected = yes; then
3390: # We found a bogon in the path, so make sure we never use it.
3391: set dummy $ac_cv_prog_CC
3392: shift
3393: if test $# != 0; then
3394: # We chose a different compiler from the bogus one.
3395: # However, it has the same basename, so the bogon will be chosen
3396: # first if we set CC to just the basename; use the full file name.
3397: shift
3398: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3399: fi
3400: fi
3401: fi
3402: fi
3403: CC=$ac_cv_prog_CC
3404: if test -n "$CC"; then
3405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406: $as_echo "$CC" >&6; }
3407: else
3408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409: $as_echo "no" >&6; }
3410: fi
3411:
3412:
3413: fi
3414: if test -z "$CC"; then
3415: if test -n "$ac_tool_prefix"; then
3416: for ac_prog in cl.exe
3417: do
3418: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421: $as_echo_n "checking for $ac_word... " >&6; }
3422: if ${ac_cv_prog_CC+:} false; then :
3423: $as_echo_n "(cached) " >&6
3424: else
3425: if test -n "$CC"; then
3426: ac_cv_prog_CC="$CC" # Let the user override the test.
3427: else
3428: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429: for as_dir in $PATH
3430: do
3431: IFS=$as_save_IFS
3432: test -z "$as_dir" && as_dir=.
3433: for ac_exec_ext in '' $ac_executable_extensions; do
3434: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3436: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437: break 2
3438: fi
3439: done
3440: done
3441: IFS=$as_save_IFS
3442:
3443: fi
3444: fi
3445: CC=$ac_cv_prog_CC
3446: if test -n "$CC"; then
3447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448: $as_echo "$CC" >&6; }
3449: else
3450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451: $as_echo "no" >&6; }
3452: fi
3453:
3454:
3455: test -n "$CC" && break
3456: done
3457: fi
3458: if test -z "$CC"; then
3459: ac_ct_CC=$CC
3460: for ac_prog in cl.exe
3461: do
3462: # Extract the first word of "$ac_prog", so it can be a program name with args.
3463: set dummy $ac_prog; ac_word=$2
3464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465: $as_echo_n "checking for $ac_word... " >&6; }
3466: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3467: $as_echo_n "(cached) " >&6
3468: else
3469: if test -n "$ac_ct_CC"; then
3470: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471: else
3472: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473: for as_dir in $PATH
3474: do
3475: IFS=$as_save_IFS
3476: test -z "$as_dir" && as_dir=.
3477: for ac_exec_ext in '' $ac_executable_extensions; do
3478: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479: ac_cv_prog_ac_ct_CC="$ac_prog"
3480: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481: break 2
3482: fi
3483: done
3484: done
3485: IFS=$as_save_IFS
3486:
3487: fi
3488: fi
3489: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490: if test -n "$ac_ct_CC"; then
3491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492: $as_echo "$ac_ct_CC" >&6; }
3493: else
3494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495: $as_echo "no" >&6; }
3496: fi
3497:
3498:
3499: test -n "$ac_ct_CC" && break
3500: done
3501:
3502: if test "x$ac_ct_CC" = x; then
3503: CC=""
3504: else
3505: case $cross_compiling:$ac_tool_warned in
3506: yes:)
3507: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509: ac_tool_warned=yes ;;
3510: esac
3511: CC=$ac_ct_CC
3512: fi
3513: fi
3514:
3515: fi
3516:
3517:
3518: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520: as_fn_error $? "no acceptable C compiler found in \$PATH
3521: See \`config.log' for more details" "$LINENO" 5; }
3522:
3523: # Provide some information about the compiler.
3524: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3525: set X $ac_compile
3526: ac_compiler=$2
3527: for ac_option in --version -v -V -qversion; do
3528: { { ac_try="$ac_compiler $ac_option >&5"
3529: case "(($ac_try" in
3530: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531: *) ac_try_echo=$ac_try;;
3532: esac
3533: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534: $as_echo "$ac_try_echo"; } >&5
3535: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3536: ac_status=$?
3537: if test -s conftest.err; then
3538: sed '10a\
3539: ... rest of stderr output deleted ...
3540: 10q' conftest.err >conftest.er1
3541: cat conftest.er1 >&5
3542: fi
3543: rm -f conftest.er1 conftest.err
3544: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545: test $ac_status = 0; }
3546: done
3547:
3548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549: /* end confdefs.h. */
3550:
3551: int
3552: main ()
3553: {
3554:
3555: ;
3556: return 0;
3557: }
3558: _ACEOF
3559: ac_clean_files_save=$ac_clean_files
3560: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3561: # Try to create an executable without -o first, disregard a.out.
3562: # It will help us diagnose broken compilers, and finding out an intuition
3563: # of exeext.
3564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3565: $as_echo_n "checking whether the C compiler works... " >&6; }
3566: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3567:
3568: # The possible output files:
3569: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3570:
3571: ac_rmfiles=
3572: for ac_file in $ac_files
3573: do
3574: case $ac_file in
3575: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3577: esac
3578: done
3579: rm -f $ac_rmfiles
3580:
3581: if { { ac_try="$ac_link_default"
3582: case "(($ac_try" in
3583: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584: *) ac_try_echo=$ac_try;;
3585: esac
3586: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587: $as_echo "$ac_try_echo"; } >&5
3588: (eval "$ac_link_default") 2>&5
3589: ac_status=$?
3590: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591: test $ac_status = 0; }; then :
3592: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3595: # so that the user can short-circuit this test for compilers unknown to
3596: # Autoconf.
3597: for ac_file in $ac_files ''
3598: do
3599: test -f "$ac_file" || continue
3600: case $ac_file in
3601: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3602: ;;
3603: [ab].out )
3604: # We found the default executable, but exeext='' is most
3605: # certainly right.
3606: break;;
3607: *.* )
3608: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3609: then :; else
3610: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611: fi
3612: # We set ac_cv_exeext here because the later test for it is not
3613: # safe: cross compilers may not add the suffix if given an `-o'
3614: # argument, so we may need to know it at that point already.
3615: # Even if this section looks crufty: it has the advantage of
3616: # actually working.
3617: break;;
3618: * )
3619: break;;
3620: esac
3621: done
3622: test "$ac_cv_exeext" = no && ac_cv_exeext=
3623:
3624: else
3625: ac_file=''
3626: fi
3627: if test -z "$ac_file"; then :
3628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629: $as_echo "no" >&6; }
3630: $as_echo "$as_me: failed program was:" >&5
3631: sed 's/^/| /' conftest.$ac_ext >&5
3632:
3633: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635: as_fn_error 77 "C compiler cannot create executables
3636: See \`config.log' for more details" "$LINENO" 5; }
3637: else
3638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639: $as_echo "yes" >&6; }
3640: fi
3641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3642: $as_echo_n "checking for C compiler default output file name... " >&6; }
3643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3644: $as_echo "$ac_file" >&6; }
3645: ac_exeext=$ac_cv_exeext
3646:
3647: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3648: ac_clean_files=$ac_clean_files_save
3649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3650: $as_echo_n "checking for suffix of executables... " >&6; }
3651: if { { ac_try="$ac_link"
3652: case "(($ac_try" in
3653: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654: *) ac_try_echo=$ac_try;;
3655: esac
3656: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657: $as_echo "$ac_try_echo"; } >&5
3658: (eval "$ac_link") 2>&5
3659: ac_status=$?
3660: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661: test $ac_status = 0; }; then :
3662: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3663: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3664: # work properly (i.e., refer to `conftest.exe'), while it won't with
3665: # `rm'.
3666: for ac_file in conftest.exe conftest conftest.*; do
3667: test -f "$ac_file" || continue
3668: case $ac_file in
3669: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671: break;;
3672: * ) break;;
3673: esac
3674: done
3675: else
3676: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3679: See \`config.log' for more details" "$LINENO" 5; }
3680: fi
3681: rm -f conftest conftest$ac_cv_exeext
3682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3683: $as_echo "$ac_cv_exeext" >&6; }
3684:
3685: rm -f conftest.$ac_ext
3686: EXEEXT=$ac_cv_exeext
3687: ac_exeext=$EXEEXT
3688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689: /* end confdefs.h. */
3690: #include <stdio.h>
3691: int
3692: main ()
3693: {
3694: FILE *f = fopen ("conftest.out", "w");
3695: return ferror (f) || fclose (f) != 0;
3696:
3697: ;
3698: return 0;
3699: }
3700: _ACEOF
3701: ac_clean_files="$ac_clean_files conftest.out"
3702: # Check that the compiler produces executables we can run. If not, either
3703: # the compiler is broken, or we cross compile.
3704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3705: $as_echo_n "checking whether we are cross compiling... " >&6; }
3706: if test "$cross_compiling" != yes; then
3707: { { ac_try="$ac_link"
3708: case "(($ac_try" in
3709: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710: *) ac_try_echo=$ac_try;;
3711: esac
3712: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713: $as_echo "$ac_try_echo"; } >&5
3714: (eval "$ac_link") 2>&5
3715: ac_status=$?
3716: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717: test $ac_status = 0; }
3718: if { ac_try='./conftest$ac_cv_exeext'
3719: { { case "(($ac_try" in
3720: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721: *) ac_try_echo=$ac_try;;
3722: esac
3723: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724: $as_echo "$ac_try_echo"; } >&5
3725: (eval "$ac_try") 2>&5
3726: ac_status=$?
3727: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728: test $ac_status = 0; }; }; then
3729: cross_compiling=no
3730: else
3731: if test "$cross_compiling" = maybe; then
3732: cross_compiling=yes
3733: else
3734: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736: as_fn_error $? "cannot run C compiled programs.
3737: If you meant to cross compile, use \`--host'.
3738: See \`config.log' for more details" "$LINENO" 5; }
3739: fi
3740: fi
3741: fi
3742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3743: $as_echo "$cross_compiling" >&6; }
3744:
3745: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3746: ac_clean_files=$ac_clean_files_save
3747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3748: $as_echo_n "checking for suffix of object files... " >&6; }
3749: if ${ac_cv_objext+:} false; then :
3750: $as_echo_n "(cached) " >&6
3751: else
3752: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753: /* end confdefs.h. */
3754:
3755: int
3756: main ()
3757: {
3758:
3759: ;
3760: return 0;
3761: }
3762: _ACEOF
3763: rm -f conftest.o conftest.obj
3764: if { { ac_try="$ac_compile"
3765: case "(($ac_try" in
3766: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767: *) ac_try_echo=$ac_try;;
3768: esac
3769: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770: $as_echo "$ac_try_echo"; } >&5
3771: (eval "$ac_compile") 2>&5
3772: ac_status=$?
3773: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774: test $ac_status = 0; }; then :
3775: for ac_file in conftest.o conftest.obj conftest.*; do
3776: test -f "$ac_file" || continue;
3777: case $ac_file in
3778: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3779: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3780: break;;
3781: esac
3782: done
3783: else
3784: $as_echo "$as_me: failed program was:" >&5
3785: sed 's/^/| /' conftest.$ac_ext >&5
3786:
3787: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789: as_fn_error $? "cannot compute suffix of object files: cannot compile
3790: See \`config.log' for more details" "$LINENO" 5; }
3791: fi
3792: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3793: fi
3794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3795: $as_echo "$ac_cv_objext" >&6; }
3796: OBJEXT=$ac_cv_objext
3797: ac_objext=$OBJEXT
3798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3799: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3800: if ${ac_cv_c_compiler_gnu+:} false; then :
3801: $as_echo_n "(cached) " >&6
3802: else
3803: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804: /* end confdefs.h. */
3805:
3806: int
3807: main ()
3808: {
3809: #ifndef __GNUC__
3810: choke me
3811: #endif
3812:
3813: ;
3814: return 0;
3815: }
3816: _ACEOF
3817: if ac_fn_c_try_compile "$LINENO"; then :
3818: ac_compiler_gnu=yes
3819: else
3820: ac_compiler_gnu=no
3821: fi
3822: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3824:
3825: fi
3826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3827: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3828: if test $ac_compiler_gnu = yes; then
3829: GCC=yes
3830: else
3831: GCC=
3832: fi
3833: ac_test_CFLAGS=${CFLAGS+set}
3834: ac_save_CFLAGS=$CFLAGS
3835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3836: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3837: if ${ac_cv_prog_cc_g+:} false; then :
3838: $as_echo_n "(cached) " >&6
3839: else
3840: ac_save_c_werror_flag=$ac_c_werror_flag
3841: ac_c_werror_flag=yes
3842: ac_cv_prog_cc_g=no
3843: CFLAGS="-g"
3844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845: /* end confdefs.h. */
3846:
3847: int
3848: main ()
3849: {
3850:
3851: ;
3852: return 0;
3853: }
3854: _ACEOF
3855: if ac_fn_c_try_compile "$LINENO"; then :
3856: ac_cv_prog_cc_g=yes
3857: else
3858: CFLAGS=""
3859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860: /* end confdefs.h. */
3861:
3862: int
3863: main ()
3864: {
3865:
3866: ;
3867: return 0;
3868: }
3869: _ACEOF
3870: if ac_fn_c_try_compile "$LINENO"; then :
3871:
3872: else
3873: ac_c_werror_flag=$ac_save_c_werror_flag
3874: CFLAGS="-g"
3875: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876: /* end confdefs.h. */
3877:
3878: int
3879: main ()
3880: {
3881:
3882: ;
3883: return 0;
3884: }
3885: _ACEOF
3886: if ac_fn_c_try_compile "$LINENO"; then :
3887: ac_cv_prog_cc_g=yes
3888: fi
3889: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890: fi
3891: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892: fi
3893: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894: ac_c_werror_flag=$ac_save_c_werror_flag
3895: fi
3896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3897: $as_echo "$ac_cv_prog_cc_g" >&6; }
3898: if test "$ac_test_CFLAGS" = set; then
3899: CFLAGS=$ac_save_CFLAGS
3900: elif test $ac_cv_prog_cc_g = yes; then
3901: if test "$GCC" = yes; then
3902: CFLAGS="-g -O2"
3903: else
3904: CFLAGS="-g"
3905: fi
3906: else
3907: if test "$GCC" = yes; then
3908: CFLAGS="-O2"
3909: else
3910: CFLAGS=
3911: fi
3912: fi
3913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3914: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3915: if ${ac_cv_prog_cc_c89+:} false; then :
3916: $as_echo_n "(cached) " >&6
3917: else
3918: ac_cv_prog_cc_c89=no
3919: ac_save_CC=$CC
3920: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921: /* end confdefs.h. */
3922: #include <stdarg.h>
3923: #include <stdio.h>
3924: #include <sys/types.h>
3925: #include <sys/stat.h>
3926: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927: struct buf { int x; };
3928: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929: static char *e (p, i)
3930: char **p;
3931: int i;
3932: {
3933: return p[i];
3934: }
3935: static char *f (char * (*g) (char **, int), char **p, ...)
3936: {
3937: char *s;
3938: va_list v;
3939: va_start (v,p);
3940: s = g (p, va_arg (v,int));
3941: va_end (v);
3942: return s;
3943: }
3944:
3945: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946: function prototypes and stuff, but not '\xHH' hex character constants.
3947: These don't provoke an error unfortunately, instead are silently treated
3948: as 'x'. The following induces an error, until -std is added to get
3949: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950: array size at least. It's necessary to write '\x00'==0 to get something
3951: that's true only with -std. */
3952: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953:
3954: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955: inside strings and character constants. */
3956: #define FOO(x) 'x'
3957: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958:
3959: int test (int i, double x);
3960: struct s1 {int (*f) (int a);};
3961: struct s2 {int (*f) (double a);};
3962: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963: int argc;
3964: char **argv;
3965: int
3966: main ()
3967: {
3968: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3969: ;
3970: return 0;
3971: }
3972: _ACEOF
3973: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975: do
3976: CC="$ac_save_CC $ac_arg"
3977: if ac_fn_c_try_compile "$LINENO"; then :
3978: ac_cv_prog_cc_c89=$ac_arg
3979: fi
3980: rm -f core conftest.err conftest.$ac_objext
3981: test "x$ac_cv_prog_cc_c89" != "xno" && break
3982: done
3983: rm -f conftest.$ac_ext
3984: CC=$ac_save_CC
3985:
3986: fi
3987: # AC_CACHE_VAL
3988: case "x$ac_cv_prog_cc_c89" in
3989: x)
3990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991: $as_echo "none needed" >&6; } ;;
3992: xno)
3993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994: $as_echo "unsupported" >&6; } ;;
3995: *)
3996: CC="$CC $ac_cv_prog_cc_c89"
3997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999: esac
4000: if test "x$ac_cv_prog_cc_c89" != xno; then :
4001:
4002: fi
4003:
4004: ac_ext=c
4005: ac_cpp='$CPP $CPPFLAGS'
4006: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009: DEPDIR="${am__leading_dot}deps"
4010:
4011: ac_config_commands="$ac_config_commands depfiles"
4012:
4013:
4014: am_make=${MAKE-make}
4015: cat > confinc << 'END'
4016: am__doit:
4017: @echo this is the am__doit target
4018: .PHONY: am__doit
4019: END
4020: # If we don't find an include directive, just comment out the code.
4021: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4022: $as_echo_n "checking for style of include used by $am_make... " >&6; }
4023: am__include="#"
4024: am__quote=
4025: _am_result=none
4026: # First try GNU make style include.
4027: echo "include confinc" > confmf
4028: # Ignore all kinds of additional output from `make'.
4029: case `$am_make -s -f confmf 2> /dev/null` in #(
4030: *the\ am__doit\ target*)
4031: am__include=include
4032: am__quote=
4033: _am_result=GNU
4034: ;;
4035: esac
4036: # Now try BSD make style include.
4037: if test "$am__include" = "#"; then
4038: echo '.include "confinc"' > confmf
4039: case `$am_make -s -f confmf 2> /dev/null` in #(
4040: *the\ am__doit\ target*)
4041: am__include=.include
4042: am__quote="\""
4043: _am_result=BSD
4044: ;;
4045: esac
4046: fi
4047:
4048:
4049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4050: $as_echo "$_am_result" >&6; }
4051: rm -f confinc confmf
4052:
4053: # Check whether --enable-dependency-tracking was given.
4054: if test "${enable_dependency_tracking+set}" = set; then :
4055: enableval=$enable_dependency_tracking;
4056: fi
4057:
4058: if test "x$enable_dependency_tracking" != xno; then
4059: am_depcomp="$ac_aux_dir/depcomp"
4060: AMDEPBACKSLASH='\'
4061: fi
4062: if test "x$enable_dependency_tracking" != xno; then
4063: AMDEP_TRUE=
4064: AMDEP_FALSE='#'
4065: else
4066: AMDEP_TRUE='#'
4067: AMDEP_FALSE=
4068: fi
4069:
4070:
4071:
4072: depcc="$CC" am_compiler_list=
4073:
4074: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4075: $as_echo_n "checking dependency style of $depcc... " >&6; }
4076: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4077: $as_echo_n "(cached) " >&6
4078: else
4079: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4080: # We make a subdir and do the tests there. Otherwise we can end up
4081: # making bogus files that we don't know about and never remove. For
4082: # instance it was reported that on HP-UX the gcc test will end up
4083: # making a dummy file named `D' -- because `-MD' means `put the output
4084: # in D'.
4085: mkdir conftest.dir
4086: # Copy depcomp to subdir because otherwise we won't find it if we're
4087: # using a relative directory.
4088: cp "$am_depcomp" conftest.dir
4089: cd conftest.dir
4090: # We will build objects and dependencies in a subdirectory because
4091: # it helps to detect inapplicable dependency modes. For instance
4092: # both Tru64's cc and ICC support -MD to output dependencies as a
4093: # side effect of compilation, but ICC will put the dependencies in
4094: # the current directory while Tru64 will put them in the object
4095: # directory.
4096: mkdir sub
4097:
4098: am_cv_CC_dependencies_compiler_type=none
4099: if test "$am_compiler_list" = ""; then
4100: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4101: fi
4102: am__universal=false
4103: case " $depcc " in #(
4104: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4105: esac
4106:
4107: for depmode in $am_compiler_list; do
4108: # Setup a source with many dependencies, because some compilers
4109: # like to wrap large dependency lists on column 80 (with \), and
4110: # we should not choose a depcomp mode which is confused by this.
4111: #
4112: # We need to recreate these files for each test, as the compiler may
4113: # overwrite some of them when testing with obscure command lines.
4114: # This happens at least with the AIX C compiler.
4115: : > sub/conftest.c
4116: for i in 1 2 3 4 5 6; do
4117: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4118: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4119: # Solaris 8's {/usr,}/bin/sh.
4120: touch sub/conftst$i.h
4121: done
4122: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4123:
4124: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4125: # mode. It turns out that the SunPro C++ compiler does not properly
4126: # handle `-M -o', and we need to detect this. Also, some Intel
4127: # versions had trouble with output in subdirs
4128: am__obj=sub/conftest.${OBJEXT-o}
4129: am__minus_obj="-o $am__obj"
4130: case $depmode in
4131: gcc)
4132: # This depmode causes a compiler race in universal mode.
4133: test "$am__universal" = false || continue
4134: ;;
4135: nosideeffect)
4136: # after this tag, mechanisms are not by side-effect, so they'll
4137: # only be used when explicitly requested
4138: if test "x$enable_dependency_tracking" = xyes; then
4139: continue
4140: else
4141: break
4142: fi
4143: ;;
4144: msvisualcpp | msvcmsys)
4145: # This compiler won't grok `-c -o', but also, the minuso test has
4146: # not run yet. These depmodes are late enough in the game, and
4147: # so weak that their functioning should not be impacted.
4148: am__obj=conftest.${OBJEXT-o}
4149: am__minus_obj=
4150: ;;
4151: none) break ;;
4152: esac
4153: if depmode=$depmode \
4154: source=sub/conftest.c object=$am__obj \
4155: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4156: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4157: >/dev/null 2>conftest.err &&
4158: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4159: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4160: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4161: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4162: # icc doesn't choke on unknown options, it will just issue warnings
4163: # or remarks (even with -Werror). So we grep stderr for any message
4164: # that says an option was ignored or not supported.
4165: # When given -MP, icc 7.0 and 7.1 complain thusly:
4166: # icc: Command line warning: ignoring option '-M'; no argument required
4167: # The diagnosis changed in icc 8.0:
4168: # icc: Command line remark: option '-MP' not supported
4169: if (grep 'ignoring option' conftest.err ||
4170: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4171: am_cv_CC_dependencies_compiler_type=$depmode
4172: break
4173: fi
4174: fi
4175: done
4176:
4177: cd ..
4178: rm -rf conftest.dir
4179: else
4180: am_cv_CC_dependencies_compiler_type=none
4181: fi
4182:
4183: fi
4184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4185: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4186: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4187:
4188: if
4189: test "x$enable_dependency_tracking" != xno \
4190: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4191: am__fastdepCC_TRUE=
4192: am__fastdepCC_FALSE='#'
4193: else
4194: am__fastdepCC_TRUE='#'
4195: am__fastdepCC_FALSE=
4196: fi
4197:
4198:
4199: ac_ext=cpp
4200: ac_cpp='$CXXCPP $CPPFLAGS'
4201: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4204: if test -z "$CXX"; then
4205: if test -n "$CCC"; then
4206: CXX=$CCC
4207: else
4208: if test -n "$ac_tool_prefix"; then
4209: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4210: do
4211: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4212: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214: $as_echo_n "checking for $ac_word... " >&6; }
4215: if ${ac_cv_prog_CXX+:} false; then :
4216: $as_echo_n "(cached) " >&6
4217: else
4218: if test -n "$CXX"; then
4219: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4220: else
4221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222: for as_dir in $PATH
4223: do
4224: IFS=$as_save_IFS
4225: test -z "$as_dir" && as_dir=.
4226: for ac_exec_ext in '' $ac_executable_extensions; do
4227: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4229: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230: break 2
4231: fi
4232: done
4233: done
4234: IFS=$as_save_IFS
4235:
4236: fi
4237: fi
4238: CXX=$ac_cv_prog_CXX
4239: if test -n "$CXX"; then
4240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4241: $as_echo "$CXX" >&6; }
4242: else
4243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244: $as_echo "no" >&6; }
4245: fi
4246:
4247:
4248: test -n "$CXX" && break
4249: done
4250: fi
4251: if test -z "$CXX"; then
4252: ac_ct_CXX=$CXX
4253: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4254: do
4255: # Extract the first word of "$ac_prog", so it can be a program name with args.
4256: set dummy $ac_prog; ac_word=$2
4257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258: $as_echo_n "checking for $ac_word... " >&6; }
4259: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4260: $as_echo_n "(cached) " >&6
4261: else
4262: if test -n "$ac_ct_CXX"; then
4263: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4264: else
4265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266: for as_dir in $PATH
4267: do
4268: IFS=$as_save_IFS
4269: test -z "$as_dir" && as_dir=.
4270: for ac_exec_ext in '' $ac_executable_extensions; do
4271: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272: ac_cv_prog_ac_ct_CXX="$ac_prog"
4273: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274: break 2
4275: fi
4276: done
4277: done
4278: IFS=$as_save_IFS
4279:
4280: fi
4281: fi
4282: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4283: if test -n "$ac_ct_CXX"; then
4284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4285: $as_echo "$ac_ct_CXX" >&6; }
4286: else
4287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288: $as_echo "no" >&6; }
4289: fi
4290:
4291:
4292: test -n "$ac_ct_CXX" && break
4293: done
4294:
4295: if test "x$ac_ct_CXX" = x; then
4296: CXX="g++"
4297: else
4298: case $cross_compiling:$ac_tool_warned in
4299: yes:)
4300: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4301: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4302: ac_tool_warned=yes ;;
4303: esac
4304: CXX=$ac_ct_CXX
4305: fi
4306: fi
4307:
4308: fi
4309: fi
4310: # Provide some information about the compiler.
4311: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4312: set X $ac_compile
4313: ac_compiler=$2
4314: for ac_option in --version -v -V -qversion; do
4315: { { ac_try="$ac_compiler $ac_option >&5"
4316: case "(($ac_try" in
4317: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318: *) ac_try_echo=$ac_try;;
4319: esac
4320: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321: $as_echo "$ac_try_echo"; } >&5
4322: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4323: ac_status=$?
4324: if test -s conftest.err; then
4325: sed '10a\
4326: ... rest of stderr output deleted ...
4327: 10q' conftest.err >conftest.er1
4328: cat conftest.er1 >&5
4329: fi
4330: rm -f conftest.er1 conftest.err
4331: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332: test $ac_status = 0; }
4333: done
4334:
4335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4336: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4337: if ${ac_cv_cxx_compiler_gnu+:} false; then :
4338: $as_echo_n "(cached) " >&6
4339: else
4340: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341: /* end confdefs.h. */
4342:
4343: int
4344: main ()
4345: {
4346: #ifndef __GNUC__
4347: choke me
4348: #endif
4349:
4350: ;
4351: return 0;
4352: }
4353: _ACEOF
4354: if ac_fn_cxx_try_compile "$LINENO"; then :
4355: ac_compiler_gnu=yes
4356: else
4357: ac_compiler_gnu=no
4358: fi
4359: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4361:
4362: fi
4363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4364: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4365: if test $ac_compiler_gnu = yes; then
4366: GXX=yes
4367: else
4368: GXX=
4369: fi
4370: ac_test_CXXFLAGS=${CXXFLAGS+set}
4371: ac_save_CXXFLAGS=$CXXFLAGS
4372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4373: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4374: if ${ac_cv_prog_cxx_g+:} false; then :
4375: $as_echo_n "(cached) " >&6
4376: else
4377: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4378: ac_cxx_werror_flag=yes
4379: ac_cv_prog_cxx_g=no
4380: CXXFLAGS="-g"
4381: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382: /* end confdefs.h. */
4383:
4384: int
4385: main ()
4386: {
4387:
4388: ;
4389: return 0;
4390: }
4391: _ACEOF
4392: if ac_fn_cxx_try_compile "$LINENO"; then :
4393: ac_cv_prog_cxx_g=yes
4394: else
4395: CXXFLAGS=""
4396: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397: /* end confdefs.h. */
4398:
4399: int
4400: main ()
4401: {
4402:
4403: ;
4404: return 0;
4405: }
4406: _ACEOF
4407: if ac_fn_cxx_try_compile "$LINENO"; then :
4408:
4409: else
4410: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4411: CXXFLAGS="-g"
4412: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413: /* end confdefs.h. */
4414:
4415: int
4416: main ()
4417: {
4418:
4419: ;
4420: return 0;
4421: }
4422: _ACEOF
4423: if ac_fn_cxx_try_compile "$LINENO"; then :
4424: ac_cv_prog_cxx_g=yes
4425: fi
4426: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427: fi
4428: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429: fi
4430: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4432: fi
4433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4434: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4435: if test "$ac_test_CXXFLAGS" = set; then
4436: CXXFLAGS=$ac_save_CXXFLAGS
4437: elif test $ac_cv_prog_cxx_g = yes; then
4438: if test "$GXX" = yes; then
4439: CXXFLAGS="-g -O2"
4440: else
4441: CXXFLAGS="-g"
4442: fi
4443: else
4444: if test "$GXX" = yes; then
4445: CXXFLAGS="-O2"
4446: else
4447: CXXFLAGS=
4448: fi
4449: fi
4450: ac_ext=c
4451: ac_cpp='$CPP $CPPFLAGS'
4452: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455:
4456: depcc="$CXX" am_compiler_list=
4457:
4458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4459: $as_echo_n "checking dependency style of $depcc... " >&6; }
4460: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4461: $as_echo_n "(cached) " >&6
4462: else
4463: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4464: # We make a subdir and do the tests there. Otherwise we can end up
4465: # making bogus files that we don't know about and never remove. For
4466: # instance it was reported that on HP-UX the gcc test will end up
4467: # making a dummy file named `D' -- because `-MD' means `put the output
4468: # in D'.
4469: mkdir conftest.dir
4470: # Copy depcomp to subdir because otherwise we won't find it if we're
4471: # using a relative directory.
4472: cp "$am_depcomp" conftest.dir
4473: cd conftest.dir
4474: # We will build objects and dependencies in a subdirectory because
4475: # it helps to detect inapplicable dependency modes. For instance
4476: # both Tru64's cc and ICC support -MD to output dependencies as a
4477: # side effect of compilation, but ICC will put the dependencies in
4478: # the current directory while Tru64 will put them in the object
4479: # directory.
4480: mkdir sub
4481:
4482: am_cv_CXX_dependencies_compiler_type=none
4483: if test "$am_compiler_list" = ""; then
4484: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4485: fi
4486: am__universal=false
4487: case " $depcc " in #(
4488: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4489: esac
4490:
4491: for depmode in $am_compiler_list; do
4492: # Setup a source with many dependencies, because some compilers
4493: # like to wrap large dependency lists on column 80 (with \), and
4494: # we should not choose a depcomp mode which is confused by this.
4495: #
4496: # We need to recreate these files for each test, as the compiler may
4497: # overwrite some of them when testing with obscure command lines.
4498: # This happens at least with the AIX C compiler.
4499: : > sub/conftest.c
4500: for i in 1 2 3 4 5 6; do
4501: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4502: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4503: # Solaris 8's {/usr,}/bin/sh.
4504: touch sub/conftst$i.h
4505: done
4506: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4507:
4508: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4509: # mode. It turns out that the SunPro C++ compiler does not properly
4510: # handle `-M -o', and we need to detect this. Also, some Intel
4511: # versions had trouble with output in subdirs
4512: am__obj=sub/conftest.${OBJEXT-o}
4513: am__minus_obj="-o $am__obj"
4514: case $depmode in
4515: gcc)
4516: # This depmode causes a compiler race in universal mode.
4517: test "$am__universal" = false || continue
4518: ;;
4519: nosideeffect)
4520: # after this tag, mechanisms are not by side-effect, so they'll
4521: # only be used when explicitly requested
4522: if test "x$enable_dependency_tracking" = xyes; then
4523: continue
4524: else
4525: break
4526: fi
4527: ;;
4528: msvisualcpp | msvcmsys)
4529: # This compiler won't grok `-c -o', but also, the minuso test has
4530: # not run yet. These depmodes are late enough in the game, and
4531: # so weak that their functioning should not be impacted.
4532: am__obj=conftest.${OBJEXT-o}
4533: am__minus_obj=
4534: ;;
4535: none) break ;;
4536: esac
4537: if depmode=$depmode \
4538: source=sub/conftest.c object=$am__obj \
4539: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4540: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4541: >/dev/null 2>conftest.err &&
4542: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4543: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4544: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4545: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4546: # icc doesn't choke on unknown options, it will just issue warnings
4547: # or remarks (even with -Werror). So we grep stderr for any message
4548: # that says an option was ignored or not supported.
4549: # When given -MP, icc 7.0 and 7.1 complain thusly:
4550: # icc: Command line warning: ignoring option '-M'; no argument required
4551: # The diagnosis changed in icc 8.0:
4552: # icc: Command line remark: option '-MP' not supported
4553: if (grep 'ignoring option' conftest.err ||
4554: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4555: am_cv_CXX_dependencies_compiler_type=$depmode
4556: break
4557: fi
4558: fi
4559: done
4560:
4561: cd ..
4562: rm -rf conftest.dir
4563: else
4564: am_cv_CXX_dependencies_compiler_type=none
4565: fi
4566:
4567: fi
4568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4569: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4570: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4571:
4572: if
4573: test "x$enable_dependency_tracking" != xno \
4574: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4575: am__fastdepCXX_TRUE=
4576: am__fastdepCXX_FALSE='#'
4577: else
4578: am__fastdepCXX_TRUE='#'
4579: am__fastdepCXX_FALSE=
4580: fi
4581:
4582:
4583:
4584: if test "x$remember_set_CFLAGS" = "x"
4585: then
4586: if test "$CFLAGS" = "-g -O2"
4587: then
4588: CFLAGS="-O2"
4589: elif test "$CFLAGS" = "-g"
4590: then
4591: CFLAGS=""
4592: fi
4593: fi
4594:
4595: if test "x$remember_set_CXXFLAGS" = "x"
4596: then
4597: if test "$CXXFLAGS" = "-g -O2"
4598: then
4599: CXXFLAGS="-O2"
4600: elif test "$CXXFLAGS" = "-g"
4601: then
4602: CXXFLAGS=""
4603: fi
4604: fi
4605:
4606: # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
4607: # Check for that case, and just disable c++ code if g++ doesn't run.
4608: ac_ext=cpp
4609: ac_cpp='$CXXCPP $CPPFLAGS'
4610: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4613:
4614:
4615: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616: /* end confdefs.h. */
4617:
4618: int
4619: main ()
4620: {
4621:
4622: ;
4623: return 0;
4624: }
4625: _ACEOF
4626: if ac_fn_cxx_try_compile "$LINENO"; then :
4627:
4628: else
4629: CXX=""; CXXCP=""; CXXFLAGS=""
4630: fi
4631: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632: ac_ext=c
4633: ac_cpp='$CPP $CPPFLAGS'
4634: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637:
4638:
4639: # Check for a 64-bit integer type
4640:
4641: ac_ext=c
4642: ac_cpp='$CPP $CPPFLAGS'
4643: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4647: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4648: # On Suns, sometimes $CPP names a directory.
4649: if test -n "$CPP" && test -d "$CPP"; then
4650: CPP=
4651: fi
4652: if test -z "$CPP"; then
4653: if ${ac_cv_prog_CPP+:} false; then :
4654: $as_echo_n "(cached) " >&6
4655: else
4656: # Double quotes because CPP needs to be expanded
4657: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4658: do
4659: ac_preproc_ok=false
4660: for ac_c_preproc_warn_flag in '' yes
4661: do
4662: # Use a header file that comes with gcc, so configuring glibc
4663: # with a fresh cross-compiler works.
4664: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665: # <limits.h> exists even on freestanding compilers.
4666: # On the NeXT, cc -E runs the code through the compiler's parser,
4667: # not just through cpp. "Syntax error" is here to catch this case.
4668: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669: /* end confdefs.h. */
4670: #ifdef __STDC__
4671: # include <limits.h>
4672: #else
4673: # include <assert.h>
4674: #endif
4675: Syntax error
4676: _ACEOF
4677: if ac_fn_c_try_cpp "$LINENO"; then :
4678:
4679: else
4680: # Broken: fails on valid input.
4681: continue
4682: fi
4683: rm -f conftest.err conftest.i conftest.$ac_ext
4684:
4685: # OK, works on sane cases. Now check whether nonexistent headers
4686: # can be detected and how.
4687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688: /* end confdefs.h. */
4689: #include <ac_nonexistent.h>
4690: _ACEOF
4691: if ac_fn_c_try_cpp "$LINENO"; then :
4692: # Broken: success on invalid input.
4693: continue
4694: else
4695: # Passes both tests.
4696: ac_preproc_ok=:
4697: break
4698: fi
4699: rm -f conftest.err conftest.i conftest.$ac_ext
4700:
4701: done
4702: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4703: rm -f conftest.i conftest.err conftest.$ac_ext
4704: if $ac_preproc_ok; then :
4705: break
4706: fi
4707:
4708: done
4709: ac_cv_prog_CPP=$CPP
4710:
4711: fi
4712: CPP=$ac_cv_prog_CPP
4713: else
4714: ac_cv_prog_CPP=$CPP
4715: fi
4716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4717: $as_echo "$CPP" >&6; }
4718: ac_preproc_ok=false
4719: for ac_c_preproc_warn_flag in '' yes
4720: do
4721: # Use a header file that comes with gcc, so configuring glibc
4722: # with a fresh cross-compiler works.
4723: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724: # <limits.h> exists even on freestanding compilers.
4725: # On the NeXT, cc -E runs the code through the compiler's parser,
4726: # not just through cpp. "Syntax error" is here to catch this case.
4727: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728: /* end confdefs.h. */
4729: #ifdef __STDC__
4730: # include <limits.h>
4731: #else
4732: # include <assert.h>
4733: #endif
4734: Syntax error
4735: _ACEOF
4736: if ac_fn_c_try_cpp "$LINENO"; then :
4737:
4738: else
4739: # Broken: fails on valid input.
4740: continue
4741: fi
4742: rm -f conftest.err conftest.i conftest.$ac_ext
4743:
4744: # OK, works on sane cases. Now check whether nonexistent headers
4745: # can be detected and how.
4746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747: /* end confdefs.h. */
4748: #include <ac_nonexistent.h>
4749: _ACEOF
4750: if ac_fn_c_try_cpp "$LINENO"; then :
4751: # Broken: success on invalid input.
4752: continue
4753: else
4754: # Passes both tests.
4755: ac_preproc_ok=:
4756: break
4757: fi
4758: rm -f conftest.err conftest.i conftest.$ac_ext
4759:
4760: done
4761: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4762: rm -f conftest.i conftest.err conftest.$ac_ext
4763: if $ac_preproc_ok; then :
4764:
4765: else
4766: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4767: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4768: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4769: See \`config.log' for more details" "$LINENO" 5; }
4770: fi
4771:
4772: ac_ext=c
4773: ac_cpp='$CPP $CPPFLAGS'
4774: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777:
4778:
4779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4780: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4781: if ${ac_cv_path_GREP+:} false; then :
4782: $as_echo_n "(cached) " >&6
4783: else
4784: if test -z "$GREP"; then
4785: ac_path_GREP_found=false
4786: # Loop through the user's path and test for each of PROGNAME-LIST
4787: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4789: do
4790: IFS=$as_save_IFS
4791: test -z "$as_dir" && as_dir=.
4792: for ac_prog in grep ggrep; do
4793: for ac_exec_ext in '' $ac_executable_extensions; do
4794: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4795: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4796: # Check for GNU ac_path_GREP and select it if it is found.
4797: # Check for GNU $ac_path_GREP
4798: case `"$ac_path_GREP" --version 2>&1` in
4799: *GNU*)
4800: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4801: *)
4802: ac_count=0
4803: $as_echo_n 0123456789 >"conftest.in"
4804: while :
4805: do
4806: cat "conftest.in" "conftest.in" >"conftest.tmp"
4807: mv "conftest.tmp" "conftest.in"
4808: cp "conftest.in" "conftest.nl"
4809: $as_echo 'GREP' >> "conftest.nl"
4810: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812: as_fn_arith $ac_count + 1 && ac_count=$as_val
4813: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4814: # Best one so far, save it but keep looking for a better one
4815: ac_cv_path_GREP="$ac_path_GREP"
4816: ac_path_GREP_max=$ac_count
4817: fi
4818: # 10*(2^10) chars as input seems more than enough
4819: test $ac_count -gt 10 && break
4820: done
4821: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822: esac
4823:
4824: $ac_path_GREP_found && break 3
4825: done
4826: done
4827: done
4828: IFS=$as_save_IFS
4829: if test -z "$ac_cv_path_GREP"; then
4830: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4831: fi
4832: else
4833: ac_cv_path_GREP=$GREP
4834: fi
4835:
4836: fi
4837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4838: $as_echo "$ac_cv_path_GREP" >&6; }
4839: GREP="$ac_cv_path_GREP"
4840:
4841:
4842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4843: $as_echo_n "checking for egrep... " >&6; }
4844: if ${ac_cv_path_EGREP+:} false; then :
4845: $as_echo_n "(cached) " >&6
4846: else
4847: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4848: then ac_cv_path_EGREP="$GREP -E"
4849: else
4850: if test -z "$EGREP"; then
4851: ac_path_EGREP_found=false
4852: # Loop through the user's path and test for each of PROGNAME-LIST
4853: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4855: do
4856: IFS=$as_save_IFS
4857: test -z "$as_dir" && as_dir=.
4858: for ac_prog in egrep; do
4859: for ac_exec_ext in '' $ac_executable_extensions; do
4860: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4861: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4862: # Check for GNU ac_path_EGREP and select it if it is found.
4863: # Check for GNU $ac_path_EGREP
4864: case `"$ac_path_EGREP" --version 2>&1` in
4865: *GNU*)
4866: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4867: *)
4868: ac_count=0
4869: $as_echo_n 0123456789 >"conftest.in"
4870: while :
4871: do
4872: cat "conftest.in" "conftest.in" >"conftest.tmp"
4873: mv "conftest.tmp" "conftest.in"
4874: cp "conftest.in" "conftest.nl"
4875: $as_echo 'EGREP' >> "conftest.nl"
4876: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4877: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4878: as_fn_arith $ac_count + 1 && ac_count=$as_val
4879: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4880: # Best one so far, save it but keep looking for a better one
4881: ac_cv_path_EGREP="$ac_path_EGREP"
4882: ac_path_EGREP_max=$ac_count
4883: fi
4884: # 10*(2^10) chars as input seems more than enough
4885: test $ac_count -gt 10 && break
4886: done
4887: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4888: esac
4889:
4890: $ac_path_EGREP_found && break 3
4891: done
4892: done
4893: done
4894: IFS=$as_save_IFS
4895: if test -z "$ac_cv_path_EGREP"; then
4896: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4897: fi
4898: else
4899: ac_cv_path_EGREP=$EGREP
4900: fi
4901:
4902: fi
4903: fi
4904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4905: $as_echo "$ac_cv_path_EGREP" >&6; }
4906: EGREP="$ac_cv_path_EGREP"
4907:
4908:
4909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4910: $as_echo_n "checking for ANSI C header files... " >&6; }
4911: if ${ac_cv_header_stdc+:} false; then :
4912: $as_echo_n "(cached) " >&6
4913: else
4914: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915: /* end confdefs.h. */
4916: #include <stdlib.h>
4917: #include <stdarg.h>
4918: #include <string.h>
4919: #include <float.h>
4920:
4921: int
4922: main ()
4923: {
4924:
4925: ;
4926: return 0;
4927: }
4928: _ACEOF
4929: if ac_fn_c_try_compile "$LINENO"; then :
4930: ac_cv_header_stdc=yes
4931: else
4932: ac_cv_header_stdc=no
4933: fi
4934: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935:
4936: if test $ac_cv_header_stdc = yes; then
4937: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4938: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939: /* end confdefs.h. */
4940: #include <string.h>
4941:
4942: _ACEOF
4943: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944: $EGREP "memchr" >/dev/null 2>&1; then :
4945:
4946: else
4947: ac_cv_header_stdc=no
4948: fi
4949: rm -f conftest*
4950:
4951: fi
4952:
4953: if test $ac_cv_header_stdc = yes; then
4954: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4955: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956: /* end confdefs.h. */
4957: #include <stdlib.h>
4958:
4959: _ACEOF
4960: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4961: $EGREP "free" >/dev/null 2>&1; then :
4962:
4963: else
4964: ac_cv_header_stdc=no
4965: fi
4966: rm -f conftest*
4967:
4968: fi
4969:
4970: if test $ac_cv_header_stdc = yes; then
4971: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4972: if test "$cross_compiling" = yes; then :
4973: :
4974: else
4975: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976: /* end confdefs.h. */
4977: #include <ctype.h>
4978: #include <stdlib.h>
4979: #if ((' ' & 0x0FF) == 0x020)
4980: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4981: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4982: #else
4983: # define ISLOWER(c) \
4984: (('a' <= (c) && (c) <= 'i') \
4985: || ('j' <= (c) && (c) <= 'r') \
4986: || ('s' <= (c) && (c) <= 'z'))
4987: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4988: #endif
4989:
4990: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4991: int
4992: main ()
4993: {
4994: int i;
4995: for (i = 0; i < 256; i++)
4996: if (XOR (islower (i), ISLOWER (i))
4997: || toupper (i) != TOUPPER (i))
4998: return 2;
4999: return 0;
5000: }
5001: _ACEOF
5002: if ac_fn_c_try_run "$LINENO"; then :
5003:
5004: else
5005: ac_cv_header_stdc=no
5006: fi
5007: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5008: conftest.$ac_objext conftest.beam conftest.$ac_ext
5009: fi
5010:
5011: fi
5012: fi
5013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5014: $as_echo "$ac_cv_header_stdc" >&6; }
5015: if test $ac_cv_header_stdc = yes; then
5016:
5017: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5018:
5019: fi
5020:
5021: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5022: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5023: inttypes.h stdint.h unistd.h
5024: do :
5025: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5026: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5027: "
5028: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5029: cat >>confdefs.h <<_ACEOF
5030: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5031: _ACEOF
5032:
5033: fi
5034:
5035: done
5036:
5037:
5038: ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5039: case $ac_cv_c_int64_t in #(
5040: no|yes) ;; #(
5041: *)
5042:
5043: cat >>confdefs.h <<_ACEOF
5044: #define int64_t $ac_cv_c_int64_t
5045: _ACEOF
5046: ;;
5047: esac
5048:
5049:
5050:
5051: # Make sure we can run config.sub.
5052: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5053: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5054:
5055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5056: $as_echo_n "checking build system type... " >&6; }
5057: if ${ac_cv_build+:} false; then :
5058: $as_echo_n "(cached) " >&6
5059: else
5060: ac_build_alias=$build_alias
5061: test "x$ac_build_alias" = x &&
5062: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5063: test "x$ac_build_alias" = x &&
5064: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5065: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5066: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5067:
5068: fi
5069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5070: $as_echo "$ac_cv_build" >&6; }
5071: case $ac_cv_build in
5072: *-*-*) ;;
5073: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5074: esac
5075: build=$ac_cv_build
5076: ac_save_IFS=$IFS; IFS='-'
5077: set x $ac_cv_build
5078: shift
5079: build_cpu=$1
5080: build_vendor=$2
5081: shift; shift
5082: # Remember, the first character of IFS is used to create $*,
5083: # except with old shells:
5084: build_os=$*
5085: IFS=$ac_save_IFS
5086: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5087:
5088:
5089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5090: $as_echo_n "checking host system type... " >&6; }
5091: if ${ac_cv_host+:} false; then :
5092: $as_echo_n "(cached) " >&6
5093: else
5094: if test "x$host_alias" = x; then
5095: ac_cv_host=$ac_cv_build
5096: else
5097: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5098: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5099: fi
5100:
5101: fi
5102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5103: $as_echo "$ac_cv_host" >&6; }
5104: case $ac_cv_host in
5105: *-*-*) ;;
5106: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5107: esac
5108: host=$ac_cv_host
5109: ac_save_IFS=$IFS; IFS='-'
5110: set x $ac_cv_host
5111: shift
5112: host_cpu=$1
5113: host_vendor=$2
5114: shift; shift
5115: # Remember, the first character of IFS is used to create $*,
5116: # except with old shells:
5117: host_os=$*
5118: IFS=$ac_save_IFS
5119: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5120:
5121:
5122: enable_win32_dll=yes
5123:
5124: case $host in
5125: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5126: if test -n "$ac_tool_prefix"; then
5127: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5128: set dummy ${ac_tool_prefix}as; ac_word=$2
5129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130: $as_echo_n "checking for $ac_word... " >&6; }
5131: if ${ac_cv_prog_AS+:} false; then :
5132: $as_echo_n "(cached) " >&6
5133: else
5134: if test -n "$AS"; then
5135: ac_cv_prog_AS="$AS" # Let the user override the test.
5136: else
5137: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138: for as_dir in $PATH
5139: do
5140: IFS=$as_save_IFS
5141: test -z "$as_dir" && as_dir=.
5142: for ac_exec_ext in '' $ac_executable_extensions; do
5143: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144: ac_cv_prog_AS="${ac_tool_prefix}as"
5145: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146: break 2
5147: fi
5148: done
5149: done
5150: IFS=$as_save_IFS
5151:
5152: fi
5153: fi
5154: AS=$ac_cv_prog_AS
5155: if test -n "$AS"; then
5156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5157: $as_echo "$AS" >&6; }
5158: else
5159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160: $as_echo "no" >&6; }
5161: fi
5162:
5163:
5164: fi
5165: if test -z "$ac_cv_prog_AS"; then
5166: ac_ct_AS=$AS
5167: # Extract the first word of "as", so it can be a program name with args.
5168: set dummy as; ac_word=$2
5169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170: $as_echo_n "checking for $ac_word... " >&6; }
5171: if ${ac_cv_prog_ac_ct_AS+:} false; then :
5172: $as_echo_n "(cached) " >&6
5173: else
5174: if test -n "$ac_ct_AS"; then
5175: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5176: else
5177: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178: for as_dir in $PATH
5179: do
5180: IFS=$as_save_IFS
5181: test -z "$as_dir" && as_dir=.
5182: for ac_exec_ext in '' $ac_executable_extensions; do
5183: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184: ac_cv_prog_ac_ct_AS="as"
5185: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186: break 2
5187: fi
5188: done
5189: done
5190: IFS=$as_save_IFS
5191:
5192: fi
5193: fi
5194: ac_ct_AS=$ac_cv_prog_ac_ct_AS
5195: if test -n "$ac_ct_AS"; then
5196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5197: $as_echo "$ac_ct_AS" >&6; }
5198: else
5199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200: $as_echo "no" >&6; }
5201: fi
5202:
5203: if test "x$ac_ct_AS" = x; then
5204: AS="false"
5205: else
5206: case $cross_compiling:$ac_tool_warned in
5207: yes:)
5208: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210: ac_tool_warned=yes ;;
5211: esac
5212: AS=$ac_ct_AS
5213: fi
5214: else
5215: AS="$ac_cv_prog_AS"
5216: fi
5217:
5218: if test -n "$ac_tool_prefix"; then
5219: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5220: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222: $as_echo_n "checking for $ac_word... " >&6; }
5223: if ${ac_cv_prog_DLLTOOL+:} false; then :
5224: $as_echo_n "(cached) " >&6
5225: else
5226: if test -n "$DLLTOOL"; then
5227: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5228: else
5229: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230: for as_dir in $PATH
5231: do
5232: IFS=$as_save_IFS
5233: test -z "$as_dir" && as_dir=.
5234: for ac_exec_ext in '' $ac_executable_extensions; do
5235: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5237: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238: break 2
5239: fi
5240: done
5241: done
5242: IFS=$as_save_IFS
5243:
5244: fi
5245: fi
5246: DLLTOOL=$ac_cv_prog_DLLTOOL
5247: if test -n "$DLLTOOL"; then
5248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5249: $as_echo "$DLLTOOL" >&6; }
5250: else
5251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252: $as_echo "no" >&6; }
5253: fi
5254:
5255:
5256: fi
5257: if test -z "$ac_cv_prog_DLLTOOL"; then
5258: ac_ct_DLLTOOL=$DLLTOOL
5259: # Extract the first word of "dlltool", so it can be a program name with args.
5260: set dummy dlltool; ac_word=$2
5261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262: $as_echo_n "checking for $ac_word... " >&6; }
5263: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5264: $as_echo_n "(cached) " >&6
5265: else
5266: if test -n "$ac_ct_DLLTOOL"; then
5267: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5268: else
5269: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270: for as_dir in $PATH
5271: do
5272: IFS=$as_save_IFS
5273: test -z "$as_dir" && as_dir=.
5274: for ac_exec_ext in '' $ac_executable_extensions; do
5275: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5277: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278: break 2
5279: fi
5280: done
5281: done
5282: IFS=$as_save_IFS
5283:
5284: fi
5285: fi
5286: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5287: if test -n "$ac_ct_DLLTOOL"; then
5288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5289: $as_echo "$ac_ct_DLLTOOL" >&6; }
5290: else
5291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292: $as_echo "no" >&6; }
5293: fi
5294:
5295: if test "x$ac_ct_DLLTOOL" = x; then
5296: DLLTOOL="false"
5297: else
5298: case $cross_compiling:$ac_tool_warned in
5299: yes:)
5300: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5301: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302: ac_tool_warned=yes ;;
5303: esac
5304: DLLTOOL=$ac_ct_DLLTOOL
5305: fi
5306: else
5307: DLLTOOL="$ac_cv_prog_DLLTOOL"
5308: fi
5309:
5310: if test -n "$ac_tool_prefix"; then
5311: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5312: set dummy ${ac_tool_prefix}objdump; ac_word=$2
5313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314: $as_echo_n "checking for $ac_word... " >&6; }
5315: if ${ac_cv_prog_OBJDUMP+:} false; then :
5316: $as_echo_n "(cached) " >&6
5317: else
5318: if test -n "$OBJDUMP"; then
5319: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5320: else
5321: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322: for as_dir in $PATH
5323: do
5324: IFS=$as_save_IFS
5325: test -z "$as_dir" && as_dir=.
5326: for ac_exec_ext in '' $ac_executable_extensions; do
5327: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5329: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330: break 2
5331: fi
5332: done
5333: done
5334: IFS=$as_save_IFS
5335:
5336: fi
5337: fi
5338: OBJDUMP=$ac_cv_prog_OBJDUMP
5339: if test -n "$OBJDUMP"; then
5340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5341: $as_echo "$OBJDUMP" >&6; }
5342: else
5343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344: $as_echo "no" >&6; }
5345: fi
5346:
5347:
5348: fi
5349: if test -z "$ac_cv_prog_OBJDUMP"; then
5350: ac_ct_OBJDUMP=$OBJDUMP
5351: # Extract the first word of "objdump", so it can be a program name with args.
5352: set dummy objdump; ac_word=$2
5353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354: $as_echo_n "checking for $ac_word... " >&6; }
5355: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5356: $as_echo_n "(cached) " >&6
5357: else
5358: if test -n "$ac_ct_OBJDUMP"; then
5359: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5360: else
5361: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362: for as_dir in $PATH
5363: do
5364: IFS=$as_save_IFS
5365: test -z "$as_dir" && as_dir=.
5366: for ac_exec_ext in '' $ac_executable_extensions; do
5367: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5369: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370: break 2
5371: fi
5372: done
5373: done
5374: IFS=$as_save_IFS
5375:
5376: fi
5377: fi
5378: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5379: if test -n "$ac_ct_OBJDUMP"; then
5380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5381: $as_echo "$ac_ct_OBJDUMP" >&6; }
5382: else
5383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384: $as_echo "no" >&6; }
5385: fi
5386:
5387: if test "x$ac_ct_OBJDUMP" = x; then
5388: OBJDUMP="false"
5389: else
5390: case $cross_compiling:$ac_tool_warned in
5391: yes:)
5392: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5393: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394: ac_tool_warned=yes ;;
5395: esac
5396: OBJDUMP=$ac_ct_OBJDUMP
5397: fi
5398: else
5399: OBJDUMP="$ac_cv_prog_OBJDUMP"
5400: fi
5401:
5402: ;;
5403: esac
5404:
5405: test -z "$AS" && AS=as
5406:
5407:
5408:
5409:
5410:
5411: test -z "$DLLTOOL" && DLLTOOL=dlltool
5412:
5413:
5414:
5415:
5416:
5417: test -z "$OBJDUMP" && OBJDUMP=objdump
5418:
5419:
5420:
5421:
5422:
5423:
5424:
5425: case `pwd` in
5426: *\ * | *\ *)
5427: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5428: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5429: esac
5430:
5431:
5432:
5433: macro_version='2.4'
5434: macro_revision='1.3293'
5435:
5436:
5437:
5438:
5439:
5440:
5441:
5442:
5443:
5444:
5445:
5446:
5447:
5448: ltmain="$ac_aux_dir/ltmain.sh"
5449:
5450: # Backslashify metacharacters that are still active within
5451: # double-quoted strings.
5452: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5453:
5454: # Same as above, but do not quote variable references.
5455: double_quote_subst='s/\(["`\\]\)/\\\1/g'
5456:
5457: # Sed substitution to delay expansion of an escaped shell variable in a
5458: # double_quote_subst'ed string.
5459: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5460:
5461: # Sed substitution to delay expansion of an escaped single quote.
5462: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5463:
5464: # Sed substitution to avoid accidental globbing in evaled expressions
5465: no_glob_subst='s/\*/\\\*/g'
5466:
5467: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5468: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5469: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5470:
5471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5472: $as_echo_n "checking how to print strings... " >&6; }
5473: # Test print first, because it will be a builtin if present.
5474: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5475: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5476: ECHO='print -r --'
5477: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5478: ECHO='printf %s\n'
5479: else
5480: # Use this function as a fallback that always works.
5481: func_fallback_echo ()
5482: {
5483: eval 'cat <<_LTECHO_EOF
5484: $1
5485: _LTECHO_EOF'
5486: }
5487: ECHO='func_fallback_echo'
5488: fi
5489:
5490: # func_echo_all arg...
5491: # Invoke $ECHO with all args, space-separated.
5492: func_echo_all ()
5493: {
5494: $ECHO ""
5495: }
5496:
5497: case "$ECHO" in
5498: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5499: $as_echo "printf" >&6; } ;;
5500: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5501: $as_echo "print -r" >&6; } ;;
5502: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5503: $as_echo "cat" >&6; } ;;
5504: esac
5505:
5506:
5507:
5508:
5509:
5510:
5511:
5512:
5513:
5514:
5515:
5516:
5517:
5518:
5519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5520: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5521: if ${ac_cv_path_SED+:} false; then :
5522: $as_echo_n "(cached) " >&6
5523: else
5524: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5525: for ac_i in 1 2 3 4 5 6 7; do
5526: ac_script="$ac_script$as_nl$ac_script"
5527: done
5528: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5529: { ac_script=; unset ac_script;}
5530: if test -z "$SED"; then
5531: ac_path_SED_found=false
5532: # Loop through the user's path and test for each of PROGNAME-LIST
5533: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534: for as_dir in $PATH
5535: do
5536: IFS=$as_save_IFS
5537: test -z "$as_dir" && as_dir=.
5538: for ac_prog in sed gsed; do
5539: for ac_exec_ext in '' $ac_executable_extensions; do
5540: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5541: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5542: # Check for GNU ac_path_SED and select it if it is found.
5543: # Check for GNU $ac_path_SED
5544: case `"$ac_path_SED" --version 2>&1` in
5545: *GNU*)
5546: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5547: *)
5548: ac_count=0
5549: $as_echo_n 0123456789 >"conftest.in"
5550: while :
5551: do
5552: cat "conftest.in" "conftest.in" >"conftest.tmp"
5553: mv "conftest.tmp" "conftest.in"
5554: cp "conftest.in" "conftest.nl"
5555: $as_echo '' >> "conftest.nl"
5556: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5557: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5558: as_fn_arith $ac_count + 1 && ac_count=$as_val
5559: if test $ac_count -gt ${ac_path_SED_max-0}; then
5560: # Best one so far, save it but keep looking for a better one
5561: ac_cv_path_SED="$ac_path_SED"
5562: ac_path_SED_max=$ac_count
5563: fi
5564: # 10*(2^10) chars as input seems more than enough
5565: test $ac_count -gt 10 && break
5566: done
5567: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5568: esac
5569:
5570: $ac_path_SED_found && break 3
5571: done
5572: done
5573: done
5574: IFS=$as_save_IFS
5575: if test -z "$ac_cv_path_SED"; then
5576: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5577: fi
5578: else
5579: ac_cv_path_SED=$SED
5580: fi
5581:
5582: fi
5583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5584: $as_echo "$ac_cv_path_SED" >&6; }
5585: SED="$ac_cv_path_SED"
5586: rm -f conftest.sed
5587:
5588: test -z "$SED" && SED=sed
5589: Xsed="$SED -e 1s/^X//"
5590:
5591:
5592:
5593:
5594:
5595:
5596:
5597:
5598:
5599:
5600:
5601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5602: $as_echo_n "checking for fgrep... " >&6; }
5603: if ${ac_cv_path_FGREP+:} false; then :
5604: $as_echo_n "(cached) " >&6
5605: else
5606: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5607: then ac_cv_path_FGREP="$GREP -F"
5608: else
5609: if test -z "$FGREP"; then
5610: ac_path_FGREP_found=false
5611: # Loop through the user's path and test for each of PROGNAME-LIST
5612: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5614: do
5615: IFS=$as_save_IFS
5616: test -z "$as_dir" && as_dir=.
5617: for ac_prog in fgrep; do
5618: for ac_exec_ext in '' $ac_executable_extensions; do
5619: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5620: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5621: # Check for GNU ac_path_FGREP and select it if it is found.
5622: # Check for GNU $ac_path_FGREP
5623: case `"$ac_path_FGREP" --version 2>&1` in
5624: *GNU*)
5625: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5626: *)
5627: ac_count=0
5628: $as_echo_n 0123456789 >"conftest.in"
5629: while :
5630: do
5631: cat "conftest.in" "conftest.in" >"conftest.tmp"
5632: mv "conftest.tmp" "conftest.in"
5633: cp "conftest.in" "conftest.nl"
5634: $as_echo 'FGREP' >> "conftest.nl"
5635: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5636: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5637: as_fn_arith $ac_count + 1 && ac_count=$as_val
5638: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5639: # Best one so far, save it but keep looking for a better one
5640: ac_cv_path_FGREP="$ac_path_FGREP"
5641: ac_path_FGREP_max=$ac_count
5642: fi
5643: # 10*(2^10) chars as input seems more than enough
5644: test $ac_count -gt 10 && break
5645: done
5646: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5647: esac
5648:
5649: $ac_path_FGREP_found && break 3
5650: done
5651: done
5652: done
5653: IFS=$as_save_IFS
5654: if test -z "$ac_cv_path_FGREP"; then
5655: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5656: fi
5657: else
5658: ac_cv_path_FGREP=$FGREP
5659: fi
5660:
5661: fi
5662: fi
5663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5664: $as_echo "$ac_cv_path_FGREP" >&6; }
5665: FGREP="$ac_cv_path_FGREP"
5666:
5667:
5668: test -z "$GREP" && GREP=grep
5669:
5670:
5671:
5672:
5673:
5674:
5675:
5676:
5677:
5678:
5679:
5680:
5681:
5682:
5683:
5684:
5685:
5686:
5687:
5688: # Check whether --with-gnu-ld was given.
5689: if test "${with_gnu_ld+set}" = set; then :
5690: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5691: else
5692: with_gnu_ld=no
5693: fi
5694:
5695: ac_prog=ld
5696: if test "$GCC" = yes; then
5697: # Check if gcc -print-prog-name=ld gives a path.
5698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5699: $as_echo_n "checking for ld used by $CC... " >&6; }
5700: case $host in
5701: *-*-mingw*)
5702: # gcc leaves a trailing carriage return which upsets mingw
5703: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5704: *)
5705: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5706: esac
5707: case $ac_prog in
5708: # Accept absolute paths.
5709: [\\/]* | ?:[\\/]*)
5710: re_direlt='/[^/][^/]*/\.\./'
5711: # Canonicalize the pathname of ld
5712: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5713: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5714: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5715: done
5716: test -z "$LD" && LD="$ac_prog"
5717: ;;
5718: "")
5719: # If it fails, then pretend we aren't using GCC.
5720: ac_prog=ld
5721: ;;
5722: *)
5723: # If it is relative, then search for the first ld in PATH.
5724: with_gnu_ld=unknown
5725: ;;
5726: esac
5727: elif test "$with_gnu_ld" = yes; then
5728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5729: $as_echo_n "checking for GNU ld... " >&6; }
5730: else
5731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5732: $as_echo_n "checking for non-GNU ld... " >&6; }
5733: fi
5734: if ${lt_cv_path_LD+:} false; then :
5735: $as_echo_n "(cached) " >&6
5736: else
5737: if test -z "$LD"; then
5738: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5739: for ac_dir in $PATH; do
5740: IFS="$lt_save_ifs"
5741: test -z "$ac_dir" && ac_dir=.
5742: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5743: lt_cv_path_LD="$ac_dir/$ac_prog"
5744: # Check to see if the program is GNU ld. I'd rather use --version,
5745: # but apparently some variants of GNU ld only accept -v.
5746: # Break only if it was the GNU/non-GNU ld that we prefer.
5747: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5748: *GNU* | *'with BFD'*)
5749: test "$with_gnu_ld" != no && break
5750: ;;
5751: *)
5752: test "$with_gnu_ld" != yes && break
5753: ;;
5754: esac
5755: fi
5756: done
5757: IFS="$lt_save_ifs"
5758: else
5759: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5760: fi
5761: fi
5762:
5763: LD="$lt_cv_path_LD"
5764: if test -n "$LD"; then
5765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5766: $as_echo "$LD" >&6; }
5767: else
5768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769: $as_echo "no" >&6; }
5770: fi
5771: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5773: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5774: if ${lt_cv_prog_gnu_ld+:} false; then :
5775: $as_echo_n "(cached) " >&6
5776: else
5777: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5778: case `$LD -v 2>&1 </dev/null` in
5779: *GNU* | *'with BFD'*)
5780: lt_cv_prog_gnu_ld=yes
5781: ;;
5782: *)
5783: lt_cv_prog_gnu_ld=no
5784: ;;
5785: esac
5786: fi
5787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5788: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5789: with_gnu_ld=$lt_cv_prog_gnu_ld
5790:
5791:
5792:
5793:
5794:
5795:
5796:
5797:
5798:
5799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5800: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5801: if ${lt_cv_path_NM+:} false; then :
5802: $as_echo_n "(cached) " >&6
5803: else
5804: if test -n "$NM"; then
5805: # Let the user override the test.
5806: lt_cv_path_NM="$NM"
5807: else
5808: lt_nm_to_check="${ac_tool_prefix}nm"
5809: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5810: lt_nm_to_check="$lt_nm_to_check nm"
5811: fi
5812: for lt_tmp_nm in $lt_nm_to_check; do
5813: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5814: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5815: IFS="$lt_save_ifs"
5816: test -z "$ac_dir" && ac_dir=.
5817: tmp_nm="$ac_dir/$lt_tmp_nm"
5818: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5819: # Check to see if the nm accepts a BSD-compat flag.
5820: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5821: # nm: unknown option "B" ignored
5822: # Tru64's nm complains that /dev/null is an invalid object file
5823: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5824: */dev/null* | *'Invalid file or object type'*)
5825: lt_cv_path_NM="$tmp_nm -B"
5826: break
5827: ;;
5828: *)
5829: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5830: */dev/null*)
5831: lt_cv_path_NM="$tmp_nm -p"
5832: break
5833: ;;
5834: *)
5835: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5836: continue # so that we can try to find one that supports BSD flags
5837: ;;
5838: esac
5839: ;;
5840: esac
5841: fi
5842: done
5843: IFS="$lt_save_ifs"
5844: done
5845: : ${lt_cv_path_NM=no}
5846: fi
5847: fi
5848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5849: $as_echo "$lt_cv_path_NM" >&6; }
5850: if test "$lt_cv_path_NM" != "no"; then
5851: NM="$lt_cv_path_NM"
5852: else
5853: # Didn't find any BSD compatible name lister, look for dumpbin.
5854: if test -n "$DUMPBIN"; then :
5855: # Let the user override the test.
5856: else
5857: if test -n "$ac_tool_prefix"; then
5858: for ac_prog in dumpbin "link -dump"
5859: do
5860: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5861: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5862: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863: $as_echo_n "checking for $ac_word... " >&6; }
5864: if ${ac_cv_prog_DUMPBIN+:} false; then :
5865: $as_echo_n "(cached) " >&6
5866: else
5867: if test -n "$DUMPBIN"; then
5868: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5869: else
5870: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871: for as_dir in $PATH
5872: do
5873: IFS=$as_save_IFS
5874: test -z "$as_dir" && as_dir=.
5875: for ac_exec_ext in '' $ac_executable_extensions; do
5876: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5878: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879: break 2
5880: fi
5881: done
5882: done
5883: IFS=$as_save_IFS
5884:
5885: fi
5886: fi
5887: DUMPBIN=$ac_cv_prog_DUMPBIN
5888: if test -n "$DUMPBIN"; then
5889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5890: $as_echo "$DUMPBIN" >&6; }
5891: else
5892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893: $as_echo "no" >&6; }
5894: fi
5895:
5896:
5897: test -n "$DUMPBIN" && break
5898: done
5899: fi
5900: if test -z "$DUMPBIN"; then
5901: ac_ct_DUMPBIN=$DUMPBIN
5902: for ac_prog in dumpbin "link -dump"
5903: do
5904: # Extract the first word of "$ac_prog", so it can be a program name with args.
5905: set dummy $ac_prog; ac_word=$2
5906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907: $as_echo_n "checking for $ac_word... " >&6; }
5908: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5909: $as_echo_n "(cached) " >&6
5910: else
5911: if test -n "$ac_ct_DUMPBIN"; then
5912: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5913: else
5914: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915: for as_dir in $PATH
5916: do
5917: IFS=$as_save_IFS
5918: test -z "$as_dir" && as_dir=.
5919: for ac_exec_ext in '' $ac_executable_extensions; do
5920: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5922: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923: break 2
5924: fi
5925: done
5926: done
5927: IFS=$as_save_IFS
5928:
5929: fi
5930: fi
5931: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5932: if test -n "$ac_ct_DUMPBIN"; then
5933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5934: $as_echo "$ac_ct_DUMPBIN" >&6; }
5935: else
5936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937: $as_echo "no" >&6; }
5938: fi
5939:
5940:
5941: test -n "$ac_ct_DUMPBIN" && break
5942: done
5943:
5944: if test "x$ac_ct_DUMPBIN" = x; then
5945: DUMPBIN=":"
5946: else
5947: case $cross_compiling:$ac_tool_warned in
5948: yes:)
5949: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951: ac_tool_warned=yes ;;
5952: esac
5953: DUMPBIN=$ac_ct_DUMPBIN
5954: fi
5955: fi
5956:
5957: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5958: *COFF*)
5959: DUMPBIN="$DUMPBIN -symbols"
5960: ;;
5961: *)
5962: DUMPBIN=:
5963: ;;
5964: esac
5965: fi
5966:
5967: if test "$DUMPBIN" != ":"; then
5968: NM="$DUMPBIN"
5969: fi
5970: fi
5971: test -z "$NM" && NM=nm
5972:
5973:
5974:
5975:
5976:
5977:
5978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5979: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5980: if ${lt_cv_nm_interface+:} false; then :
5981: $as_echo_n "(cached) " >&6
5982: else
5983: lt_cv_nm_interface="BSD nm"
5984: echo "int some_variable = 0;" > conftest.$ac_ext
5985: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5986: (eval "$ac_compile" 2>conftest.err)
5987: cat conftest.err >&5
5988: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5989: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5990: cat conftest.err >&5
5991: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5992: cat conftest.out >&5
5993: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5994: lt_cv_nm_interface="MS dumpbin"
5995: fi
5996: rm -f conftest*
5997: fi
5998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5999: $as_echo "$lt_cv_nm_interface" >&6; }
6000:
6001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6002: $as_echo_n "checking whether ln -s works... " >&6; }
6003: LN_S=$as_ln_s
6004: if test "$LN_S" = "ln -s"; then
6005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6006: $as_echo "yes" >&6; }
6007: else
6008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6009: $as_echo "no, using $LN_S" >&6; }
6010: fi
6011:
6012: # find the maximum length of command line arguments
6013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6014: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6015: if ${lt_cv_sys_max_cmd_len+:} false; then :
6016: $as_echo_n "(cached) " >&6
6017: else
6018: i=0
6019: teststring="ABCD"
6020:
6021: case $build_os in
6022: msdosdjgpp*)
6023: # On DJGPP, this test can blow up pretty badly due to problems in libc
6024: # (any single argument exceeding 2000 bytes causes a buffer overrun
6025: # during glob expansion). Even if it were fixed, the result of this
6026: # check would be larger than it should be.
6027: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6028: ;;
6029:
6030: gnu*)
6031: # Under GNU Hurd, this test is not required because there is
6032: # no limit to the length of command line arguments.
6033: # Libtool will interpret -1 as no limit whatsoever
6034: lt_cv_sys_max_cmd_len=-1;
6035: ;;
6036:
6037: cygwin* | mingw* | cegcc*)
6038: # On Win9x/ME, this test blows up -- it succeeds, but takes
6039: # about 5 minutes as the teststring grows exponentially.
6040: # Worse, since 9x/ME are not pre-emptively multitasking,
6041: # you end up with a "frozen" computer, even though with patience
6042: # the test eventually succeeds (with a max line length of 256k).
6043: # Instead, let's just punt: use the minimum linelength reported by
6044: # all of the supported platforms: 8192 (on NT/2K/XP).
6045: lt_cv_sys_max_cmd_len=8192;
6046: ;;
6047:
6048: mint*)
6049: # On MiNT this can take a long time and run out of memory.
6050: lt_cv_sys_max_cmd_len=8192;
6051: ;;
6052:
6053: amigaos*)
6054: # On AmigaOS with pdksh, this test takes hours, literally.
6055: # So we just punt and use a minimum line length of 8192.
6056: lt_cv_sys_max_cmd_len=8192;
6057: ;;
6058:
6059: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6060: # This has been around since 386BSD, at least. Likely further.
6061: if test -x /sbin/sysctl; then
6062: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6063: elif test -x /usr/sbin/sysctl; then
6064: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6065: else
6066: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6067: fi
6068: # And add a safety zone
6069: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6071: ;;
6072:
6073: interix*)
6074: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6075: lt_cv_sys_max_cmd_len=196608
6076: ;;
6077:
6078: osf*)
6079: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6080: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6081: # nice to cause kernel panics so lets avoid the loop below.
6082: # First set a reasonable default.
6083: lt_cv_sys_max_cmd_len=16384
6084: #
6085: if test -x /sbin/sysconfig; then
6086: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6087: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6088: esac
6089: fi
6090: ;;
6091: sco3.2v5*)
6092: lt_cv_sys_max_cmd_len=102400
6093: ;;
6094: sysv5* | sco5v6* | sysv4.2uw2*)
6095: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6096: if test -n "$kargmax"; then
6097: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6098: else
6099: lt_cv_sys_max_cmd_len=32768
6100: fi
6101: ;;
6102: *)
6103: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6104: if test -n "$lt_cv_sys_max_cmd_len"; then
6105: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6106: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6107: else
6108: # Make teststring a little bigger before we do anything with it.
6109: # a 1K string should be a reasonable start.
6110: for i in 1 2 3 4 5 6 7 8 ; do
6111: teststring=$teststring$teststring
6112: done
6113: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6114: # If test is not a shell built-in, we'll probably end up computing a
6115: # maximum length that is only half of the actual maximum length, but
6116: # we can't tell.
6117: while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6118: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6119: test $i != 17 # 1/2 MB should be enough
6120: do
6121: i=`expr $i + 1`
6122: teststring=$teststring$teststring
6123: done
6124: # Only check the string length outside the loop.
6125: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6126: teststring=
6127: # Add a significant safety factor because C++ compilers can tack on
6128: # massive amounts of additional arguments before passing them to the
6129: # linker. It appears as though 1/2 is a usable value.
6130: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6131: fi
6132: ;;
6133: esac
6134:
6135: fi
6136:
6137: if test -n $lt_cv_sys_max_cmd_len ; then
6138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6139: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6140: else
6141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6142: $as_echo "none" >&6; }
6143: fi
6144: max_cmd_len=$lt_cv_sys_max_cmd_len
6145:
6146:
6147:
6148:
6149:
6150:
6151: : ${CP="cp -f"}
6152: : ${MV="mv -f"}
6153: : ${RM="rm -f"}
6154:
6155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6156: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6157: # Try some XSI features
6158: xsi_shell=no
6159: ( _lt_dummy="a/b/c"
6160: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6161: = c,a/b,b/c, \
6162: && eval 'test $(( 1 + 1 )) -eq 2 \
6163: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6164: && xsi_shell=yes
6165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6166: $as_echo "$xsi_shell" >&6; }
6167:
6168:
6169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6170: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6171: lt_shell_append=no
6172: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6173: >/dev/null 2>&1 \
6174: && lt_shell_append=yes
6175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6176: $as_echo "$lt_shell_append" >&6; }
6177:
6178:
6179: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6180: lt_unset=unset
6181: else
6182: lt_unset=false
6183: fi
6184:
6185:
6186:
6187:
6188:
6189: # test EBCDIC or ASCII
6190: case `echo X|tr X '\101'` in
6191: A) # ASCII based system
6192: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6193: lt_SP2NL='tr \040 \012'
6194: lt_NL2SP='tr \015\012 \040\040'
6195: ;;
6196: *) # EBCDIC based system
6197: lt_SP2NL='tr \100 \n'
6198: lt_NL2SP='tr \r\n \100\100'
6199: ;;
6200: esac
6201:
6202:
6203:
6204:
6205:
6206:
6207:
6208:
6209:
6210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6211: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6212: if ${lt_cv_to_host_file_cmd+:} false; then :
6213: $as_echo_n "(cached) " >&6
6214: else
6215: case $host in
6216: *-*-mingw* )
6217: case $build in
6218: *-*-mingw* ) # actually msys
6219: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6220: ;;
6221: *-*-cygwin* )
6222: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6223: ;;
6224: * ) # otherwise, assume *nix
6225: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6226: ;;
6227: esac
6228: ;;
6229: *-*-cygwin* )
6230: case $build in
6231: *-*-mingw* ) # actually msys
6232: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6233: ;;
6234: *-*-cygwin* )
6235: lt_cv_to_host_file_cmd=func_convert_file_noop
6236: ;;
6237: * ) # otherwise, assume *nix
6238: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6239: ;;
6240: esac
6241: ;;
6242: * ) # unhandled hosts (and "normal" native builds)
6243: lt_cv_to_host_file_cmd=func_convert_file_noop
6244: ;;
6245: esac
6246:
6247: fi
6248:
6249: to_host_file_cmd=$lt_cv_to_host_file_cmd
6250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6251: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6252:
6253:
6254:
6255:
6256:
6257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6258: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6259: if ${lt_cv_to_tool_file_cmd+:} false; then :
6260: $as_echo_n "(cached) " >&6
6261: else
6262: #assume ordinary cross tools, or native build.
6263: lt_cv_to_tool_file_cmd=func_convert_file_noop
6264: case $host in
6265: *-*-mingw* )
6266: case $build in
6267: *-*-mingw* ) # actually msys
6268: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6269: ;;
6270: esac
6271: ;;
6272: esac
6273:
6274: fi
6275:
6276: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6278: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6279:
6280:
6281:
6282:
6283:
6284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6285: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6286: if ${lt_cv_ld_reload_flag+:} false; then :
6287: $as_echo_n "(cached) " >&6
6288: else
6289: lt_cv_ld_reload_flag='-r'
6290: fi
6291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6292: $as_echo "$lt_cv_ld_reload_flag" >&6; }
6293: reload_flag=$lt_cv_ld_reload_flag
6294: case $reload_flag in
6295: "" | " "*) ;;
6296: *) reload_flag=" $reload_flag" ;;
6297: esac
6298: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6299: case $host_os in
6300: cygwin* | mingw* | pw32* | cegcc*)
6301: if test "$GCC" != yes; then
6302: reload_cmds=false
6303: fi
6304: ;;
6305: darwin*)
6306: if test "$GCC" = yes; then
6307: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6308: else
6309: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6310: fi
6311: ;;
6312: esac
6313:
6314:
6315:
6316:
6317:
6318:
6319:
6320:
6321:
6322: if test -n "$ac_tool_prefix"; then
6323: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6324: set dummy ${ac_tool_prefix}objdump; ac_word=$2
6325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326: $as_echo_n "checking for $ac_word... " >&6; }
6327: if ${ac_cv_prog_OBJDUMP+:} false; then :
6328: $as_echo_n "(cached) " >&6
6329: else
6330: if test -n "$OBJDUMP"; then
6331: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6332: else
6333: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334: for as_dir in $PATH
6335: do
6336: IFS=$as_save_IFS
6337: test -z "$as_dir" && as_dir=.
6338: for ac_exec_ext in '' $ac_executable_extensions; do
6339: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6341: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342: break 2
6343: fi
6344: done
6345: done
6346: IFS=$as_save_IFS
6347:
6348: fi
6349: fi
6350: OBJDUMP=$ac_cv_prog_OBJDUMP
6351: if test -n "$OBJDUMP"; then
6352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6353: $as_echo "$OBJDUMP" >&6; }
6354: else
6355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356: $as_echo "no" >&6; }
6357: fi
6358:
6359:
6360: fi
6361: if test -z "$ac_cv_prog_OBJDUMP"; then
6362: ac_ct_OBJDUMP=$OBJDUMP
6363: # Extract the first word of "objdump", so it can be a program name with args.
6364: set dummy objdump; ac_word=$2
6365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366: $as_echo_n "checking for $ac_word... " >&6; }
6367: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6368: $as_echo_n "(cached) " >&6
6369: else
6370: if test -n "$ac_ct_OBJDUMP"; then
6371: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6372: else
6373: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374: for as_dir in $PATH
6375: do
6376: IFS=$as_save_IFS
6377: test -z "$as_dir" && as_dir=.
6378: for ac_exec_ext in '' $ac_executable_extensions; do
6379: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380: ac_cv_prog_ac_ct_OBJDUMP="objdump"
6381: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382: break 2
6383: fi
6384: done
6385: done
6386: IFS=$as_save_IFS
6387:
6388: fi
6389: fi
6390: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6391: if test -n "$ac_ct_OBJDUMP"; then
6392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6393: $as_echo "$ac_ct_OBJDUMP" >&6; }
6394: else
6395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396: $as_echo "no" >&6; }
6397: fi
6398:
6399: if test "x$ac_ct_OBJDUMP" = x; then
6400: OBJDUMP="false"
6401: else
6402: case $cross_compiling:$ac_tool_warned in
6403: yes:)
6404: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406: ac_tool_warned=yes ;;
6407: esac
6408: OBJDUMP=$ac_ct_OBJDUMP
6409: fi
6410: else
6411: OBJDUMP="$ac_cv_prog_OBJDUMP"
6412: fi
6413:
6414: test -z "$OBJDUMP" && OBJDUMP=objdump
6415:
6416:
6417:
6418:
6419:
6420:
6421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6422: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6423: if ${lt_cv_deplibs_check_method+:} false; then :
6424: $as_echo_n "(cached) " >&6
6425: else
6426: lt_cv_file_magic_cmd='$MAGIC_CMD'
6427: lt_cv_file_magic_test_file=
6428: lt_cv_deplibs_check_method='unknown'
6429: # Need to set the preceding variable on all platforms that support
6430: # interlibrary dependencies.
6431: # 'none' -- dependencies not supported.
6432: # `unknown' -- same as none, but documents that we really don't know.
6433: # 'pass_all' -- all dependencies passed with no checks.
6434: # 'test_compile' -- check by making test program.
6435: # 'file_magic [[regex]]' -- check by looking for files in library path
6436: # which responds to the $file_magic_cmd with a given extended regex.
6437: # If you have `file' or equivalent on your system and you're not sure
6438: # whether `pass_all' will *always* work, you probably want this one.
6439:
6440: case $host_os in
6441: aix[4-9]*)
6442: lt_cv_deplibs_check_method=pass_all
6443: ;;
6444:
6445: beos*)
6446: lt_cv_deplibs_check_method=pass_all
6447: ;;
6448:
6449: bsdi[45]*)
6450: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6451: lt_cv_file_magic_cmd='/usr/bin/file -L'
6452: lt_cv_file_magic_test_file=/shlib/libc.so
6453: ;;
6454:
6455: cygwin*)
6456: # func_win32_libid is a shell function defined in ltmain.sh
6457: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6458: lt_cv_file_magic_cmd='func_win32_libid'
6459: ;;
6460:
6461: mingw* | pw32*)
6462: # Base MSYS/MinGW do not provide the 'file' command needed by
6463: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6464: # unless we find 'file', for example because we are cross-compiling.
6465: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6466: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6467: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6468: lt_cv_file_magic_cmd='func_win32_libid'
6469: else
6470: # Keep this pattern in sync with the one in func_win32_libid.
6471: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6472: lt_cv_file_magic_cmd='$OBJDUMP -f'
6473: fi
6474: ;;
6475:
6476: cegcc*)
6477: # use the weaker test based on 'objdump'. See mingw*.
6478: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6479: lt_cv_file_magic_cmd='$OBJDUMP -f'
6480: ;;
6481:
6482: darwin* | rhapsody*)
6483: lt_cv_deplibs_check_method=pass_all
6484: ;;
6485:
6486: freebsd* | dragonfly*)
6487: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6488: case $host_cpu in
6489: i*86 )
6490: # Not sure whether the presence of OpenBSD here was a mistake.
6491: # Let's accept both of them until this is cleared up.
6492: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6493: lt_cv_file_magic_cmd=/usr/bin/file
6494: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6495: ;;
6496: esac
6497: else
6498: lt_cv_deplibs_check_method=pass_all
6499: fi
6500: ;;
6501:
6502: gnu*)
6503: lt_cv_deplibs_check_method=pass_all
6504: ;;
6505:
6506: haiku*)
6507: lt_cv_deplibs_check_method=pass_all
6508: ;;
6509:
6510: hpux10.20* | hpux11*)
6511: lt_cv_file_magic_cmd=/usr/bin/file
6512: case $host_cpu in
6513: ia64*)
6514: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6515: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6516: ;;
6517: hppa*64*)
6518: 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]'
6519: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6520: ;;
6521: *)
6522: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6523: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6524: ;;
6525: esac
6526: ;;
6527:
6528: interix[3-9]*)
6529: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6530: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6531: ;;
6532:
6533: irix5* | irix6* | nonstopux*)
6534: case $LD in
6535: *-32|*"-32 ") libmagic=32-bit;;
6536: *-n32|*"-n32 ") libmagic=N32;;
6537: *-64|*"-64 ") libmagic=64-bit;;
6538: *) libmagic=never-match;;
6539: esac
6540: lt_cv_deplibs_check_method=pass_all
6541: ;;
6542:
6543: # This must be Linux ELF.
6544: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6545: lt_cv_deplibs_check_method=pass_all
6546: ;;
6547:
6548: netbsd*)
6549: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6550: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6551: else
6552: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6553: fi
6554: ;;
6555:
6556: newos6*)
6557: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6558: lt_cv_file_magic_cmd=/usr/bin/file
6559: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6560: ;;
6561:
6562: *nto* | *qnx*)
6563: lt_cv_deplibs_check_method=pass_all
6564: ;;
6565:
6566: openbsd*)
6567: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6568: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6569: else
6570: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6571: fi
6572: ;;
6573:
6574: osf3* | osf4* | osf5*)
6575: lt_cv_deplibs_check_method=pass_all
6576: ;;
6577:
6578: rdos*)
6579: lt_cv_deplibs_check_method=pass_all
6580: ;;
6581:
6582: solaris*)
6583: lt_cv_deplibs_check_method=pass_all
6584: ;;
6585:
6586: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6587: lt_cv_deplibs_check_method=pass_all
6588: ;;
6589:
6590: sysv4 | sysv4.3*)
6591: case $host_vendor in
6592: motorola)
6593: 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]'
6594: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6595: ;;
6596: ncr)
6597: lt_cv_deplibs_check_method=pass_all
6598: ;;
6599: sequent)
6600: lt_cv_file_magic_cmd='/bin/file'
6601: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6602: ;;
6603: sni)
6604: lt_cv_file_magic_cmd='/bin/file'
6605: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6606: lt_cv_file_magic_test_file=/lib/libc.so
6607: ;;
6608: siemens)
6609: lt_cv_deplibs_check_method=pass_all
6610: ;;
6611: pc)
6612: lt_cv_deplibs_check_method=pass_all
6613: ;;
6614: esac
6615: ;;
6616:
6617: tpf*)
6618: lt_cv_deplibs_check_method=pass_all
6619: ;;
6620: esac
6621:
6622: fi
6623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6624: $as_echo "$lt_cv_deplibs_check_method" >&6; }
6625:
6626: file_magic_glob=
6627: want_nocaseglob=no
6628: if test "$build" = "$host"; then
6629: case $host_os in
6630: mingw* | pw32*)
6631: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6632: want_nocaseglob=yes
6633: else
6634: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6635: fi
6636: ;;
6637: esac
6638: fi
6639:
6640: file_magic_cmd=$lt_cv_file_magic_cmd
6641: deplibs_check_method=$lt_cv_deplibs_check_method
6642: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6643:
6644:
6645:
6646:
6647:
6648:
6649:
6650:
6651:
6652:
6653:
6654:
6655:
6656:
6657:
6658:
6659:
6660:
6661:
6662:
6663:
6664:
6665: if test -n "$ac_tool_prefix"; then
6666: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6667: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669: $as_echo_n "checking for $ac_word... " >&6; }
6670: if ${ac_cv_prog_DLLTOOL+:} false; then :
6671: $as_echo_n "(cached) " >&6
6672: else
6673: if test -n "$DLLTOOL"; then
6674: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6675: else
6676: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677: for as_dir in $PATH
6678: do
6679: IFS=$as_save_IFS
6680: test -z "$as_dir" && as_dir=.
6681: for ac_exec_ext in '' $ac_executable_extensions; do
6682: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6684: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685: break 2
6686: fi
6687: done
6688: done
6689: IFS=$as_save_IFS
6690:
6691: fi
6692: fi
6693: DLLTOOL=$ac_cv_prog_DLLTOOL
6694: if test -n "$DLLTOOL"; then
6695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6696: $as_echo "$DLLTOOL" >&6; }
6697: else
6698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699: $as_echo "no" >&6; }
6700: fi
6701:
6702:
6703: fi
6704: if test -z "$ac_cv_prog_DLLTOOL"; then
6705: ac_ct_DLLTOOL=$DLLTOOL
6706: # Extract the first word of "dlltool", so it can be a program name with args.
6707: set dummy dlltool; ac_word=$2
6708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709: $as_echo_n "checking for $ac_word... " >&6; }
6710: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6711: $as_echo_n "(cached) " >&6
6712: else
6713: if test -n "$ac_ct_DLLTOOL"; then
6714: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6715: else
6716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717: for as_dir in $PATH
6718: do
6719: IFS=$as_save_IFS
6720: test -z "$as_dir" && as_dir=.
6721: for ac_exec_ext in '' $ac_executable_extensions; do
6722: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6724: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725: break 2
6726: fi
6727: done
6728: done
6729: IFS=$as_save_IFS
6730:
6731: fi
6732: fi
6733: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6734: if test -n "$ac_ct_DLLTOOL"; then
6735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6736: $as_echo "$ac_ct_DLLTOOL" >&6; }
6737: else
6738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739: $as_echo "no" >&6; }
6740: fi
6741:
6742: if test "x$ac_ct_DLLTOOL" = x; then
6743: DLLTOOL="false"
6744: else
6745: case $cross_compiling:$ac_tool_warned in
6746: yes:)
6747: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749: ac_tool_warned=yes ;;
6750: esac
6751: DLLTOOL=$ac_ct_DLLTOOL
6752: fi
6753: else
6754: DLLTOOL="$ac_cv_prog_DLLTOOL"
6755: fi
6756:
6757: test -z "$DLLTOOL" && DLLTOOL=dlltool
6758:
6759:
6760:
6761:
6762:
6763:
6764:
6765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6766: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6767: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6768: $as_echo_n "(cached) " >&6
6769: else
6770: lt_cv_sharedlib_from_linklib_cmd='unknown'
6771:
6772: case $host_os in
6773: cygwin* | mingw* | pw32* | cegcc*)
6774: # two different shell functions defined in ltmain.sh
6775: # decide which to use based on capabilities of $DLLTOOL
6776: case `$DLLTOOL --help 2>&1` in
6777: *--identify-strict*)
6778: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6779: ;;
6780: *)
6781: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6782: ;;
6783: esac
6784: ;;
6785: *)
6786: # fallback: assume linklib IS sharedlib
6787: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6788: ;;
6789: esac
6790:
6791: fi
6792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6793: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6794: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6795: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6796:
6797:
6798:
6799:
6800:
6801:
6802:
6803: if test -n "$ac_tool_prefix"; then
6804: for ac_prog in ar
6805: do
6806: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6807: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6808: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809: $as_echo_n "checking for $ac_word... " >&6; }
6810: if ${ac_cv_prog_AR+:} false; then :
6811: $as_echo_n "(cached) " >&6
6812: else
6813: if test -n "$AR"; then
6814: ac_cv_prog_AR="$AR" # Let the user override the test.
6815: else
6816: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817: for as_dir in $PATH
6818: do
6819: IFS=$as_save_IFS
6820: test -z "$as_dir" && as_dir=.
6821: for ac_exec_ext in '' $ac_executable_extensions; do
6822: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6824: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825: break 2
6826: fi
6827: done
6828: done
6829: IFS=$as_save_IFS
6830:
6831: fi
6832: fi
6833: AR=$ac_cv_prog_AR
6834: if test -n "$AR"; then
6835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6836: $as_echo "$AR" >&6; }
6837: else
6838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839: $as_echo "no" >&6; }
6840: fi
6841:
6842:
6843: test -n "$AR" && break
6844: done
6845: fi
6846: if test -z "$AR"; then
6847: ac_ct_AR=$AR
6848: for ac_prog in ar
6849: do
6850: # Extract the first word of "$ac_prog", so it can be a program name with args.
6851: set dummy $ac_prog; ac_word=$2
6852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853: $as_echo_n "checking for $ac_word... " >&6; }
6854: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6855: $as_echo_n "(cached) " >&6
6856: else
6857: if test -n "$ac_ct_AR"; then
6858: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6859: else
6860: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861: for as_dir in $PATH
6862: do
6863: IFS=$as_save_IFS
6864: test -z "$as_dir" && as_dir=.
6865: for ac_exec_ext in '' $ac_executable_extensions; do
6866: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867: ac_cv_prog_ac_ct_AR="$ac_prog"
6868: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869: break 2
6870: fi
6871: done
6872: done
6873: IFS=$as_save_IFS
6874:
6875: fi
6876: fi
6877: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6878: if test -n "$ac_ct_AR"; then
6879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6880: $as_echo "$ac_ct_AR" >&6; }
6881: else
6882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883: $as_echo "no" >&6; }
6884: fi
6885:
6886:
6887: test -n "$ac_ct_AR" && break
6888: done
6889:
6890: if test "x$ac_ct_AR" = x; then
6891: AR="false"
6892: else
6893: case $cross_compiling:$ac_tool_warned in
6894: yes:)
6895: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897: ac_tool_warned=yes ;;
6898: esac
6899: AR=$ac_ct_AR
6900: fi
6901: fi
6902:
6903: : ${AR=ar}
6904: : ${AR_FLAGS=cru}
6905:
6906:
6907:
6908:
6909:
6910:
6911:
6912:
6913:
6914:
6915:
6916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6917: $as_echo_n "checking for archiver @FILE support... " >&6; }
6918: if ${lt_cv_ar_at_file+:} false; then :
6919: $as_echo_n "(cached) " >&6
6920: else
6921: lt_cv_ar_at_file=no
6922: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923: /* end confdefs.h. */
6924:
6925: int
6926: main ()
6927: {
6928:
6929: ;
6930: return 0;
6931: }
6932: _ACEOF
6933: if ac_fn_c_try_compile "$LINENO"; then :
6934: echo conftest.$ac_objext > conftest.lst
6935: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6936: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6937: (eval $lt_ar_try) 2>&5
6938: ac_status=$?
6939: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940: test $ac_status = 0; }
6941: if test "$ac_status" -eq 0; then
6942: # Ensure the archiver fails upon bogus file names.
6943: rm -f conftest.$ac_objext libconftest.a
6944: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6945: (eval $lt_ar_try) 2>&5
6946: ac_status=$?
6947: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6948: test $ac_status = 0; }
6949: if test "$ac_status" -ne 0; then
6950: lt_cv_ar_at_file=@
6951: fi
6952: fi
6953: rm -f conftest.* libconftest.a
6954:
6955: fi
6956: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957:
6958: fi
6959: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6960: $as_echo "$lt_cv_ar_at_file" >&6; }
6961:
6962: if test "x$lt_cv_ar_at_file" = xno; then
6963: archiver_list_spec=
6964: else
6965: archiver_list_spec=$lt_cv_ar_at_file
6966: fi
6967:
6968:
6969:
6970:
6971:
6972:
6973:
6974: if test -n "$ac_tool_prefix"; then
6975: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6976: set dummy ${ac_tool_prefix}strip; ac_word=$2
6977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978: $as_echo_n "checking for $ac_word... " >&6; }
6979: if ${ac_cv_prog_STRIP+:} false; then :
6980: $as_echo_n "(cached) " >&6
6981: else
6982: if test -n "$STRIP"; then
6983: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6984: else
6985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986: for as_dir in $PATH
6987: do
6988: IFS=$as_save_IFS
6989: test -z "$as_dir" && as_dir=.
6990: for ac_exec_ext in '' $ac_executable_extensions; do
6991: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6992: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6993: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994: break 2
6995: fi
6996: done
6997: done
6998: IFS=$as_save_IFS
6999:
7000: fi
7001: fi
7002: STRIP=$ac_cv_prog_STRIP
7003: if test -n "$STRIP"; then
7004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7005: $as_echo "$STRIP" >&6; }
7006: else
7007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008: $as_echo "no" >&6; }
7009: fi
7010:
7011:
7012: fi
7013: if test -z "$ac_cv_prog_STRIP"; then
7014: ac_ct_STRIP=$STRIP
7015: # Extract the first word of "strip", so it can be a program name with args.
7016: set dummy strip; ac_word=$2
7017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018: $as_echo_n "checking for $ac_word... " >&6; }
7019: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7020: $as_echo_n "(cached) " >&6
7021: else
7022: if test -n "$ac_ct_STRIP"; then
7023: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7024: else
7025: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026: for as_dir in $PATH
7027: do
7028: IFS=$as_save_IFS
7029: test -z "$as_dir" && as_dir=.
7030: for ac_exec_ext in '' $ac_executable_extensions; do
7031: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032: ac_cv_prog_ac_ct_STRIP="strip"
7033: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034: break 2
7035: fi
7036: done
7037: done
7038: IFS=$as_save_IFS
7039:
7040: fi
7041: fi
7042: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7043: if test -n "$ac_ct_STRIP"; then
7044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7045: $as_echo "$ac_ct_STRIP" >&6; }
7046: else
7047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048: $as_echo "no" >&6; }
7049: fi
7050:
7051: if test "x$ac_ct_STRIP" = x; then
7052: STRIP=":"
7053: else
7054: case $cross_compiling:$ac_tool_warned in
7055: yes:)
7056: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058: ac_tool_warned=yes ;;
7059: esac
7060: STRIP=$ac_ct_STRIP
7061: fi
7062: else
7063: STRIP="$ac_cv_prog_STRIP"
7064: fi
7065:
7066: test -z "$STRIP" && STRIP=:
7067:
7068:
7069:
7070:
7071:
7072:
7073: if test -n "$ac_tool_prefix"; then
7074: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7075: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077: $as_echo_n "checking for $ac_word... " >&6; }
7078: if ${ac_cv_prog_RANLIB+:} false; then :
7079: $as_echo_n "(cached) " >&6
7080: else
7081: if test -n "$RANLIB"; then
7082: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7083: else
7084: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085: for as_dir in $PATH
7086: do
7087: IFS=$as_save_IFS
7088: test -z "$as_dir" && as_dir=.
7089: for ac_exec_ext in '' $ac_executable_extensions; do
7090: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7092: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093: break 2
7094: fi
7095: done
7096: done
7097: IFS=$as_save_IFS
7098:
7099: fi
7100: fi
7101: RANLIB=$ac_cv_prog_RANLIB
7102: if test -n "$RANLIB"; then
7103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7104: $as_echo "$RANLIB" >&6; }
7105: else
7106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107: $as_echo "no" >&6; }
7108: fi
7109:
7110:
7111: fi
7112: if test -z "$ac_cv_prog_RANLIB"; then
7113: ac_ct_RANLIB=$RANLIB
7114: # Extract the first word of "ranlib", so it can be a program name with args.
7115: set dummy ranlib; ac_word=$2
7116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117: $as_echo_n "checking for $ac_word... " >&6; }
7118: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7119: $as_echo_n "(cached) " >&6
7120: else
7121: if test -n "$ac_ct_RANLIB"; then
7122: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7123: else
7124: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125: for as_dir in $PATH
7126: do
7127: IFS=$as_save_IFS
7128: test -z "$as_dir" && as_dir=.
7129: for ac_exec_ext in '' $ac_executable_extensions; do
7130: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131: ac_cv_prog_ac_ct_RANLIB="ranlib"
7132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133: break 2
7134: fi
7135: done
7136: done
7137: IFS=$as_save_IFS
7138:
7139: fi
7140: fi
7141: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7142: if test -n "$ac_ct_RANLIB"; then
7143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7144: $as_echo "$ac_ct_RANLIB" >&6; }
7145: else
7146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147: $as_echo "no" >&6; }
7148: fi
7149:
7150: if test "x$ac_ct_RANLIB" = x; then
7151: RANLIB=":"
7152: else
7153: case $cross_compiling:$ac_tool_warned in
7154: yes:)
7155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157: ac_tool_warned=yes ;;
7158: esac
7159: RANLIB=$ac_ct_RANLIB
7160: fi
7161: else
7162: RANLIB="$ac_cv_prog_RANLIB"
7163: fi
7164:
7165: test -z "$RANLIB" && RANLIB=:
7166:
7167:
7168:
7169:
7170:
7171:
7172: # Determine commands to create old-style static archives.
7173: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7174: old_postinstall_cmds='chmod 644 $oldlib'
7175: old_postuninstall_cmds=
7176:
7177: if test -n "$RANLIB"; then
7178: case $host_os in
7179: openbsd*)
7180: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7181: ;;
7182: *)
7183: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7184: ;;
7185: esac
7186: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7187: fi
7188:
7189: case $host_os in
7190: darwin*)
7191: lock_old_archive_extraction=yes ;;
7192: *)
7193: lock_old_archive_extraction=no ;;
7194: esac
7195:
7196:
7197:
7198:
7199:
7200:
7201:
7202:
7203:
7204:
7205:
7206:
7207:
7208:
7209:
7210:
7211:
7212:
7213:
7214:
7215:
7216:
7217:
7218:
7219:
7220:
7221:
7222:
7223:
7224:
7225:
7226:
7227:
7228:
7229:
7230:
7231:
7232:
7233:
7234: # If no C compiler was specified, use CC.
7235: LTCC=${LTCC-"$CC"}
7236:
7237: # If no C compiler flags were specified, use CFLAGS.
7238: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7239:
7240: # Allow CC to be a program name with arguments.
7241: compiler=$CC
7242:
7243:
7244: # Check for command to grab the raw symbol name followed by C symbol from nm.
7245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7246: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7247: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7248: $as_echo_n "(cached) " >&6
7249: else
7250:
7251: # These are sane defaults that work on at least a few old systems.
7252: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7253:
7254: # Character class describing NM global symbol codes.
7255: symcode='[BCDEGRST]'
7256:
7257: # Regexp to match symbols that can be accessed directly from C.
7258: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7259:
7260: # Define system-specific variables.
7261: case $host_os in
7262: aix*)
7263: symcode='[BCDT]'
7264: ;;
7265: cygwin* | mingw* | pw32* | cegcc*)
7266: symcode='[ABCDGISTW]'
7267: ;;
7268: hpux*)
7269: if test "$host_cpu" = ia64; then
7270: symcode='[ABCDEGRST]'
7271: fi
7272: ;;
7273: irix* | nonstopux*)
7274: symcode='[BCDEGRST]'
7275: ;;
7276: osf*)
7277: symcode='[BCDEGQRST]'
7278: ;;
7279: solaris*)
7280: symcode='[BDRT]'
7281: ;;
7282: sco3.2v5*)
7283: symcode='[DT]'
7284: ;;
7285: sysv4.2uw2*)
7286: symcode='[DT]'
7287: ;;
7288: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7289: symcode='[ABDT]'
7290: ;;
7291: sysv4)
7292: symcode='[DFNSTU]'
7293: ;;
7294: esac
7295:
7296: # If we're using GNU nm, then use its standard symbol codes.
7297: case `$NM -V 2>&1` in
7298: *GNU* | *'with BFD'*)
7299: symcode='[ABCDGIRSTW]' ;;
7300: esac
7301:
7302: # Transform an extracted symbol line into a proper C declaration.
7303: # Some systems (esp. on ia64) link data and code symbols differently,
7304: # so use this general approach.
7305: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7306:
7307: # Transform an extracted symbol line into symbol name and symbol address
7308: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7309: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7310:
7311: # Handle CRLF in mingw tool chain
7312: opt_cr=
7313: case $build_os in
7314: mingw*)
7315: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7316: ;;
7317: esac
7318:
7319: # Try without a prefix underscore, then with it.
7320: for ac_symprfx in "" "_"; do
7321:
7322: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7323: symxfrm="\\1 $ac_symprfx\\2 \\2"
7324:
7325: # Write the raw and C identifiers.
7326: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7327: # Fake it for dumpbin and say T for any non-static function
7328: # and D for any global variable.
7329: # Also find C++ and __fastcall symbols from MSVC++,
7330: # which start with @ or ?.
7331: lt_cv_sys_global_symbol_pipe="$AWK '"\
7332: " {last_section=section; section=\$ 3};"\
7333: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7334: " \$ 0!~/External *\|/{next};"\
7335: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7336: " {if(hide[section]) next};"\
7337: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7338: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7339: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7340: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7341: " ' prfx=^$ac_symprfx"
7342: else
7343: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7344: fi
7345: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7346:
7347: # Check to see that the pipe works correctly.
7348: pipe_works=no
7349:
7350: rm -f conftest*
7351: cat > conftest.$ac_ext <<_LT_EOF
7352: #ifdef __cplusplus
7353: extern "C" {
7354: #endif
7355: char nm_test_var;
7356: void nm_test_func(void);
7357: void nm_test_func(void){}
7358: #ifdef __cplusplus
7359: }
7360: #endif
7361: int main(){nm_test_var='a';nm_test_func();return(0);}
7362: _LT_EOF
7363:
7364: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7365: (eval $ac_compile) 2>&5
7366: ac_status=$?
7367: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368: test $ac_status = 0; }; then
7369: # Now try to grab the symbols.
7370: nlist=conftest.nm
7371: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7372: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7373: ac_status=$?
7374: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7375: test $ac_status = 0; } && test -s "$nlist"; then
7376: # Try sorting and uniquifying the output.
7377: if sort "$nlist" | uniq > "$nlist"T; then
7378: mv -f "$nlist"T "$nlist"
7379: else
7380: rm -f "$nlist"T
7381: fi
7382:
7383: # Make sure that we snagged all the symbols we need.
7384: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7385: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7386: cat <<_LT_EOF > conftest.$ac_ext
7387: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7388: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7389: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7390: relocations are performed -- see ld's documentation on pseudo-relocs. */
7391: # define LT_DLSYM_CONST
7392: #elif defined(__osf__)
7393: /* This system does not cope well with relocations in const data. */
7394: # define LT_DLSYM_CONST
7395: #else
7396: # define LT_DLSYM_CONST const
7397: #endif
7398:
7399: #ifdef __cplusplus
7400: extern "C" {
7401: #endif
7402:
7403: _LT_EOF
7404: # Now generate the symbol file.
7405: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7406:
7407: cat <<_LT_EOF >> conftest.$ac_ext
7408:
7409: /* The mapping between symbol names and symbols. */
7410: LT_DLSYM_CONST struct {
7411: const char *name;
7412: void *address;
7413: }
7414: lt__PROGRAM__LTX_preloaded_symbols[] =
7415: {
7416: { "@PROGRAM@", (void *) 0 },
7417: _LT_EOF
7418: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7419: cat <<\_LT_EOF >> conftest.$ac_ext
7420: {0, (void *) 0}
7421: };
7422:
7423: /* This works around a problem in FreeBSD linker */
7424: #ifdef FREEBSD_WORKAROUND
7425: static const void *lt_preloaded_setup() {
7426: return lt__PROGRAM__LTX_preloaded_symbols;
7427: }
7428: #endif
7429:
7430: #ifdef __cplusplus
7431: }
7432: #endif
7433: _LT_EOF
7434: # Now try linking the two files.
7435: mv conftest.$ac_objext conftstm.$ac_objext
7436: lt_globsym_save_LIBS=$LIBS
7437: lt_globsym_save_CFLAGS=$CFLAGS
7438: LIBS="conftstm.$ac_objext"
7439: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7440: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7441: (eval $ac_link) 2>&5
7442: ac_status=$?
7443: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7445: pipe_works=yes
7446: fi
7447: LIBS=$lt_globsym_save_LIBS
7448: CFLAGS=$lt_globsym_save_CFLAGS
7449: else
7450: echo "cannot find nm_test_func in $nlist" >&5
7451: fi
7452: else
7453: echo "cannot find nm_test_var in $nlist" >&5
7454: fi
7455: else
7456: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7457: fi
7458: else
7459: echo "$progname: failed program was:" >&5
7460: cat conftest.$ac_ext >&5
7461: fi
7462: rm -rf conftest* conftst*
7463:
7464: # Do not use the global_symbol_pipe unless it works.
7465: if test "$pipe_works" = yes; then
7466: break
7467: else
7468: lt_cv_sys_global_symbol_pipe=
7469: fi
7470: done
7471:
7472: fi
7473:
7474: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7475: lt_cv_sys_global_symbol_to_cdecl=
7476: fi
7477: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7479: $as_echo "failed" >&6; }
7480: else
7481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7482: $as_echo "ok" >&6; }
7483: fi
7484:
7485: # Response file support.
7486: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7487: nm_file_list_spec='@'
7488: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7489: nm_file_list_spec='@'
7490: fi
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7519: $as_echo_n "checking for sysroot... " >&6; }
7520:
7521: # Check whether --with-sysroot was given.
7522: if test "${with_sysroot+set}" = set; then :
7523: withval=$with_sysroot;
7524: else
7525: with_sysroot=no
7526: fi
7527:
7528:
7529: lt_sysroot=
7530: case ${with_sysroot} in #(
7531: yes)
7532: if test "$GCC" = yes; then
7533: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7534: fi
7535: ;; #(
7536: /*)
7537: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7538: ;; #(
7539: no|'')
7540: ;; #(
7541: *)
7542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7543: $as_echo "${with_sysroot}" >&6; }
7544: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7545: ;;
7546: esac
7547:
7548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7549: $as_echo "${lt_sysroot:-no}" >&6; }
7550:
7551:
7552:
7553:
7554:
7555: # Check whether --enable-libtool-lock was given.
7556: if test "${enable_libtool_lock+set}" = set; then :
7557: enableval=$enable_libtool_lock;
7558: fi
7559:
7560: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7561:
7562: # Some flags need to be propagated to the compiler or linker for good
7563: # libtool support.
7564: case $host in
7565: ia64-*-hpux*)
7566: # Find out which ABI we are using.
7567: echo 'int i;' > conftest.$ac_ext
7568: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7569: (eval $ac_compile) 2>&5
7570: ac_status=$?
7571: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572: test $ac_status = 0; }; then
7573: case `/usr/bin/file conftest.$ac_objext` in
7574: *ELF-32*)
7575: HPUX_IA64_MODE="32"
7576: ;;
7577: *ELF-64*)
7578: HPUX_IA64_MODE="64"
7579: ;;
7580: esac
7581: fi
7582: rm -rf conftest*
7583: ;;
7584: *-*-irix6*)
7585: # Find out which ABI we are using.
7586: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7587: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7588: (eval $ac_compile) 2>&5
7589: ac_status=$?
7590: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7591: test $ac_status = 0; }; then
7592: if test "$lt_cv_prog_gnu_ld" = yes; then
7593: case `/usr/bin/file conftest.$ac_objext` in
7594: *32-bit*)
7595: LD="${LD-ld} -melf32bsmip"
7596: ;;
7597: *N32*)
7598: LD="${LD-ld} -melf32bmipn32"
7599: ;;
7600: *64-bit*)
7601: LD="${LD-ld} -melf64bmip"
7602: ;;
7603: esac
7604: else
7605: case `/usr/bin/file conftest.$ac_objext` in
7606: *32-bit*)
7607: LD="${LD-ld} -32"
7608: ;;
7609: *N32*)
7610: LD="${LD-ld} -n32"
7611: ;;
7612: *64-bit*)
7613: LD="${LD-ld} -64"
7614: ;;
7615: esac
7616: fi
7617: fi
7618: rm -rf conftest*
7619: ;;
7620:
7621: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7622: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7623: # Find out which ABI we are using.
7624: echo 'int i;' > conftest.$ac_ext
7625: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7626: (eval $ac_compile) 2>&5
7627: ac_status=$?
7628: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7629: test $ac_status = 0; }; then
7630: case `/usr/bin/file conftest.o` in
7631: *32-bit*)
7632: case $host in
7633: x86_64-*kfreebsd*-gnu)
7634: LD="${LD-ld} -m elf_i386_fbsd"
7635: ;;
7636: x86_64-*linux*)
7637: LD="${LD-ld} -m elf_i386"
7638: ;;
7639: ppc64-*linux*|powerpc64-*linux*)
7640: LD="${LD-ld} -m elf32ppclinux"
7641: ;;
7642: s390x-*linux*)
7643: LD="${LD-ld} -m elf_s390"
7644: ;;
7645: sparc64-*linux*)
7646: LD="${LD-ld} -m elf32_sparc"
7647: ;;
7648: esac
7649: ;;
7650: *64-bit*)
7651: case $host in
7652: x86_64-*kfreebsd*-gnu)
7653: LD="${LD-ld} -m elf_x86_64_fbsd"
7654: ;;
7655: x86_64-*linux*)
7656: LD="${LD-ld} -m elf_x86_64"
7657: ;;
7658: ppc*-*linux*|powerpc*-*linux*)
7659: LD="${LD-ld} -m elf64ppc"
7660: ;;
7661: s390*-*linux*|s390*-*tpf*)
7662: LD="${LD-ld} -m elf64_s390"
7663: ;;
7664: sparc*-*linux*)
7665: LD="${LD-ld} -m elf64_sparc"
7666: ;;
7667: esac
7668: ;;
7669: esac
7670: fi
7671: rm -rf conftest*
7672: ;;
7673:
7674: *-*-sco3.2v5*)
7675: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7676: SAVE_CFLAGS="$CFLAGS"
7677: CFLAGS="$CFLAGS -belf"
7678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7679: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7680: if ${lt_cv_cc_needs_belf+:} false; then :
7681: $as_echo_n "(cached) " >&6
7682: else
7683: ac_ext=c
7684: ac_cpp='$CPP $CPPFLAGS'
7685: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7686: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7687: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688:
7689: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690: /* end confdefs.h. */
7691:
7692: int
7693: main ()
7694: {
7695:
7696: ;
7697: return 0;
7698: }
7699: _ACEOF
7700: if ac_fn_c_try_link "$LINENO"; then :
7701: lt_cv_cc_needs_belf=yes
7702: else
7703: lt_cv_cc_needs_belf=no
7704: fi
7705: rm -f core conftest.err conftest.$ac_objext \
7706: conftest$ac_exeext conftest.$ac_ext
7707: ac_ext=c
7708: ac_cpp='$CPP $CPPFLAGS'
7709: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712:
7713: fi
7714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7715: $as_echo "$lt_cv_cc_needs_belf" >&6; }
7716: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7717: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7718: CFLAGS="$SAVE_CFLAGS"
7719: fi
7720: ;;
7721: sparc*-*solaris*)
7722: # Find out which ABI we are using.
7723: echo 'int i;' > conftest.$ac_ext
7724: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7725: (eval $ac_compile) 2>&5
7726: ac_status=$?
7727: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7728: test $ac_status = 0; }; then
7729: case `/usr/bin/file conftest.o` in
7730: *64-bit*)
7731: case $lt_cv_prog_gnu_ld in
7732: yes*) LD="${LD-ld} -m elf64_sparc" ;;
7733: *)
7734: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7735: LD="${LD-ld} -64"
7736: fi
7737: ;;
7738: esac
7739: ;;
7740: esac
7741: fi
7742: rm -rf conftest*
7743: ;;
7744: esac
7745:
7746: need_locks="$enable_libtool_lock"
7747:
7748: if test -n "$ac_tool_prefix"; then
7749: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7750: set dummy ${ac_tool_prefix}mt; ac_word=$2
7751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752: $as_echo_n "checking for $ac_word... " >&6; }
7753: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7754: $as_echo_n "(cached) " >&6
7755: else
7756: if test -n "$MANIFEST_TOOL"; then
7757: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7758: else
7759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760: for as_dir in $PATH
7761: do
7762: IFS=$as_save_IFS
7763: test -z "$as_dir" && as_dir=.
7764: for ac_exec_ext in '' $ac_executable_extensions; do
7765: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7767: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768: break 2
7769: fi
7770: done
7771: done
7772: IFS=$as_save_IFS
7773:
7774: fi
7775: fi
7776: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7777: if test -n "$MANIFEST_TOOL"; then
7778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7779: $as_echo "$MANIFEST_TOOL" >&6; }
7780: else
7781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782: $as_echo "no" >&6; }
7783: fi
7784:
7785:
7786: fi
7787: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7788: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7789: # Extract the first word of "mt", so it can be a program name with args.
7790: set dummy mt; ac_word=$2
7791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792: $as_echo_n "checking for $ac_word... " >&6; }
7793: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7794: $as_echo_n "(cached) " >&6
7795: else
7796: if test -n "$ac_ct_MANIFEST_TOOL"; then
7797: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7798: else
7799: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800: for as_dir in $PATH
7801: do
7802: IFS=$as_save_IFS
7803: test -z "$as_dir" && as_dir=.
7804: for ac_exec_ext in '' $ac_executable_extensions; do
7805: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7806: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7807: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808: break 2
7809: fi
7810: done
7811: done
7812: IFS=$as_save_IFS
7813:
7814: fi
7815: fi
7816: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7817: if test -n "$ac_ct_MANIFEST_TOOL"; then
7818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7819: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7820: else
7821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822: $as_echo "no" >&6; }
7823: fi
7824:
7825: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7826: MANIFEST_TOOL=":"
7827: else
7828: case $cross_compiling:$ac_tool_warned in
7829: yes:)
7830: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832: ac_tool_warned=yes ;;
7833: esac
7834: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7835: fi
7836: else
7837: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7838: fi
7839:
7840: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7842: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7843: if ${lt_cv_path_mainfest_tool+:} false; then :
7844: $as_echo_n "(cached) " >&6
7845: else
7846: lt_cv_path_mainfest_tool=no
7847: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7848: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7849: cat conftest.err >&5
7850: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7851: lt_cv_path_mainfest_tool=yes
7852: fi
7853: rm -f conftest*
7854: fi
7855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7856: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7857: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7858: MANIFEST_TOOL=:
7859: fi
7860:
7861:
7862:
7863:
7864:
7865:
7866: case $host_os in
7867: rhapsody* | darwin*)
7868: if test -n "$ac_tool_prefix"; then
7869: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7870: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7871: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872: $as_echo_n "checking for $ac_word... " >&6; }
7873: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7874: $as_echo_n "(cached) " >&6
7875: else
7876: if test -n "$DSYMUTIL"; then
7877: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7878: else
7879: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880: for as_dir in $PATH
7881: do
7882: IFS=$as_save_IFS
7883: test -z "$as_dir" && as_dir=.
7884: for ac_exec_ext in '' $ac_executable_extensions; do
7885: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7887: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888: break 2
7889: fi
7890: done
7891: done
7892: IFS=$as_save_IFS
7893:
7894: fi
7895: fi
7896: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7897: if test -n "$DSYMUTIL"; then
7898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7899: $as_echo "$DSYMUTIL" >&6; }
7900: else
7901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902: $as_echo "no" >&6; }
7903: fi
7904:
7905:
7906: fi
7907: if test -z "$ac_cv_prog_DSYMUTIL"; then
7908: ac_ct_DSYMUTIL=$DSYMUTIL
7909: # Extract the first word of "dsymutil", so it can be a program name with args.
7910: set dummy dsymutil; ac_word=$2
7911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912: $as_echo_n "checking for $ac_word... " >&6; }
7913: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7914: $as_echo_n "(cached) " >&6
7915: else
7916: if test -n "$ac_ct_DSYMUTIL"; then
7917: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7918: else
7919: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920: for as_dir in $PATH
7921: do
7922: IFS=$as_save_IFS
7923: test -z "$as_dir" && as_dir=.
7924: for ac_exec_ext in '' $ac_executable_extensions; do
7925: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7927: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928: break 2
7929: fi
7930: done
7931: done
7932: IFS=$as_save_IFS
7933:
7934: fi
7935: fi
7936: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7937: if test -n "$ac_ct_DSYMUTIL"; then
7938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7939: $as_echo "$ac_ct_DSYMUTIL" >&6; }
7940: else
7941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942: $as_echo "no" >&6; }
7943: fi
7944:
7945: if test "x$ac_ct_DSYMUTIL" = x; then
7946: DSYMUTIL=":"
7947: else
7948: case $cross_compiling:$ac_tool_warned in
7949: yes:)
7950: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7951: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7952: ac_tool_warned=yes ;;
7953: esac
7954: DSYMUTIL=$ac_ct_DSYMUTIL
7955: fi
7956: else
7957: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7958: fi
7959:
7960: if test -n "$ac_tool_prefix"; then
7961: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7962: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964: $as_echo_n "checking for $ac_word... " >&6; }
7965: if ${ac_cv_prog_NMEDIT+:} false; then :
7966: $as_echo_n "(cached) " >&6
7967: else
7968: if test -n "$NMEDIT"; then
7969: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7970: else
7971: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972: for as_dir in $PATH
7973: do
7974: IFS=$as_save_IFS
7975: test -z "$as_dir" && as_dir=.
7976: for ac_exec_ext in '' $ac_executable_extensions; do
7977: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7979: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980: break 2
7981: fi
7982: done
7983: done
7984: IFS=$as_save_IFS
7985:
7986: fi
7987: fi
7988: NMEDIT=$ac_cv_prog_NMEDIT
7989: if test -n "$NMEDIT"; then
7990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7991: $as_echo "$NMEDIT" >&6; }
7992: else
7993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994: $as_echo "no" >&6; }
7995: fi
7996:
7997:
7998: fi
7999: if test -z "$ac_cv_prog_NMEDIT"; then
8000: ac_ct_NMEDIT=$NMEDIT
8001: # Extract the first word of "nmedit", so it can be a program name with args.
8002: set dummy nmedit; ac_word=$2
8003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004: $as_echo_n "checking for $ac_word... " >&6; }
8005: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8006: $as_echo_n "(cached) " >&6
8007: else
8008: if test -n "$ac_ct_NMEDIT"; then
8009: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8010: else
8011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012: for as_dir in $PATH
8013: do
8014: IFS=$as_save_IFS
8015: test -z "$as_dir" && as_dir=.
8016: for ac_exec_ext in '' $ac_executable_extensions; do
8017: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018: ac_cv_prog_ac_ct_NMEDIT="nmedit"
8019: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020: break 2
8021: fi
8022: done
8023: done
8024: IFS=$as_save_IFS
8025:
8026: fi
8027: fi
8028: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8029: if test -n "$ac_ct_NMEDIT"; then
8030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8031: $as_echo "$ac_ct_NMEDIT" >&6; }
8032: else
8033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034: $as_echo "no" >&6; }
8035: fi
8036:
8037: if test "x$ac_ct_NMEDIT" = x; then
8038: NMEDIT=":"
8039: else
8040: case $cross_compiling:$ac_tool_warned in
8041: yes:)
8042: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8043: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8044: ac_tool_warned=yes ;;
8045: esac
8046: NMEDIT=$ac_ct_NMEDIT
8047: fi
8048: else
8049: NMEDIT="$ac_cv_prog_NMEDIT"
8050: fi
8051:
8052: if test -n "$ac_tool_prefix"; then
8053: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8054: set dummy ${ac_tool_prefix}lipo; ac_word=$2
8055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056: $as_echo_n "checking for $ac_word... " >&6; }
8057: if ${ac_cv_prog_LIPO+:} false; then :
8058: $as_echo_n "(cached) " >&6
8059: else
8060: if test -n "$LIPO"; then
8061: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8062: else
8063: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064: for as_dir in $PATH
8065: do
8066: IFS=$as_save_IFS
8067: test -z "$as_dir" && as_dir=.
8068: for ac_exec_ext in '' $ac_executable_extensions; do
8069: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8071: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072: break 2
8073: fi
8074: done
8075: done
8076: IFS=$as_save_IFS
8077:
8078: fi
8079: fi
8080: LIPO=$ac_cv_prog_LIPO
8081: if test -n "$LIPO"; then
8082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8083: $as_echo "$LIPO" >&6; }
8084: else
8085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086: $as_echo "no" >&6; }
8087: fi
8088:
8089:
8090: fi
8091: if test -z "$ac_cv_prog_LIPO"; then
8092: ac_ct_LIPO=$LIPO
8093: # Extract the first word of "lipo", so it can be a program name with args.
8094: set dummy lipo; ac_word=$2
8095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096: $as_echo_n "checking for $ac_word... " >&6; }
8097: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8098: $as_echo_n "(cached) " >&6
8099: else
8100: if test -n "$ac_ct_LIPO"; then
8101: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8102: else
8103: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104: for as_dir in $PATH
8105: do
8106: IFS=$as_save_IFS
8107: test -z "$as_dir" && as_dir=.
8108: for ac_exec_ext in '' $ac_executable_extensions; do
8109: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8110: ac_cv_prog_ac_ct_LIPO="lipo"
8111: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112: break 2
8113: fi
8114: done
8115: done
8116: IFS=$as_save_IFS
8117:
8118: fi
8119: fi
8120: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8121: if test -n "$ac_ct_LIPO"; then
8122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8123: $as_echo "$ac_ct_LIPO" >&6; }
8124: else
8125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126: $as_echo "no" >&6; }
8127: fi
8128:
8129: if test "x$ac_ct_LIPO" = x; then
8130: LIPO=":"
8131: else
8132: case $cross_compiling:$ac_tool_warned in
8133: yes:)
8134: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8135: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8136: ac_tool_warned=yes ;;
8137: esac
8138: LIPO=$ac_ct_LIPO
8139: fi
8140: else
8141: LIPO="$ac_cv_prog_LIPO"
8142: fi
8143:
8144: if test -n "$ac_tool_prefix"; then
8145: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8146: set dummy ${ac_tool_prefix}otool; ac_word=$2
8147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148: $as_echo_n "checking for $ac_word... " >&6; }
8149: if ${ac_cv_prog_OTOOL+:} false; then :
8150: $as_echo_n "(cached) " >&6
8151: else
8152: if test -n "$OTOOL"; then
8153: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8154: else
8155: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156: for as_dir in $PATH
8157: do
8158: IFS=$as_save_IFS
8159: test -z "$as_dir" && as_dir=.
8160: for ac_exec_ext in '' $ac_executable_extensions; do
8161: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8163: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164: break 2
8165: fi
8166: done
8167: done
8168: IFS=$as_save_IFS
8169:
8170: fi
8171: fi
8172: OTOOL=$ac_cv_prog_OTOOL
8173: if test -n "$OTOOL"; then
8174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8175: $as_echo "$OTOOL" >&6; }
8176: else
8177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178: $as_echo "no" >&6; }
8179: fi
8180:
8181:
8182: fi
8183: if test -z "$ac_cv_prog_OTOOL"; then
8184: ac_ct_OTOOL=$OTOOL
8185: # Extract the first word of "otool", so it can be a program name with args.
8186: set dummy otool; ac_word=$2
8187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188: $as_echo_n "checking for $ac_word... " >&6; }
8189: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8190: $as_echo_n "(cached) " >&6
8191: else
8192: if test -n "$ac_ct_OTOOL"; then
8193: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8194: else
8195: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196: for as_dir in $PATH
8197: do
8198: IFS=$as_save_IFS
8199: test -z "$as_dir" && as_dir=.
8200: for ac_exec_ext in '' $ac_executable_extensions; do
8201: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8202: ac_cv_prog_ac_ct_OTOOL="otool"
8203: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204: break 2
8205: fi
8206: done
8207: done
8208: IFS=$as_save_IFS
8209:
8210: fi
8211: fi
8212: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8213: if test -n "$ac_ct_OTOOL"; then
8214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8215: $as_echo "$ac_ct_OTOOL" >&6; }
8216: else
8217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218: $as_echo "no" >&6; }
8219: fi
8220:
8221: if test "x$ac_ct_OTOOL" = x; then
8222: OTOOL=":"
8223: else
8224: case $cross_compiling:$ac_tool_warned in
8225: yes:)
8226: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8227: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8228: ac_tool_warned=yes ;;
8229: esac
8230: OTOOL=$ac_ct_OTOOL
8231: fi
8232: else
8233: OTOOL="$ac_cv_prog_OTOOL"
8234: fi
8235:
8236: if test -n "$ac_tool_prefix"; then
8237: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8238: set dummy ${ac_tool_prefix}otool64; ac_word=$2
8239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240: $as_echo_n "checking for $ac_word... " >&6; }
8241: if ${ac_cv_prog_OTOOL64+:} false; then :
8242: $as_echo_n "(cached) " >&6
8243: else
8244: if test -n "$OTOOL64"; then
8245: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8246: else
8247: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248: for as_dir in $PATH
8249: do
8250: IFS=$as_save_IFS
8251: test -z "$as_dir" && as_dir=.
8252: for ac_exec_ext in '' $ac_executable_extensions; do
8253: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8255: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256: break 2
8257: fi
8258: done
8259: done
8260: IFS=$as_save_IFS
8261:
8262: fi
8263: fi
8264: OTOOL64=$ac_cv_prog_OTOOL64
8265: if test -n "$OTOOL64"; then
8266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8267: $as_echo "$OTOOL64" >&6; }
8268: else
8269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270: $as_echo "no" >&6; }
8271: fi
8272:
8273:
8274: fi
8275: if test -z "$ac_cv_prog_OTOOL64"; then
8276: ac_ct_OTOOL64=$OTOOL64
8277: # Extract the first word of "otool64", so it can be a program name with args.
8278: set dummy otool64; ac_word=$2
8279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280: $as_echo_n "checking for $ac_word... " >&6; }
8281: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8282: $as_echo_n "(cached) " >&6
8283: else
8284: if test -n "$ac_ct_OTOOL64"; then
8285: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8286: else
8287: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288: for as_dir in $PATH
8289: do
8290: IFS=$as_save_IFS
8291: test -z "$as_dir" && as_dir=.
8292: for ac_exec_ext in '' $ac_executable_extensions; do
8293: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8294: ac_cv_prog_ac_ct_OTOOL64="otool64"
8295: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296: break 2
8297: fi
8298: done
8299: done
8300: IFS=$as_save_IFS
8301:
8302: fi
8303: fi
8304: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8305: if test -n "$ac_ct_OTOOL64"; then
8306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8307: $as_echo "$ac_ct_OTOOL64" >&6; }
8308: else
8309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310: $as_echo "no" >&6; }
8311: fi
8312:
8313: if test "x$ac_ct_OTOOL64" = x; then
8314: OTOOL64=":"
8315: else
8316: case $cross_compiling:$ac_tool_warned in
8317: yes:)
8318: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320: ac_tool_warned=yes ;;
8321: esac
8322: OTOOL64=$ac_ct_OTOOL64
8323: fi
8324: else
8325: OTOOL64="$ac_cv_prog_OTOOL64"
8326: fi
8327:
8328:
8329:
8330:
8331:
8332:
8333:
8334:
8335:
8336:
8337:
8338:
8339:
8340:
8341:
8342:
8343:
8344:
8345:
8346:
8347:
8348:
8349:
8350:
8351:
8352:
8353:
8354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8355: $as_echo_n "checking for -single_module linker flag... " >&6; }
8356: if ${lt_cv_apple_cc_single_mod+:} false; then :
8357: $as_echo_n "(cached) " >&6
8358: else
8359: lt_cv_apple_cc_single_mod=no
8360: if test -z "${LT_MULTI_MODULE}"; then
8361: # By default we will add the -single_module flag. You can override
8362: # by either setting the environment variable LT_MULTI_MODULE
8363: # non-empty at configure time, or by adding -multi_module to the
8364: # link flags.
8365: rm -rf libconftest.dylib*
8366: echo "int foo(void){return 1;}" > conftest.c
8367: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8368: -dynamiclib -Wl,-single_module conftest.c" >&5
8369: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8370: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8371: _lt_result=$?
8372: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8373: lt_cv_apple_cc_single_mod=yes
8374: else
8375: cat conftest.err >&5
8376: fi
8377: rm -rf libconftest.dylib*
8378: rm -f conftest.*
8379: fi
8380: fi
8381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8382: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8384: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8385: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8386: $as_echo_n "(cached) " >&6
8387: else
8388: lt_cv_ld_exported_symbols_list=no
8389: save_LDFLAGS=$LDFLAGS
8390: echo "_main" > conftest.sym
8391: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8392: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393: /* end confdefs.h. */
8394:
8395: int
8396: main ()
8397: {
8398:
8399: ;
8400: return 0;
8401: }
8402: _ACEOF
8403: if ac_fn_c_try_link "$LINENO"; then :
8404: lt_cv_ld_exported_symbols_list=yes
8405: else
8406: lt_cv_ld_exported_symbols_list=no
8407: fi
8408: rm -f core conftest.err conftest.$ac_objext \
8409: conftest$ac_exeext conftest.$ac_ext
8410: LDFLAGS="$save_LDFLAGS"
8411:
8412: fi
8413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8414: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8415: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8416: $as_echo_n "checking for -force_load linker flag... " >&6; }
8417: if ${lt_cv_ld_force_load+:} false; then :
8418: $as_echo_n "(cached) " >&6
8419: else
8420: lt_cv_ld_force_load=no
8421: cat > conftest.c << _LT_EOF
8422: int forced_loaded() { return 2;}
8423: _LT_EOF
8424: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8425: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8426: echo "$AR cru libconftest.a conftest.o" >&5
8427: $AR cru libconftest.a conftest.o 2>&5
8428: echo "$RANLIB libconftest.a" >&5
8429: $RANLIB libconftest.a 2>&5
8430: cat > conftest.c << _LT_EOF
8431: int main() { return 0;}
8432: _LT_EOF
8433: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8434: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8435: _lt_result=$?
8436: if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8437: lt_cv_ld_force_load=yes
8438: else
8439: cat conftest.err >&5
8440: fi
8441: rm -f conftest.err libconftest.a conftest conftest.c
8442: rm -rf conftest.dSYM
8443:
8444: fi
8445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8446: $as_echo "$lt_cv_ld_force_load" >&6; }
8447: case $host_os in
8448: rhapsody* | darwin1.[012])
8449: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8450: darwin1.*)
8451: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8452: darwin*) # darwin 5.x on
8453: # if running on 10.5 or later, the deployment target defaults
8454: # to the OS version, if on x86, and 10.4, the deployment
8455: # target defaults to 10.4. Don't you love it?
8456: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8457: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8458: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8459: 10.[012]*)
8460: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8461: 10.*)
8462: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8463: esac
8464: ;;
8465: esac
8466: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8467: _lt_dar_single_mod='$single_module'
8468: fi
8469: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8470: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8471: else
8472: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8473: fi
8474: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8475: _lt_dsymutil='~$DSYMUTIL $lib || :'
8476: else
8477: _lt_dsymutil=
8478: fi
8479: ;;
8480: esac
8481:
8482: for ac_header in dlfcn.h
8483: do :
8484: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8485: "
8486: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8487: cat >>confdefs.h <<_ACEOF
8488: #define HAVE_DLFCN_H 1
8489: _ACEOF
8490:
8491: fi
8492:
8493: done
8494:
8495:
8496:
8497: func_stripname_cnf ()
8498: {
8499: case ${2} in
8500: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8501: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8502: esac
8503: } # func_stripname_cnf
8504:
8505:
8506:
8507:
8508:
8509: # Set options
8510:
8511:
8512:
8513: enable_dlopen=no
8514:
8515:
8516:
8517: # Check whether --enable-shared was given.
8518: if test "${enable_shared+set}" = set; then :
8519: enableval=$enable_shared; p=${PACKAGE-default}
8520: case $enableval in
8521: yes) enable_shared=yes ;;
8522: no) enable_shared=no ;;
8523: *)
8524: enable_shared=no
8525: # Look at the argument we got. We use all the common list separators.
8526: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8527: for pkg in $enableval; do
8528: IFS="$lt_save_ifs"
8529: if test "X$pkg" = "X$p"; then
8530: enable_shared=yes
8531: fi
8532: done
8533: IFS="$lt_save_ifs"
8534: ;;
8535: esac
8536: else
8537: enable_shared=yes
8538: fi
8539:
8540:
8541:
8542:
8543:
8544:
8545:
8546:
8547:
8548: # Check whether --enable-static was given.
8549: if test "${enable_static+set}" = set; then :
8550: enableval=$enable_static; p=${PACKAGE-default}
8551: case $enableval in
8552: yes) enable_static=yes ;;
8553: no) enable_static=no ;;
8554: *)
8555: enable_static=no
8556: # Look at the argument we got. We use all the common list separators.
8557: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8558: for pkg in $enableval; do
8559: IFS="$lt_save_ifs"
8560: if test "X$pkg" = "X$p"; then
8561: enable_static=yes
8562: fi
8563: done
8564: IFS="$lt_save_ifs"
8565: ;;
8566: esac
8567: else
8568: enable_static=yes
8569: fi
8570:
8571:
8572:
8573:
8574:
8575:
8576:
8577:
8578:
8579:
8580: # Check whether --with-pic was given.
8581: if test "${with_pic+set}" = set; then :
8582: withval=$with_pic; pic_mode="$withval"
8583: else
8584: pic_mode=default
8585: fi
8586:
8587:
8588: test -z "$pic_mode" && pic_mode=default
8589:
8590:
8591:
8592:
8593:
8594:
8595:
8596: # Check whether --enable-fast-install was given.
8597: if test "${enable_fast_install+set}" = set; then :
8598: enableval=$enable_fast_install; p=${PACKAGE-default}
8599: case $enableval in
8600: yes) enable_fast_install=yes ;;
8601: no) enable_fast_install=no ;;
8602: *)
8603: enable_fast_install=no
8604: # Look at the argument we got. We use all the common list separators.
8605: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8606: for pkg in $enableval; do
8607: IFS="$lt_save_ifs"
8608: if test "X$pkg" = "X$p"; then
8609: enable_fast_install=yes
8610: fi
8611: done
8612: IFS="$lt_save_ifs"
8613: ;;
8614: esac
8615: else
8616: enable_fast_install=yes
8617: fi
8618:
8619:
8620:
8621:
8622:
8623:
8624:
8625:
8626:
8627:
8628:
8629: # This can be used to rebuild libtool when needed
8630: LIBTOOL_DEPS="$ltmain"
8631:
8632: # Always use our own libtool.
8633: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8634:
8635:
8636:
8637:
8638:
8639:
8640:
8641:
8642:
8643:
8644:
8645:
8646:
8647:
8648:
8649:
8650:
8651:
8652:
8653:
8654:
8655:
8656:
8657:
8658:
8659:
8660: test -z "$LN_S" && LN_S="ln -s"
8661:
8662:
8663:
8664:
8665:
8666:
8667:
8668:
8669:
8670:
8671:
8672:
8673:
8674:
8675: if test -n "${ZSH_VERSION+set}" ; then
8676: setopt NO_GLOB_SUBST
8677: fi
8678:
8679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8680: $as_echo_n "checking for objdir... " >&6; }
8681: if ${lt_cv_objdir+:} false; then :
8682: $as_echo_n "(cached) " >&6
8683: else
8684: rm -f .libs 2>/dev/null
8685: mkdir .libs 2>/dev/null
8686: if test -d .libs; then
8687: lt_cv_objdir=.libs
8688: else
8689: # MS-DOS does not allow filenames that begin with a dot.
8690: lt_cv_objdir=_libs
8691: fi
8692: rmdir .libs 2>/dev/null
8693: fi
8694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8695: $as_echo "$lt_cv_objdir" >&6; }
8696: objdir=$lt_cv_objdir
8697:
8698:
8699:
8700:
8701:
8702: cat >>confdefs.h <<_ACEOF
8703: #define LT_OBJDIR "$lt_cv_objdir/"
8704: _ACEOF
8705:
8706:
8707:
8708:
8709: case $host_os in
8710: aix3*)
8711: # AIX sometimes has problems with the GCC collect2 program. For some
8712: # reason, if we set the COLLECT_NAMES environment variable, the problems
8713: # vanish in a puff of smoke.
8714: if test "X${COLLECT_NAMES+set}" != Xset; then
8715: COLLECT_NAMES=
8716: export COLLECT_NAMES
8717: fi
8718: ;;
8719: esac
8720:
8721: # Global variables:
8722: ofile=libtool
8723: can_build_shared=yes
8724:
8725: # All known linkers require a `.a' archive for static linking (except MSVC,
8726: # which needs '.lib').
8727: libext=a
8728:
8729: with_gnu_ld="$lt_cv_prog_gnu_ld"
8730:
8731: old_CC="$CC"
8732: old_CFLAGS="$CFLAGS"
8733:
8734: # Set sane defaults for various variables
8735: test -z "$CC" && CC=cc
8736: test -z "$LTCC" && LTCC=$CC
8737: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8738: test -z "$LD" && LD=ld
8739: test -z "$ac_objext" && ac_objext=o
8740:
8741: for cc_temp in $compiler""; do
8742: case $cc_temp in
8743: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8744: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8745: \-*) ;;
8746: *) break;;
8747: esac
8748: done
8749: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8750:
8751:
8752: # Only perform the check for file, if the check method requires it
8753: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8754: case $deplibs_check_method in
8755: file_magic*)
8756: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8758: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8759: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8760: $as_echo_n "(cached) " >&6
8761: else
8762: case $MAGIC_CMD in
8763: [\\/*] | ?:[\\/]*)
8764: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8765: ;;
8766: *)
8767: lt_save_MAGIC_CMD="$MAGIC_CMD"
8768: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8769: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8770: for ac_dir in $ac_dummy; do
8771: IFS="$lt_save_ifs"
8772: test -z "$ac_dir" && ac_dir=.
8773: if test -f $ac_dir/${ac_tool_prefix}file; then
8774: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8775: if test -n "$file_magic_test_file"; then
8776: case $deplibs_check_method in
8777: "file_magic "*)
8778: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8779: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8780: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8781: $EGREP "$file_magic_regex" > /dev/null; then
8782: :
8783: else
8784: cat <<_LT_EOF 1>&2
8785:
8786: *** Warning: the command libtool uses to detect shared libraries,
8787: *** $file_magic_cmd, produces output that libtool cannot recognize.
8788: *** The result is that libtool may fail to recognize shared libraries
8789: *** as such. This will affect the creation of libtool libraries that
8790: *** depend on shared libraries, but programs linked with such libtool
8791: *** libraries will work regardless of this problem. Nevertheless, you
8792: *** may want to report the problem to your system manager and/or to
8793: *** bug-libtool@gnu.org
8794:
8795: _LT_EOF
8796: fi ;;
8797: esac
8798: fi
8799: break
8800: fi
8801: done
8802: IFS="$lt_save_ifs"
8803: MAGIC_CMD="$lt_save_MAGIC_CMD"
8804: ;;
8805: esac
8806: fi
8807:
8808: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8809: if test -n "$MAGIC_CMD"; then
8810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8811: $as_echo "$MAGIC_CMD" >&6; }
8812: else
8813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814: $as_echo "no" >&6; }
8815: fi
8816:
8817:
8818:
8819:
8820:
8821: if test -z "$lt_cv_path_MAGIC_CMD"; then
8822: if test -n "$ac_tool_prefix"; then
8823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8824: $as_echo_n "checking for file... " >&6; }
8825: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8826: $as_echo_n "(cached) " >&6
8827: else
8828: case $MAGIC_CMD in
8829: [\\/*] | ?:[\\/]*)
8830: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8831: ;;
8832: *)
8833: lt_save_MAGIC_CMD="$MAGIC_CMD"
8834: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8835: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8836: for ac_dir in $ac_dummy; do
8837: IFS="$lt_save_ifs"
8838: test -z "$ac_dir" && ac_dir=.
8839: if test -f $ac_dir/file; then
8840: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8841: if test -n "$file_magic_test_file"; then
8842: case $deplibs_check_method in
8843: "file_magic "*)
8844: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8845: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8846: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8847: $EGREP "$file_magic_regex" > /dev/null; then
8848: :
8849: else
8850: cat <<_LT_EOF 1>&2
8851:
8852: *** Warning: the command libtool uses to detect shared libraries,
8853: *** $file_magic_cmd, produces output that libtool cannot recognize.
8854: *** The result is that libtool may fail to recognize shared libraries
8855: *** as such. This will affect the creation of libtool libraries that
8856: *** depend on shared libraries, but programs linked with such libtool
8857: *** libraries will work regardless of this problem. Nevertheless, you
8858: *** may want to report the problem to your system manager and/or to
8859: *** bug-libtool@gnu.org
8860:
8861: _LT_EOF
8862: fi ;;
8863: esac
8864: fi
8865: break
8866: fi
8867: done
8868: IFS="$lt_save_ifs"
8869: MAGIC_CMD="$lt_save_MAGIC_CMD"
8870: ;;
8871: esac
8872: fi
8873:
8874: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8875: if test -n "$MAGIC_CMD"; then
8876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8877: $as_echo "$MAGIC_CMD" >&6; }
8878: else
8879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880: $as_echo "no" >&6; }
8881: fi
8882:
8883:
8884: else
8885: MAGIC_CMD=:
8886: fi
8887: fi
8888:
8889: fi
8890: ;;
8891: esac
8892:
8893: # Use C for the default configuration in the libtool script
8894:
8895: lt_save_CC="$CC"
8896: ac_ext=c
8897: ac_cpp='$CPP $CPPFLAGS'
8898: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901:
8902:
8903: # Source file extension for C test sources.
8904: ac_ext=c
8905:
8906: # Object file extension for compiled C test sources.
8907: objext=o
8908: objext=$objext
8909:
8910: # Code to be used in simple compile tests
8911: lt_simple_compile_test_code="int some_variable = 0;"
8912:
8913: # Code to be used in simple link tests
8914: lt_simple_link_test_code='int main(){return(0);}'
8915:
8916:
8917:
8918:
8919:
8920:
8921:
8922: # If no C compiler was specified, use CC.
8923: LTCC=${LTCC-"$CC"}
8924:
8925: # If no C compiler flags were specified, use CFLAGS.
8926: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8927:
8928: # Allow CC to be a program name with arguments.
8929: compiler=$CC
8930:
8931: # Save the default compiler, since it gets overwritten when the other
8932: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8933: compiler_DEFAULT=$CC
8934:
8935: # save warnings/boilerplate of simple test code
8936: ac_outfile=conftest.$ac_objext
8937: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8938: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8939: _lt_compiler_boilerplate=`cat conftest.err`
8940: $RM conftest*
8941:
8942: ac_outfile=conftest.$ac_objext
8943: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8944: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8945: _lt_linker_boilerplate=`cat conftest.err`
8946: $RM -r conftest*
8947:
8948:
8949: if test -n "$compiler"; then
8950:
8951: lt_prog_compiler_no_builtin_flag=
8952:
8953: if test "$GCC" = yes; then
8954: case $cc_basename in
8955: nvcc*)
8956: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8957: *)
8958: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8959: esac
8960:
8961: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8962: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8963: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8964: $as_echo_n "(cached) " >&6
8965: else
8966: lt_cv_prog_compiler_rtti_exceptions=no
8967: ac_outfile=conftest.$ac_objext
8968: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969: lt_compiler_flag="-fno-rtti -fno-exceptions"
8970: # Insert the option either (1) after the last *FLAGS variable, or
8971: # (2) before a word containing "conftest.", or (3) at the end.
8972: # Note that $ac_compile itself does not contain backslashes and begins
8973: # with a dollar sign (not a hyphen), so the echo should work correctly.
8974: # The option is referenced via a variable to avoid confusing sed.
8975: lt_compile=`echo "$ac_compile" | $SED \
8976: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978: -e 's:$: $lt_compiler_flag:'`
8979: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8980: (eval "$lt_compile" 2>conftest.err)
8981: ac_status=$?
8982: cat conftest.err >&5
8983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984: if (exit $ac_status) && test -s "$ac_outfile"; then
8985: # The compiler can only warn and ignore the option if not recognized
8986: # So say no if there are warnings other than the usual output.
8987: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8988: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8989: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8990: lt_cv_prog_compiler_rtti_exceptions=yes
8991: fi
8992: fi
8993: $RM conftest*
8994:
8995: fi
8996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8997: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8998:
8999: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9000: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9001: else
9002: :
9003: fi
9004:
9005: fi
9006:
9007:
9008:
9009:
9010:
9011:
9012: lt_prog_compiler_wl=
9013: lt_prog_compiler_pic=
9014: lt_prog_compiler_static=
9015:
9016:
9017: if test "$GCC" = yes; then
9018: lt_prog_compiler_wl='-Wl,'
9019: lt_prog_compiler_static='-static'
9020:
9021: case $host_os in
9022: aix*)
9023: # All AIX code is PIC.
9024: if test "$host_cpu" = ia64; then
9025: # AIX 5 now supports IA64 processor
9026: lt_prog_compiler_static='-Bstatic'
9027: fi
9028: ;;
9029:
9030: amigaos*)
9031: case $host_cpu in
9032: powerpc)
9033: # see comment about AmigaOS4 .so support
9034: lt_prog_compiler_pic='-fPIC'
9035: ;;
9036: m68k)
9037: # FIXME: we need at least 68020 code to build shared libraries, but
9038: # adding the `-m68020' flag to GCC prevents building anything better,
9039: # like `-m68040'.
9040: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9041: ;;
9042: esac
9043: ;;
9044:
9045: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9046: # PIC is the default for these OSes.
9047: ;;
9048:
9049: mingw* | cygwin* | pw32* | os2* | cegcc*)
9050: # This hack is so that the source file can tell whether it is being
9051: # built for inclusion in a dll (and should export symbols for example).
9052: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9053: # (--disable-auto-import) libraries
9054: lt_prog_compiler_pic='-DDLL_EXPORT'
9055: ;;
9056:
9057: darwin* | rhapsody*)
9058: # PIC is the default on this platform
9059: # Common symbols not allowed in MH_DYLIB files
9060: lt_prog_compiler_pic='-fno-common'
9061: ;;
9062:
9063: haiku*)
9064: # PIC is the default for Haiku.
9065: # The "-static" flag exists, but is broken.
9066: lt_prog_compiler_static=
9067: ;;
9068:
9069: hpux*)
9070: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9071: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9072: # sets the default TLS model and affects inlining.
9073: case $host_cpu in
9074: hppa*64*)
9075: # +Z the default
9076: ;;
9077: *)
9078: lt_prog_compiler_pic='-fPIC'
9079: ;;
9080: esac
9081: ;;
9082:
9083: interix[3-9]*)
9084: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9085: # Instead, we relocate shared libraries at runtime.
9086: ;;
9087:
9088: msdosdjgpp*)
9089: # Just because we use GCC doesn't mean we suddenly get shared libraries
9090: # on systems that don't support them.
9091: lt_prog_compiler_can_build_shared=no
9092: enable_shared=no
9093: ;;
9094:
9095: *nto* | *qnx*)
9096: # QNX uses GNU C++, but need to define -shared option too, otherwise
9097: # it will coredump.
9098: lt_prog_compiler_pic='-fPIC -shared'
9099: ;;
9100:
9101: sysv4*MP*)
9102: if test -d /usr/nec; then
9103: lt_prog_compiler_pic=-Kconform_pic
9104: fi
9105: ;;
9106:
9107: *)
9108: lt_prog_compiler_pic='-fPIC'
9109: ;;
9110: esac
9111:
9112: case $cc_basename in
9113: nvcc*) # Cuda Compiler Driver 2.2
9114: lt_prog_compiler_wl='-Xlinker '
9115: lt_prog_compiler_pic='-Xcompiler -fPIC'
9116: ;;
9117: esac
9118: else
9119: # PORTME Check for flag to pass linker flags through the system compiler.
9120: case $host_os in
9121: aix*)
9122: lt_prog_compiler_wl='-Wl,'
9123: if test "$host_cpu" = ia64; then
9124: # AIX 5 now supports IA64 processor
9125: lt_prog_compiler_static='-Bstatic'
9126: else
9127: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9128: fi
9129: ;;
9130:
9131: mingw* | cygwin* | pw32* | os2* | cegcc*)
9132: # This hack is so that the source file can tell whether it is being
9133: # built for inclusion in a dll (and should export symbols for example).
9134: lt_prog_compiler_pic='-DDLL_EXPORT'
9135: ;;
9136:
9137: hpux9* | hpux10* | hpux11*)
9138: lt_prog_compiler_wl='-Wl,'
9139: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9140: # not for PA HP-UX.
9141: case $host_cpu in
9142: hppa*64*|ia64*)
9143: # +Z the default
9144: ;;
9145: *)
9146: lt_prog_compiler_pic='+Z'
9147: ;;
9148: esac
9149: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9150: lt_prog_compiler_static='${wl}-a ${wl}archive'
9151: ;;
9152:
9153: irix5* | irix6* | nonstopux*)
9154: lt_prog_compiler_wl='-Wl,'
9155: # PIC (with -KPIC) is the default.
9156: lt_prog_compiler_static='-non_shared'
9157: ;;
9158:
9159: linux* | k*bsd*-gnu | kopensolaris*-gnu)
9160: case $cc_basename in
9161: # old Intel for x86_64 which still supported -KPIC.
9162: ecc*)
9163: lt_prog_compiler_wl='-Wl,'
9164: lt_prog_compiler_pic='-KPIC'
9165: lt_prog_compiler_static='-static'
9166: ;;
9167: # icc used to be incompatible with GCC.
9168: # ICC 10 doesn't accept -KPIC any more.
9169: icc* | ifort*)
9170: lt_prog_compiler_wl='-Wl,'
9171: lt_prog_compiler_pic='-fPIC'
9172: lt_prog_compiler_static='-static'
9173: ;;
9174: # Lahey Fortran 8.1.
9175: lf95*)
9176: lt_prog_compiler_wl='-Wl,'
9177: lt_prog_compiler_pic='--shared'
9178: lt_prog_compiler_static='--static'
9179: ;;
9180: nagfor*)
9181: # NAG Fortran compiler
9182: lt_prog_compiler_wl='-Wl,-Wl,,'
9183: lt_prog_compiler_pic='-PIC'
9184: lt_prog_compiler_static='-Bstatic'
9185: ;;
9186: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9187: # Portland Group compilers (*not* the Pentium gcc compiler,
9188: # which looks to be a dead project)
9189: lt_prog_compiler_wl='-Wl,'
9190: lt_prog_compiler_pic='-fpic'
9191: lt_prog_compiler_static='-Bstatic'
9192: ;;
9193: ccc*)
9194: lt_prog_compiler_wl='-Wl,'
9195: # All Alpha code is PIC.
9196: lt_prog_compiler_static='-non_shared'
9197: ;;
9198: xl* | bgxl* | bgf* | mpixl*)
9199: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9200: lt_prog_compiler_wl='-Wl,'
9201: lt_prog_compiler_pic='-qpic'
9202: lt_prog_compiler_static='-qstaticlink'
9203: ;;
9204: *)
9205: case `$CC -V 2>&1 | sed 5q` in
9206: *Sun\ F* | *Sun*Fortran*)
9207: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9208: lt_prog_compiler_pic='-KPIC'
9209: lt_prog_compiler_static='-Bstatic'
9210: lt_prog_compiler_wl=''
9211: ;;
9212: *Sun\ C*)
9213: # Sun C 5.9
9214: lt_prog_compiler_pic='-KPIC'
9215: lt_prog_compiler_static='-Bstatic'
9216: lt_prog_compiler_wl='-Wl,'
9217: ;;
9218: esac
9219: ;;
9220: esac
9221: ;;
9222:
9223: newsos6)
9224: lt_prog_compiler_pic='-KPIC'
9225: lt_prog_compiler_static='-Bstatic'
9226: ;;
9227:
9228: *nto* | *qnx*)
9229: # QNX uses GNU C++, but need to define -shared option too, otherwise
9230: # it will coredump.
9231: lt_prog_compiler_pic='-fPIC -shared'
9232: ;;
9233:
9234: osf3* | osf4* | osf5*)
9235: lt_prog_compiler_wl='-Wl,'
9236: # All OSF/1 code is PIC.
9237: lt_prog_compiler_static='-non_shared'
9238: ;;
9239:
9240: rdos*)
9241: lt_prog_compiler_static='-non_shared'
9242: ;;
9243:
9244: solaris*)
9245: lt_prog_compiler_pic='-KPIC'
9246: lt_prog_compiler_static='-Bstatic'
9247: case $cc_basename in
9248: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9249: lt_prog_compiler_wl='-Qoption ld ';;
9250: *)
9251: lt_prog_compiler_wl='-Wl,';;
9252: esac
9253: ;;
9254:
9255: sunos4*)
9256: lt_prog_compiler_wl='-Qoption ld '
9257: lt_prog_compiler_pic='-PIC'
9258: lt_prog_compiler_static='-Bstatic'
9259: ;;
9260:
9261: sysv4 | sysv4.2uw2* | sysv4.3*)
9262: lt_prog_compiler_wl='-Wl,'
9263: lt_prog_compiler_pic='-KPIC'
9264: lt_prog_compiler_static='-Bstatic'
9265: ;;
9266:
9267: sysv4*MP*)
9268: if test -d /usr/nec ;then
9269: lt_prog_compiler_pic='-Kconform_pic'
9270: lt_prog_compiler_static='-Bstatic'
9271: fi
9272: ;;
9273:
9274: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9275: lt_prog_compiler_wl='-Wl,'
9276: lt_prog_compiler_pic='-KPIC'
9277: lt_prog_compiler_static='-Bstatic'
9278: ;;
9279:
9280: unicos*)
9281: lt_prog_compiler_wl='-Wl,'
9282: lt_prog_compiler_can_build_shared=no
9283: ;;
9284:
9285: uts4*)
9286: lt_prog_compiler_pic='-pic'
9287: lt_prog_compiler_static='-Bstatic'
9288: ;;
9289:
9290: *)
9291: lt_prog_compiler_can_build_shared=no
9292: ;;
9293: esac
9294: fi
9295:
9296: case $host_os in
9297: # For platforms which do not support PIC, -DPIC is meaningless:
9298: *djgpp*)
9299: lt_prog_compiler_pic=
9300: ;;
9301: *)
9302: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9303: ;;
9304: esac
9305:
9306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9307: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9308: if ${lt_cv_prog_compiler_pic+:} false; then :
9309: $as_echo_n "(cached) " >&6
9310: else
9311: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9312: fi
9313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9314: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9315: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9316:
9317: #
9318: # Check to make sure the PIC flag actually works.
9319: #
9320: if test -n "$lt_prog_compiler_pic"; then
9321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9322: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9323: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9324: $as_echo_n "(cached) " >&6
9325: else
9326: lt_cv_prog_compiler_pic_works=no
9327: ac_outfile=conftest.$ac_objext
9328: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9329: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9330: # Insert the option either (1) after the last *FLAGS variable, or
9331: # (2) before a word containing "conftest.", or (3) at the end.
9332: # Note that $ac_compile itself does not contain backslashes and begins
9333: # with a dollar sign (not a hyphen), so the echo should work correctly.
9334: # The option is referenced via a variable to avoid confusing sed.
9335: lt_compile=`echo "$ac_compile" | $SED \
9336: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9337: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9338: -e 's:$: $lt_compiler_flag:'`
9339: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9340: (eval "$lt_compile" 2>conftest.err)
9341: ac_status=$?
9342: cat conftest.err >&5
9343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344: if (exit $ac_status) && test -s "$ac_outfile"; then
9345: # The compiler can only warn and ignore the option if not recognized
9346: # So say no if there are warnings other than the usual output.
9347: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9348: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9349: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9350: lt_cv_prog_compiler_pic_works=yes
9351: fi
9352: fi
9353: $RM conftest*
9354:
9355: fi
9356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9357: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9358:
9359: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9360: case $lt_prog_compiler_pic in
9361: "" | " "*) ;;
9362: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9363: esac
9364: else
9365: lt_prog_compiler_pic=
9366: lt_prog_compiler_can_build_shared=no
9367: fi
9368:
9369: fi
9370:
9371:
9372:
9373:
9374:
9375:
9376:
9377:
9378:
9379:
9380:
9381: #
9382: # Check to make sure the static flag actually works.
9383: #
9384: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9386: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9387: if ${lt_cv_prog_compiler_static_works+:} false; then :
9388: $as_echo_n "(cached) " >&6
9389: else
9390: lt_cv_prog_compiler_static_works=no
9391: save_LDFLAGS="$LDFLAGS"
9392: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9393: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9394: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9395: # The linker can only warn and ignore the option if not recognized
9396: # So say no if there are warnings
9397: if test -s conftest.err; then
9398: # Append any errors to the config.log.
9399: cat conftest.err 1>&5
9400: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9401: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9402: if diff conftest.exp conftest.er2 >/dev/null; then
9403: lt_cv_prog_compiler_static_works=yes
9404: fi
9405: else
9406: lt_cv_prog_compiler_static_works=yes
9407: fi
9408: fi
9409: $RM -r conftest*
9410: LDFLAGS="$save_LDFLAGS"
9411:
9412: fi
9413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9414: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9415:
9416: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9417: :
9418: else
9419: lt_prog_compiler_static=
9420: fi
9421:
9422:
9423:
9424:
9425:
9426:
9427:
9428: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9429: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9430: if ${lt_cv_prog_compiler_c_o+:} false; then :
9431: $as_echo_n "(cached) " >&6
9432: else
9433: lt_cv_prog_compiler_c_o=no
9434: $RM -r conftest 2>/dev/null
9435: mkdir conftest
9436: cd conftest
9437: mkdir out
9438: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9439:
9440: lt_compiler_flag="-o out/conftest2.$ac_objext"
9441: # Insert the option either (1) after the last *FLAGS variable, or
9442: # (2) before a word containing "conftest.", or (3) at the end.
9443: # Note that $ac_compile itself does not contain backslashes and begins
9444: # with a dollar sign (not a hyphen), so the echo should work correctly.
9445: lt_compile=`echo "$ac_compile" | $SED \
9446: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9447: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9448: -e 's:$: $lt_compiler_flag:'`
9449: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9450: (eval "$lt_compile" 2>out/conftest.err)
9451: ac_status=$?
9452: cat out/conftest.err >&5
9453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9455: then
9456: # The compiler can only warn and ignore the option if not recognized
9457: # So say no if there are warnings
9458: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9459: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9460: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9461: lt_cv_prog_compiler_c_o=yes
9462: fi
9463: fi
9464: chmod u+w . 2>&5
9465: $RM conftest*
9466: # SGI C++ compiler will create directory out/ii_files/ for
9467: # template instantiation
9468: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9469: $RM out/* && rmdir out
9470: cd ..
9471: $RM -r conftest
9472: $RM conftest*
9473:
9474: fi
9475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9476: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9477:
9478:
9479:
9480:
9481:
9482:
9483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9484: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9485: if ${lt_cv_prog_compiler_c_o+:} false; then :
9486: $as_echo_n "(cached) " >&6
9487: else
9488: lt_cv_prog_compiler_c_o=no
9489: $RM -r conftest 2>/dev/null
9490: mkdir conftest
9491: cd conftest
9492: mkdir out
9493: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9494:
9495: lt_compiler_flag="-o out/conftest2.$ac_objext"
9496: # Insert the option either (1) after the last *FLAGS variable, or
9497: # (2) before a word containing "conftest.", or (3) at the end.
9498: # Note that $ac_compile itself does not contain backslashes and begins
9499: # with a dollar sign (not a hyphen), so the echo should work correctly.
9500: lt_compile=`echo "$ac_compile" | $SED \
9501: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9502: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9503: -e 's:$: $lt_compiler_flag:'`
9504: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9505: (eval "$lt_compile" 2>out/conftest.err)
9506: ac_status=$?
9507: cat out/conftest.err >&5
9508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9510: then
9511: # The compiler can only warn and ignore the option if not recognized
9512: # So say no if there are warnings
9513: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9514: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9515: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9516: lt_cv_prog_compiler_c_o=yes
9517: fi
9518: fi
9519: chmod u+w . 2>&5
9520: $RM conftest*
9521: # SGI C++ compiler will create directory out/ii_files/ for
9522: # template instantiation
9523: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9524: $RM out/* && rmdir out
9525: cd ..
9526: $RM -r conftest
9527: $RM conftest*
9528:
9529: fi
9530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9531: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9532:
9533:
9534:
9535:
9536: hard_links="nottested"
9537: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9538: # do not overwrite the value of need_locks provided by the user
9539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9540: $as_echo_n "checking if we can lock with hard links... " >&6; }
9541: hard_links=yes
9542: $RM conftest*
9543: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9544: touch conftest.a
9545: ln conftest.a conftest.b 2>&5 || hard_links=no
9546: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9548: $as_echo "$hard_links" >&6; }
9549: if test "$hard_links" = no; then
9550: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9551: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9552: need_locks=warn
9553: fi
9554: else
9555: need_locks=no
9556: fi
9557:
9558:
9559:
9560:
9561:
9562:
9563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9564: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9565:
9566: runpath_var=
9567: allow_undefined_flag=
9568: always_export_symbols=no
9569: archive_cmds=
9570: archive_expsym_cmds=
9571: compiler_needs_object=no
9572: enable_shared_with_static_runtimes=no
9573: export_dynamic_flag_spec=
9574: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9575: hardcode_automatic=no
9576: hardcode_direct=no
9577: hardcode_direct_absolute=no
9578: hardcode_libdir_flag_spec=
9579: hardcode_libdir_flag_spec_ld=
9580: hardcode_libdir_separator=
9581: hardcode_minus_L=no
9582: hardcode_shlibpath_var=unsupported
9583: inherit_rpath=no
9584: link_all_deplibs=unknown
9585: module_cmds=
9586: module_expsym_cmds=
9587: old_archive_from_new_cmds=
9588: old_archive_from_expsyms_cmds=
9589: thread_safe_flag_spec=
9590: whole_archive_flag_spec=
9591: # include_expsyms should be a list of space-separated symbols to be *always*
9592: # included in the symbol list
9593: include_expsyms=
9594: # exclude_expsyms can be an extended regexp of symbols to exclude
9595: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9596: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9597: # as well as any symbol that contains `d'.
9598: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9599: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9600: # platforms (ab)use it in PIC code, but their linkers get confused if
9601: # the symbol is explicitly referenced. Since portable code cannot
9602: # rely on this symbol name, it's probably fine to never include it in
9603: # preloaded symbol tables.
9604: # Exclude shared library initialization/finalization symbols.
9605: extract_expsyms_cmds=
9606:
9607: case $host_os in
9608: cygwin* | mingw* | pw32* | cegcc*)
9609: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9610: # When not using gcc, we currently assume that we are using
9611: # Microsoft Visual C++.
9612: if test "$GCC" != yes; then
9613: with_gnu_ld=no
9614: fi
9615: ;;
9616: interix*)
9617: # we just hope/assume this is gcc and not c89 (= MSVC++)
9618: with_gnu_ld=yes
9619: ;;
9620: openbsd*)
9621: with_gnu_ld=no
9622: ;;
9623: esac
9624:
9625: ld_shlibs=yes
9626:
9627: # On some targets, GNU ld is compatible enough with the native linker
9628: # that we're better off using the native interface for both.
9629: lt_use_gnu_ld_interface=no
9630: if test "$with_gnu_ld" = yes; then
9631: case $host_os in
9632: aix*)
9633: # The AIX port of GNU ld has always aspired to compatibility
9634: # with the native linker. However, as the warning in the GNU ld
9635: # block says, versions before 2.19.5* couldn't really create working
9636: # shared libraries, regardless of the interface used.
9637: case `$LD -v 2>&1` in
9638: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9639: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9640: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9641: *)
9642: lt_use_gnu_ld_interface=yes
9643: ;;
9644: esac
9645: ;;
9646: *)
9647: lt_use_gnu_ld_interface=yes
9648: ;;
9649: esac
9650: fi
9651:
9652: if test "$lt_use_gnu_ld_interface" = yes; then
9653: # If archive_cmds runs LD, not CC, wlarc should be empty
9654: wlarc='${wl}'
9655:
9656: # Set some defaults for GNU ld with shared library support. These
9657: # are reset later if shared libraries are not supported. Putting them
9658: # here allows them to be overridden if necessary.
9659: runpath_var=LD_RUN_PATH
9660: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661: export_dynamic_flag_spec='${wl}--export-dynamic'
9662: # ancient GNU ld didn't support --whole-archive et. al.
9663: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9664: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9665: else
9666: whole_archive_flag_spec=
9667: fi
9668: supports_anon_versioning=no
9669: case `$LD -v 2>&1` in
9670: *GNU\ gold*) supports_anon_versioning=yes ;;
9671: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9672: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9673: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9674: *\ 2.11.*) ;; # other 2.11 versions
9675: *) supports_anon_versioning=yes ;;
9676: esac
9677:
9678: # See if GNU ld supports shared libraries.
9679: case $host_os in
9680: aix[3-9]*)
9681: # On AIX/PPC, the GNU linker is very broken
9682: if test "$host_cpu" != ia64; then
9683: ld_shlibs=no
9684: cat <<_LT_EOF 1>&2
9685:
9686: *** Warning: the GNU linker, at least up to release 2.19, is reported
9687: *** to be unable to reliably create shared libraries on AIX.
9688: *** Therefore, libtool is disabling shared libraries support. If you
9689: *** really care for shared libraries, you may want to install binutils
9690: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9691: *** You will then need to restart the configuration process.
9692:
9693: _LT_EOF
9694: fi
9695: ;;
9696:
9697: amigaos*)
9698: case $host_cpu in
9699: powerpc)
9700: # see comment about AmigaOS4 .so support
9701: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702: archive_expsym_cmds=''
9703: ;;
9704: m68k)
9705: 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)'
9706: hardcode_libdir_flag_spec='-L$libdir'
9707: hardcode_minus_L=yes
9708: ;;
9709: esac
9710: ;;
9711:
9712: beos*)
9713: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9714: allow_undefined_flag=unsupported
9715: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9716: # support --undefined. This deserves some investigation. FIXME
9717: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9718: else
9719: ld_shlibs=no
9720: fi
9721: ;;
9722:
9723: cygwin* | mingw* | pw32* | cegcc*)
9724: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9725: # as there is no search path for DLLs.
9726: hardcode_libdir_flag_spec='-L$libdir'
9727: export_dynamic_flag_spec='${wl}--export-all-symbols'
9728: allow_undefined_flag=unsupported
9729: always_export_symbols=no
9730: enable_shared_with_static_runtimes=yes
9731: 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'
9732: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9733:
9734: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9735: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9736: # If the export-symbols file already is a .def file (1st line
9737: # is EXPORTS), use it as is; otherwise, prepend...
9738: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9739: cp $export_symbols $output_objdir/$soname.def;
9740: else
9741: echo EXPORTS > $output_objdir/$soname.def;
9742: cat $export_symbols >> $output_objdir/$soname.def;
9743: fi~
9744: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9745: else
9746: ld_shlibs=no
9747: fi
9748: ;;
9749:
9750: haiku*)
9751: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752: link_all_deplibs=yes
9753: ;;
9754:
9755: interix[3-9]*)
9756: hardcode_direct=no
9757: hardcode_shlibpath_var=no
9758: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9759: export_dynamic_flag_spec='${wl}-E'
9760: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9761: # Instead, shared libraries are loaded at an image base (0x10000000 by
9762: # default) and relocated if they conflict, which is a slow very memory
9763: # consuming and fragmenting process. To avoid this, we pick a random,
9764: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9765: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9766: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9767: 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'
9768: ;;
9769:
9770: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9771: tmp_diet=no
9772: if test "$host_os" = linux-dietlibc; then
9773: case $cc_basename in
9774: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9775: esac
9776: fi
9777: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9778: && test "$tmp_diet" = no
9779: then
9780: tmp_addflag=' $pic_flag'
9781: tmp_sharedflag='-shared'
9782: case $cc_basename,$host_cpu in
9783: pgcc*) # Portland Group C compiler
9784: 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'
9785: tmp_addflag=' $pic_flag'
9786: ;;
9787: pgf77* | pgf90* | pgf95* | pgfortran*)
9788: # Portland Group f77 and f90 compilers
9789: 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'
9790: tmp_addflag=' $pic_flag -Mnomain' ;;
9791: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9792: tmp_addflag=' -i_dynamic' ;;
9793: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9794: tmp_addflag=' -i_dynamic -nofor_main' ;;
9795: ifc* | ifort*) # Intel Fortran compiler
9796: tmp_addflag=' -nofor_main' ;;
9797: lf95*) # Lahey Fortran 8.1
9798: whole_archive_flag_spec=
9799: tmp_sharedflag='--shared' ;;
9800: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9801: tmp_sharedflag='-qmkshrobj'
9802: tmp_addflag= ;;
9803: nvcc*) # Cuda Compiler Driver 2.2
9804: 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'
9805: compiler_needs_object=yes
9806: ;;
9807: esac
9808: case `$CC -V 2>&1 | sed 5q` in
9809: *Sun\ C*) # Sun C 5.9
9810: 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'
9811: compiler_needs_object=yes
9812: tmp_sharedflag='-G' ;;
9813: *Sun\ F*) # Sun Fortran 8.3
9814: tmp_sharedflag='-G' ;;
9815: esac
9816: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9817:
9818: if test "x$supports_anon_versioning" = xyes; then
9819: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9820: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9821: echo "local: *; };" >> $output_objdir/$libname.ver~
9822: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9823: fi
9824:
9825: case $cc_basename in
9826: xlf* | bgf* | bgxlf* | mpixlf*)
9827: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9828: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9829: hardcode_libdir_flag_spec=
9830: hardcode_libdir_flag_spec_ld='-rpath $libdir'
9831: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9832: if test "x$supports_anon_versioning" = xyes; then
9833: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9834: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9835: echo "local: *; };" >> $output_objdir/$libname.ver~
9836: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9837: fi
9838: ;;
9839: esac
9840: else
9841: ld_shlibs=no
9842: fi
9843: ;;
9844:
9845: netbsd*)
9846: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9847: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9848: wlarc=
9849: else
9850: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852: fi
9853: ;;
9854:
9855: solaris*)
9856: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9857: ld_shlibs=no
9858: cat <<_LT_EOF 1>&2
9859:
9860: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9861: *** create shared libraries on Solaris systems. Therefore, libtool
9862: *** is disabling shared libraries support. We urge you to upgrade GNU
9863: *** binutils to release 2.9.1 or newer. Another option is to modify
9864: *** your PATH or compiler configuration so that the native linker is
9865: *** used, and then restart.
9866:
9867: _LT_EOF
9868: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9869: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9871: else
9872: ld_shlibs=no
9873: fi
9874: ;;
9875:
9876: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9877: case `$LD -v 2>&1` in
9878: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9879: ld_shlibs=no
9880: cat <<_LT_EOF 1>&2
9881:
9882: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9883: *** reliably create shared libraries on SCO systems. Therefore, libtool
9884: *** is disabling shared libraries support. We urge you to upgrade GNU
9885: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9886: *** your PATH or compiler configuration so that the native linker is
9887: *** used, and then restart.
9888:
9889: _LT_EOF
9890: ;;
9891: *)
9892: # For security reasons, it is highly recommended that you always
9893: # use absolute paths for naming shared libraries, and exclude the
9894: # DT_RUNPATH tag from executables and libraries. But doing so
9895: # requires that you compile everything twice, which is a pain.
9896: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9897: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9898: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9900: else
9901: ld_shlibs=no
9902: fi
9903: ;;
9904: esac
9905: ;;
9906:
9907: sunos4*)
9908: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9909: wlarc=
9910: hardcode_direct=yes
9911: hardcode_shlibpath_var=no
9912: ;;
9913:
9914: *)
9915: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9916: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9917: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9918: else
9919: ld_shlibs=no
9920: fi
9921: ;;
9922: esac
9923:
9924: if test "$ld_shlibs" = no; then
9925: runpath_var=
9926: hardcode_libdir_flag_spec=
9927: export_dynamic_flag_spec=
9928: whole_archive_flag_spec=
9929: fi
9930: else
9931: # PORTME fill in a description of your system's linker (not GNU ld)
9932: case $host_os in
9933: aix3*)
9934: allow_undefined_flag=unsupported
9935: always_export_symbols=yes
9936: 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'
9937: # Note: this linker hardcodes the directories in LIBPATH if there
9938: # are no directories specified by -L.
9939: hardcode_minus_L=yes
9940: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9941: # Neither direct hardcoding nor static linking is supported with a
9942: # broken collect2.
9943: hardcode_direct=unsupported
9944: fi
9945: ;;
9946:
9947: aix[4-9]*)
9948: if test "$host_cpu" = ia64; then
9949: # On IA64, the linker does run time linking by default, so we don't
9950: # have to do anything special.
9951: aix_use_runtimelinking=no
9952: exp_sym_flag='-Bexport'
9953: no_entry_flag=""
9954: else
9955: # If we're using GNU nm, then we don't want the "-C" option.
9956: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9957: # Also, AIX nm treats weak defined symbols like other global
9958: # defined symbols, whereas GNU nm marks them as "W".
9959: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9960: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9961: else
9962: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9963: fi
9964: aix_use_runtimelinking=no
9965:
9966: # Test if we are trying to use run time linking or normal
9967: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9968: # need to do runtime linking.
9969: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9970: for ld_flag in $LDFLAGS; do
9971: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9972: aix_use_runtimelinking=yes
9973: break
9974: fi
9975: done
9976: ;;
9977: esac
9978:
9979: exp_sym_flag='-bexport'
9980: no_entry_flag='-bnoentry'
9981: fi
9982:
9983: # When large executables or shared objects are built, AIX ld can
9984: # have problems creating the table of contents. If linking a library
9985: # or program results in "error TOC overflow" add -mminimal-toc to
9986: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9987: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9988:
9989: archive_cmds=''
9990: hardcode_direct=yes
9991: hardcode_direct_absolute=yes
9992: hardcode_libdir_separator=':'
9993: link_all_deplibs=yes
9994: file_list_spec='${wl}-f,'
9995:
9996: if test "$GCC" = yes; then
9997: case $host_os in aix4.[012]|aix4.[012].*)
9998: # We only want to do this on AIX 4.2 and lower, the check
9999: # below for broken collect2 doesn't work under 4.3+
10000: collect2name=`${CC} -print-prog-name=collect2`
10001: if test -f "$collect2name" &&
10002: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10003: then
10004: # We have reworked collect2
10005: :
10006: else
10007: # We have old collect2
10008: hardcode_direct=unsupported
10009: # It fails to find uninstalled libraries when the uninstalled
10010: # path is not listed in the libpath. Setting hardcode_minus_L
10011: # to unsupported forces relinking
10012: hardcode_minus_L=yes
10013: hardcode_libdir_flag_spec='-L$libdir'
10014: hardcode_libdir_separator=
10015: fi
10016: ;;
10017: esac
10018: shared_flag='-shared'
10019: if test "$aix_use_runtimelinking" = yes; then
10020: shared_flag="$shared_flag "'${wl}-G'
10021: fi
10022: else
10023: # not using gcc
10024: if test "$host_cpu" = ia64; then
10025: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10026: # chokes on -Wl,-G. The following line is correct:
10027: shared_flag='-G'
10028: else
10029: if test "$aix_use_runtimelinking" = yes; then
10030: shared_flag='${wl}-G'
10031: else
10032: shared_flag='${wl}-bM:SRE'
10033: fi
10034: fi
10035: fi
10036:
10037: export_dynamic_flag_spec='${wl}-bexpall'
10038: # It seems that -bexpall does not export symbols beginning with
10039: # underscore (_), so it is better to generate a list of symbols to export.
10040: always_export_symbols=yes
10041: if test "$aix_use_runtimelinking" = yes; then
10042: # Warning - without using the other runtime loading flags (-brtl),
10043: # -berok will link without error, but may produce a broken library.
10044: allow_undefined_flag='-berok'
10045: # Determine the default libpath from the value encoded in an
10046: # empty executable.
10047: if test "${lt_cv_aix_libpath+set}" = set; then
10048: aix_libpath=$lt_cv_aix_libpath
10049: else
10050: if ${lt_cv_aix_libpath_+:} false; then :
10051: $as_echo_n "(cached) " >&6
10052: else
10053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054: /* end confdefs.h. */
10055:
10056: int
10057: main ()
10058: {
10059:
10060: ;
10061: return 0;
10062: }
10063: _ACEOF
10064: if ac_fn_c_try_link "$LINENO"; then :
10065:
10066: lt_aix_libpath_sed='
10067: /Import File Strings/,/^$/ {
10068: /^0/ {
10069: s/^0 *\([^ ]*\) *$/\1/
10070: p
10071: }
10072: }'
10073: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10074: # Check for a 64-bit object if we didn't find anything.
10075: if test -z "$lt_cv_aix_libpath_"; then
10076: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10077: fi
10078: fi
10079: rm -f core conftest.err conftest.$ac_objext \
10080: conftest$ac_exeext conftest.$ac_ext
10081: if test -z "$lt_cv_aix_libpath_"; then
10082: lt_cv_aix_libpath_="/usr/lib:/lib"
10083: fi
10084:
10085: fi
10086:
10087: aix_libpath=$lt_cv_aix_libpath_
10088: fi
10089:
10090: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10091: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10092: else
10093: if test "$host_cpu" = ia64; then
10094: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10095: allow_undefined_flag="-z nodefs"
10096: 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"
10097: else
10098: # Determine the default libpath from the value encoded in an
10099: # empty executable.
10100: if test "${lt_cv_aix_libpath+set}" = set; then
10101: aix_libpath=$lt_cv_aix_libpath
10102: else
10103: if ${lt_cv_aix_libpath_+:} false; then :
10104: $as_echo_n "(cached) " >&6
10105: else
10106: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107: /* end confdefs.h. */
10108:
10109: int
10110: main ()
10111: {
10112:
10113: ;
10114: return 0;
10115: }
10116: _ACEOF
10117: if ac_fn_c_try_link "$LINENO"; then :
10118:
10119: lt_aix_libpath_sed='
10120: /Import File Strings/,/^$/ {
10121: /^0/ {
10122: s/^0 *\([^ ]*\) *$/\1/
10123: p
10124: }
10125: }'
10126: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10127: # Check for a 64-bit object if we didn't find anything.
10128: if test -z "$lt_cv_aix_libpath_"; then
10129: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130: fi
10131: fi
10132: rm -f core conftest.err conftest.$ac_objext \
10133: conftest$ac_exeext conftest.$ac_ext
10134: if test -z "$lt_cv_aix_libpath_"; then
10135: lt_cv_aix_libpath_="/usr/lib:/lib"
10136: fi
10137:
10138: fi
10139:
10140: aix_libpath=$lt_cv_aix_libpath_
10141: fi
10142:
10143: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10144: # Warning - without using the other run time loading flags,
10145: # -berok will link without error, but may produce a broken library.
10146: no_undefined_flag=' ${wl}-bernotok'
10147: allow_undefined_flag=' ${wl}-berok'
10148: if test "$with_gnu_ld" = yes; then
10149: # We only use this code for GNU lds that support --whole-archive.
10150: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10151: else
10152: # Exported symbols can be pulled into shared objects from archives
10153: whole_archive_flag_spec='$convenience'
10154: fi
10155: archive_cmds_need_lc=yes
10156: # This is similar to how AIX traditionally builds its shared libraries.
10157: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10158: fi
10159: fi
10160: ;;
10161:
10162: amigaos*)
10163: case $host_cpu in
10164: powerpc)
10165: # see comment about AmigaOS4 .so support
10166: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10167: archive_expsym_cmds=''
10168: ;;
10169: m68k)
10170: 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)'
10171: hardcode_libdir_flag_spec='-L$libdir'
10172: hardcode_minus_L=yes
10173: ;;
10174: esac
10175: ;;
10176:
10177: bsdi[45]*)
10178: export_dynamic_flag_spec=-rdynamic
10179: ;;
10180:
10181: cygwin* | mingw* | pw32* | cegcc*)
10182: # When not using gcc, we currently assume that we are using
10183: # Microsoft Visual C++.
10184: # hardcode_libdir_flag_spec is actually meaningless, as there is
10185: # no search path for DLLs.
10186: case $cc_basename in
10187: cl*)
10188: # Native MSVC
10189: hardcode_libdir_flag_spec=' '
10190: allow_undefined_flag=unsupported
10191: always_export_symbols=yes
10192: file_list_spec='@'
10193: # Tell ltmain to make .lib files, not .a files.
10194: libext=lib
10195: # Tell ltmain to make .dll files, not .so files.
10196: shrext_cmds=".dll"
10197: # FIXME: Setting linknames here is a bad hack.
10198: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10199: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10200: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10201: else
10202: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10203: fi~
10204: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10205: linknames='
10206: # The linker will not automatically build a static lib if we build a DLL.
10207: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10208: enable_shared_with_static_runtimes=yes
10209: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10210: # Don't use ranlib
10211: old_postinstall_cmds='chmod 644 $oldlib'
10212: postlink_cmds='lt_outputfile="@OUTPUT@"~
10213: lt_tool_outputfile="@TOOL_OUTPUT@"~
10214: case $lt_outputfile in
10215: *.exe|*.EXE) ;;
10216: *)
10217: lt_outputfile="$lt_outputfile.exe"
10218: lt_tool_outputfile="$lt_tool_outputfile.exe"
10219: ;;
10220: esac~
10221: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10222: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10223: $RM "$lt_outputfile.manifest";
10224: fi'
10225: ;;
10226: *)
10227: # Assume MSVC wrapper
10228: hardcode_libdir_flag_spec=' '
10229: allow_undefined_flag=unsupported
10230: # Tell ltmain to make .lib files, not .a files.
10231: libext=lib
10232: # Tell ltmain to make .dll files, not .so files.
10233: shrext_cmds=".dll"
10234: # FIXME: Setting linknames here is a bad hack.
10235: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10236: # The linker will automatically build a .lib file if we build a DLL.
10237: old_archive_from_new_cmds='true'
10238: # FIXME: Should let the user specify the lib program.
10239: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10240: enable_shared_with_static_runtimes=yes
10241: ;;
10242: esac
10243: ;;
10244:
10245: darwin* | rhapsody*)
10246:
10247:
10248: archive_cmds_need_lc=no
10249: hardcode_direct=no
10250: hardcode_automatic=yes
10251: hardcode_shlibpath_var=unsupported
10252: if test "$lt_cv_ld_force_load" = "yes"; then
10253: 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\"`'
10254: else
10255: whole_archive_flag_spec=''
10256: fi
10257: link_all_deplibs=yes
10258: allow_undefined_flag="$_lt_dar_allow_undefined"
10259: case $cc_basename in
10260: ifort*) _lt_dar_can_shared=yes ;;
10261: *) _lt_dar_can_shared=$GCC ;;
10262: esac
10263: if test "$_lt_dar_can_shared" = "yes"; then
10264: output_verbose_link_cmd=func_echo_all
10265: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10266: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10267: 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}"
10268: 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}"
10269:
10270: else
10271: ld_shlibs=no
10272: fi
10273:
10274: ;;
10275:
10276: dgux*)
10277: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278: hardcode_libdir_flag_spec='-L$libdir'
10279: hardcode_shlibpath_var=no
10280: ;;
10281:
10282: freebsd1*)
10283: ld_shlibs=no
10284: ;;
10285:
10286: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10287: # support. Future versions do this automatically, but an explicit c++rt0.o
10288: # does not break anything, and helps significantly (at the cost of a little
10289: # extra space).
10290: freebsd2.2*)
10291: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10292: hardcode_libdir_flag_spec='-R$libdir'
10293: hardcode_direct=yes
10294: hardcode_shlibpath_var=no
10295: ;;
10296:
10297: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10298: freebsd2*)
10299: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10300: hardcode_direct=yes
10301: hardcode_minus_L=yes
10302: hardcode_shlibpath_var=no
10303: ;;
10304:
10305: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10306: freebsd* | dragonfly*)
10307: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10308: hardcode_libdir_flag_spec='-R$libdir'
10309: hardcode_direct=yes
10310: hardcode_shlibpath_var=no
10311: ;;
10312:
10313: hpux9*)
10314: if test "$GCC" = yes; then
10315: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10316: else
10317: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10318: fi
10319: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10320: hardcode_libdir_separator=:
10321: hardcode_direct=yes
10322:
10323: # hardcode_minus_L: Not really in the search PATH,
10324: # but as the default location of the library.
10325: hardcode_minus_L=yes
10326: export_dynamic_flag_spec='${wl}-E'
10327: ;;
10328:
10329: hpux10*)
10330: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10331: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10332: else
10333: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10334: fi
10335: if test "$with_gnu_ld" = no; then
10336: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10337: hardcode_libdir_flag_spec_ld='+b $libdir'
10338: hardcode_libdir_separator=:
10339: hardcode_direct=yes
10340: hardcode_direct_absolute=yes
10341: export_dynamic_flag_spec='${wl}-E'
10342: # hardcode_minus_L: Not really in the search PATH,
10343: # but as the default location of the library.
10344: hardcode_minus_L=yes
10345: fi
10346: ;;
10347:
10348: hpux11*)
10349: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10350: case $host_cpu in
10351: hppa*64*)
10352: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10353: ;;
10354: ia64*)
10355: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10356: ;;
10357: *)
10358: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10359: ;;
10360: esac
10361: else
10362: case $host_cpu in
10363: hppa*64*)
10364: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10365: ;;
10366: ia64*)
10367: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10368: ;;
10369: *)
10370:
10371: # Older versions of the 11.00 compiler do not understand -b yet
10372: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10374: $as_echo_n "checking if $CC understands -b... " >&6; }
10375: if ${lt_cv_prog_compiler__b+:} false; then :
10376: $as_echo_n "(cached) " >&6
10377: else
10378: lt_cv_prog_compiler__b=no
10379: save_LDFLAGS="$LDFLAGS"
10380: LDFLAGS="$LDFLAGS -b"
10381: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10382: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10383: # The linker can only warn and ignore the option if not recognized
10384: # So say no if there are warnings
10385: if test -s conftest.err; then
10386: # Append any errors to the config.log.
10387: cat conftest.err 1>&5
10388: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10389: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10390: if diff conftest.exp conftest.er2 >/dev/null; then
10391: lt_cv_prog_compiler__b=yes
10392: fi
10393: else
10394: lt_cv_prog_compiler__b=yes
10395: fi
10396: fi
10397: $RM -r conftest*
10398: LDFLAGS="$save_LDFLAGS"
10399:
10400: fi
10401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10402: $as_echo "$lt_cv_prog_compiler__b" >&6; }
10403:
10404: if test x"$lt_cv_prog_compiler__b" = xyes; then
10405: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10406: else
10407: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10408: fi
10409:
10410: ;;
10411: esac
10412: fi
10413: if test "$with_gnu_ld" = no; then
10414: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10415: hardcode_libdir_separator=:
10416:
10417: case $host_cpu in
10418: hppa*64*|ia64*)
10419: hardcode_direct=no
10420: hardcode_shlibpath_var=no
10421: ;;
10422: *)
10423: hardcode_direct=yes
10424: hardcode_direct_absolute=yes
10425: export_dynamic_flag_spec='${wl}-E'
10426:
10427: # hardcode_minus_L: Not really in the search PATH,
10428: # but as the default location of the library.
10429: hardcode_minus_L=yes
10430: ;;
10431: esac
10432: fi
10433: ;;
10434:
10435: irix5* | irix6* | nonstopux*)
10436: if test "$GCC" = yes; then
10437: 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'
10438: # Try to use the -exported_symbol ld option, if it does not
10439: # work, assume that -exports_file does not work either and
10440: # implicitly export all symbols.
10441: # This should be the same for all languages, so no per-tag cache variable.
10442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10443: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10444: if ${lt_cv_irix_exported_symbol+:} false; then :
10445: $as_echo_n "(cached) " >&6
10446: else
10447: save_LDFLAGS="$LDFLAGS"
10448: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450: /* end confdefs.h. */
10451: int foo (void) { return 0; }
10452: _ACEOF
10453: if ac_fn_c_try_link "$LINENO"; then :
10454: lt_cv_irix_exported_symbol=yes
10455: else
10456: lt_cv_irix_exported_symbol=no
10457: fi
10458: rm -f core conftest.err conftest.$ac_objext \
10459: conftest$ac_exeext conftest.$ac_ext
10460: LDFLAGS="$save_LDFLAGS"
10461: fi
10462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10463: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10464: if test "$lt_cv_irix_exported_symbol" = yes; then
10465: 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'
10466: fi
10467: else
10468: 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'
10469: 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'
10470: fi
10471: archive_cmds_need_lc='no'
10472: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10473: hardcode_libdir_separator=:
10474: inherit_rpath=yes
10475: link_all_deplibs=yes
10476: ;;
10477:
10478: netbsd*)
10479: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10480: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10481: else
10482: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10483: fi
10484: hardcode_libdir_flag_spec='-R$libdir'
10485: hardcode_direct=yes
10486: hardcode_shlibpath_var=no
10487: ;;
10488:
10489: newsos6)
10490: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491: hardcode_direct=yes
10492: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10493: hardcode_libdir_separator=:
10494: hardcode_shlibpath_var=no
10495: ;;
10496:
10497: *nto* | *qnx*)
10498: ;;
10499:
10500: openbsd*)
10501: if test -f /usr/libexec/ld.so; then
10502: hardcode_direct=yes
10503: hardcode_shlibpath_var=no
10504: hardcode_direct_absolute=yes
10505: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10506: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10507: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10508: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10509: export_dynamic_flag_spec='${wl}-E'
10510: else
10511: case $host_os in
10512: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10513: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10514: hardcode_libdir_flag_spec='-R$libdir'
10515: ;;
10516: *)
10517: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10518: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10519: ;;
10520: esac
10521: fi
10522: else
10523: ld_shlibs=no
10524: fi
10525: ;;
10526:
10527: os2*)
10528: hardcode_libdir_flag_spec='-L$libdir'
10529: hardcode_minus_L=yes
10530: allow_undefined_flag=unsupported
10531: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10532: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10533: ;;
10534:
10535: osf3*)
10536: if test "$GCC" = yes; then
10537: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10538: 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'
10539: else
10540: allow_undefined_flag=' -expect_unresolved \*'
10541: 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'
10542: fi
10543: archive_cmds_need_lc='no'
10544: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10545: hardcode_libdir_separator=:
10546: ;;
10547:
10548: osf4* | osf5*) # as osf3* with the addition of -msym flag
10549: if test "$GCC" = yes; then
10550: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10551: 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'
10552: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10553: else
10554: allow_undefined_flag=' -expect_unresolved \*'
10555: 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'
10556: 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~
10557: $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'
10558:
10559: # Both c and cxx compiler support -rpath directly
10560: hardcode_libdir_flag_spec='-rpath $libdir'
10561: fi
10562: archive_cmds_need_lc='no'
10563: hardcode_libdir_separator=:
10564: ;;
10565:
10566: solaris*)
10567: no_undefined_flag=' -z defs'
10568: if test "$GCC" = yes; then
10569: wlarc='${wl}'
10570: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10571: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10572: $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'
10573: else
10574: case `$CC -V 2>&1` in
10575: *"Compilers 5.0"*)
10576: wlarc=''
10577: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10579: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10580: ;;
10581: *)
10582: wlarc='${wl}'
10583: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10584: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10585: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10586: ;;
10587: esac
10588: fi
10589: hardcode_libdir_flag_spec='-R$libdir'
10590: hardcode_shlibpath_var=no
10591: case $host_os in
10592: solaris2.[0-5] | solaris2.[0-5].*) ;;
10593: *)
10594: # The compiler driver will combine and reorder linker options,
10595: # but understands `-z linker_flag'. GCC discards it without `$wl',
10596: # but is careful enough not to reorder.
10597: # Supported since Solaris 2.6 (maybe 2.5.1?)
10598: if test "$GCC" = yes; then
10599: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10600: else
10601: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10602: fi
10603: ;;
10604: esac
10605: link_all_deplibs=yes
10606: ;;
10607:
10608: sunos4*)
10609: if test "x$host_vendor" = xsequent; then
10610: # Use $CC to link under sequent, because it throws in some extra .o
10611: # files that make .init and .fini sections work.
10612: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10613: else
10614: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10615: fi
10616: hardcode_libdir_flag_spec='-L$libdir'
10617: hardcode_direct=yes
10618: hardcode_minus_L=yes
10619: hardcode_shlibpath_var=no
10620: ;;
10621:
10622: sysv4)
10623: case $host_vendor in
10624: sni)
10625: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626: hardcode_direct=yes # is this really true???
10627: ;;
10628: siemens)
10629: ## LD is ld it makes a PLAMLIB
10630: ## CC just makes a GrossModule.
10631: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10632: reload_cmds='$CC -r -o $output$reload_objs'
10633: hardcode_direct=no
10634: ;;
10635: motorola)
10636: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10637: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10638: ;;
10639: esac
10640: runpath_var='LD_RUN_PATH'
10641: hardcode_shlibpath_var=no
10642: ;;
10643:
10644: sysv4.3*)
10645: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646: hardcode_shlibpath_var=no
10647: export_dynamic_flag_spec='-Bexport'
10648: ;;
10649:
10650: sysv4*MP*)
10651: if test -d /usr/nec; then
10652: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10653: hardcode_shlibpath_var=no
10654: runpath_var=LD_RUN_PATH
10655: hardcode_runpath_var=yes
10656: ld_shlibs=yes
10657: fi
10658: ;;
10659:
10660: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10661: no_undefined_flag='${wl}-z,text'
10662: archive_cmds_need_lc=no
10663: hardcode_shlibpath_var=no
10664: runpath_var='LD_RUN_PATH'
10665:
10666: if test "$GCC" = yes; then
10667: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669: else
10670: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672: fi
10673: ;;
10674:
10675: sysv5* | sco3.2v5* | sco5v6*)
10676: # Note: We can NOT use -z defs as we might desire, because we do not
10677: # link with -lc, and that would cause any symbols used from libc to
10678: # always be unresolved, which means just about no library would
10679: # ever link correctly. If we're not using GNU ld we use -z text
10680: # though, which does catch some bad symbols but isn't as heavy-handed
10681: # as -z defs.
10682: no_undefined_flag='${wl}-z,text'
10683: allow_undefined_flag='${wl}-z,nodefs'
10684: archive_cmds_need_lc=no
10685: hardcode_shlibpath_var=no
10686: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10687: hardcode_libdir_separator=':'
10688: link_all_deplibs=yes
10689: export_dynamic_flag_spec='${wl}-Bexport'
10690: runpath_var='LD_RUN_PATH'
10691:
10692: if test "$GCC" = yes; then
10693: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695: else
10696: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698: fi
10699: ;;
10700:
10701: uts4*)
10702: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10703: hardcode_libdir_flag_spec='-L$libdir'
10704: hardcode_shlibpath_var=no
10705: ;;
10706:
10707: *)
10708: ld_shlibs=no
10709: ;;
10710: esac
10711:
10712: if test x$host_vendor = xsni; then
10713: case $host in
10714: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10715: export_dynamic_flag_spec='${wl}-Blargedynsym'
10716: ;;
10717: esac
10718: fi
10719: fi
10720:
10721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10722: $as_echo "$ld_shlibs" >&6; }
10723: test "$ld_shlibs" = no && can_build_shared=no
10724:
10725: with_gnu_ld=$with_gnu_ld
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741: #
10742: # Do we need to explicitly link libc?
10743: #
10744: case "x$archive_cmds_need_lc" in
10745: x|xyes)
10746: # Assume -lc should be added
10747: archive_cmds_need_lc=yes
10748:
10749: if test "$enable_shared" = yes && test "$GCC" = yes; then
10750: case $archive_cmds in
10751: *'~'*)
10752: # FIXME: we may have to deal with multi-command sequences.
10753: ;;
10754: '$CC '*)
10755: # Test whether the compiler implicitly links with -lc since on some
10756: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10757: # to ld, don't add -lc before -lgcc.
10758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10759: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10760: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10761: $as_echo_n "(cached) " >&6
10762: else
10763: $RM conftest*
10764: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10765:
10766: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10767: (eval $ac_compile) 2>&5
10768: ac_status=$?
10769: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10770: test $ac_status = 0; } 2>conftest.err; then
10771: soname=conftest
10772: lib=conftest
10773: libobjs=conftest.$ac_objext
10774: deplibs=
10775: wl=$lt_prog_compiler_wl
10776: pic_flag=$lt_prog_compiler_pic
10777: compiler_flags=-v
10778: linker_flags=-v
10779: verstring=
10780: output_objdir=.
10781: libname=conftest
10782: lt_save_allow_undefined_flag=$allow_undefined_flag
10783: allow_undefined_flag=
10784: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10785: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10786: ac_status=$?
10787: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10788: test $ac_status = 0; }
10789: then
10790: lt_cv_archive_cmds_need_lc=no
10791: else
10792: lt_cv_archive_cmds_need_lc=yes
10793: fi
10794: allow_undefined_flag=$lt_save_allow_undefined_flag
10795: else
10796: cat conftest.err 1>&5
10797: fi
10798: $RM conftest*
10799:
10800: fi
10801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10802: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10803: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10804: ;;
10805: esac
10806: fi
10807: ;;
10808: esac
10809:
10810:
10811:
10812:
10813:
10814:
10815:
10816:
10817:
10818:
10819:
10820:
10821:
10822:
10823:
10824:
10825:
10826:
10827:
10828:
10829:
10830:
10831:
10832:
10833:
10834:
10835:
10836:
10837:
10838:
10839:
10840:
10841:
10842:
10843:
10844:
10845:
10846:
10847:
10848:
10849:
10850:
10851:
10852:
10853:
10854:
10855:
10856:
10857:
10858:
10859:
10860:
10861:
10862:
10863:
10864:
10865:
10866:
10867:
10868:
10869:
10870:
10871:
10872:
10873:
10874:
10875:
10876:
10877:
10878:
10879:
10880:
10881:
10882:
10883:
10884:
10885:
10886:
10887:
10888:
10889:
10890:
10891:
10892:
10893:
10894:
10895:
10896:
10897:
10898:
10899:
10900:
10901:
10902:
10903:
10904:
10905:
10906:
10907:
10908:
10909:
10910:
10911:
10912:
10913:
10914:
10915:
10916:
10917:
10918:
10919:
10920:
10921:
10922:
10923:
10924:
10925:
10926:
10927:
10928:
10929:
10930:
10931:
10932:
10933:
10934:
10935:
10936:
10937:
10938:
10939:
10940:
10941:
10942:
10943:
10944:
10945:
10946:
10947:
10948:
10949:
10950:
10951:
10952:
10953:
10954:
10955:
10956:
10957:
10958:
10959:
10960:
10961:
10962:
10963:
10964:
10965:
10966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10967: $as_echo_n "checking dynamic linker characteristics... " >&6; }
10968:
10969: if test "$GCC" = yes; then
10970: case $host_os in
10971: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10972: *) lt_awk_arg="/^libraries:/" ;;
10973: esac
10974: case $host_os in
10975: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10976: *) lt_sed_strip_eq="s,=/,/,g" ;;
10977: esac
10978: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10979: case $lt_search_path_spec in
10980: *\;*)
10981: # if the path contains ";" then we assume it to be the separator
10982: # otherwise default to the standard path separator (i.e. ":") - it is
10983: # assumed that no part of a normal pathname contains ";" but that should
10984: # okay in the real world where ";" in dirpaths is itself problematic.
10985: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10986: ;;
10987: *)
10988: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10989: ;;
10990: esac
10991: # Ok, now we have the path, separated by spaces, we can step through it
10992: # and add multilib dir if necessary.
10993: lt_tmp_lt_search_path_spec=
10994: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10995: for lt_sys_path in $lt_search_path_spec; do
10996: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10997: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10998: else
10999: test -d "$lt_sys_path" && \
11000: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11001: fi
11002: done
11003: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11004: BEGIN {RS=" "; FS="/|\n";} {
11005: lt_foo="";
11006: lt_count=0;
11007: for (lt_i = NF; lt_i > 0; lt_i--) {
11008: if ($lt_i != "" && $lt_i != ".") {
11009: if ($lt_i == "..") {
11010: lt_count++;
11011: } else {
11012: if (lt_count == 0) {
11013: lt_foo="/" $lt_i lt_foo;
11014: } else {
11015: lt_count--;
11016: }
11017: }
11018: }
11019: }
11020: if (lt_foo != "") { lt_freq[lt_foo]++; }
11021: if (lt_freq[lt_foo] == 1) { print lt_foo; }
11022: }'`
11023: # AWK program above erroneously prepends '/' to C:/dos/paths
11024: # for these hosts.
11025: case $host_os in
11026: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11027: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11028: esac
11029: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11030: else
11031: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11032: fi
11033: library_names_spec=
11034: libname_spec='lib$name'
11035: soname_spec=
11036: shrext_cmds=".so"
11037: postinstall_cmds=
11038: postuninstall_cmds=
11039: finish_cmds=
11040: finish_eval=
11041: shlibpath_var=
11042: shlibpath_overrides_runpath=unknown
11043: version_type=none
11044: dynamic_linker="$host_os ld.so"
11045: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11046: need_lib_prefix=unknown
11047: hardcode_into_libs=no
11048:
11049: # when you set need_version to no, make sure it does not cause -set_version
11050: # flags to be left without arguments
11051: need_version=unknown
11052:
11053: case $host_os in
11054: aix3*)
11055: version_type=linux
11056: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11057: shlibpath_var=LIBPATH
11058:
11059: # AIX 3 has no versioning support, so we append a major version to the name.
11060: soname_spec='${libname}${release}${shared_ext}$major'
11061: ;;
11062:
11063: aix[4-9]*)
11064: version_type=linux
11065: need_lib_prefix=no
11066: need_version=no
11067: hardcode_into_libs=yes
11068: if test "$host_cpu" = ia64; then
11069: # AIX 5 supports IA64
11070: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11071: shlibpath_var=LD_LIBRARY_PATH
11072: else
11073: # With GCC up to 2.95.x, collect2 would create an import file
11074: # for dependence libraries. The import file would start with
11075: # the line `#! .'. This would cause the generated library to
11076: # depend on `.', always an invalid library. This was fixed in
11077: # development snapshots of GCC prior to 3.0.
11078: case $host_os in
11079: aix4 | aix4.[01] | aix4.[01].*)
11080: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11081: echo ' yes '
11082: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11083: :
11084: else
11085: can_build_shared=no
11086: fi
11087: ;;
11088: esac
11089: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11090: # soname into executable. Probably we can add versioning support to
11091: # collect2, so additional links can be useful in future.
11092: if test "$aix_use_runtimelinking" = yes; then
11093: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11094: # instead of lib<name>.a to let people know that these are not
11095: # typical AIX shared libraries.
11096: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097: else
11098: # We preserve .a as extension for shared libraries through AIX4.2
11099: # and later when we are not doing run time linking.
11100: library_names_spec='${libname}${release}.a $libname.a'
11101: soname_spec='${libname}${release}${shared_ext}$major'
11102: fi
11103: shlibpath_var=LIBPATH
11104: fi
11105: ;;
11106:
11107: amigaos*)
11108: case $host_cpu in
11109: powerpc)
11110: # Since July 2007 AmigaOS4 officially supports .so libraries.
11111: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11112: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113: ;;
11114: m68k)
11115: library_names_spec='$libname.ixlibrary $libname.a'
11116: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11117: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11118: ;;
11119: esac
11120: ;;
11121:
11122: beos*)
11123: library_names_spec='${libname}${shared_ext}'
11124: dynamic_linker="$host_os ld.so"
11125: shlibpath_var=LIBRARY_PATH
11126: ;;
11127:
11128: bsdi[45]*)
11129: version_type=linux
11130: need_version=no
11131: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132: soname_spec='${libname}${release}${shared_ext}$major'
11133: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11134: shlibpath_var=LD_LIBRARY_PATH
11135: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11136: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11137: # the default ld.so.conf also contains /usr/contrib/lib and
11138: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11139: # libtool to hard-code these into programs
11140: ;;
11141:
11142: cygwin* | mingw* | pw32* | cegcc*)
11143: version_type=windows
11144: shrext_cmds=".dll"
11145: need_version=no
11146: need_lib_prefix=no
11147:
11148: case $GCC,$cc_basename in
11149: yes,*)
11150: # gcc
11151: library_names_spec='$libname.dll.a'
11152: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11153: postinstall_cmds='base_file=`basename \${file}`~
11154: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11155: dldir=$destdir/`dirname \$dlpath`~
11156: test -d \$dldir || mkdir -p \$dldir~
11157: $install_prog $dir/$dlname \$dldir/$dlname~
11158: chmod a+x \$dldir/$dlname~
11159: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11160: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11161: fi'
11162: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11163: dlpath=$dir/\$dldll~
11164: $RM \$dlpath'
11165: shlibpath_overrides_runpath=yes
11166:
11167: case $host_os in
11168: cygwin*)
11169: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11170: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11171:
11172: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11173: ;;
11174: mingw* | cegcc*)
11175: # MinGW DLLs use traditional 'lib' prefix
11176: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11177: ;;
11178: pw32*)
11179: # pw32 DLLs use 'pw' prefix rather than 'lib'
11180: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11181: ;;
11182: esac
11183: dynamic_linker='Win32 ld.exe'
11184: ;;
11185:
11186: *,cl*)
11187: # Native MSVC
11188: libname_spec='$name'
11189: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11190: library_names_spec='${libname}.dll.lib'
11191:
11192: case $build_os in
11193: mingw*)
11194: sys_lib_search_path_spec=
11195: lt_save_ifs=$IFS
11196: IFS=';'
11197: for lt_path in $LIB
11198: do
11199: IFS=$lt_save_ifs
11200: # Let DOS variable expansion print the short 8.3 style file name.
11201: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11202: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11203: done
11204: IFS=$lt_save_ifs
11205: # Convert to MSYS style.
11206: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11207: ;;
11208: cygwin*)
11209: # Convert to unix form, then to dos form, then back to unix form
11210: # but this time dos style (no spaces!) so that the unix form looks
11211: # like /cygdrive/c/PROGRA~1:/cygdr...
11212: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11213: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11214: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11215: ;;
11216: *)
11217: sys_lib_search_path_spec="$LIB"
11218: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11219: # It is most probably a Windows format PATH.
11220: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11221: else
11222: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11223: fi
11224: # FIXME: find the short name or the path components, as spaces are
11225: # common. (e.g. "Program Files" -> "PROGRA~1")
11226: ;;
11227: esac
11228:
11229: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11230: postinstall_cmds='base_file=`basename \${file}`~
11231: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11232: dldir=$destdir/`dirname \$dlpath`~
11233: test -d \$dldir || mkdir -p \$dldir~
11234: $install_prog $dir/$dlname \$dldir/$dlname'
11235: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11236: dlpath=$dir/\$dldll~
11237: $RM \$dlpath'
11238: shlibpath_overrides_runpath=yes
11239: dynamic_linker='Win32 link.exe'
11240: ;;
11241:
11242: *)
11243: # Assume MSVC wrapper
11244: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11245: dynamic_linker='Win32 ld.exe'
11246: ;;
11247: esac
11248: # FIXME: first we should search . and the directory the executable is in
11249: shlibpath_var=PATH
11250: ;;
11251:
11252: darwin* | rhapsody*)
11253: dynamic_linker="$host_os dyld"
11254: version_type=darwin
11255: need_lib_prefix=no
11256: need_version=no
11257: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11258: soname_spec='${libname}${release}${major}$shared_ext'
11259: shlibpath_overrides_runpath=yes
11260: shlibpath_var=DYLD_LIBRARY_PATH
11261: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11262:
11263: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11264: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11265: ;;
11266:
11267: dgux*)
11268: version_type=linux
11269: need_lib_prefix=no
11270: need_version=no
11271: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11272: soname_spec='${libname}${release}${shared_ext}$major'
11273: shlibpath_var=LD_LIBRARY_PATH
11274: ;;
11275:
11276: freebsd1*)
11277: dynamic_linker=no
11278: ;;
11279:
11280: freebsd* | dragonfly*)
11281: # DragonFly does not have aout. When/if they implement a new
11282: # versioning mechanism, adjust this.
11283: if test -x /usr/bin/objformat; then
11284: objformat=`/usr/bin/objformat`
11285: else
11286: case $host_os in
11287: freebsd[123]*) objformat=aout ;;
11288: *) objformat=elf ;;
11289: esac
11290: fi
11291: # Handle Gentoo/FreeBSD as it was Linux
11292: case $host_vendor in
11293: gentoo)
11294: version_type=linux ;;
11295: *)
11296: version_type=freebsd-$objformat ;;
11297: esac
11298:
11299: case $version_type in
11300: freebsd-elf*)
11301: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11302: need_version=no
11303: need_lib_prefix=no
11304: ;;
11305: freebsd-*)
11306: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11307: need_version=yes
11308: ;;
11309: linux)
11310: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11311: soname_spec='${libname}${release}${shared_ext}$major'
11312: need_lib_prefix=no
11313: need_version=no
11314: ;;
11315: esac
11316: shlibpath_var=LD_LIBRARY_PATH
11317: case $host_os in
11318: freebsd2*)
11319: shlibpath_overrides_runpath=yes
11320: ;;
11321: freebsd3.[01]* | freebsdelf3.[01]*)
11322: shlibpath_overrides_runpath=yes
11323: hardcode_into_libs=yes
11324: ;;
11325: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11326: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11327: shlibpath_overrides_runpath=no
11328: hardcode_into_libs=yes
11329: ;;
11330: *) # from 4.6 on, and DragonFly
11331: shlibpath_overrides_runpath=yes
11332: hardcode_into_libs=yes
11333: ;;
11334: esac
11335: ;;
11336:
11337: gnu*)
11338: version_type=linux
11339: need_lib_prefix=no
11340: need_version=no
11341: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11342: soname_spec='${libname}${release}${shared_ext}$major'
11343: shlibpath_var=LD_LIBRARY_PATH
11344: hardcode_into_libs=yes
11345: ;;
11346:
11347: haiku*)
11348: version_type=linux
11349: need_lib_prefix=no
11350: need_version=no
11351: dynamic_linker="$host_os runtime_loader"
11352: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11353: soname_spec='${libname}${release}${shared_ext}$major'
11354: shlibpath_var=LIBRARY_PATH
11355: shlibpath_overrides_runpath=yes
11356: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11357: hardcode_into_libs=yes
11358: ;;
11359:
11360: hpux9* | hpux10* | hpux11*)
11361: # Give a soname corresponding to the major version so that dld.sl refuses to
11362: # link against other versions.
11363: version_type=sunos
11364: need_lib_prefix=no
11365: need_version=no
11366: case $host_cpu in
11367: ia64*)
11368: shrext_cmds='.so'
11369: hardcode_into_libs=yes
11370: dynamic_linker="$host_os dld.so"
11371: shlibpath_var=LD_LIBRARY_PATH
11372: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11373: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374: soname_spec='${libname}${release}${shared_ext}$major'
11375: if test "X$HPUX_IA64_MODE" = X32; then
11376: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11377: else
11378: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11379: fi
11380: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11381: ;;
11382: hppa*64*)
11383: shrext_cmds='.sl'
11384: hardcode_into_libs=yes
11385: dynamic_linker="$host_os dld.sl"
11386: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11387: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11388: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389: soname_spec='${libname}${release}${shared_ext}$major'
11390: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11391: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11392: ;;
11393: *)
11394: shrext_cmds='.sl'
11395: dynamic_linker="$host_os dld.sl"
11396: shlibpath_var=SHLIB_PATH
11397: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11398: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399: soname_spec='${libname}${release}${shared_ext}$major'
11400: ;;
11401: esac
11402: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11403: postinstall_cmds='chmod 555 $lib'
11404: # or fails outright, so override atomically:
11405: install_override_mode=555
11406: ;;
11407:
11408: interix[3-9]*)
11409: version_type=linux
11410: need_lib_prefix=no
11411: need_version=no
11412: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11413: soname_spec='${libname}${release}${shared_ext}$major'
11414: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11415: shlibpath_var=LD_LIBRARY_PATH
11416: shlibpath_overrides_runpath=no
11417: hardcode_into_libs=yes
11418: ;;
11419:
11420: irix5* | irix6* | nonstopux*)
11421: case $host_os in
11422: nonstopux*) version_type=nonstopux ;;
11423: *)
11424: if test "$lt_cv_prog_gnu_ld" = yes; then
11425: version_type=linux
11426: else
11427: version_type=irix
11428: fi ;;
11429: esac
11430: need_lib_prefix=no
11431: need_version=no
11432: soname_spec='${libname}${release}${shared_ext}$major'
11433: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11434: case $host_os in
11435: irix5* | nonstopux*)
11436: libsuff= shlibsuff=
11437: ;;
11438: *)
11439: case $LD in # libtool.m4 will add one of these switches to LD
11440: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11441: libsuff= shlibsuff= libmagic=32-bit;;
11442: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11443: libsuff=32 shlibsuff=N32 libmagic=N32;;
11444: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11445: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11446: *) libsuff= shlibsuff= libmagic=never-match;;
11447: esac
11448: ;;
11449: esac
11450: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11451: shlibpath_overrides_runpath=no
11452: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11453: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11454: hardcode_into_libs=yes
11455: ;;
11456:
11457: # No shared lib support for Linux oldld, aout, or coff.
11458: linux*oldld* | linux*aout* | linux*coff*)
11459: dynamic_linker=no
11460: ;;
11461:
11462: # This must be Linux ELF.
11463: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11464: version_type=linux
11465: need_lib_prefix=no
11466: need_version=no
11467: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468: soname_spec='${libname}${release}${shared_ext}$major'
11469: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11470: shlibpath_var=LD_LIBRARY_PATH
11471: shlibpath_overrides_runpath=no
11472:
11473: # Some binutils ld are patched to set DT_RUNPATH
11474: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11475: $as_echo_n "(cached) " >&6
11476: else
11477: lt_cv_shlibpath_overrides_runpath=no
11478: save_LDFLAGS=$LDFLAGS
11479: save_libdir=$libdir
11480: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11481: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11482: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483: /* end confdefs.h. */
11484:
11485: int
11486: main ()
11487: {
11488:
11489: ;
11490: return 0;
11491: }
11492: _ACEOF
11493: if ac_fn_c_try_link "$LINENO"; then :
11494: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11495: lt_cv_shlibpath_overrides_runpath=yes
11496: fi
11497: fi
11498: rm -f core conftest.err conftest.$ac_objext \
11499: conftest$ac_exeext conftest.$ac_ext
11500: LDFLAGS=$save_LDFLAGS
11501: libdir=$save_libdir
11502:
11503: fi
11504:
11505: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11506:
11507: # This implies no fast_install, which is unacceptable.
11508: # Some rework will be needed to allow for fast_install
11509: # before this can be enabled.
11510: hardcode_into_libs=yes
11511:
11512: # Append ld.so.conf contents to the search path
11513: if test -f /etc/ld.so.conf; then
11514: 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' ' '`
11515: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11516: fi
11517:
11518: # We used to test for /lib/ld.so.1 and disable shared libraries on
11519: # powerpc, because MkLinux only supported shared libraries with the
11520: # GNU dynamic linker. Since this was broken with cross compilers,
11521: # most powerpc-linux boxes support dynamic linking these days and
11522: # people can always --disable-shared, the test was removed, and we
11523: # assume the GNU/Linux dynamic linker is in use.
11524: dynamic_linker='GNU/Linux ld.so'
11525: ;;
11526:
11527: netbsd*)
11528: version_type=sunos
11529: need_lib_prefix=no
11530: need_version=no
11531: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11532: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11533: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11534: dynamic_linker='NetBSD (a.out) ld.so'
11535: else
11536: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11537: soname_spec='${libname}${release}${shared_ext}$major'
11538: dynamic_linker='NetBSD ld.elf_so'
11539: fi
11540: shlibpath_var=LD_LIBRARY_PATH
11541: shlibpath_overrides_runpath=yes
11542: hardcode_into_libs=yes
11543: ;;
11544:
11545: newsos6)
11546: version_type=linux
11547: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548: shlibpath_var=LD_LIBRARY_PATH
11549: shlibpath_overrides_runpath=yes
11550: ;;
11551:
11552: *nto* | *qnx*)
11553: version_type=qnx
11554: need_lib_prefix=no
11555: need_version=no
11556: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557: soname_spec='${libname}${release}${shared_ext}$major'
11558: shlibpath_var=LD_LIBRARY_PATH
11559: shlibpath_overrides_runpath=no
11560: hardcode_into_libs=yes
11561: dynamic_linker='ldqnx.so'
11562: ;;
11563:
11564: openbsd*)
11565: version_type=sunos
11566: sys_lib_dlsearch_path_spec="/usr/lib"
11567: need_lib_prefix=no
11568: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11569: case $host_os in
11570: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11571: *) need_version=no ;;
11572: esac
11573: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11574: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11575: shlibpath_var=LD_LIBRARY_PATH
11576: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11577: case $host_os in
11578: openbsd2.[89] | openbsd2.[89].*)
11579: shlibpath_overrides_runpath=no
11580: ;;
11581: *)
11582: shlibpath_overrides_runpath=yes
11583: ;;
11584: esac
11585: else
11586: shlibpath_overrides_runpath=yes
11587: fi
11588: ;;
11589:
11590: os2*)
11591: libname_spec='$name'
11592: shrext_cmds=".dll"
11593: need_lib_prefix=no
11594: library_names_spec='$libname${shared_ext} $libname.a'
11595: dynamic_linker='OS/2 ld.exe'
11596: shlibpath_var=LIBPATH
11597: ;;
11598:
11599: osf3* | osf4* | osf5*)
11600: version_type=osf
11601: need_lib_prefix=no
11602: need_version=no
11603: soname_spec='${libname}${release}${shared_ext}$major'
11604: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605: shlibpath_var=LD_LIBRARY_PATH
11606: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11607: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11608: ;;
11609:
11610: rdos*)
11611: dynamic_linker=no
11612: ;;
11613:
11614: solaris*)
11615: version_type=linux
11616: need_lib_prefix=no
11617: need_version=no
11618: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619: soname_spec='${libname}${release}${shared_ext}$major'
11620: shlibpath_var=LD_LIBRARY_PATH
11621: shlibpath_overrides_runpath=yes
11622: hardcode_into_libs=yes
11623: # ldd complains unless libraries are executable
11624: postinstall_cmds='chmod +x $lib'
11625: ;;
11626:
11627: sunos4*)
11628: version_type=sunos
11629: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11630: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11631: shlibpath_var=LD_LIBRARY_PATH
11632: shlibpath_overrides_runpath=yes
11633: if test "$with_gnu_ld" = yes; then
11634: need_lib_prefix=no
11635: fi
11636: need_version=yes
11637: ;;
11638:
11639: sysv4 | sysv4.3*)
11640: version_type=linux
11641: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642: soname_spec='${libname}${release}${shared_ext}$major'
11643: shlibpath_var=LD_LIBRARY_PATH
11644: case $host_vendor in
11645: sni)
11646: shlibpath_overrides_runpath=no
11647: need_lib_prefix=no
11648: runpath_var=LD_RUN_PATH
11649: ;;
11650: siemens)
11651: need_lib_prefix=no
11652: ;;
11653: motorola)
11654: need_lib_prefix=no
11655: need_version=no
11656: shlibpath_overrides_runpath=no
11657: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11658: ;;
11659: esac
11660: ;;
11661:
11662: sysv4*MP*)
11663: if test -d /usr/nec ;then
11664: version_type=linux
11665: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11666: soname_spec='$libname${shared_ext}.$major'
11667: shlibpath_var=LD_LIBRARY_PATH
11668: fi
11669: ;;
11670:
11671: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11672: version_type=freebsd-elf
11673: need_lib_prefix=no
11674: need_version=no
11675: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11676: soname_spec='${libname}${release}${shared_ext}$major'
11677: shlibpath_var=LD_LIBRARY_PATH
11678: shlibpath_overrides_runpath=yes
11679: hardcode_into_libs=yes
11680: if test "$with_gnu_ld" = yes; then
11681: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11682: else
11683: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11684: case $host_os in
11685: sco3.2v5*)
11686: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11687: ;;
11688: esac
11689: fi
11690: sys_lib_dlsearch_path_spec='/usr/lib'
11691: ;;
11692:
11693: tpf*)
11694: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11695: version_type=linux
11696: need_lib_prefix=no
11697: need_version=no
11698: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11699: shlibpath_var=LD_LIBRARY_PATH
11700: shlibpath_overrides_runpath=no
11701: hardcode_into_libs=yes
11702: ;;
11703:
11704: uts4*)
11705: version_type=linux
11706: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707: soname_spec='${libname}${release}${shared_ext}$major'
11708: shlibpath_var=LD_LIBRARY_PATH
11709: ;;
11710:
11711: *)
11712: dynamic_linker=no
11713: ;;
11714: esac
11715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11716: $as_echo "$dynamic_linker" >&6; }
11717: test "$dynamic_linker" = no && can_build_shared=no
11718:
11719: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11720: if test "$GCC" = yes; then
11721: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11722: fi
11723:
11724: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11725: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11726: fi
11727: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11728: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11729: fi
11730:
11731:
11732:
11733:
11734:
11735:
11736:
11737:
11738:
11739:
11740:
11741:
11742:
11743:
11744:
11745:
11746:
11747:
11748:
11749:
11750:
11751:
11752:
11753:
11754:
11755:
11756:
11757:
11758:
11759:
11760:
11761:
11762:
11763:
11764:
11765:
11766:
11767:
11768:
11769:
11770:
11771:
11772:
11773:
11774:
11775:
11776:
11777:
11778:
11779:
11780:
11781:
11782:
11783:
11784:
11785:
11786:
11787:
11788:
11789:
11790:
11791:
11792:
11793:
11794:
11795:
11796:
11797:
11798:
11799:
11800:
11801:
11802:
11803:
11804:
11805:
11806:
11807:
11808:
11809:
11810:
11811:
11812:
11813:
11814:
11815:
11816:
11817:
11818:
11819:
11820:
11821:
11822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11823: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11824: hardcode_action=
11825: if test -n "$hardcode_libdir_flag_spec" ||
11826: test -n "$runpath_var" ||
11827: test "X$hardcode_automatic" = "Xyes" ; then
11828:
11829: # We can hardcode non-existent directories.
11830: if test "$hardcode_direct" != no &&
11831: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11832: # have to relink, otherwise we might link with an installed library
11833: # when we should be linking with a yet-to-be-installed one
11834: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11835: test "$hardcode_minus_L" != no; then
11836: # Linking always hardcodes the temporary library directory.
11837: hardcode_action=relink
11838: else
11839: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11840: hardcode_action=immediate
11841: fi
11842: else
11843: # We cannot hardcode anything, or else we can only hardcode existing
11844: # directories.
11845: hardcode_action=unsupported
11846: fi
11847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11848: $as_echo "$hardcode_action" >&6; }
11849:
11850: if test "$hardcode_action" = relink ||
11851: test "$inherit_rpath" = yes; then
11852: # Fast installation is not supported
11853: enable_fast_install=no
11854: elif test "$shlibpath_overrides_runpath" = yes ||
11855: test "$enable_shared" = no; then
11856: # Fast installation is not necessary
11857: enable_fast_install=needless
11858: fi
11859:
11860:
11861:
11862:
11863:
11864:
11865: if test "x$enable_dlopen" != xyes; then
11866: enable_dlopen=unknown
11867: enable_dlopen_self=unknown
11868: enable_dlopen_self_static=unknown
11869: else
11870: lt_cv_dlopen=no
11871: lt_cv_dlopen_libs=
11872:
11873: case $host_os in
11874: beos*)
11875: lt_cv_dlopen="load_add_on"
11876: lt_cv_dlopen_libs=
11877: lt_cv_dlopen_self=yes
11878: ;;
11879:
11880: mingw* | pw32* | cegcc*)
11881: lt_cv_dlopen="LoadLibrary"
11882: lt_cv_dlopen_libs=
11883: ;;
11884:
11885: cygwin*)
11886: lt_cv_dlopen="dlopen"
11887: lt_cv_dlopen_libs=
11888: ;;
11889:
11890: darwin*)
11891: # if libdl is installed we need to link against it
11892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11893: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11894: if ${ac_cv_lib_dl_dlopen+:} false; then :
11895: $as_echo_n "(cached) " >&6
11896: else
11897: ac_check_lib_save_LIBS=$LIBS
11898: LIBS="-ldl $LIBS"
11899: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900: /* end confdefs.h. */
11901:
11902: /* Override any GCC internal prototype to avoid an error.
11903: Use char because int might match the return type of a GCC
11904: builtin and then its argument prototype would still apply. */
11905: #ifdef __cplusplus
11906: extern "C"
11907: #endif
11908: char dlopen ();
11909: int
11910: main ()
11911: {
11912: return dlopen ();
11913: ;
11914: return 0;
11915: }
11916: _ACEOF
11917: if ac_fn_c_try_link "$LINENO"; then :
11918: ac_cv_lib_dl_dlopen=yes
11919: else
11920: ac_cv_lib_dl_dlopen=no
11921: fi
11922: rm -f core conftest.err conftest.$ac_objext \
11923: conftest$ac_exeext conftest.$ac_ext
11924: LIBS=$ac_check_lib_save_LIBS
11925: fi
11926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11927: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11928: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11929: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11930: else
11931:
11932: lt_cv_dlopen="dyld"
11933: lt_cv_dlopen_libs=
11934: lt_cv_dlopen_self=yes
11935:
11936: fi
11937:
11938: ;;
11939:
11940: *)
11941: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11942: if test "x$ac_cv_func_shl_load" = xyes; then :
11943: lt_cv_dlopen="shl_load"
11944: else
11945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11946: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11947: if ${ac_cv_lib_dld_shl_load+:} false; then :
11948: $as_echo_n "(cached) " >&6
11949: else
11950: ac_check_lib_save_LIBS=$LIBS
11951: LIBS="-ldld $LIBS"
11952: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953: /* end confdefs.h. */
11954:
11955: /* Override any GCC internal prototype to avoid an error.
11956: Use char because int might match the return type of a GCC
11957: builtin and then its argument prototype would still apply. */
11958: #ifdef __cplusplus
11959: extern "C"
11960: #endif
11961: char shl_load ();
11962: int
11963: main ()
11964: {
11965: return shl_load ();
11966: ;
11967: return 0;
11968: }
11969: _ACEOF
11970: if ac_fn_c_try_link "$LINENO"; then :
11971: ac_cv_lib_dld_shl_load=yes
11972: else
11973: ac_cv_lib_dld_shl_load=no
11974: fi
11975: rm -f core conftest.err conftest.$ac_objext \
11976: conftest$ac_exeext conftest.$ac_ext
11977: LIBS=$ac_check_lib_save_LIBS
11978: fi
11979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11980: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11981: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11982: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11983: else
11984: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11985: if test "x$ac_cv_func_dlopen" = xyes; then :
11986: lt_cv_dlopen="dlopen"
11987: else
11988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11989: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11990: if ${ac_cv_lib_dl_dlopen+:} false; then :
11991: $as_echo_n "(cached) " >&6
11992: else
11993: ac_check_lib_save_LIBS=$LIBS
11994: LIBS="-ldl $LIBS"
11995: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996: /* end confdefs.h. */
11997:
11998: /* Override any GCC internal prototype to avoid an error.
11999: Use char because int might match the return type of a GCC
12000: builtin and then its argument prototype would still apply. */
12001: #ifdef __cplusplus
12002: extern "C"
12003: #endif
12004: char dlopen ();
12005: int
12006: main ()
12007: {
12008: return dlopen ();
12009: ;
12010: return 0;
12011: }
12012: _ACEOF
12013: if ac_fn_c_try_link "$LINENO"; then :
12014: ac_cv_lib_dl_dlopen=yes
12015: else
12016: ac_cv_lib_dl_dlopen=no
12017: fi
12018: rm -f core conftest.err conftest.$ac_objext \
12019: conftest$ac_exeext conftest.$ac_ext
12020: LIBS=$ac_check_lib_save_LIBS
12021: fi
12022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12023: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12024: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12025: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12026: else
12027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12028: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12029: if ${ac_cv_lib_svld_dlopen+:} false; then :
12030: $as_echo_n "(cached) " >&6
12031: else
12032: ac_check_lib_save_LIBS=$LIBS
12033: LIBS="-lsvld $LIBS"
12034: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035: /* end confdefs.h. */
12036:
12037: /* Override any GCC internal prototype to avoid an error.
12038: Use char because int might match the return type of a GCC
12039: builtin and then its argument prototype would still apply. */
12040: #ifdef __cplusplus
12041: extern "C"
12042: #endif
12043: char dlopen ();
12044: int
12045: main ()
12046: {
12047: return dlopen ();
12048: ;
12049: return 0;
12050: }
12051: _ACEOF
12052: if ac_fn_c_try_link "$LINENO"; then :
12053: ac_cv_lib_svld_dlopen=yes
12054: else
12055: ac_cv_lib_svld_dlopen=no
12056: fi
12057: rm -f core conftest.err conftest.$ac_objext \
12058: conftest$ac_exeext conftest.$ac_ext
12059: LIBS=$ac_check_lib_save_LIBS
12060: fi
12061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12062: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12063: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12064: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12065: else
12066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12067: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12068: if ${ac_cv_lib_dld_dld_link+:} false; then :
12069: $as_echo_n "(cached) " >&6
12070: else
12071: ac_check_lib_save_LIBS=$LIBS
12072: LIBS="-ldld $LIBS"
12073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074: /* end confdefs.h. */
12075:
12076: /* Override any GCC internal prototype to avoid an error.
12077: Use char because int might match the return type of a GCC
12078: builtin and then its argument prototype would still apply. */
12079: #ifdef __cplusplus
12080: extern "C"
12081: #endif
12082: char dld_link ();
12083: int
12084: main ()
12085: {
12086: return dld_link ();
12087: ;
12088: return 0;
12089: }
12090: _ACEOF
12091: if ac_fn_c_try_link "$LINENO"; then :
12092: ac_cv_lib_dld_dld_link=yes
12093: else
12094: ac_cv_lib_dld_dld_link=no
12095: fi
12096: rm -f core conftest.err conftest.$ac_objext \
12097: conftest$ac_exeext conftest.$ac_ext
12098: LIBS=$ac_check_lib_save_LIBS
12099: fi
12100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12101: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12102: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12103: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12104: fi
12105:
12106:
12107: fi
12108:
12109:
12110: fi
12111:
12112:
12113: fi
12114:
12115:
12116: fi
12117:
12118:
12119: fi
12120:
12121: ;;
12122: esac
12123:
12124: if test "x$lt_cv_dlopen" != xno; then
12125: enable_dlopen=yes
12126: else
12127: enable_dlopen=no
12128: fi
12129:
12130: case $lt_cv_dlopen in
12131: dlopen)
12132: save_CPPFLAGS="$CPPFLAGS"
12133: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12134:
12135: save_LDFLAGS="$LDFLAGS"
12136: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12137:
12138: save_LIBS="$LIBS"
12139: LIBS="$lt_cv_dlopen_libs $LIBS"
12140:
12141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12142: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12143: if ${lt_cv_dlopen_self+:} false; then :
12144: $as_echo_n "(cached) " >&6
12145: else
12146: if test "$cross_compiling" = yes; then :
12147: lt_cv_dlopen_self=cross
12148: else
12149: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12150: lt_status=$lt_dlunknown
12151: cat > conftest.$ac_ext <<_LT_EOF
12152: #line $LINENO "configure"
12153: #include "confdefs.h"
12154:
12155: #if HAVE_DLFCN_H
12156: #include <dlfcn.h>
12157: #endif
12158:
12159: #include <stdio.h>
12160:
12161: #ifdef RTLD_GLOBAL
12162: # define LT_DLGLOBAL RTLD_GLOBAL
12163: #else
12164: # ifdef DL_GLOBAL
12165: # define LT_DLGLOBAL DL_GLOBAL
12166: # else
12167: # define LT_DLGLOBAL 0
12168: # endif
12169: #endif
12170:
12171: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12172: find out it does not work in some platform. */
12173: #ifndef LT_DLLAZY_OR_NOW
12174: # ifdef RTLD_LAZY
12175: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12176: # else
12177: # ifdef DL_LAZY
12178: # define LT_DLLAZY_OR_NOW DL_LAZY
12179: # else
12180: # ifdef RTLD_NOW
12181: # define LT_DLLAZY_OR_NOW RTLD_NOW
12182: # else
12183: # ifdef DL_NOW
12184: # define LT_DLLAZY_OR_NOW DL_NOW
12185: # else
12186: # define LT_DLLAZY_OR_NOW 0
12187: # endif
12188: # endif
12189: # endif
12190: # endif
12191: #endif
12192:
12193: /* When -fvisbility=hidden is used, assume the code has been annotated
12194: correspondingly for the symbols needed. */
12195: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12196: int fnord () __attribute__((visibility("default")));
12197: #endif
12198:
12199: int fnord () { return 42; }
12200: int main ()
12201: {
12202: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12203: int status = $lt_dlunknown;
12204:
12205: if (self)
12206: {
12207: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12208: else
12209: {
12210: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12211: else puts (dlerror ());
12212: }
12213: /* dlclose (self); */
12214: }
12215: else
12216: puts (dlerror ());
12217:
12218: return status;
12219: }
12220: _LT_EOF
12221: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12222: (eval $ac_link) 2>&5
12223: ac_status=$?
12224: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12225: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12226: (./conftest; exit; ) >&5 2>/dev/null
12227: lt_status=$?
12228: case x$lt_status in
12229: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12230: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12231: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12232: esac
12233: else :
12234: # compilation failed
12235: lt_cv_dlopen_self=no
12236: fi
12237: fi
12238: rm -fr conftest*
12239:
12240:
12241: fi
12242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12243: $as_echo "$lt_cv_dlopen_self" >&6; }
12244:
12245: if test "x$lt_cv_dlopen_self" = xyes; then
12246: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12248: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12249: if ${lt_cv_dlopen_self_static+:} false; then :
12250: $as_echo_n "(cached) " >&6
12251: else
12252: if test "$cross_compiling" = yes; then :
12253: lt_cv_dlopen_self_static=cross
12254: else
12255: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12256: lt_status=$lt_dlunknown
12257: cat > conftest.$ac_ext <<_LT_EOF
12258: #line $LINENO "configure"
12259: #include "confdefs.h"
12260:
12261: #if HAVE_DLFCN_H
12262: #include <dlfcn.h>
12263: #endif
12264:
12265: #include <stdio.h>
12266:
12267: #ifdef RTLD_GLOBAL
12268: # define LT_DLGLOBAL RTLD_GLOBAL
12269: #else
12270: # ifdef DL_GLOBAL
12271: # define LT_DLGLOBAL DL_GLOBAL
12272: # else
12273: # define LT_DLGLOBAL 0
12274: # endif
12275: #endif
12276:
12277: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12278: find out it does not work in some platform. */
12279: #ifndef LT_DLLAZY_OR_NOW
12280: # ifdef RTLD_LAZY
12281: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12282: # else
12283: # ifdef DL_LAZY
12284: # define LT_DLLAZY_OR_NOW DL_LAZY
12285: # else
12286: # ifdef RTLD_NOW
12287: # define LT_DLLAZY_OR_NOW RTLD_NOW
12288: # else
12289: # ifdef DL_NOW
12290: # define LT_DLLAZY_OR_NOW DL_NOW
12291: # else
12292: # define LT_DLLAZY_OR_NOW 0
12293: # endif
12294: # endif
12295: # endif
12296: # endif
12297: #endif
12298:
12299: /* When -fvisbility=hidden is used, assume the code has been annotated
12300: correspondingly for the symbols needed. */
12301: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12302: int fnord () __attribute__((visibility("default")));
12303: #endif
12304:
12305: int fnord () { return 42; }
12306: int main ()
12307: {
12308: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12309: int status = $lt_dlunknown;
12310:
12311: if (self)
12312: {
12313: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12314: else
12315: {
12316: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12317: else puts (dlerror ());
12318: }
12319: /* dlclose (self); */
12320: }
12321: else
12322: puts (dlerror ());
12323:
12324: return status;
12325: }
12326: _LT_EOF
12327: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12328: (eval $ac_link) 2>&5
12329: ac_status=$?
12330: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12331: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12332: (./conftest; exit; ) >&5 2>/dev/null
12333: lt_status=$?
12334: case x$lt_status in
12335: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12336: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12337: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12338: esac
12339: else :
12340: # compilation failed
12341: lt_cv_dlopen_self_static=no
12342: fi
12343: fi
12344: rm -fr conftest*
12345:
12346:
12347: fi
12348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12349: $as_echo "$lt_cv_dlopen_self_static" >&6; }
12350: fi
12351:
12352: CPPFLAGS="$save_CPPFLAGS"
12353: LDFLAGS="$save_LDFLAGS"
12354: LIBS="$save_LIBS"
12355: ;;
12356: esac
12357:
12358: case $lt_cv_dlopen_self in
12359: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12360: *) enable_dlopen_self=unknown ;;
12361: esac
12362:
12363: case $lt_cv_dlopen_self_static in
12364: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12365: *) enable_dlopen_self_static=unknown ;;
12366: esac
12367: fi
12368:
12369:
12370:
12371:
12372:
12373:
12374:
12375:
12376:
12377:
12378:
12379:
12380:
12381:
12382:
12383:
12384:
12385: striplib=
12386: old_striplib=
12387: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12388: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12389: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12390: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12391: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12393: $as_echo "yes" >&6; }
12394: else
12395: # FIXME - insert some real tests, host_os isn't really good enough
12396: case $host_os in
12397: darwin*)
12398: if test -n "$STRIP" ; then
12399: striplib="$STRIP -x"
12400: old_striplib="$STRIP -S"
12401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12402: $as_echo "yes" >&6; }
12403: else
12404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405: $as_echo "no" >&6; }
12406: fi
12407: ;;
12408: *)
12409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410: $as_echo "no" >&6; }
12411: ;;
12412: esac
12413: fi
12414:
12415:
12416:
12417:
12418:
12419:
12420:
12421:
12422:
12423:
12424:
12425:
12426: # Report which library types will actually be built
12427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12428: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12430: $as_echo "$can_build_shared" >&6; }
12431:
12432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12433: $as_echo_n "checking whether to build shared libraries... " >&6; }
12434: test "$can_build_shared" = "no" && enable_shared=no
12435:
12436: # On AIX, shared libraries and static libraries use the same namespace, and
12437: # are all built from PIC.
12438: case $host_os in
12439: aix3*)
12440: test "$enable_shared" = yes && enable_static=no
12441: if test -n "$RANLIB"; then
12442: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12443: postinstall_cmds='$RANLIB $lib'
12444: fi
12445: ;;
12446:
12447: aix[4-9]*)
12448: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12449: test "$enable_shared" = yes && enable_static=no
12450: fi
12451: ;;
12452: esac
12453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12454: $as_echo "$enable_shared" >&6; }
12455:
12456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12457: $as_echo_n "checking whether to build static libraries... " >&6; }
12458: # Make sure either enable_shared or enable_static is yes.
12459: test "$enable_shared" = yes || enable_static=yes
12460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12461: $as_echo "$enable_static" >&6; }
12462:
12463:
12464:
12465:
12466: fi
12467: ac_ext=c
12468: ac_cpp='$CPP $CPPFLAGS'
12469: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12470: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12471: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12472:
12473: CC="$lt_save_CC"
12474:
12475: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12476: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12477: (test "X$CXX" != "Xg++"))) ; then
12478: ac_ext=cpp
12479: ac_cpp='$CXXCPP $CPPFLAGS'
12480: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12481: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12482: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12484: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12485: if test -z "$CXXCPP"; then
12486: if ${ac_cv_prog_CXXCPP+:} false; then :
12487: $as_echo_n "(cached) " >&6
12488: else
12489: # Double quotes because CXXCPP needs to be expanded
12490: for CXXCPP in "$CXX -E" "/lib/cpp"
12491: do
12492: ac_preproc_ok=false
12493: for ac_cxx_preproc_warn_flag in '' yes
12494: do
12495: # Use a header file that comes with gcc, so configuring glibc
12496: # with a fresh cross-compiler works.
12497: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12498: # <limits.h> exists even on freestanding compilers.
12499: # On the NeXT, cc -E runs the code through the compiler's parser,
12500: # not just through cpp. "Syntax error" is here to catch this case.
12501: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502: /* end confdefs.h. */
12503: #ifdef __STDC__
12504: # include <limits.h>
12505: #else
12506: # include <assert.h>
12507: #endif
12508: Syntax error
12509: _ACEOF
12510: if ac_fn_cxx_try_cpp "$LINENO"; then :
12511:
12512: else
12513: # Broken: fails on valid input.
12514: continue
12515: fi
12516: rm -f conftest.err conftest.i conftest.$ac_ext
12517:
12518: # OK, works on sane cases. Now check whether nonexistent headers
12519: # can be detected and how.
12520: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521: /* end confdefs.h. */
12522: #include <ac_nonexistent.h>
12523: _ACEOF
12524: if ac_fn_cxx_try_cpp "$LINENO"; then :
12525: # Broken: success on invalid input.
12526: continue
12527: else
12528: # Passes both tests.
12529: ac_preproc_ok=:
12530: break
12531: fi
12532: rm -f conftest.err conftest.i conftest.$ac_ext
12533:
12534: done
12535: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12536: rm -f conftest.i conftest.err conftest.$ac_ext
12537: if $ac_preproc_ok; then :
12538: break
12539: fi
12540:
12541: done
12542: ac_cv_prog_CXXCPP=$CXXCPP
12543:
12544: fi
12545: CXXCPP=$ac_cv_prog_CXXCPP
12546: else
12547: ac_cv_prog_CXXCPP=$CXXCPP
12548: fi
12549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12550: $as_echo "$CXXCPP" >&6; }
12551: ac_preproc_ok=false
12552: for ac_cxx_preproc_warn_flag in '' yes
12553: do
12554: # Use a header file that comes with gcc, so configuring glibc
12555: # with a fresh cross-compiler works.
12556: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12557: # <limits.h> exists even on freestanding compilers.
12558: # On the NeXT, cc -E runs the code through the compiler's parser,
12559: # not just through cpp. "Syntax error" is here to catch this case.
12560: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561: /* end confdefs.h. */
12562: #ifdef __STDC__
12563: # include <limits.h>
12564: #else
12565: # include <assert.h>
12566: #endif
12567: Syntax error
12568: _ACEOF
12569: if ac_fn_cxx_try_cpp "$LINENO"; then :
12570:
12571: else
12572: # Broken: fails on valid input.
12573: continue
12574: fi
12575: rm -f conftest.err conftest.i conftest.$ac_ext
12576:
12577: # OK, works on sane cases. Now check whether nonexistent headers
12578: # can be detected and how.
12579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580: /* end confdefs.h. */
12581: #include <ac_nonexistent.h>
12582: _ACEOF
12583: if ac_fn_cxx_try_cpp "$LINENO"; then :
12584: # Broken: success on invalid input.
12585: continue
12586: else
12587: # Passes both tests.
12588: ac_preproc_ok=:
12589: break
12590: fi
12591: rm -f conftest.err conftest.i conftest.$ac_ext
12592:
12593: done
12594: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12595: rm -f conftest.i conftest.err conftest.$ac_ext
12596: if $ac_preproc_ok; then :
12597:
12598: else
12599: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12600: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12601: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12602: See \`config.log' for more details" "$LINENO" 5; }
12603: fi
12604:
12605: ac_ext=c
12606: ac_cpp='$CPP $CPPFLAGS'
12607: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12608: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12609: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12610:
12611: else
12612: _lt_caught_CXX_error=yes
12613: fi
12614:
12615: ac_ext=cpp
12616: ac_cpp='$CXXCPP $CPPFLAGS'
12617: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12620:
12621: archive_cmds_need_lc_CXX=no
12622: allow_undefined_flag_CXX=
12623: always_export_symbols_CXX=no
12624: archive_expsym_cmds_CXX=
12625: compiler_needs_object_CXX=no
12626: export_dynamic_flag_spec_CXX=
12627: hardcode_direct_CXX=no
12628: hardcode_direct_absolute_CXX=no
12629: hardcode_libdir_flag_spec_CXX=
12630: hardcode_libdir_flag_spec_ld_CXX=
12631: hardcode_libdir_separator_CXX=
12632: hardcode_minus_L_CXX=no
12633: hardcode_shlibpath_var_CXX=unsupported
12634: hardcode_automatic_CXX=no
12635: inherit_rpath_CXX=no
12636: module_cmds_CXX=
12637: module_expsym_cmds_CXX=
12638: link_all_deplibs_CXX=unknown
12639: old_archive_cmds_CXX=$old_archive_cmds
12640: reload_flag_CXX=$reload_flag
12641: reload_cmds_CXX=$reload_cmds
12642: no_undefined_flag_CXX=
12643: whole_archive_flag_spec_CXX=
12644: enable_shared_with_static_runtimes_CXX=no
12645:
12646: # Source file extension for C++ test sources.
12647: ac_ext=cpp
12648:
12649: # Object file extension for compiled C++ test sources.
12650: objext=o
12651: objext_CXX=$objext
12652:
12653: # No sense in running all these tests if we already determined that
12654: # the CXX compiler isn't working. Some variables (like enable_shared)
12655: # are currently assumed to apply to all compilers on this platform,
12656: # and will be corrupted by setting them based on a non-working compiler.
12657: if test "$_lt_caught_CXX_error" != yes; then
12658: # Code to be used in simple compile tests
12659: lt_simple_compile_test_code="int some_variable = 0;"
12660:
12661: # Code to be used in simple link tests
12662: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12663:
12664: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12665:
12666:
12667:
12668:
12669:
12670:
12671: # If no C compiler was specified, use CC.
12672: LTCC=${LTCC-"$CC"}
12673:
12674: # If no C compiler flags were specified, use CFLAGS.
12675: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12676:
12677: # Allow CC to be a program name with arguments.
12678: compiler=$CC
12679:
12680:
12681: # save warnings/boilerplate of simple test code
12682: ac_outfile=conftest.$ac_objext
12683: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12684: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12685: _lt_compiler_boilerplate=`cat conftest.err`
12686: $RM conftest*
12687:
12688: ac_outfile=conftest.$ac_objext
12689: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12690: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12691: _lt_linker_boilerplate=`cat conftest.err`
12692: $RM -r conftest*
12693:
12694:
12695: # Allow CC to be a program name with arguments.
12696: lt_save_CC=$CC
12697: lt_save_CFLAGS=$CFLAGS
12698: lt_save_LD=$LD
12699: lt_save_GCC=$GCC
12700: GCC=$GXX
12701: lt_save_with_gnu_ld=$with_gnu_ld
12702: lt_save_path_LD=$lt_cv_path_LD
12703: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12704: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12705: else
12706: $as_unset lt_cv_prog_gnu_ld
12707: fi
12708: if test -n "${lt_cv_path_LDCXX+set}"; then
12709: lt_cv_path_LD=$lt_cv_path_LDCXX
12710: else
12711: $as_unset lt_cv_path_LD
12712: fi
12713: test -z "${LDCXX+set}" || LD=$LDCXX
12714: CC=${CXX-"c++"}
12715: CFLAGS=$CXXFLAGS
12716: compiler=$CC
12717: compiler_CXX=$CC
12718: for cc_temp in $compiler""; do
12719: case $cc_temp in
12720: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12721: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12722: \-*) ;;
12723: *) break;;
12724: esac
12725: done
12726: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12727:
12728:
12729: if test -n "$compiler"; then
12730: # We don't want -fno-exception when compiling C++ code, so set the
12731: # no_builtin_flag separately
12732: if test "$GXX" = yes; then
12733: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12734: else
12735: lt_prog_compiler_no_builtin_flag_CXX=
12736: fi
12737:
12738: if test "$GXX" = yes; then
12739: # Set up default GNU C++ configuration
12740:
12741:
12742:
12743: # Check whether --with-gnu-ld was given.
12744: if test "${with_gnu_ld+set}" = set; then :
12745: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12746: else
12747: with_gnu_ld=no
12748: fi
12749:
12750: ac_prog=ld
12751: if test "$GCC" = yes; then
12752: # Check if gcc -print-prog-name=ld gives a path.
12753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12754: $as_echo_n "checking for ld used by $CC... " >&6; }
12755: case $host in
12756: *-*-mingw*)
12757: # gcc leaves a trailing carriage return which upsets mingw
12758: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12759: *)
12760: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12761: esac
12762: case $ac_prog in
12763: # Accept absolute paths.
12764: [\\/]* | ?:[\\/]*)
12765: re_direlt='/[^/][^/]*/\.\./'
12766: # Canonicalize the pathname of ld
12767: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12768: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12769: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12770: done
12771: test -z "$LD" && LD="$ac_prog"
12772: ;;
12773: "")
12774: # If it fails, then pretend we aren't using GCC.
12775: ac_prog=ld
12776: ;;
12777: *)
12778: # If it is relative, then search for the first ld in PATH.
12779: with_gnu_ld=unknown
12780: ;;
12781: esac
12782: elif test "$with_gnu_ld" = yes; then
12783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12784: $as_echo_n "checking for GNU ld... " >&6; }
12785: else
12786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12787: $as_echo_n "checking for non-GNU ld... " >&6; }
12788: fi
12789: if ${lt_cv_path_LD+:} false; then :
12790: $as_echo_n "(cached) " >&6
12791: else
12792: if test -z "$LD"; then
12793: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12794: for ac_dir in $PATH; do
12795: IFS="$lt_save_ifs"
12796: test -z "$ac_dir" && ac_dir=.
12797: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12798: lt_cv_path_LD="$ac_dir/$ac_prog"
12799: # Check to see if the program is GNU ld. I'd rather use --version,
12800: # but apparently some variants of GNU ld only accept -v.
12801: # Break only if it was the GNU/non-GNU ld that we prefer.
12802: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12803: *GNU* | *'with BFD'*)
12804: test "$with_gnu_ld" != no && break
12805: ;;
12806: *)
12807: test "$with_gnu_ld" != yes && break
12808: ;;
12809: esac
12810: fi
12811: done
12812: IFS="$lt_save_ifs"
12813: else
12814: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12815: fi
12816: fi
12817:
12818: LD="$lt_cv_path_LD"
12819: if test -n "$LD"; then
12820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12821: $as_echo "$LD" >&6; }
12822: else
12823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824: $as_echo "no" >&6; }
12825: fi
12826: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12828: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12829: if ${lt_cv_prog_gnu_ld+:} false; then :
12830: $as_echo_n "(cached) " >&6
12831: else
12832: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12833: case `$LD -v 2>&1 </dev/null` in
12834: *GNU* | *'with BFD'*)
12835: lt_cv_prog_gnu_ld=yes
12836: ;;
12837: *)
12838: lt_cv_prog_gnu_ld=no
12839: ;;
12840: esac
12841: fi
12842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12843: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12844: with_gnu_ld=$lt_cv_prog_gnu_ld
12845:
12846:
12847:
12848:
12849:
12850:
12851:
12852: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12853: # archiving commands below assume that GNU ld is being used.
12854: if test "$with_gnu_ld" = yes; then
12855: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12856: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12857:
12858: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12859: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12860:
12861: # If archive_cmds runs LD, not CC, wlarc should be empty
12862: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12863: # investigate it a little bit more. (MM)
12864: wlarc='${wl}'
12865:
12866: # ancient GNU ld didn't support --whole-archive et. al.
12867: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12868: $GREP 'no-whole-archive' > /dev/null; then
12869: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12870: else
12871: whole_archive_flag_spec_CXX=
12872: fi
12873: else
12874: with_gnu_ld=no
12875: wlarc=
12876:
12877: # A generic and very simple default shared library creation
12878: # command for GNU C++ for the case where it uses the native
12879: # linker, instead of GNU ld. If possible, this setting should
12880: # overridden to take advantage of the native linker features on
12881: # the platform it is being used on.
12882: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12883: fi
12884:
12885: # Commands to make compiler produce verbose output that lists
12886: # what "hidden" libraries, object files and flags are used when
12887: # linking a shared library.
12888: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12889:
12890: else
12891: GXX=no
12892: with_gnu_ld=no
12893: wlarc=
12894: fi
12895:
12896: # PORTME: fill in a description of your system's C++ link characteristics
12897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12898: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12899: ld_shlibs_CXX=yes
12900: case $host_os in
12901: aix3*)
12902: # FIXME: insert proper C++ library support
12903: ld_shlibs_CXX=no
12904: ;;
12905: aix[4-9]*)
12906: if test "$host_cpu" = ia64; then
12907: # On IA64, the linker does run time linking by default, so we don't
12908: # have to do anything special.
12909: aix_use_runtimelinking=no
12910: exp_sym_flag='-Bexport'
12911: no_entry_flag=""
12912: else
12913: aix_use_runtimelinking=no
12914:
12915: # Test if we are trying to use run time linking or normal
12916: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12917: # need to do runtime linking.
12918: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12919: for ld_flag in $LDFLAGS; do
12920: case $ld_flag in
12921: *-brtl*)
12922: aix_use_runtimelinking=yes
12923: break
12924: ;;
12925: esac
12926: done
12927: ;;
12928: esac
12929:
12930: exp_sym_flag='-bexport'
12931: no_entry_flag='-bnoentry'
12932: fi
12933:
12934: # When large executables or shared objects are built, AIX ld can
12935: # have problems creating the table of contents. If linking a library
12936: # or program results in "error TOC overflow" add -mminimal-toc to
12937: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12938: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12939:
12940: archive_cmds_CXX=''
12941: hardcode_direct_CXX=yes
12942: hardcode_direct_absolute_CXX=yes
12943: hardcode_libdir_separator_CXX=':'
12944: link_all_deplibs_CXX=yes
12945: file_list_spec_CXX='${wl}-f,'
12946:
12947: if test "$GXX" = yes; then
12948: case $host_os in aix4.[012]|aix4.[012].*)
12949: # We only want to do this on AIX 4.2 and lower, the check
12950: # below for broken collect2 doesn't work under 4.3+
12951: collect2name=`${CC} -print-prog-name=collect2`
12952: if test -f "$collect2name" &&
12953: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12954: then
12955: # We have reworked collect2
12956: :
12957: else
12958: # We have old collect2
12959: hardcode_direct_CXX=unsupported
12960: # It fails to find uninstalled libraries when the uninstalled
12961: # path is not listed in the libpath. Setting hardcode_minus_L
12962: # to unsupported forces relinking
12963: hardcode_minus_L_CXX=yes
12964: hardcode_libdir_flag_spec_CXX='-L$libdir'
12965: hardcode_libdir_separator_CXX=
12966: fi
12967: esac
12968: shared_flag='-shared'
12969: if test "$aix_use_runtimelinking" = yes; then
12970: shared_flag="$shared_flag "'${wl}-G'
12971: fi
12972: else
12973: # not using gcc
12974: if test "$host_cpu" = ia64; then
12975: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12976: # chokes on -Wl,-G. The following line is correct:
12977: shared_flag='-G'
12978: else
12979: if test "$aix_use_runtimelinking" = yes; then
12980: shared_flag='${wl}-G'
12981: else
12982: shared_flag='${wl}-bM:SRE'
12983: fi
12984: fi
12985: fi
12986:
12987: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12988: # It seems that -bexpall does not export symbols beginning with
12989: # underscore (_), so it is better to generate a list of symbols to
12990: # export.
12991: always_export_symbols_CXX=yes
12992: if test "$aix_use_runtimelinking" = yes; then
12993: # Warning - without using the other runtime loading flags (-brtl),
12994: # -berok will link without error, but may produce a broken library.
12995: allow_undefined_flag_CXX='-berok'
12996: # Determine the default libpath from the value encoded in an empty
12997: # executable.
12998: if test "${lt_cv_aix_libpath+set}" = set; then
12999: aix_libpath=$lt_cv_aix_libpath
13000: else
13001: if ${lt_cv_aix_libpath__CXX+:} false; then :
13002: $as_echo_n "(cached) " >&6
13003: else
13004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005: /* end confdefs.h. */
13006:
13007: int
13008: main ()
13009: {
13010:
13011: ;
13012: return 0;
13013: }
13014: _ACEOF
13015: if ac_fn_cxx_try_link "$LINENO"; then :
13016:
13017: lt_aix_libpath_sed='
13018: /Import File Strings/,/^$/ {
13019: /^0/ {
13020: s/^0 *\([^ ]*\) *$/\1/
13021: p
13022: }
13023: }'
13024: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13025: # Check for a 64-bit object if we didn't find anything.
13026: if test -z "$lt_cv_aix_libpath__CXX"; then
13027: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13028: fi
13029: fi
13030: rm -f core conftest.err conftest.$ac_objext \
13031: conftest$ac_exeext conftest.$ac_ext
13032: if test -z "$lt_cv_aix_libpath__CXX"; then
13033: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13034: fi
13035:
13036: fi
13037:
13038: aix_libpath=$lt_cv_aix_libpath__CXX
13039: fi
13040:
13041: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13042:
13043: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13044: else
13045: if test "$host_cpu" = ia64; then
13046: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13047: allow_undefined_flag_CXX="-z nodefs"
13048: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13049: else
13050: # Determine the default libpath from the value encoded in an
13051: # empty executable.
13052: if test "${lt_cv_aix_libpath+set}" = set; then
13053: aix_libpath=$lt_cv_aix_libpath
13054: else
13055: if ${lt_cv_aix_libpath__CXX+:} false; then :
13056: $as_echo_n "(cached) " >&6
13057: else
13058: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059: /* end confdefs.h. */
13060:
13061: int
13062: main ()
13063: {
13064:
13065: ;
13066: return 0;
13067: }
13068: _ACEOF
13069: if ac_fn_cxx_try_link "$LINENO"; then :
13070:
13071: lt_aix_libpath_sed='
13072: /Import File Strings/,/^$/ {
13073: /^0/ {
13074: s/^0 *\([^ ]*\) *$/\1/
13075: p
13076: }
13077: }'
13078: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13079: # Check for a 64-bit object if we didn't find anything.
13080: if test -z "$lt_cv_aix_libpath__CXX"; then
13081: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082: fi
13083: fi
13084: rm -f core conftest.err conftest.$ac_objext \
13085: conftest$ac_exeext conftest.$ac_ext
13086: if test -z "$lt_cv_aix_libpath__CXX"; then
13087: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13088: fi
13089:
13090: fi
13091:
13092: aix_libpath=$lt_cv_aix_libpath__CXX
13093: fi
13094:
13095: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13096: # Warning - without using the other run time loading flags,
13097: # -berok will link without error, but may produce a broken library.
13098: no_undefined_flag_CXX=' ${wl}-bernotok'
13099: allow_undefined_flag_CXX=' ${wl}-berok'
13100: if test "$with_gnu_ld" = yes; then
13101: # We only use this code for GNU lds that support --whole-archive.
13102: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13103: else
13104: # Exported symbols can be pulled into shared objects from archives
13105: whole_archive_flag_spec_CXX='$convenience'
13106: fi
13107: archive_cmds_need_lc_CXX=yes
13108: # This is similar to how AIX traditionally builds its shared
13109: # libraries.
13110: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13111: fi
13112: fi
13113: ;;
13114:
13115: beos*)
13116: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13117: allow_undefined_flag_CXX=unsupported
13118: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13119: # support --undefined. This deserves some investigation. FIXME
13120: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13121: else
13122: ld_shlibs_CXX=no
13123: fi
13124: ;;
13125:
13126: chorus*)
13127: case $cc_basename in
13128: *)
13129: # FIXME: insert proper C++ library support
13130: ld_shlibs_CXX=no
13131: ;;
13132: esac
13133: ;;
13134:
13135: cygwin* | mingw* | pw32* | cegcc*)
13136: case $GXX,$cc_basename in
13137: ,cl* | no,cl*)
13138: # Native MSVC
13139: # hardcode_libdir_flag_spec is actually meaningless, as there is
13140: # no search path for DLLs.
13141: hardcode_libdir_flag_spec_CXX=' '
13142: allow_undefined_flag_CXX=unsupported
13143: always_export_symbols_CXX=yes
13144: file_list_spec_CXX='@'
13145: # Tell ltmain to make .lib files, not .a files.
13146: libext=lib
13147: # Tell ltmain to make .dll files, not .so files.
13148: shrext_cmds=".dll"
13149: # FIXME: Setting linknames here is a bad hack.
13150: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13151: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13152: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13153: else
13154: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13155: fi~
13156: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13157: linknames='
13158: # The linker will not automatically build a static lib if we build a DLL.
13159: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13160: enable_shared_with_static_runtimes_CXX=yes
13161: # Don't use ranlib
13162: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13163: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13164: lt_tool_outputfile="@TOOL_OUTPUT@"~
13165: case $lt_outputfile in
13166: *.exe|*.EXE) ;;
13167: *)
13168: lt_outputfile="$lt_outputfile.exe"
13169: lt_tool_outputfile="$lt_tool_outputfile.exe"
13170: ;;
13171: esac~
13172: func_to_tool_file "$lt_outputfile"~
13173: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13174: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13175: $RM "$lt_outputfile.manifest";
13176: fi'
13177: ;;
13178: *)
13179: # g++
13180: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13181: # as there is no search path for DLLs.
13182: hardcode_libdir_flag_spec_CXX='-L$libdir'
13183: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13184: allow_undefined_flag_CXX=unsupported
13185: always_export_symbols_CXX=no
13186: enable_shared_with_static_runtimes_CXX=yes
13187:
13188: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13189: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13190: # If the export-symbols file already is a .def file (1st line
13191: # is EXPORTS), use it as is; otherwise, prepend...
13192: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13193: cp $export_symbols $output_objdir/$soname.def;
13194: else
13195: echo EXPORTS > $output_objdir/$soname.def;
13196: cat $export_symbols >> $output_objdir/$soname.def;
13197: fi~
13198: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13199: else
13200: ld_shlibs_CXX=no
13201: fi
13202: ;;
13203: esac
13204: ;;
13205: darwin* | rhapsody*)
13206:
13207:
13208: archive_cmds_need_lc_CXX=no
13209: hardcode_direct_CXX=no
13210: hardcode_automatic_CXX=yes
13211: hardcode_shlibpath_var_CXX=unsupported
13212: if test "$lt_cv_ld_force_load" = "yes"; then
13213: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13214: else
13215: whole_archive_flag_spec_CXX=''
13216: fi
13217: link_all_deplibs_CXX=yes
13218: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13219: case $cc_basename in
13220: ifort*) _lt_dar_can_shared=yes ;;
13221: *) _lt_dar_can_shared=$GCC ;;
13222: esac
13223: if test "$_lt_dar_can_shared" = "yes"; then
13224: output_verbose_link_cmd=func_echo_all
13225: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13226: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13227: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13228: module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13229: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13230: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13231: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13232: fi
13233:
13234: else
13235: ld_shlibs_CXX=no
13236: fi
13237:
13238: ;;
13239:
13240: dgux*)
13241: case $cc_basename in
13242: ec++*)
13243: # FIXME: insert proper C++ library support
13244: ld_shlibs_CXX=no
13245: ;;
13246: ghcx*)
13247: # Green Hills C++ Compiler
13248: # FIXME: insert proper C++ library support
13249: ld_shlibs_CXX=no
13250: ;;
13251: *)
13252: # FIXME: insert proper C++ library support
13253: ld_shlibs_CXX=no
13254: ;;
13255: esac
13256: ;;
13257:
13258: freebsd[12]*)
13259: # C++ shared libraries reported to be fairly broken before
13260: # switch to ELF
13261: ld_shlibs_CXX=no
13262: ;;
13263:
13264: freebsd-elf*)
13265: archive_cmds_need_lc_CXX=no
13266: ;;
13267:
13268: freebsd* | dragonfly*)
13269: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13270: # conventions
13271: ld_shlibs_CXX=yes
13272: ;;
13273:
13274: gnu*)
13275: ;;
13276:
13277: haiku*)
13278: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279: link_all_deplibs_CXX=yes
13280: ;;
13281:
13282: hpux9*)
13283: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13284: hardcode_libdir_separator_CXX=:
13285: export_dynamic_flag_spec_CXX='${wl}-E'
13286: hardcode_direct_CXX=yes
13287: hardcode_minus_L_CXX=yes # Not in the search PATH,
13288: # but as the default
13289: # location of the library.
13290:
13291: case $cc_basename in
13292: CC*)
13293: # FIXME: insert proper C++ library support
13294: ld_shlibs_CXX=no
13295: ;;
13296: aCC*)
13297: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13298: # Commands to make compiler produce verbose output that lists
13299: # what "hidden" libraries, object files and flags are used when
13300: # linking a shared library.
13301: #
13302: # There doesn't appear to be a way to prevent this compiler from
13303: # explicitly linking system object files so we need to strip them
13304: # from the output so that they don't get included in the library
13305: # dependencies.
13306: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13307: ;;
13308: *)
13309: if test "$GXX" = yes; then
13310: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13311: else
13312: # FIXME: insert proper C++ library support
13313: ld_shlibs_CXX=no
13314: fi
13315: ;;
13316: esac
13317: ;;
13318:
13319: hpux10*|hpux11*)
13320: if test $with_gnu_ld = no; then
13321: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13322: hardcode_libdir_separator_CXX=:
13323:
13324: case $host_cpu in
13325: hppa*64*|ia64*)
13326: ;;
13327: *)
13328: export_dynamic_flag_spec_CXX='${wl}-E'
13329: ;;
13330: esac
13331: fi
13332: case $host_cpu in
13333: hppa*64*|ia64*)
13334: hardcode_direct_CXX=no
13335: hardcode_shlibpath_var_CXX=no
13336: ;;
13337: *)
13338: hardcode_direct_CXX=yes
13339: hardcode_direct_absolute_CXX=yes
13340: hardcode_minus_L_CXX=yes # Not in the search PATH,
13341: # but as the default
13342: # location of the library.
13343: ;;
13344: esac
13345:
13346: case $cc_basename in
13347: CC*)
13348: # FIXME: insert proper C++ library support
13349: ld_shlibs_CXX=no
13350: ;;
13351: aCC*)
13352: case $host_cpu in
13353: hppa*64*)
13354: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13355: ;;
13356: ia64*)
13357: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13358: ;;
13359: *)
13360: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13361: ;;
13362: esac
13363: # Commands to make compiler produce verbose output that lists
13364: # what "hidden" libraries, object files and flags are used when
13365: # linking a shared library.
13366: #
13367: # There doesn't appear to be a way to prevent this compiler from
13368: # explicitly linking system object files so we need to strip them
13369: # from the output so that they don't get included in the library
13370: # dependencies.
13371: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13372: ;;
13373: *)
13374: if test "$GXX" = yes; then
13375: if test $with_gnu_ld = no; then
13376: case $host_cpu in
13377: hppa*64*)
13378: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13379: ;;
13380: ia64*)
13381: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13382: ;;
13383: *)
13384: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13385: ;;
13386: esac
13387: fi
13388: else
13389: # FIXME: insert proper C++ library support
13390: ld_shlibs_CXX=no
13391: fi
13392: ;;
13393: esac
13394: ;;
13395:
13396: interix[3-9]*)
13397: hardcode_direct_CXX=no
13398: hardcode_shlibpath_var_CXX=no
13399: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13400: export_dynamic_flag_spec_CXX='${wl}-E'
13401: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13402: # Instead, shared libraries are loaded at an image base (0x10000000 by
13403: # default) and relocated if they conflict, which is a slow very memory
13404: # consuming and fragmenting process. To avoid this, we pick a random,
13405: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13406: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13407: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13408: archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13409: ;;
13410: irix5* | irix6*)
13411: case $cc_basename in
13412: CC*)
13413: # SGI C++
13414: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13415:
13416: # Archives containing C++ object files must be created using
13417: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13418: # necessary to make sure instantiated templates are included
13419: # in the archive.
13420: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13421: ;;
13422: *)
13423: if test "$GXX" = yes; then
13424: if test "$with_gnu_ld" = no; then
13425: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13426: else
13427: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13428: fi
13429: fi
13430: link_all_deplibs_CXX=yes
13431: ;;
13432: esac
13433: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13434: hardcode_libdir_separator_CXX=:
13435: inherit_rpath_CXX=yes
13436: ;;
13437:
13438: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13439: case $cc_basename in
13440: KCC*)
13441: # Kuck and Associates, Inc. (KAI) C++ Compiler
13442:
13443: # KCC will only create a shared library if the output file
13444: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13445: # to its proper name (with version) after linking.
13446: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13447: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13448: # Commands to make compiler produce verbose output that lists
13449: # what "hidden" libraries, object files and flags are used when
13450: # linking a shared library.
13451: #
13452: # There doesn't appear to be a way to prevent this compiler from
13453: # explicitly linking system object files so we need to strip them
13454: # from the output so that they don't get included in the library
13455: # dependencies.
13456: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13457:
13458: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13459: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13460:
13461: # Archives containing C++ object files must be created using
13462: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13463: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13464: ;;
13465: icpc* | ecpc* )
13466: # Intel C++
13467: with_gnu_ld=yes
13468: # version 8.0 and above of icpc choke on multiply defined symbols
13469: # if we add $predep_objects and $postdep_objects, however 7.1 and
13470: # earlier do not add the objects themselves.
13471: case `$CC -V 2>&1` in
13472: *"Version 7."*)
13473: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13474: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13475: ;;
13476: *) # Version 8.0 or newer
13477: tmp_idyn=
13478: case $host_cpu in
13479: ia64*) tmp_idyn=' -i_dynamic';;
13480: esac
13481: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13482: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13483: ;;
13484: esac
13485: archive_cmds_need_lc_CXX=no
13486: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13487: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13488: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13489: ;;
13490: pgCC* | pgcpp*)
13491: # Portland Group C++ compiler
13492: case `$CC -V` in
13493: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13494: prelink_cmds_CXX='tpldir=Template.dir~
13495: rm -rf $tpldir~
13496: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13497: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13498: old_archive_cmds_CXX='tpldir=Template.dir~
13499: rm -rf $tpldir~
13500: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13501: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13502: $RANLIB $oldlib'
13503: archive_cmds_CXX='tpldir=Template.dir~
13504: rm -rf $tpldir~
13505: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13506: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13507: archive_expsym_cmds_CXX='tpldir=Template.dir~
13508: rm -rf $tpldir~
13509: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13510: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13511: ;;
13512: *) # Version 6 and above use weak symbols
13513: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13514: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13515: ;;
13516: esac
13517:
13518: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13519: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13520: whole_archive_flag_spec_CXX='${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'
13521: ;;
13522: cxx*)
13523: # Compaq C++
13524: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13525: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13526:
13527: runpath_var=LD_RUN_PATH
13528: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13529: hardcode_libdir_separator_CXX=:
13530:
13531: # Commands to make compiler produce verbose output that lists
13532: # what "hidden" libraries, object files and flags are used when
13533: # linking a shared library.
13534: #
13535: # There doesn't appear to be a way to prevent this compiler from
13536: # explicitly linking system object files so we need to strip them
13537: # from the output so that they don't get included in the library
13538: # dependencies.
13539: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13540: ;;
13541: xl* | mpixl* | bgxl*)
13542: # IBM XL 8.0 on PPC, with GNU ld
13543: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13544: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13545: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13546: if test "x$supports_anon_versioning" = xyes; then
13547: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13548: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13549: echo "local: *; };" >> $output_objdir/$libname.ver~
13550: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13551: fi
13552: ;;
13553: *)
13554: case `$CC -V 2>&1 | sed 5q` in
13555: *Sun\ C*)
13556: # Sun C++ 5.9
13557: no_undefined_flag_CXX=' -zdefs'
13558: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13559: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13560: hardcode_libdir_flag_spec_CXX='-R$libdir'
13561: whole_archive_flag_spec_CXX='${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'
13562: compiler_needs_object_CXX=yes
13563:
13564: # Not sure whether something based on
13565: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13566: # would be better.
13567: output_verbose_link_cmd='func_echo_all'
13568:
13569: # Archives containing C++ object files must be created using
13570: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13571: # necessary to make sure instantiated templates are included
13572: # in the archive.
13573: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13574: ;;
13575: esac
13576: ;;
13577: esac
13578: ;;
13579:
13580: lynxos*)
13581: # FIXME: insert proper C++ library support
13582: ld_shlibs_CXX=no
13583: ;;
13584:
13585: m88k*)
13586: # FIXME: insert proper C++ library support
13587: ld_shlibs_CXX=no
13588: ;;
13589:
13590: mvs*)
13591: case $cc_basename in
13592: cxx*)
13593: # FIXME: insert proper C++ library support
13594: ld_shlibs_CXX=no
13595: ;;
13596: *)
13597: # FIXME: insert proper C++ library support
13598: ld_shlibs_CXX=no
13599: ;;
13600: esac
13601: ;;
13602:
13603: netbsd*)
13604: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13605: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13606: wlarc=
13607: hardcode_libdir_flag_spec_CXX='-R$libdir'
13608: hardcode_direct_CXX=yes
13609: hardcode_shlibpath_var_CXX=no
13610: fi
13611: # Workaround some broken pre-1.5 toolchains
13612: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13613: ;;
13614:
13615: *nto* | *qnx*)
13616: ld_shlibs_CXX=yes
13617: ;;
13618:
13619: openbsd2*)
13620: # C++ shared libraries are fairly broken
13621: ld_shlibs_CXX=no
13622: ;;
13623:
13624: openbsd*)
13625: if test -f /usr/libexec/ld.so; then
13626: hardcode_direct_CXX=yes
13627: hardcode_shlibpath_var_CXX=no
13628: hardcode_direct_absolute_CXX=yes
13629: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13630: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13631: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13632: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13633: export_dynamic_flag_spec_CXX='${wl}-E'
13634: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13635: fi
13636: output_verbose_link_cmd=func_echo_all
13637: else
13638: ld_shlibs_CXX=no
13639: fi
13640: ;;
13641:
13642: osf3* | osf4* | osf5*)
13643: case $cc_basename in
13644: KCC*)
13645: # Kuck and Associates, Inc. (KAI) C++ Compiler
13646:
13647: # KCC will only create a shared library if the output file
13648: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13649: # to its proper name (with version) after linking.
13650: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13651:
13652: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13653: hardcode_libdir_separator_CXX=:
13654:
13655: # Archives containing C++ object files must be created using
13656: # the KAI C++ compiler.
13657: case $host in
13658: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13659: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13660: esac
13661: ;;
13662: RCC*)
13663: # Rational C++ 2.4.1
13664: # FIXME: insert proper C++ library support
13665: ld_shlibs_CXX=no
13666: ;;
13667: cxx*)
13668: case $host in
13669: osf3*)
13670: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13671: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13672: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13673: ;;
13674: *)
13675: allow_undefined_flag_CXX=' -expect_unresolved \*'
13676: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13677: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13678: echo "-hidden">> $lib.exp~
13679: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13680: $RM $lib.exp'
13681: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13682: ;;
13683: esac
13684:
13685: hardcode_libdir_separator_CXX=:
13686:
13687: # Commands to make compiler produce verbose output that lists
13688: # what "hidden" libraries, object files and flags are used when
13689: # linking a shared library.
13690: #
13691: # There doesn't appear to be a way to prevent this compiler from
13692: # explicitly linking system object files so we need to strip them
13693: # from the output so that they don't get included in the library
13694: # dependencies.
13695: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13696: ;;
13697: *)
13698: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13699: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13700: case $host in
13701: osf3*)
13702: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13703: ;;
13704: *)
13705: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13706: ;;
13707: esac
13708:
13709: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13710: hardcode_libdir_separator_CXX=:
13711:
13712: # Commands to make compiler produce verbose output that lists
13713: # what "hidden" libraries, object files and flags are used when
13714: # linking a shared library.
13715: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13716:
13717: else
13718: # FIXME: insert proper C++ library support
13719: ld_shlibs_CXX=no
13720: fi
13721: ;;
13722: esac
13723: ;;
13724:
13725: psos*)
13726: # FIXME: insert proper C++ library support
13727: ld_shlibs_CXX=no
13728: ;;
13729:
13730: sunos4*)
13731: case $cc_basename in
13732: CC*)
13733: # Sun C++ 4.x
13734: # FIXME: insert proper C++ library support
13735: ld_shlibs_CXX=no
13736: ;;
13737: lcc*)
13738: # Lucid
13739: # FIXME: insert proper C++ library support
13740: ld_shlibs_CXX=no
13741: ;;
13742: *)
13743: # FIXME: insert proper C++ library support
13744: ld_shlibs_CXX=no
13745: ;;
13746: esac
13747: ;;
13748:
13749: solaris*)
13750: case $cc_basename in
13751: CC* | sunCC*)
13752: # Sun C++ 4.2, 5.x and Centerline C++
13753: archive_cmds_need_lc_CXX=yes
13754: no_undefined_flag_CXX=' -zdefs'
13755: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13756: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13757: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13758:
13759: hardcode_libdir_flag_spec_CXX='-R$libdir'
13760: hardcode_shlibpath_var_CXX=no
13761: case $host_os in
13762: solaris2.[0-5] | solaris2.[0-5].*) ;;
13763: *)
13764: # The compiler driver will combine and reorder linker options,
13765: # but understands `-z linker_flag'.
13766: # Supported since Solaris 2.6 (maybe 2.5.1?)
13767: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13768: ;;
13769: esac
13770: link_all_deplibs_CXX=yes
13771:
13772: output_verbose_link_cmd='func_echo_all'
13773:
13774: # Archives containing C++ object files must be created using
13775: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13776: # necessary to make sure instantiated templates are included
13777: # in the archive.
13778: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13779: ;;
13780: gcx*)
13781: # Green Hills C++ Compiler
13782: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13783:
13784: # The C++ compiler must be used to create the archive.
13785: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13786: ;;
13787: *)
13788: # GNU C++ compiler with Solaris linker
13789: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13790: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13791: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13792: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13793: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13794: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13795:
13796: # Commands to make compiler produce verbose output that lists
13797: # what "hidden" libraries, object files and flags are used when
13798: # linking a shared library.
13799: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13800: else
13801: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13802: # platform.
13803: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13804: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13805: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13806:
13807: # Commands to make compiler produce verbose output that lists
13808: # what "hidden" libraries, object files and flags are used when
13809: # linking a shared library.
13810: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13811: fi
13812:
13813: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13814: case $host_os in
13815: solaris2.[0-5] | solaris2.[0-5].*) ;;
13816: *)
13817: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13818: ;;
13819: esac
13820: fi
13821: ;;
13822: esac
13823: ;;
13824:
13825: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13826: no_undefined_flag_CXX='${wl}-z,text'
13827: archive_cmds_need_lc_CXX=no
13828: hardcode_shlibpath_var_CXX=no
13829: runpath_var='LD_RUN_PATH'
13830:
13831: case $cc_basename in
13832: CC*)
13833: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835: ;;
13836: *)
13837: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13838: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13839: ;;
13840: esac
13841: ;;
13842:
13843: sysv5* | sco3.2v5* | sco5v6*)
13844: # Note: We can NOT use -z defs as we might desire, because we do not
13845: # link with -lc, and that would cause any symbols used from libc to
13846: # always be unresolved, which means just about no library would
13847: # ever link correctly. If we're not using GNU ld we use -z text
13848: # though, which does catch some bad symbols but isn't as heavy-handed
13849: # as -z defs.
13850: no_undefined_flag_CXX='${wl}-z,text'
13851: allow_undefined_flag_CXX='${wl}-z,nodefs'
13852: archive_cmds_need_lc_CXX=no
13853: hardcode_shlibpath_var_CXX=no
13854: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13855: hardcode_libdir_separator_CXX=':'
13856: link_all_deplibs_CXX=yes
13857: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13858: runpath_var='LD_RUN_PATH'
13859:
13860: case $cc_basename in
13861: CC*)
13862: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13864: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13865: '"$old_archive_cmds_CXX"
13866: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13867: '"$reload_cmds_CXX"
13868: ;;
13869: *)
13870: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13872: ;;
13873: esac
13874: ;;
13875:
13876: tandem*)
13877: case $cc_basename in
13878: NCC*)
13879: # NonStop-UX NCC 3.20
13880: # FIXME: insert proper C++ library support
13881: ld_shlibs_CXX=no
13882: ;;
13883: *)
13884: # FIXME: insert proper C++ library support
13885: ld_shlibs_CXX=no
13886: ;;
13887: esac
13888: ;;
13889:
13890: vxworks*)
13891: # FIXME: insert proper C++ library support
13892: ld_shlibs_CXX=no
13893: ;;
13894:
13895: *)
13896: # FIXME: insert proper C++ library support
13897: ld_shlibs_CXX=no
13898: ;;
13899: esac
13900:
13901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13902: $as_echo "$ld_shlibs_CXX" >&6; }
13903: test "$ld_shlibs_CXX" = no && can_build_shared=no
13904:
13905: GCC_CXX="$GXX"
13906: LD_CXX="$LD"
13907:
13908: ## CAVEAT EMPTOR:
13909: ## There is no encapsulation within the following macros, do not change
13910: ## the running order or otherwise move them around unless you know exactly
13911: ## what you are doing...
13912: # Dependencies to place before and after the object being linked:
13913: predep_objects_CXX=
13914: postdep_objects_CXX=
13915: predeps_CXX=
13916: postdeps_CXX=
13917: compiler_lib_search_path_CXX=
13918:
13919: cat > conftest.$ac_ext <<_LT_EOF
13920: class Foo
13921: {
13922: public:
13923: Foo (void) { a = 0; }
13924: private:
13925: int a;
13926: };
13927: _LT_EOF
13928:
13929:
13930: _lt_libdeps_save_CFLAGS=$CFLAGS
13931: case "$CC $CFLAGS " in #(
13932: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13933: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13934: esac
13935:
13936: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13937: (eval $ac_compile) 2>&5
13938: ac_status=$?
13939: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13940: test $ac_status = 0; }; then
13941: # Parse the compiler output and extract the necessary
13942: # objects, libraries and library flags.
13943:
13944: # Sentinel used to keep track of whether or not we are before
13945: # the conftest object file.
13946: pre_test_object_deps_done=no
13947:
13948: for p in `eval "$output_verbose_link_cmd"`; do
13949: case ${prev}${p} in
13950:
13951: -L* | -R* | -l*)
13952: # Some compilers place space between "-{L,R}" and the path.
13953: # Remove the space.
13954: if test $p = "-L" ||
13955: test $p = "-R"; then
13956: prev=$p
13957: continue
13958: fi
13959:
13960: # Expand the sysroot to ease extracting the directories later.
13961: if test -z "$prev"; then
13962: case $p in
13963: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13964: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13965: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13966: esac
13967: fi
13968: case $p in
13969: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13970: esac
13971: if test "$pre_test_object_deps_done" = no; then
13972: case ${prev} in
13973: -L | -R)
13974: # Internal compiler library paths should come after those
13975: # provided the user. The postdeps already come after the
13976: # user supplied libs so there is no need to process them.
13977: if test -z "$compiler_lib_search_path_CXX"; then
13978: compiler_lib_search_path_CXX="${prev}${p}"
13979: else
13980: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13981: fi
13982: ;;
13983: # The "-l" case would never come before the object being
13984: # linked, so don't bother handling this case.
13985: esac
13986: else
13987: if test -z "$postdeps_CXX"; then
13988: postdeps_CXX="${prev}${p}"
13989: else
13990: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13991: fi
13992: fi
13993: prev=
13994: ;;
13995:
13996: *.lto.$objext) ;; # Ignore GCC LTO objects
13997: *.$objext)
13998: # This assumes that the test object file only shows up
13999: # once in the compiler output.
14000: if test "$p" = "conftest.$objext"; then
14001: pre_test_object_deps_done=yes
14002: continue
14003: fi
14004:
14005: if test "$pre_test_object_deps_done" = no; then
14006: if test -z "$predep_objects_CXX"; then
14007: predep_objects_CXX="$p"
14008: else
14009: predep_objects_CXX="$predep_objects_CXX $p"
14010: fi
14011: else
14012: if test -z "$postdep_objects_CXX"; then
14013: postdep_objects_CXX="$p"
14014: else
14015: postdep_objects_CXX="$postdep_objects_CXX $p"
14016: fi
14017: fi
14018: ;;
14019:
14020: *) ;; # Ignore the rest.
14021:
14022: esac
14023: done
14024:
14025: # Clean up.
14026: rm -f a.out a.exe
14027: else
14028: echo "libtool.m4: error: problem compiling CXX test program"
14029: fi
14030:
14031: $RM -f confest.$objext
14032: CFLAGS=$_lt_libdeps_save_CFLAGS
14033:
14034: # PORTME: override above test on systems where it is broken
14035: case $host_os in
14036: interix[3-9]*)
14037: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14038: # hack all around it, let's just trust "g++" to DTRT.
14039: predep_objects_CXX=
14040: postdep_objects_CXX=
14041: postdeps_CXX=
14042: ;;
14043:
14044: linux*)
14045: case `$CC -V 2>&1 | sed 5q` in
14046: *Sun\ C*)
14047: # Sun C++ 5.9
14048:
14049: # The more standards-conforming stlport4 library is
14050: # incompatible with the Cstd library. Avoid specifying
14051: # it if it's in CXXFLAGS. Ignore libCrun as
14052: # -library=stlport4 depends on it.
14053: case " $CXX $CXXFLAGS " in
14054: *" -library=stlport4 "*)
14055: solaris_use_stlport4=yes
14056: ;;
14057: esac
14058:
14059: if test "$solaris_use_stlport4" != yes; then
14060: postdeps_CXX='-library=Cstd -library=Crun'
14061: fi
14062: ;;
14063: esac
14064: ;;
14065:
14066: solaris*)
14067: case $cc_basename in
14068: CC* | sunCC*)
14069: # The more standards-conforming stlport4 library is
14070: # incompatible with the Cstd library. Avoid specifying
14071: # it if it's in CXXFLAGS. Ignore libCrun as
14072: # -library=stlport4 depends on it.
14073: case " $CXX $CXXFLAGS " in
14074: *" -library=stlport4 "*)
14075: solaris_use_stlport4=yes
14076: ;;
14077: esac
14078:
14079: # Adding this requires a known-good setup of shared libraries for
14080: # Sun compiler versions before 5.6, else PIC objects from an old
14081: # archive will be linked into the output, leading to subtle bugs.
14082: if test "$solaris_use_stlport4" != yes; then
14083: postdeps_CXX='-library=Cstd -library=Crun'
14084: fi
14085: ;;
14086: esac
14087: ;;
14088: esac
14089:
14090:
14091: case " $postdeps_CXX " in
14092: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14093: esac
14094: compiler_lib_search_dirs_CXX=
14095: if test -n "${compiler_lib_search_path_CXX}"; then
14096: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14097: fi
14098:
14099:
14100:
14101:
14102:
14103:
14104:
14105:
14106:
14107:
14108:
14109:
14110:
14111:
14112:
14113:
14114:
14115:
14116:
14117:
14118:
14119:
14120:
14121:
14122:
14123:
14124:
14125:
14126:
14127:
14128:
14129: lt_prog_compiler_wl_CXX=
14130: lt_prog_compiler_pic_CXX=
14131: lt_prog_compiler_static_CXX=
14132:
14133:
14134: # C++ specific cases for pic, static, wl, etc.
14135: if test "$GXX" = yes; then
14136: lt_prog_compiler_wl_CXX='-Wl,'
14137: lt_prog_compiler_static_CXX='-static'
14138:
14139: case $host_os in
14140: aix*)
14141: # All AIX code is PIC.
14142: if test "$host_cpu" = ia64; then
14143: # AIX 5 now supports IA64 processor
14144: lt_prog_compiler_static_CXX='-Bstatic'
14145: fi
14146: ;;
14147:
14148: amigaos*)
14149: case $host_cpu in
14150: powerpc)
14151: # see comment about AmigaOS4 .so support
14152: lt_prog_compiler_pic_CXX='-fPIC'
14153: ;;
14154: m68k)
14155: # FIXME: we need at least 68020 code to build shared libraries, but
14156: # adding the `-m68020' flag to GCC prevents building anything better,
14157: # like `-m68040'.
14158: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14159: ;;
14160: esac
14161: ;;
14162:
14163: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14164: # PIC is the default for these OSes.
14165: ;;
14166: mingw* | cygwin* | os2* | pw32* | cegcc*)
14167: # This hack is so that the source file can tell whether it is being
14168: # built for inclusion in a dll (and should export symbols for example).
14169: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14170: # (--disable-auto-import) libraries
14171: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14172: ;;
14173: darwin* | rhapsody*)
14174: # PIC is the default on this platform
14175: # Common symbols not allowed in MH_DYLIB files
14176: lt_prog_compiler_pic_CXX='-fno-common'
14177: ;;
14178: *djgpp*)
14179: # DJGPP does not support shared libraries at all
14180: lt_prog_compiler_pic_CXX=
14181: ;;
14182: haiku*)
14183: # PIC is the default for Haiku.
14184: # The "-static" flag exists, but is broken.
14185: lt_prog_compiler_static_CXX=
14186: ;;
14187: interix[3-9]*)
14188: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14189: # Instead, we relocate shared libraries at runtime.
14190: ;;
14191: sysv4*MP*)
14192: if test -d /usr/nec; then
14193: lt_prog_compiler_pic_CXX=-Kconform_pic
14194: fi
14195: ;;
14196: hpux*)
14197: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14198: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14199: # sets the default TLS model and affects inlining.
14200: case $host_cpu in
14201: hppa*64*)
14202: ;;
14203: *)
14204: lt_prog_compiler_pic_CXX='-fPIC'
14205: ;;
14206: esac
14207: ;;
14208: *qnx* | *nto*)
14209: # QNX uses GNU C++, but need to define -shared option too, otherwise
14210: # it will coredump.
14211: lt_prog_compiler_pic_CXX='-fPIC -shared'
14212: ;;
14213: *)
14214: lt_prog_compiler_pic_CXX='-fPIC'
14215: ;;
14216: esac
14217: else
14218: case $host_os in
14219: aix[4-9]*)
14220: # All AIX code is PIC.
14221: if test "$host_cpu" = ia64; then
14222: # AIX 5 now supports IA64 processor
14223: lt_prog_compiler_static_CXX='-Bstatic'
14224: else
14225: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14226: fi
14227: ;;
14228: chorus*)
14229: case $cc_basename in
14230: cxch68*)
14231: # Green Hills C++ Compiler
14232: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14233: ;;
14234: esac
14235: ;;
14236: mingw* | cygwin* | os2* | pw32* | cegcc*)
14237: # This hack is so that the source file can tell whether it is being
14238: # built for inclusion in a dll (and should export symbols for example).
14239: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14240: ;;
14241: dgux*)
14242: case $cc_basename in
14243: ec++*)
14244: lt_prog_compiler_pic_CXX='-KPIC'
14245: ;;
14246: ghcx*)
14247: # Green Hills C++ Compiler
14248: lt_prog_compiler_pic_CXX='-pic'
14249: ;;
14250: *)
14251: ;;
14252: esac
14253: ;;
14254: freebsd* | dragonfly*)
14255: # FreeBSD uses GNU C++
14256: ;;
14257: hpux9* | hpux10* | hpux11*)
14258: case $cc_basename in
14259: CC*)
14260: lt_prog_compiler_wl_CXX='-Wl,'
14261: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14262: if test "$host_cpu" != ia64; then
14263: lt_prog_compiler_pic_CXX='+Z'
14264: fi
14265: ;;
14266: aCC*)
14267: lt_prog_compiler_wl_CXX='-Wl,'
14268: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14269: case $host_cpu in
14270: hppa*64*|ia64*)
14271: # +Z the default
14272: ;;
14273: *)
14274: lt_prog_compiler_pic_CXX='+Z'
14275: ;;
14276: esac
14277: ;;
14278: *)
14279: ;;
14280: esac
14281: ;;
14282: interix*)
14283: # This is c89, which is MS Visual C++ (no shared libs)
14284: # Anyone wants to do a port?
14285: ;;
14286: irix5* | irix6* | nonstopux*)
14287: case $cc_basename in
14288: CC*)
14289: lt_prog_compiler_wl_CXX='-Wl,'
14290: lt_prog_compiler_static_CXX='-non_shared'
14291: # CC pic flag -KPIC is the default.
14292: ;;
14293: *)
14294: ;;
14295: esac
14296: ;;
14297: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14298: case $cc_basename in
14299: KCC*)
14300: # KAI C++ Compiler
14301: lt_prog_compiler_wl_CXX='--backend -Wl,'
14302: lt_prog_compiler_pic_CXX='-fPIC'
14303: ;;
14304: ecpc* )
14305: # old Intel C++ for x86_64 which still supported -KPIC.
14306: lt_prog_compiler_wl_CXX='-Wl,'
14307: lt_prog_compiler_pic_CXX='-KPIC'
14308: lt_prog_compiler_static_CXX='-static'
14309: ;;
14310: icpc* )
14311: # Intel C++, used to be incompatible with GCC.
14312: # ICC 10 doesn't accept -KPIC any more.
14313: lt_prog_compiler_wl_CXX='-Wl,'
14314: lt_prog_compiler_pic_CXX='-fPIC'
14315: lt_prog_compiler_static_CXX='-static'
14316: ;;
14317: pgCC* | pgcpp*)
14318: # Portland Group C++ compiler
14319: lt_prog_compiler_wl_CXX='-Wl,'
14320: lt_prog_compiler_pic_CXX='-fpic'
14321: lt_prog_compiler_static_CXX='-Bstatic'
14322: ;;
14323: cxx*)
14324: # Compaq C++
14325: # Make sure the PIC flag is empty. It appears that all Alpha
14326: # Linux and Compaq Tru64 Unix objects are PIC.
14327: lt_prog_compiler_pic_CXX=
14328: lt_prog_compiler_static_CXX='-non_shared'
14329: ;;
14330: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14331: # IBM XL 8.0, 9.0 on PPC and BlueGene
14332: lt_prog_compiler_wl_CXX='-Wl,'
14333: lt_prog_compiler_pic_CXX='-qpic'
14334: lt_prog_compiler_static_CXX='-qstaticlink'
14335: ;;
14336: *)
14337: case `$CC -V 2>&1 | sed 5q` in
14338: *Sun\ C*)
14339: # Sun C++ 5.9
14340: lt_prog_compiler_pic_CXX='-KPIC'
14341: lt_prog_compiler_static_CXX='-Bstatic'
14342: lt_prog_compiler_wl_CXX='-Qoption ld '
14343: ;;
14344: esac
14345: ;;
14346: esac
14347: ;;
14348: lynxos*)
14349: ;;
14350: m88k*)
14351: ;;
14352: mvs*)
14353: case $cc_basename in
14354: cxx*)
14355: lt_prog_compiler_pic_CXX='-W c,exportall'
14356: ;;
14357: *)
14358: ;;
14359: esac
14360: ;;
14361: netbsd*)
14362: ;;
14363: *qnx* | *nto*)
14364: # QNX uses GNU C++, but need to define -shared option too, otherwise
14365: # it will coredump.
14366: lt_prog_compiler_pic_CXX='-fPIC -shared'
14367: ;;
14368: osf3* | osf4* | osf5*)
14369: case $cc_basename in
14370: KCC*)
14371: lt_prog_compiler_wl_CXX='--backend -Wl,'
14372: ;;
14373: RCC*)
14374: # Rational C++ 2.4.1
14375: lt_prog_compiler_pic_CXX='-pic'
14376: ;;
14377: cxx*)
14378: # Digital/Compaq C++
14379: lt_prog_compiler_wl_CXX='-Wl,'
14380: # Make sure the PIC flag is empty. It appears that all Alpha
14381: # Linux and Compaq Tru64 Unix objects are PIC.
14382: lt_prog_compiler_pic_CXX=
14383: lt_prog_compiler_static_CXX='-non_shared'
14384: ;;
14385: *)
14386: ;;
14387: esac
14388: ;;
14389: psos*)
14390: ;;
14391: solaris*)
14392: case $cc_basename in
14393: CC* | sunCC*)
14394: # Sun C++ 4.2, 5.x and Centerline C++
14395: lt_prog_compiler_pic_CXX='-KPIC'
14396: lt_prog_compiler_static_CXX='-Bstatic'
14397: lt_prog_compiler_wl_CXX='-Qoption ld '
14398: ;;
14399: gcx*)
14400: # Green Hills C++ Compiler
14401: lt_prog_compiler_pic_CXX='-PIC'
14402: ;;
14403: *)
14404: ;;
14405: esac
14406: ;;
14407: sunos4*)
14408: case $cc_basename in
14409: CC*)
14410: # Sun C++ 4.x
14411: lt_prog_compiler_pic_CXX='-pic'
14412: lt_prog_compiler_static_CXX='-Bstatic'
14413: ;;
14414: lcc*)
14415: # Lucid
14416: lt_prog_compiler_pic_CXX='-pic'
14417: ;;
14418: *)
14419: ;;
14420: esac
14421: ;;
14422: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14423: case $cc_basename in
14424: CC*)
14425: lt_prog_compiler_wl_CXX='-Wl,'
14426: lt_prog_compiler_pic_CXX='-KPIC'
14427: lt_prog_compiler_static_CXX='-Bstatic'
14428: ;;
14429: esac
14430: ;;
14431: tandem*)
14432: case $cc_basename in
14433: NCC*)
14434: # NonStop-UX NCC 3.20
14435: lt_prog_compiler_pic_CXX='-KPIC'
14436: ;;
14437: *)
14438: ;;
14439: esac
14440: ;;
14441: vxworks*)
14442: ;;
14443: *)
14444: lt_prog_compiler_can_build_shared_CXX=no
14445: ;;
14446: esac
14447: fi
14448:
14449: case $host_os in
14450: # For platforms which do not support PIC, -DPIC is meaningless:
14451: *djgpp*)
14452: lt_prog_compiler_pic_CXX=
14453: ;;
14454: *)
14455: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14456: ;;
14457: esac
14458:
14459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14460: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14461: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14462: $as_echo_n "(cached) " >&6
14463: else
14464: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14465: fi
14466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14467: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14468: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14469:
14470: #
14471: # Check to make sure the PIC flag actually works.
14472: #
14473: if test -n "$lt_prog_compiler_pic_CXX"; then
14474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14475: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14476: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14477: $as_echo_n "(cached) " >&6
14478: else
14479: lt_cv_prog_compiler_pic_works_CXX=no
14480: ac_outfile=conftest.$ac_objext
14481: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14482: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14483: # Insert the option either (1) after the last *FLAGS variable, or
14484: # (2) before a word containing "conftest.", or (3) at the end.
14485: # Note that $ac_compile itself does not contain backslashes and begins
14486: # with a dollar sign (not a hyphen), so the echo should work correctly.
14487: # The option is referenced via a variable to avoid confusing sed.
14488: lt_compile=`echo "$ac_compile" | $SED \
14489: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14490: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14491: -e 's:$: $lt_compiler_flag:'`
14492: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14493: (eval "$lt_compile" 2>conftest.err)
14494: ac_status=$?
14495: cat conftest.err >&5
14496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497: if (exit $ac_status) && test -s "$ac_outfile"; then
14498: # The compiler can only warn and ignore the option if not recognized
14499: # So say no if there are warnings other than the usual output.
14500: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14501: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14502: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14503: lt_cv_prog_compiler_pic_works_CXX=yes
14504: fi
14505: fi
14506: $RM conftest*
14507:
14508: fi
14509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14510: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14511:
14512: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14513: case $lt_prog_compiler_pic_CXX in
14514: "" | " "*) ;;
14515: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14516: esac
14517: else
14518: lt_prog_compiler_pic_CXX=
14519: lt_prog_compiler_can_build_shared_CXX=no
14520: fi
14521:
14522: fi
14523:
14524:
14525:
14526:
14527:
14528: #
14529: # Check to make sure the static flag actually works.
14530: #
14531: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14533: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14534: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14535: $as_echo_n "(cached) " >&6
14536: else
14537: lt_cv_prog_compiler_static_works_CXX=no
14538: save_LDFLAGS="$LDFLAGS"
14539: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14540: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14541: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14542: # The linker can only warn and ignore the option if not recognized
14543: # So say no if there are warnings
14544: if test -s conftest.err; then
14545: # Append any errors to the config.log.
14546: cat conftest.err 1>&5
14547: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14548: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14549: if diff conftest.exp conftest.er2 >/dev/null; then
14550: lt_cv_prog_compiler_static_works_CXX=yes
14551: fi
14552: else
14553: lt_cv_prog_compiler_static_works_CXX=yes
14554: fi
14555: fi
14556: $RM -r conftest*
14557: LDFLAGS="$save_LDFLAGS"
14558:
14559: fi
14560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14561: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14562:
14563: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14564: :
14565: else
14566: lt_prog_compiler_static_CXX=
14567: fi
14568:
14569:
14570:
14571:
14572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14573: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14574: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14575: $as_echo_n "(cached) " >&6
14576: else
14577: lt_cv_prog_compiler_c_o_CXX=no
14578: $RM -r conftest 2>/dev/null
14579: mkdir conftest
14580: cd conftest
14581: mkdir out
14582: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14583:
14584: lt_compiler_flag="-o out/conftest2.$ac_objext"
14585: # Insert the option either (1) after the last *FLAGS variable, or
14586: # (2) before a word containing "conftest.", or (3) at the end.
14587: # Note that $ac_compile itself does not contain backslashes and begins
14588: # with a dollar sign (not a hyphen), so the echo should work correctly.
14589: lt_compile=`echo "$ac_compile" | $SED \
14590: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14591: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14592: -e 's:$: $lt_compiler_flag:'`
14593: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14594: (eval "$lt_compile" 2>out/conftest.err)
14595: ac_status=$?
14596: cat out/conftest.err >&5
14597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14599: then
14600: # The compiler can only warn and ignore the option if not recognized
14601: # So say no if there are warnings
14602: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14603: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14604: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14605: lt_cv_prog_compiler_c_o_CXX=yes
14606: fi
14607: fi
14608: chmod u+w . 2>&5
14609: $RM conftest*
14610: # SGI C++ compiler will create directory out/ii_files/ for
14611: # template instantiation
14612: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14613: $RM out/* && rmdir out
14614: cd ..
14615: $RM -r conftest
14616: $RM conftest*
14617:
14618: fi
14619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14620: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14621:
14622:
14623:
14624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14625: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14626: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14627: $as_echo_n "(cached) " >&6
14628: else
14629: lt_cv_prog_compiler_c_o_CXX=no
14630: $RM -r conftest 2>/dev/null
14631: mkdir conftest
14632: cd conftest
14633: mkdir out
14634: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14635:
14636: lt_compiler_flag="-o out/conftest2.$ac_objext"
14637: # Insert the option either (1) after the last *FLAGS variable, or
14638: # (2) before a word containing "conftest.", or (3) at the end.
14639: # Note that $ac_compile itself does not contain backslashes and begins
14640: # with a dollar sign (not a hyphen), so the echo should work correctly.
14641: lt_compile=`echo "$ac_compile" | $SED \
14642: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14643: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14644: -e 's:$: $lt_compiler_flag:'`
14645: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14646: (eval "$lt_compile" 2>out/conftest.err)
14647: ac_status=$?
14648: cat out/conftest.err >&5
14649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14651: then
14652: # The compiler can only warn and ignore the option if not recognized
14653: # So say no if there are warnings
14654: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14655: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14656: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14657: lt_cv_prog_compiler_c_o_CXX=yes
14658: fi
14659: fi
14660: chmod u+w . 2>&5
14661: $RM conftest*
14662: # SGI C++ compiler will create directory out/ii_files/ for
14663: # template instantiation
14664: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14665: $RM out/* && rmdir out
14666: cd ..
14667: $RM -r conftest
14668: $RM conftest*
14669:
14670: fi
14671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14672: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14673:
14674:
14675:
14676:
14677: hard_links="nottested"
14678: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14679: # do not overwrite the value of need_locks provided by the user
14680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14681: $as_echo_n "checking if we can lock with hard links... " >&6; }
14682: hard_links=yes
14683: $RM conftest*
14684: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14685: touch conftest.a
14686: ln conftest.a conftest.b 2>&5 || hard_links=no
14687: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14689: $as_echo "$hard_links" >&6; }
14690: if test "$hard_links" = no; then
14691: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14692: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14693: need_locks=warn
14694: fi
14695: else
14696: need_locks=no
14697: fi
14698:
14699:
14700:
14701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14702: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14703:
14704: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14705: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14706: case $host_os in
14707: aix[4-9]*)
14708: # If we're using GNU nm, then we don't want the "-C" option.
14709: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14710: # Also, AIX nm treats weak defined symbols like other global defined
14711: # symbols, whereas GNU nm marks them as "W".
14712: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14713: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14714: else
14715: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14716: fi
14717: ;;
14718: pw32*)
14719: export_symbols_cmds_CXX="$ltdll_cmds"
14720: ;;
14721: cygwin* | mingw* | cegcc*)
14722: case $cc_basename in
14723: cl*) ;;
14724: *)
14725: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14726: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14727: ;;
14728: esac
14729: ;;
14730: *)
14731: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14732: ;;
14733: esac
14734:
14735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14736: $as_echo "$ld_shlibs_CXX" >&6; }
14737: test "$ld_shlibs_CXX" = no && can_build_shared=no
14738:
14739: with_gnu_ld_CXX=$with_gnu_ld
14740:
14741:
14742:
14743:
14744:
14745:
14746: #
14747: # Do we need to explicitly link libc?
14748: #
14749: case "x$archive_cmds_need_lc_CXX" in
14750: x|xyes)
14751: # Assume -lc should be added
14752: archive_cmds_need_lc_CXX=yes
14753:
14754: if test "$enable_shared" = yes && test "$GCC" = yes; then
14755: case $archive_cmds_CXX in
14756: *'~'*)
14757: # FIXME: we may have to deal with multi-command sequences.
14758: ;;
14759: '$CC '*)
14760: # Test whether the compiler implicitly links with -lc since on some
14761: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14762: # to ld, don't add -lc before -lgcc.
14763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14764: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14765: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14766: $as_echo_n "(cached) " >&6
14767: else
14768: $RM conftest*
14769: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14770:
14771: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14772: (eval $ac_compile) 2>&5
14773: ac_status=$?
14774: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14775: test $ac_status = 0; } 2>conftest.err; then
14776: soname=conftest
14777: lib=conftest
14778: libobjs=conftest.$ac_objext
14779: deplibs=
14780: wl=$lt_prog_compiler_wl_CXX
14781: pic_flag=$lt_prog_compiler_pic_CXX
14782: compiler_flags=-v
14783: linker_flags=-v
14784: verstring=
14785: output_objdir=.
14786: libname=conftest
14787: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14788: allow_undefined_flag_CXX=
14789: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14790: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14791: ac_status=$?
14792: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14793: test $ac_status = 0; }
14794: then
14795: lt_cv_archive_cmds_need_lc_CXX=no
14796: else
14797: lt_cv_archive_cmds_need_lc_CXX=yes
14798: fi
14799: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14800: else
14801: cat conftest.err 1>&5
14802: fi
14803: $RM conftest*
14804:
14805: fi
14806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14807: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14808: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14809: ;;
14810: esac
14811: fi
14812: ;;
14813: esac
14814:
14815:
14816:
14817:
14818:
14819:
14820:
14821:
14822:
14823:
14824:
14825:
14826:
14827:
14828:
14829:
14830:
14831:
14832:
14833:
14834:
14835:
14836:
14837:
14838:
14839:
14840:
14841:
14842:
14843:
14844:
14845:
14846:
14847:
14848:
14849:
14850:
14851:
14852:
14853:
14854:
14855:
14856:
14857:
14858:
14859:
14860:
14861:
14862:
14863:
14864:
14865:
14866:
14867:
14868:
14869:
14870:
14871:
14872:
14873:
14874:
14875:
14876:
14877:
14878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14879: $as_echo_n "checking dynamic linker characteristics... " >&6; }
14880:
14881: library_names_spec=
14882: libname_spec='lib$name'
14883: soname_spec=
14884: shrext_cmds=".so"
14885: postinstall_cmds=
14886: postuninstall_cmds=
14887: finish_cmds=
14888: finish_eval=
14889: shlibpath_var=
14890: shlibpath_overrides_runpath=unknown
14891: version_type=none
14892: dynamic_linker="$host_os ld.so"
14893: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14894: need_lib_prefix=unknown
14895: hardcode_into_libs=no
14896:
14897: # when you set need_version to no, make sure it does not cause -set_version
14898: # flags to be left without arguments
14899: need_version=unknown
14900:
14901: case $host_os in
14902: aix3*)
14903: version_type=linux
14904: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14905: shlibpath_var=LIBPATH
14906:
14907: # AIX 3 has no versioning support, so we append a major version to the name.
14908: soname_spec='${libname}${release}${shared_ext}$major'
14909: ;;
14910:
14911: aix[4-9]*)
14912: version_type=linux
14913: need_lib_prefix=no
14914: need_version=no
14915: hardcode_into_libs=yes
14916: if test "$host_cpu" = ia64; then
14917: # AIX 5 supports IA64
14918: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14919: shlibpath_var=LD_LIBRARY_PATH
14920: else
14921: # With GCC up to 2.95.x, collect2 would create an import file
14922: # for dependence libraries. The import file would start with
14923: # the line `#! .'. This would cause the generated library to
14924: # depend on `.', always an invalid library. This was fixed in
14925: # development snapshots of GCC prior to 3.0.
14926: case $host_os in
14927: aix4 | aix4.[01] | aix4.[01].*)
14928: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14929: echo ' yes '
14930: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14931: :
14932: else
14933: can_build_shared=no
14934: fi
14935: ;;
14936: esac
14937: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14938: # soname into executable. Probably we can add versioning support to
14939: # collect2, so additional links can be useful in future.
14940: if test "$aix_use_runtimelinking" = yes; then
14941: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14942: # instead of lib<name>.a to let people know that these are not
14943: # typical AIX shared libraries.
14944: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945: else
14946: # We preserve .a as extension for shared libraries through AIX4.2
14947: # and later when we are not doing run time linking.
14948: library_names_spec='${libname}${release}.a $libname.a'
14949: soname_spec='${libname}${release}${shared_ext}$major'
14950: fi
14951: shlibpath_var=LIBPATH
14952: fi
14953: ;;
14954:
14955: amigaos*)
14956: case $host_cpu in
14957: powerpc)
14958: # Since July 2007 AmigaOS4 officially supports .so libraries.
14959: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14960: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961: ;;
14962: m68k)
14963: library_names_spec='$libname.ixlibrary $libname.a'
14964: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14965: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14966: ;;
14967: esac
14968: ;;
14969:
14970: beos*)
14971: library_names_spec='${libname}${shared_ext}'
14972: dynamic_linker="$host_os ld.so"
14973: shlibpath_var=LIBRARY_PATH
14974: ;;
14975:
14976: bsdi[45]*)
14977: version_type=linux
14978: need_version=no
14979: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980: soname_spec='${libname}${release}${shared_ext}$major'
14981: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14982: shlibpath_var=LD_LIBRARY_PATH
14983: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14984: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14985: # the default ld.so.conf also contains /usr/contrib/lib and
14986: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14987: # libtool to hard-code these into programs
14988: ;;
14989:
14990: cygwin* | mingw* | pw32* | cegcc*)
14991: version_type=windows
14992: shrext_cmds=".dll"
14993: need_version=no
14994: need_lib_prefix=no
14995:
14996: case $GCC,$cc_basename in
14997: yes,*)
14998: # gcc
14999: library_names_spec='$libname.dll.a'
15000: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15001: postinstall_cmds='base_file=`basename \${file}`~
15002: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15003: dldir=$destdir/`dirname \$dlpath`~
15004: test -d \$dldir || mkdir -p \$dldir~
15005: $install_prog $dir/$dlname \$dldir/$dlname~
15006: chmod a+x \$dldir/$dlname~
15007: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15008: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15009: fi'
15010: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15011: dlpath=$dir/\$dldll~
15012: $RM \$dlpath'
15013: shlibpath_overrides_runpath=yes
15014:
15015: case $host_os in
15016: cygwin*)
15017: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15018: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15019:
15020: ;;
15021: mingw* | cegcc*)
15022: # MinGW DLLs use traditional 'lib' prefix
15023: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15024: ;;
15025: pw32*)
15026: # pw32 DLLs use 'pw' prefix rather than 'lib'
15027: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15028: ;;
15029: esac
15030: dynamic_linker='Win32 ld.exe'
15031: ;;
15032:
15033: *,cl*)
15034: # Native MSVC
15035: libname_spec='$name'
15036: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15037: library_names_spec='${libname}.dll.lib'
15038:
15039: case $build_os in
15040: mingw*)
15041: sys_lib_search_path_spec=
15042: lt_save_ifs=$IFS
15043: IFS=';'
15044: for lt_path in $LIB
15045: do
15046: IFS=$lt_save_ifs
15047: # Let DOS variable expansion print the short 8.3 style file name.
15048: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15049: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15050: done
15051: IFS=$lt_save_ifs
15052: # Convert to MSYS style.
15053: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15054: ;;
15055: cygwin*)
15056: # Convert to unix form, then to dos form, then back to unix form
15057: # but this time dos style (no spaces!) so that the unix form looks
15058: # like /cygdrive/c/PROGRA~1:/cygdr...
15059: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15060: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15061: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15062: ;;
15063: *)
15064: sys_lib_search_path_spec="$LIB"
15065: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15066: # It is most probably a Windows format PATH.
15067: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15068: else
15069: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15070: fi
15071: # FIXME: find the short name or the path components, as spaces are
15072: # common. (e.g. "Program Files" -> "PROGRA~1")
15073: ;;
15074: esac
15075:
15076: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15077: postinstall_cmds='base_file=`basename \${file}`~
15078: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15079: dldir=$destdir/`dirname \$dlpath`~
15080: test -d \$dldir || mkdir -p \$dldir~
15081: $install_prog $dir/$dlname \$dldir/$dlname'
15082: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15083: dlpath=$dir/\$dldll~
15084: $RM \$dlpath'
15085: shlibpath_overrides_runpath=yes
15086: dynamic_linker='Win32 link.exe'
15087: ;;
15088:
15089: *)
15090: # Assume MSVC wrapper
15091: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15092: dynamic_linker='Win32 ld.exe'
15093: ;;
15094: esac
15095: # FIXME: first we should search . and the directory the executable is in
15096: shlibpath_var=PATH
15097: ;;
15098:
15099: darwin* | rhapsody*)
15100: dynamic_linker="$host_os dyld"
15101: version_type=darwin
15102: need_lib_prefix=no
15103: need_version=no
15104: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15105: soname_spec='${libname}${release}${major}$shared_ext'
15106: shlibpath_overrides_runpath=yes
15107: shlibpath_var=DYLD_LIBRARY_PATH
15108: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15109:
15110: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15111: ;;
15112:
15113: dgux*)
15114: version_type=linux
15115: need_lib_prefix=no
15116: need_version=no
15117: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15118: soname_spec='${libname}${release}${shared_ext}$major'
15119: shlibpath_var=LD_LIBRARY_PATH
15120: ;;
15121:
15122: freebsd1*)
15123: dynamic_linker=no
15124: ;;
15125:
15126: freebsd* | dragonfly*)
15127: # DragonFly does not have aout. When/if they implement a new
15128: # versioning mechanism, adjust this.
15129: if test -x /usr/bin/objformat; then
15130: objformat=`/usr/bin/objformat`
15131: else
15132: case $host_os in
15133: freebsd[123]*) objformat=aout ;;
15134: *) objformat=elf ;;
15135: esac
15136: fi
15137: # Handle Gentoo/FreeBSD as it was Linux
15138: case $host_vendor in
15139: gentoo)
15140: version_type=linux ;;
15141: *)
15142: version_type=freebsd-$objformat ;;
15143: esac
15144:
15145: case $version_type in
15146: freebsd-elf*)
15147: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15148: need_version=no
15149: need_lib_prefix=no
15150: ;;
15151: freebsd-*)
15152: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15153: need_version=yes
15154: ;;
15155: linux)
15156: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15157: soname_spec='${libname}${release}${shared_ext}$major'
15158: need_lib_prefix=no
15159: need_version=no
15160: ;;
15161: esac
15162: shlibpath_var=LD_LIBRARY_PATH
15163: case $host_os in
15164: freebsd2*)
15165: shlibpath_overrides_runpath=yes
15166: ;;
15167: freebsd3.[01]* | freebsdelf3.[01]*)
15168: shlibpath_overrides_runpath=yes
15169: hardcode_into_libs=yes
15170: ;;
15171: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15172: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15173: shlibpath_overrides_runpath=no
15174: hardcode_into_libs=yes
15175: ;;
15176: *) # from 4.6 on, and DragonFly
15177: shlibpath_overrides_runpath=yes
15178: hardcode_into_libs=yes
15179: ;;
15180: esac
15181: ;;
15182:
15183: gnu*)
15184: version_type=linux
15185: need_lib_prefix=no
15186: need_version=no
15187: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15188: soname_spec='${libname}${release}${shared_ext}$major'
15189: shlibpath_var=LD_LIBRARY_PATH
15190: hardcode_into_libs=yes
15191: ;;
15192:
15193: haiku*)
15194: version_type=linux
15195: need_lib_prefix=no
15196: need_version=no
15197: dynamic_linker="$host_os runtime_loader"
15198: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15199: soname_spec='${libname}${release}${shared_ext}$major'
15200: shlibpath_var=LIBRARY_PATH
15201: shlibpath_overrides_runpath=yes
15202: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15203: hardcode_into_libs=yes
15204: ;;
15205:
15206: hpux9* | hpux10* | hpux11*)
15207: # Give a soname corresponding to the major version so that dld.sl refuses to
15208: # link against other versions.
15209: version_type=sunos
15210: need_lib_prefix=no
15211: need_version=no
15212: case $host_cpu in
15213: ia64*)
15214: shrext_cmds='.so'
15215: hardcode_into_libs=yes
15216: dynamic_linker="$host_os dld.so"
15217: shlibpath_var=LD_LIBRARY_PATH
15218: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15219: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220: soname_spec='${libname}${release}${shared_ext}$major'
15221: if test "X$HPUX_IA64_MODE" = X32; then
15222: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15223: else
15224: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15225: fi
15226: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15227: ;;
15228: hppa*64*)
15229: shrext_cmds='.sl'
15230: hardcode_into_libs=yes
15231: dynamic_linker="$host_os dld.sl"
15232: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15233: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15234: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235: soname_spec='${libname}${release}${shared_ext}$major'
15236: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15237: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15238: ;;
15239: *)
15240: shrext_cmds='.sl'
15241: dynamic_linker="$host_os dld.sl"
15242: shlibpath_var=SHLIB_PATH
15243: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15244: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15245: soname_spec='${libname}${release}${shared_ext}$major'
15246: ;;
15247: esac
15248: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15249: postinstall_cmds='chmod 555 $lib'
15250: # or fails outright, so override atomically:
15251: install_override_mode=555
15252: ;;
15253:
15254: interix[3-9]*)
15255: version_type=linux
15256: need_lib_prefix=no
15257: need_version=no
15258: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15259: soname_spec='${libname}${release}${shared_ext}$major'
15260: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15261: shlibpath_var=LD_LIBRARY_PATH
15262: shlibpath_overrides_runpath=no
15263: hardcode_into_libs=yes
15264: ;;
15265:
15266: irix5* | irix6* | nonstopux*)
15267: case $host_os in
15268: nonstopux*) version_type=nonstopux ;;
15269: *)
15270: if test "$lt_cv_prog_gnu_ld" = yes; then
15271: version_type=linux
15272: else
15273: version_type=irix
15274: fi ;;
15275: esac
15276: need_lib_prefix=no
15277: need_version=no
15278: soname_spec='${libname}${release}${shared_ext}$major'
15279: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15280: case $host_os in
15281: irix5* | nonstopux*)
15282: libsuff= shlibsuff=
15283: ;;
15284: *)
15285: case $LD in # libtool.m4 will add one of these switches to LD
15286: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15287: libsuff= shlibsuff= libmagic=32-bit;;
15288: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15289: libsuff=32 shlibsuff=N32 libmagic=N32;;
15290: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15291: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15292: *) libsuff= shlibsuff= libmagic=never-match;;
15293: esac
15294: ;;
15295: esac
15296: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15297: shlibpath_overrides_runpath=no
15298: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15299: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15300: hardcode_into_libs=yes
15301: ;;
15302:
15303: # No shared lib support for Linux oldld, aout, or coff.
15304: linux*oldld* | linux*aout* | linux*coff*)
15305: dynamic_linker=no
15306: ;;
15307:
15308: # This must be Linux ELF.
15309: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15310: version_type=linux
15311: need_lib_prefix=no
15312: need_version=no
15313: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15314: soname_spec='${libname}${release}${shared_ext}$major'
15315: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15316: shlibpath_var=LD_LIBRARY_PATH
15317: shlibpath_overrides_runpath=no
15318:
15319: # Some binutils ld are patched to set DT_RUNPATH
15320: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15321: $as_echo_n "(cached) " >&6
15322: else
15323: lt_cv_shlibpath_overrides_runpath=no
15324: save_LDFLAGS=$LDFLAGS
15325: save_libdir=$libdir
15326: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15327: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15328: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329: /* end confdefs.h. */
15330:
15331: int
15332: main ()
15333: {
15334:
15335: ;
15336: return 0;
15337: }
15338: _ACEOF
15339: if ac_fn_cxx_try_link "$LINENO"; then :
15340: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15341: lt_cv_shlibpath_overrides_runpath=yes
15342: fi
15343: fi
15344: rm -f core conftest.err conftest.$ac_objext \
15345: conftest$ac_exeext conftest.$ac_ext
15346: LDFLAGS=$save_LDFLAGS
15347: libdir=$save_libdir
15348:
15349: fi
15350:
15351: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15352:
15353: # This implies no fast_install, which is unacceptable.
15354: # Some rework will be needed to allow for fast_install
15355: # before this can be enabled.
15356: hardcode_into_libs=yes
15357:
15358: # Append ld.so.conf contents to the search path
15359: if test -f /etc/ld.so.conf; then
15360: 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' ' '`
15361: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15362: fi
15363:
15364: # We used to test for /lib/ld.so.1 and disable shared libraries on
15365: # powerpc, because MkLinux only supported shared libraries with the
15366: # GNU dynamic linker. Since this was broken with cross compilers,
15367: # most powerpc-linux boxes support dynamic linking these days and
15368: # people can always --disable-shared, the test was removed, and we
15369: # assume the GNU/Linux dynamic linker is in use.
15370: dynamic_linker='GNU/Linux ld.so'
15371: ;;
15372:
15373: netbsd*)
15374: version_type=sunos
15375: need_lib_prefix=no
15376: need_version=no
15377: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15378: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15379: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15380: dynamic_linker='NetBSD (a.out) ld.so'
15381: else
15382: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15383: soname_spec='${libname}${release}${shared_ext}$major'
15384: dynamic_linker='NetBSD ld.elf_so'
15385: fi
15386: shlibpath_var=LD_LIBRARY_PATH
15387: shlibpath_overrides_runpath=yes
15388: hardcode_into_libs=yes
15389: ;;
15390:
15391: newsos6)
15392: version_type=linux
15393: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394: shlibpath_var=LD_LIBRARY_PATH
15395: shlibpath_overrides_runpath=yes
15396: ;;
15397:
15398: *nto* | *qnx*)
15399: version_type=qnx
15400: need_lib_prefix=no
15401: need_version=no
15402: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403: soname_spec='${libname}${release}${shared_ext}$major'
15404: shlibpath_var=LD_LIBRARY_PATH
15405: shlibpath_overrides_runpath=no
15406: hardcode_into_libs=yes
15407: dynamic_linker='ldqnx.so'
15408: ;;
15409:
15410: openbsd*)
15411: version_type=sunos
15412: sys_lib_dlsearch_path_spec="/usr/lib"
15413: need_lib_prefix=no
15414: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15415: case $host_os in
15416: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15417: *) need_version=no ;;
15418: esac
15419: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15420: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15421: shlibpath_var=LD_LIBRARY_PATH
15422: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15423: case $host_os in
15424: openbsd2.[89] | openbsd2.[89].*)
15425: shlibpath_overrides_runpath=no
15426: ;;
15427: *)
15428: shlibpath_overrides_runpath=yes
15429: ;;
15430: esac
15431: else
15432: shlibpath_overrides_runpath=yes
15433: fi
15434: ;;
15435:
15436: os2*)
15437: libname_spec='$name'
15438: shrext_cmds=".dll"
15439: need_lib_prefix=no
15440: library_names_spec='$libname${shared_ext} $libname.a'
15441: dynamic_linker='OS/2 ld.exe'
15442: shlibpath_var=LIBPATH
15443: ;;
15444:
15445: osf3* | osf4* | osf5*)
15446: version_type=osf
15447: need_lib_prefix=no
15448: need_version=no
15449: soname_spec='${libname}${release}${shared_ext}$major'
15450: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451: shlibpath_var=LD_LIBRARY_PATH
15452: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15453: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15454: ;;
15455:
15456: rdos*)
15457: dynamic_linker=no
15458: ;;
15459:
15460: solaris*)
15461: version_type=linux
15462: need_lib_prefix=no
15463: need_version=no
15464: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15465: soname_spec='${libname}${release}${shared_ext}$major'
15466: shlibpath_var=LD_LIBRARY_PATH
15467: shlibpath_overrides_runpath=yes
15468: hardcode_into_libs=yes
15469: # ldd complains unless libraries are executable
15470: postinstall_cmds='chmod +x $lib'
15471: ;;
15472:
15473: sunos4*)
15474: version_type=sunos
15475: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15476: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15477: shlibpath_var=LD_LIBRARY_PATH
15478: shlibpath_overrides_runpath=yes
15479: if test "$with_gnu_ld" = yes; then
15480: need_lib_prefix=no
15481: fi
15482: need_version=yes
15483: ;;
15484:
15485: sysv4 | sysv4.3*)
15486: version_type=linux
15487: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488: soname_spec='${libname}${release}${shared_ext}$major'
15489: shlibpath_var=LD_LIBRARY_PATH
15490: case $host_vendor in
15491: sni)
15492: shlibpath_overrides_runpath=no
15493: need_lib_prefix=no
15494: runpath_var=LD_RUN_PATH
15495: ;;
15496: siemens)
15497: need_lib_prefix=no
15498: ;;
15499: motorola)
15500: need_lib_prefix=no
15501: need_version=no
15502: shlibpath_overrides_runpath=no
15503: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15504: ;;
15505: esac
15506: ;;
15507:
15508: sysv4*MP*)
15509: if test -d /usr/nec ;then
15510: version_type=linux
15511: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15512: soname_spec='$libname${shared_ext}.$major'
15513: shlibpath_var=LD_LIBRARY_PATH
15514: fi
15515: ;;
15516:
15517: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15518: version_type=freebsd-elf
15519: need_lib_prefix=no
15520: need_version=no
15521: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15522: soname_spec='${libname}${release}${shared_ext}$major'
15523: shlibpath_var=LD_LIBRARY_PATH
15524: shlibpath_overrides_runpath=yes
15525: hardcode_into_libs=yes
15526: if test "$with_gnu_ld" = yes; then
15527: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15528: else
15529: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15530: case $host_os in
15531: sco3.2v5*)
15532: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15533: ;;
15534: esac
15535: fi
15536: sys_lib_dlsearch_path_spec='/usr/lib'
15537: ;;
15538:
15539: tpf*)
15540: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15541: version_type=linux
15542: need_lib_prefix=no
15543: need_version=no
15544: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545: shlibpath_var=LD_LIBRARY_PATH
15546: shlibpath_overrides_runpath=no
15547: hardcode_into_libs=yes
15548: ;;
15549:
15550: uts4*)
15551: version_type=linux
15552: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553: soname_spec='${libname}${release}${shared_ext}$major'
15554: shlibpath_var=LD_LIBRARY_PATH
15555: ;;
15556:
15557: *)
15558: dynamic_linker=no
15559: ;;
15560: esac
15561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15562: $as_echo "$dynamic_linker" >&6; }
15563: test "$dynamic_linker" = no && can_build_shared=no
15564:
15565: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15566: if test "$GCC" = yes; then
15567: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15568: fi
15569:
15570: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15571: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15572: fi
15573: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15574: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15575: fi
15576:
15577:
15578:
15579:
15580:
15581:
15582:
15583:
15584:
15585:
15586:
15587:
15588:
15589:
15590:
15591:
15592:
15593:
15594:
15595:
15596:
15597:
15598:
15599:
15600:
15601:
15602:
15603:
15604:
15605:
15606:
15607:
15608:
15609:
15610:
15611:
15612:
15613:
15614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15615: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15616: hardcode_action_CXX=
15617: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15618: test -n "$runpath_var_CXX" ||
15619: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15620:
15621: # We can hardcode non-existent directories.
15622: if test "$hardcode_direct_CXX" != no &&
15623: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15624: # have to relink, otherwise we might link with an installed library
15625: # when we should be linking with a yet-to-be-installed one
15626: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15627: test "$hardcode_minus_L_CXX" != no; then
15628: # Linking always hardcodes the temporary library directory.
15629: hardcode_action_CXX=relink
15630: else
15631: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15632: hardcode_action_CXX=immediate
15633: fi
15634: else
15635: # We cannot hardcode anything, or else we can only hardcode existing
15636: # directories.
15637: hardcode_action_CXX=unsupported
15638: fi
15639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15640: $as_echo "$hardcode_action_CXX" >&6; }
15641:
15642: if test "$hardcode_action_CXX" = relink ||
15643: test "$inherit_rpath_CXX" = yes; then
15644: # Fast installation is not supported
15645: enable_fast_install=no
15646: elif test "$shlibpath_overrides_runpath" = yes ||
15647: test "$enable_shared" = no; then
15648: # Fast installation is not necessary
15649: enable_fast_install=needless
15650: fi
15651:
15652:
15653:
15654:
15655:
15656:
15657:
15658: fi # test -n "$compiler"
15659:
15660: CC=$lt_save_CC
15661: CFLAGS=$lt_save_CFLAGS
15662: LDCXX=$LD
15663: LD=$lt_save_LD
15664: GCC=$lt_save_GCC
15665: with_gnu_ld=$lt_save_with_gnu_ld
15666: lt_cv_path_LDCXX=$lt_cv_path_LD
15667: lt_cv_path_LD=$lt_save_path_LD
15668: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15669: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15670: fi # test "$_lt_caught_CXX_error" != yes
15671:
15672: ac_ext=c
15673: ac_cpp='$CPP $CPPFLAGS'
15674: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15675: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15676: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15677:
15678:
15679:
15680:
15681:
15682:
15683:
15684:
15685:
15686:
15687:
15688:
15689:
15690: ac_config_commands="$ac_config_commands libtool"
15691:
15692:
15693:
15694:
15695: # Only expand once:
15696:
15697:
15698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15699: $as_echo_n "checking whether ln -s works... " >&6; }
15700: LN_S=$as_ln_s
15701: if test "$LN_S" = "ln -s"; then
15702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15703: $as_echo "yes" >&6; }
15704: else
15705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15706: $as_echo "no, using $LN_S" >&6; }
15707: fi
15708:
15709:
15710: PCRE_MAJOR="8"
1.1.1.3 ! misho 15711: PCRE_MINOR="31"
1.1 misho 15712: PCRE_PRERELEASE=""
1.1.1.3 ! misho 15713: PCRE_DATE="2012-07-06"
1.1 misho 15714:
15715: if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
15716: then
15717: echo "***"
15718: echo "*** Minor version number $PCRE_MINOR must not be used. ***"
15719: echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
15720: echo "***"
15721: exit 1
15722: fi
15723:
15724:
15725:
15726:
15727:
15728:
15729: # Set a more sensible default value for $(htmldir).
15730: if test "x$htmldir" = 'x${docdir}'
15731: then
15732: htmldir='${docdir}/html'
15733: fi
15734:
1.1.1.2 misho 15735: # Handle --disable-pcre8 (enabled by default)
15736: # Check whether --enable-pcre8 was given.
15737: if test "${enable_pcre8+set}" = set; then :
15738: enableval=$enable_pcre8;
15739: else
15740: enable_pcre8=unset
15741: fi
15742:
15743:
15744:
15745: # Handle --enable-pcre16 (disabled by default)
15746: # Check whether --enable-pcre16 was given.
15747: if test "${enable_pcre16+set}" = set; then :
15748: enableval=$enable_pcre16;
15749: else
15750: enable_pcre16=unset
15751: fi
15752:
15753:
15754:
1.1 misho 15755: # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
15756: # pcre-config.
15757: # Check whether --enable-cpp was given.
15758: if test "${enable_cpp+set}" = set; then :
15759: enableval=$enable_cpp;
15760: else
1.1.1.2 misho 15761: enable_cpp=unset
1.1 misho 15762: fi
15763:
15764:
15765:
15766: # Handle --enable-jit (disabled by default)
15767: # Check whether --enable-jit was given.
15768: if test "${enable_jit+set}" = set; then :
15769: enableval=$enable_jit;
15770: else
15771: enable_jit=no
15772: fi
15773:
15774:
15775: # Handle --disable-pcregrep-jit (enabled by default)
15776: # Check whether --enable-pcregrep-jit was given.
15777: if test "${enable_pcregrep_jit+set}" = set; then :
15778: enableval=$enable_pcregrep_jit;
15779: else
15780: enable_pcregrep_jit=yes
15781: fi
15782:
15783:
15784: # Handle --enable-rebuild-chartables
15785: # Check whether --enable-rebuild-chartables was given.
15786: if test "${enable_rebuild_chartables+set}" = set; then :
15787: enableval=$enable_rebuild_chartables;
15788: else
15789: enable_rebuild_chartables=no
15790: fi
15791:
15792:
15793: # Handle --enable-utf8 (disabled by default)
15794: # Check whether --enable-utf8 was given.
15795: if test "${enable_utf8+set}" = set; then :
15796: enableval=$enable_utf8;
15797: else
15798: enable_utf8=unset
15799: fi
15800:
15801:
1.1.1.2 misho 15802: # Handle --enable-utf (disabled by default)
15803: # Check whether --enable-utf was given.
15804: if test "${enable_utf+set}" = set; then :
15805: enableval=$enable_utf;
15806: else
15807: enable_utf=unset
15808: fi
15809:
15810:
1.1 misho 15811: # Handle --enable-unicode-properties
15812: # Check whether --enable-unicode-properties was given.
15813: if test "${enable_unicode_properties+set}" = set; then :
15814: enableval=$enable_unicode_properties;
15815: else
15816: enable_unicode_properties=no
15817: fi
15818:
15819:
15820: # Handle --enable-newline=NL
15821:
15822: # Separate newline options
15823: ac_pcre_newline=lf
15824: # Check whether --enable-newline-is-cr was given.
15825: if test "${enable_newline_is_cr+set}" = set; then :
15826: enableval=$enable_newline_is_cr; ac_pcre_newline=cr
15827: fi
15828:
15829: # Check whether --enable-newline-is-lf was given.
15830: if test "${enable_newline_is_lf+set}" = set; then :
15831: enableval=$enable_newline_is_lf; ac_pcre_newline=lf
15832: fi
15833:
15834: # Check whether --enable-newline-is-crlf was given.
15835: if test "${enable_newline_is_crlf+set}" = set; then :
15836: enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
15837: fi
15838:
15839: # Check whether --enable-newline-is-anycrlf was given.
15840: if test "${enable_newline_is_anycrlf+set}" = set; then :
15841: enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
15842: fi
15843:
15844: # Check whether --enable-newline-is-any was given.
15845: if test "${enable_newline_is_any+set}" = set; then :
15846: enableval=$enable_newline_is_any; ac_pcre_newline=any
15847: fi
15848:
15849: enable_newline="$ac_pcre_newline"
15850:
15851: # Handle --enable-bsr-anycrlf
15852: # Check whether --enable-bsr-anycrlf was given.
15853: if test "${enable_bsr_anycrlf+set}" = set; then :
15854: enableval=$enable_bsr_anycrlf;
15855: else
15856: enable_bsr_anycrlf=no
15857: fi
15858:
15859:
15860: # Handle --enable-ebcdic
15861: # Check whether --enable-ebcdic was given.
15862: if test "${enable_ebcdic+set}" = set; then :
15863: enableval=$enable_ebcdic;
15864: else
15865: enable_ebcdic=no
15866: fi
15867:
15868:
15869: # Handle --disable-stack-for-recursion
15870: # Check whether --enable-stack-for-recursion was given.
15871: if test "${enable_stack_for_recursion+set}" = set; then :
15872: enableval=$enable_stack_for_recursion;
15873: else
15874: enable_stack_for_recursion=yes
15875: fi
15876:
15877:
15878: # Handle --enable-pcregrep-libz
15879: # Check whether --enable-pcregrep-libz was given.
15880: if test "${enable_pcregrep_libz+set}" = set; then :
15881: enableval=$enable_pcregrep_libz;
15882: else
15883: enable_pcregrep_libz=no
15884: fi
15885:
15886:
15887: # Handle --enable-pcregrep-libbz2
15888: # Check whether --enable-pcregrep-libbz2 was given.
15889: if test "${enable_pcregrep_libbz2+set}" = set; then :
15890: enableval=$enable_pcregrep_libbz2;
15891: else
15892: enable_pcregrep_libbz2=no
15893: fi
15894:
15895:
15896: # Handle --with-pcregrep-bufsize=N
15897:
15898: # Check whether --with-pcregrep-bufsize was given.
15899: if test "${with_pcregrep_bufsize+set}" = set; then :
15900: withval=$with_pcregrep_bufsize;
15901: else
15902: with_pcregrep_bufsize=20480
15903: fi
15904:
15905:
1.1.1.3 ! misho 15906: # Handle --enable-pcretest-libedit
! 15907: # Check whether --enable-pcretest-libedit was given.
! 15908: if test "${enable_pcretest_libedit+set}" = set; then :
! 15909: enableval=$enable_pcretest_libedit;
! 15910: else
! 15911: enable_pcretest_libedit=no
! 15912: fi
! 15913:
! 15914:
1.1 misho 15915: # Handle --enable-pcretest-libreadline
15916: # Check whether --enable-pcretest-libreadline was given.
15917: if test "${enable_pcretest_libreadline+set}" = set; then :
15918: enableval=$enable_pcretest_libreadline;
15919: else
15920: enable_pcretest_libreadline=no
15921: fi
15922:
15923:
15924: # Handle --with-posix-malloc-threshold=NBYTES
15925:
15926: # Check whether --with-posix-malloc-threshold was given.
15927: if test "${with_posix_malloc_threshold+set}" = set; then :
15928: withval=$with_posix_malloc_threshold;
15929: else
15930: with_posix_malloc_threshold=10
15931: fi
15932:
15933:
15934: # Handle --with-link-size=N
15935:
15936: # Check whether --with-link-size was given.
15937: if test "${with_link_size+set}" = set; then :
15938: withval=$with_link_size;
15939: else
15940: with_link_size=2
15941: fi
15942:
15943:
15944: # Handle --with-match-limit=N
15945:
15946: # Check whether --with-match-limit was given.
15947: if test "${with_match_limit+set}" = set; then :
15948: withval=$with_match_limit;
15949: else
15950: with_match_limit=10000000
15951: fi
15952:
15953:
15954: # Handle --with-match-limit_recursion=N
15955: #
15956: # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
15957: # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
15958: # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
15959: # different numeric value (or even the same numeric value as MATCH_LIMIT,
15960: # though no longer defined in terms of the latter).
15961: #
15962:
15963: # Check whether --with-match-limit-recursion was given.
15964: if test "${with_match_limit_recursion+set}" = set; then :
15965: withval=$with_match_limit_recursion;
15966: else
15967: with_match_limit_recursion=MATCH_LIMIT
15968: fi
15969:
15970:
1.1.1.2 misho 15971: # Copy enable_utf8 value to enable_utf for compatibility reasons
15972: if test "x$enable_utf8" != "xunset"
15973: then
15974: if test "x$enable_utf" != "xunset"
15975: then
15976: as_fn_error $? "--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
15977: fi
15978: enable_utf=$enable_utf8
15979: fi
15980:
15981: # Set the default value for pcre8
15982: if test "x$enable_pcre8" = "xunset"
15983: then
15984: enable_pcre8=yes
15985: fi
15986:
15987: # Set the default value for pcre16
15988: if test "x$enable_pcre16" = "xunset"
15989: then
15990: enable_pcre16=no
15991: fi
15992:
15993: # Make sure enable_pcre8 or enable_pcre16 was set
15994: if test "x$enable_pcre8$enable_pcre16" = "xnono"
15995: then
15996: as_fn_error $? "Either 8 or 16 bit (or both) pcre library must be enabled" "$LINENO" 5
15997: fi
15998:
15999: # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
1.1 misho 16000: if test "x$enable_unicode_properties" = "xyes"
16001: then
1.1.1.2 misho 16002: if test "x$enable_utf" = "xno"
1.1 misho 16003: then
1.1.1.2 misho 16004: as_fn_error $? "support for Unicode properties requires UTF-8/16 support" "$LINENO" 5
1.1 misho 16005: fi
1.1.1.2 misho 16006: enable_utf=yes
16007: fi
16008:
16009: # enable_utf is disabled by default.
16010: if test "x$enable_utf" = "xunset"
16011: then
16012: enable_utf=no
1.1 misho 16013: fi
16014:
1.1.1.2 misho 16015: # enable_cpp copies the value of enable_pcre8 by default
16016: if test "x$enable_cpp" = "xunset"
1.1 misho 16017: then
1.1.1.2 misho 16018: enable_cpp=$enable_pcre8
16019: fi
16020:
16021: # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
16022: if test "x$enable_cpp" = "xyes"
16023: then
16024: if test "x$enable_pcre8" = "xno"
16025: then
16026: as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
16027: fi
1.1 misho 16028: fi
16029:
16030: # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
1.1.1.2 misho 16031: # Also check that UTF support is not requested, because PCRE cannot handle
16032: # EBCDIC and UTF in the same build. To do so it would need to use different
1.1 misho 16033: # character constants depending on the mode.
16034: #
16035: if test "x$enable_ebcdic" = "xyes"
16036: then
16037: enable_rebuild_chartables=yes
1.1.1.2 misho 16038: if test "x$enable_utf" = "xyes"
1.1 misho 16039: then
1.1.1.2 misho 16040: as_fn_error $? "support for EBCDIC and UTF-8/16 cannot be enabled at the same time" "$LINENO" 5
1.1 misho 16041: fi
16042: fi
16043:
16044: # Convert the newline identifier into the appropriate integer value.
16045: case "$enable_newline" in
16046: lf) ac_pcre_newline_value=10 ;;
16047: cr) ac_pcre_newline_value=13 ;;
16048: crlf) ac_pcre_newline_value=3338 ;;
16049: anycrlf) ac_pcre_newline_value=-2 ;;
16050: any) ac_pcre_newline_value=-1 ;;
16051: *)
16052: as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
16053: ;;
16054: esac
16055:
16056: # Check argument to --with-link-size
16057: case "$with_link_size" in
16058: 2|3|4) ;;
16059: *)
16060: as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
16061: ;;
16062: esac
16063:
16064:
16065:
16066: # Checks for header files.
16067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16068: $as_echo_n "checking for ANSI C header files... " >&6; }
16069: if ${ac_cv_header_stdc+:} false; then :
16070: $as_echo_n "(cached) " >&6
16071: else
16072: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073: /* end confdefs.h. */
16074: #include <stdlib.h>
16075: #include <stdarg.h>
16076: #include <string.h>
16077: #include <float.h>
16078:
16079: int
16080: main ()
16081: {
16082:
16083: ;
16084: return 0;
16085: }
16086: _ACEOF
16087: if ac_fn_c_try_compile "$LINENO"; then :
16088: ac_cv_header_stdc=yes
16089: else
16090: ac_cv_header_stdc=no
16091: fi
16092: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093:
16094: if test $ac_cv_header_stdc = yes; then
16095: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097: /* end confdefs.h. */
16098: #include <string.h>
16099:
16100: _ACEOF
16101: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16102: $EGREP "memchr" >/dev/null 2>&1; then :
16103:
16104: else
16105: ac_cv_header_stdc=no
16106: fi
16107: rm -f conftest*
16108:
16109: fi
16110:
16111: if test $ac_cv_header_stdc = yes; then
16112: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16113: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114: /* end confdefs.h. */
16115: #include <stdlib.h>
16116:
16117: _ACEOF
16118: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16119: $EGREP "free" >/dev/null 2>&1; then :
16120:
16121: else
16122: ac_cv_header_stdc=no
16123: fi
16124: rm -f conftest*
16125:
16126: fi
16127:
16128: if test $ac_cv_header_stdc = yes; then
16129: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16130: if test "$cross_compiling" = yes; then :
16131: :
16132: else
16133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134: /* end confdefs.h. */
16135: #include <ctype.h>
16136: #include <stdlib.h>
16137: #if ((' ' & 0x0FF) == 0x020)
16138: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16139: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16140: #else
16141: # define ISLOWER(c) \
16142: (('a' <= (c) && (c) <= 'i') \
16143: || ('j' <= (c) && (c) <= 'r') \
16144: || ('s' <= (c) && (c) <= 'z'))
16145: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16146: #endif
16147:
16148: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16149: int
16150: main ()
16151: {
16152: int i;
16153: for (i = 0; i < 256; i++)
16154: if (XOR (islower (i), ISLOWER (i))
16155: || toupper (i) != TOUPPER (i))
16156: return 2;
16157: return 0;
16158: }
16159: _ACEOF
16160: if ac_fn_c_try_run "$LINENO"; then :
16161:
16162: else
16163: ac_cv_header_stdc=no
16164: fi
16165: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16166: conftest.$ac_objext conftest.beam conftest.$ac_ext
16167: fi
16168:
16169: fi
16170: fi
16171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16172: $as_echo "$ac_cv_header_stdc" >&6; }
16173: if test $ac_cv_header_stdc = yes; then
16174:
16175: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16176:
16177: fi
16178:
16179: for ac_header in limits.h sys/types.h sys/stat.h dirent.h windows.h
16180: do :
16181: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16182: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16183: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16184: cat >>confdefs.h <<_ACEOF
16185: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16186: _ACEOF
16187:
16188: fi
16189:
16190: done
16191:
16192:
16193: # The files below are C++ header files.
16194: pcre_have_type_traits="0"
16195: pcre_have_bits_type_traits="0"
16196: if test "x$enable_cpp" = "xyes" -a -n "$CXX"
16197: then
16198: ac_ext=cpp
16199: ac_cpp='$CXXCPP $CPPFLAGS'
16200: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16203:
16204:
16205: # Older versions of pcre defined pcrecpp::no_arg, but in new versions
16206: # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
16207: # we want to make one an alias for the other. Different systems do
16208: # this in different ways. Some systems, for instance, can do it via
16209: # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
16210: OLD_LDFLAGS="$LDFLAGS"
16211: for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
16212: "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
16213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
16214: $as_echo_n "checking for alias support in the linker... " >&6; }
16215: LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
16216: # We try to run the linker with this new ld flag. If the link fails,
16217: # we give up and remove the new flag from LDFLAGS.
16218: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219: /* end confdefs.h. */
16220: namespace pcrecpp {
16221: class RE { static int no_arg; };
16222: int RE::no_arg;
16223: }
16224: int
16225: main ()
16226: {
16227:
16228: ;
16229: return 0;
16230: }
16231: _ACEOF
16232: if ac_fn_cxx_try_link "$LINENO"; then :
16233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16234: $as_echo "yes" >&6; };
16235: EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
16236: break;
16237: else
16238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16239: $as_echo "no" >&6; }
16240: fi
16241: rm -f core conftest.err conftest.$ac_objext \
16242: conftest$ac_exeext conftest.$ac_ext
16243: done
16244: LDFLAGS="$OLD_LDFLAGS"
16245:
16246: # We could be more clever here, given we're doing AC_SUBST with this
16247: # (eg set a var to be the name of the include file we want). But we're not
16248: # so it's easy to change back to 'regular' autoconf vars if we needed to.
16249:
16250: for ac_header in string
16251: do :
16252: ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
16253: if test "x$ac_cv_header_string" = xyes; then :
16254: cat >>confdefs.h <<_ACEOF
16255: #define HAVE_STRING 1
16256: _ACEOF
16257: pcre_have_cpp_headers="1"
16258: else
16259: pcre_have_cpp_headers="0"
16260: fi
16261:
16262: done
16263:
16264: for ac_header in bits/type_traits.h
16265: do :
16266: ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
16267: if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
16268: cat >>confdefs.h <<_ACEOF
16269: #define HAVE_BITS_TYPE_TRAITS_H 1
16270: _ACEOF
16271: pcre_have_bits_type_traits="1"
16272: else
16273: pcre_have_bits_type_traits="0"
16274: fi
16275:
16276: done
16277:
16278: for ac_header in type_traits.h
16279: do :
16280: ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
16281: if test "x$ac_cv_header_type_traits_h" = xyes; then :
16282: cat >>confdefs.h <<_ACEOF
16283: #define HAVE_TYPE_TRAITS_H 1
16284: _ACEOF
16285: pcre_have_type_traits="1"
16286: else
16287: pcre_have_type_traits="0"
16288: fi
16289:
16290: done
16291:
16292:
16293: # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
16294: # in a c++ context. This matters becuase strtoimax is C99 and may not
16295: # be supported by the C++ compiler.)
16296: # Figure out how to create a longlong from a string: strtoll and
16297: # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
16298: # strtoll, for instance, but it only takes 2 args instead of 3!
16299: # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
16300:
16301:
16302:
16303:
16304: have_strto_fn=0
16305: for fn in strtoq strtoll _strtoi64 strtoimax; do
16306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
16307: $as_echo_n "checking for $fn... " >&6; }
16308: if test "$fn" = strtoimax; then
16309: include=stdint.h
16310: else
16311: include=stdlib.h
16312: fi
16313: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314: /* end confdefs.h. */
16315: #include <$include>
16316: int
16317: main ()
16318: {
16319: char* e; return $fn("100", &e, 10)
16320: ;
16321: return 0;
16322: }
16323: _ACEOF
16324: if ac_fn_cxx_try_compile "$LINENO"; then :
16325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16326: $as_echo "yes" >&6; }
16327:
16328: cat >>confdefs.h <<_ACEOF
16329: #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
16330: _ACEOF
16331:
16332: have_strto_fn=1
16333: break
16334: else
16335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16336: $as_echo "no" >&6; }
16337: fi
16338: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339: done
16340:
16341: if test "$have_strto_fn" = 1; then
16342: ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
16343: if test "x$ac_cv_type_long_long" = xyes; then :
16344:
16345: cat >>confdefs.h <<_ACEOF
16346: #define HAVE_LONG_LONG 1
16347: _ACEOF
16348:
16349: pcre_have_long_long="1"
16350: else
16351: pcre_have_long_long="0"
16352: fi
16353:
16354: ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
16355: if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
16356:
16357: cat >>confdefs.h <<_ACEOF
16358: #define HAVE_UNSIGNED_LONG_LONG 1
16359: _ACEOF
16360:
16361: pcre_have_ulong_long="1"
16362: else
16363: pcre_have_ulong_long="0"
16364: fi
16365:
16366: else
16367: pcre_have_long_long="0"
16368: pcre_have_ulong_long="0"
16369: fi
16370:
16371:
16372:
16373: ac_ext=c
16374: ac_cpp='$CPP $CPPFLAGS'
16375: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16378:
16379: fi
16380: # Using AC_SUBST eliminates the need to include config.h in a public .h file
16381:
16382:
16383:
16384: # Conditional compilation
1.1.1.2 misho 16385: if test "x$enable_pcre8" = "xyes"; then
16386: WITH_PCRE8_TRUE=
16387: WITH_PCRE8_FALSE='#'
16388: else
16389: WITH_PCRE8_TRUE='#'
16390: WITH_PCRE8_FALSE=
16391: fi
16392:
16393: if test "x$enable_pcre16" = "xyes"; then
16394: WITH_PCRE16_TRUE=
16395: WITH_PCRE16_FALSE='#'
16396: else
16397: WITH_PCRE16_TRUE='#'
16398: WITH_PCRE16_FALSE=
16399: fi
16400:
1.1 misho 16401: if test "x$enable_cpp" = "xyes"; then
16402: WITH_PCRE_CPP_TRUE=
16403: WITH_PCRE_CPP_FALSE='#'
16404: else
16405: WITH_PCRE_CPP_TRUE='#'
16406: WITH_PCRE_CPP_FALSE=
16407: fi
16408:
16409: if test "x$enable_rebuild_chartables" = "xyes"; then
16410: WITH_REBUILD_CHARTABLES_TRUE=
16411: WITH_REBUILD_CHARTABLES_FALSE='#'
16412: else
16413: WITH_REBUILD_CHARTABLES_TRUE='#'
16414: WITH_REBUILD_CHARTABLES_FALSE=
16415: fi
16416:
16417: if test "x$enable_jit" = "xyes"; then
16418: WITH_JIT_TRUE=
16419: WITH_JIT_FALSE='#'
16420: else
16421: WITH_JIT_TRUE='#'
16422: WITH_JIT_FALSE=
16423: fi
16424:
1.1.1.2 misho 16425: if test "x$enable_utf" = "xyes"; then
16426: WITH_UTF_TRUE=
16427: WITH_UTF_FALSE='#'
1.1 misho 16428: else
1.1.1.2 misho 16429: WITH_UTF_TRUE='#'
16430: WITH_UTF_FALSE=
1.1 misho 16431: fi
16432:
16433:
16434: # Checks for typedefs, structures, and compiler characteristics.
16435:
16436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16437: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16438: if ${ac_cv_c_const+:} false; then :
16439: $as_echo_n "(cached) " >&6
16440: else
16441: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442: /* end confdefs.h. */
16443:
16444: int
16445: main ()
16446: {
16447: /* FIXME: Include the comments suggested by Paul. */
16448: #ifndef __cplusplus
16449: /* Ultrix mips cc rejects this. */
16450: typedef int charset[2];
16451: const charset cs;
16452: /* SunOS 4.1.1 cc rejects this. */
16453: char const *const *pcpcc;
16454: char **ppc;
16455: /* NEC SVR4.0.2 mips cc rejects this. */
16456: struct point {int x, y;};
16457: static struct point const zero = {0,0};
16458: /* AIX XL C 1.02.0.0 rejects this.
16459: It does not let you subtract one const X* pointer from another in
16460: an arm of an if-expression whose if-part is not a constant
16461: expression */
16462: const char *g = "string";
16463: pcpcc = &g + (g ? g-g : 0);
16464: /* HPUX 7.0 cc rejects these. */
16465: ++pcpcc;
16466: ppc = (char**) pcpcc;
16467: pcpcc = (char const *const *) ppc;
16468: { /* SCO 3.2v4 cc rejects this. */
16469: char *t;
16470: char const *s = 0 ? (char *) 0 : (char const *) 0;
16471:
16472: *t++ = 0;
16473: if (s) return 0;
16474: }
16475: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16476: int x[] = {25, 17};
16477: const int *foo = &x[0];
16478: ++foo;
16479: }
16480: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16481: typedef const int *iptr;
16482: iptr p = 0;
16483: ++p;
16484: }
16485: { /* AIX XL C 1.02.0.0 rejects this saying
16486: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16487: struct s { int j; const int *ap[3]; };
16488: struct s *b; b->j = 5;
16489: }
16490: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16491: const int foo = 10;
16492: if (!foo) return 0;
16493: }
16494: return !cs[0] && !zero.x;
16495: #endif
16496:
16497: ;
16498: return 0;
16499: }
16500: _ACEOF
16501: if ac_fn_c_try_compile "$LINENO"; then :
16502: ac_cv_c_const=yes
16503: else
16504: ac_cv_c_const=no
16505: fi
16506: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507: fi
16508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16509: $as_echo "$ac_cv_c_const" >&6; }
16510: if test $ac_cv_c_const = no; then
16511:
16512: $as_echo "#define const /**/" >>confdefs.h
16513:
16514: fi
16515:
16516: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16517: if test "x$ac_cv_type_size_t" = xyes; then :
16518:
16519: else
16520:
16521: cat >>confdefs.h <<_ACEOF
16522: #define size_t unsigned int
16523: _ACEOF
16524:
16525: fi
16526:
16527:
16528: # Checks for library functions.
16529:
16530: for ac_func in bcopy memmove strerror
16531: do :
16532: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16533: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16534: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16535: cat >>confdefs.h <<_ACEOF
16536: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16537: _ACEOF
16538:
16539: fi
16540: done
16541:
16542:
16543: # Check for the availability of libz (aka zlib)
16544:
16545: for ac_header in zlib.h
16546: do :
16547: ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16548: if test "x$ac_cv_header_zlib_h" = xyes; then :
16549: cat >>confdefs.h <<_ACEOF
16550: #define HAVE_ZLIB_H 1
16551: _ACEOF
16552: HAVE_ZLIB_H=1
16553: fi
16554:
16555: done
16556:
16557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
16558: $as_echo_n "checking for gzopen in -lz... " >&6; }
16559: if ${ac_cv_lib_z_gzopen+:} false; then :
16560: $as_echo_n "(cached) " >&6
16561: else
16562: ac_check_lib_save_LIBS=$LIBS
16563: LIBS="-lz $LIBS"
16564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565: /* end confdefs.h. */
16566:
16567: /* Override any GCC internal prototype to avoid an error.
16568: Use char because int might match the return type of a GCC
16569: builtin and then its argument prototype would still apply. */
16570: #ifdef __cplusplus
16571: extern "C"
16572: #endif
16573: char gzopen ();
16574: int
16575: main ()
16576: {
16577: return gzopen ();
16578: ;
16579: return 0;
16580: }
16581: _ACEOF
16582: if ac_fn_c_try_link "$LINENO"; then :
16583: ac_cv_lib_z_gzopen=yes
16584: else
16585: ac_cv_lib_z_gzopen=no
16586: fi
16587: rm -f core conftest.err conftest.$ac_objext \
16588: conftest$ac_exeext conftest.$ac_ext
16589: LIBS=$ac_check_lib_save_LIBS
16590: fi
16591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
16592: $as_echo "$ac_cv_lib_z_gzopen" >&6; }
16593: if test "x$ac_cv_lib_z_gzopen" = xyes; then :
16594: HAVE_LIBZ=1
16595: fi
16596:
16597:
16598: # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
16599: # as for libz. However, this had the following problem, diagnosed and fixed by
16600: # a user:
16601: #
16602: # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
16603: # under Win32.
16604: # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
16605: # therefore missing the function definition.
16606: # - The compiler thus generates a "C" signature for the test function.
16607: # - The linker fails to find the "C" function.
16608: # - PCRE fails to configure if asked to do so against libbz2.
16609: #
16610: # Solution:
16611: #
16612: # - Replace the AC_CHECK_LIB test with a custom test.
16613:
16614: for ac_header in bzlib.h
16615: do :
16616: ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
16617: if test "x$ac_cv_header_bzlib_h" = xyes; then :
16618: cat >>confdefs.h <<_ACEOF
16619: #define HAVE_BZLIB_H 1
16620: _ACEOF
16621: HAVE_BZLIB_H=1
16622: fi
16623:
16624: done
16625:
16626: # Original test
16627: # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
16628: #
16629: # Custom test follows
16630:
16631: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
16632: $as_echo_n "checking for libbz2... " >&6; }
16633: OLD_LIBS="$LIBS"
16634: LIBS="$LIBS -lbz2"
16635: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636: /* end confdefs.h. */
16637:
16638: #ifdef HAVE_BZLIB_H
16639: #include <bzlib.h>
16640: #endif
16641: int
16642: main ()
16643: {
16644: return (int)BZ2_bzopen("conftest", "rb");
16645: ;
16646: return 0;
16647: }
16648: _ACEOF
16649: if ac_fn_c_try_link "$LINENO"; then :
16650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16651: $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
16652: else
16653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654: $as_echo "no" >&6; }
16655: fi
16656: rm -f core conftest.err conftest.$ac_objext \
16657: conftest$ac_exeext conftest.$ac_ext
16658: LIBS="$OLD_LIBS"
16659:
16660: # Check for the availabiity of libreadline
16661:
1.1.1.3 ! misho 16662: if test "$enable_pcretest_libreadline" = "yes"; then
! 16663: for ac_header in readline/readline.h
1.1 misho 16664: do :
16665: ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
16666: if test "x$ac_cv_header_readline_readline_h" = xyes; then :
16667: cat >>confdefs.h <<_ACEOF
16668: #define HAVE_READLINE_READLINE_H 1
16669: _ACEOF
16670: HAVE_READLINE_H=1
16671: fi
16672:
16673: done
16674:
1.1.1.3 ! misho 16675: for ac_header in readline/history.h
1.1 misho 16676: do :
16677: ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
16678: if test "x$ac_cv_header_readline_history_h" = xyes; then :
16679: cat >>confdefs.h <<_ACEOF
16680: #define HAVE_READLINE_HISTORY_H 1
16681: _ACEOF
16682: HAVE_HISTORY_H=1
16683: fi
16684:
16685: done
16686:
1.1.1.3 ! misho 16687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1 misho 16688: $as_echo_n "checking for readline in -lreadline... " >&6; }
16689: if ${ac_cv_lib_readline_readline+:} false; then :
16690: $as_echo_n "(cached) " >&6
16691: else
16692: ac_check_lib_save_LIBS=$LIBS
16693: LIBS="-lreadline $LIBS"
16694: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695: /* end confdefs.h. */
16696:
16697: /* Override any GCC internal prototype to avoid an error.
16698: Use char because int might match the return type of a GCC
16699: builtin and then its argument prototype would still apply. */
16700: #ifdef __cplusplus
16701: extern "C"
16702: #endif
16703: char readline ();
16704: int
16705: main ()
16706: {
16707: return readline ();
16708: ;
16709: return 0;
16710: }
16711: _ACEOF
16712: if ac_fn_c_try_link "$LINENO"; then :
16713: ac_cv_lib_readline_readline=yes
16714: else
16715: ac_cv_lib_readline_readline=no
16716: fi
16717: rm -f core conftest.err conftest.$ac_objext \
16718: conftest$ac_exeext conftest.$ac_ext
16719: LIBS=$ac_check_lib_save_LIBS
16720: fi
16721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16722: $as_echo "$ac_cv_lib_readline_readline" >&6; }
16723: if test "x$ac_cv_lib_readline_readline" = xyes; then :
1.1.1.2 misho 16724: LIBREADLINE="-lreadline"
16725: else
16726: unset ac_cv_lib_readline_readline;
1.1.1.3 ! misho 16727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 16728: $as_echo_n "checking for readline in -lreadline... " >&6; }
16729: if ${ac_cv_lib_readline_readline+:} false; then :
16730: $as_echo_n "(cached) " >&6
16731: else
16732: ac_check_lib_save_LIBS=$LIBS
16733: LIBS="-lreadline -ltinfo $LIBS"
16734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735: /* end confdefs.h. */
16736:
16737: /* Override any GCC internal prototype to avoid an error.
16738: Use char because int might match the return type of a GCC
16739: builtin and then its argument prototype would still apply. */
16740: #ifdef __cplusplus
16741: extern "C"
16742: #endif
16743: char readline ();
16744: int
16745: main ()
16746: {
16747: return readline ();
16748: ;
16749: return 0;
16750: }
16751: _ACEOF
16752: if ac_fn_c_try_link "$LINENO"; then :
16753: ac_cv_lib_readline_readline=yes
16754: else
16755: ac_cv_lib_readline_readline=no
16756: fi
16757: rm -f core conftest.err conftest.$ac_objext \
16758: conftest$ac_exeext conftest.$ac_ext
16759: LIBS=$ac_check_lib_save_LIBS
16760: fi
16761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16762: $as_echo "$ac_cv_lib_readline_readline" >&6; }
16763: if test "x$ac_cv_lib_readline_readline" = xyes; then :
16764: LIBREADLINE="-ltinfo"
16765: else
16766: unset ac_cv_lib_readline_readline;
1.1.1.3 ! misho 16767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 16768: $as_echo_n "checking for readline in -lreadline... " >&6; }
16769: if ${ac_cv_lib_readline_readline+:} false; then :
16770: $as_echo_n "(cached) " >&6
16771: else
16772: ac_check_lib_save_LIBS=$LIBS
16773: LIBS="-lreadline -lcurses $LIBS"
16774: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775: /* end confdefs.h. */
16776:
16777: /* Override any GCC internal prototype to avoid an error.
16778: Use char because int might match the return type of a GCC
16779: builtin and then its argument prototype would still apply. */
16780: #ifdef __cplusplus
16781: extern "C"
16782: #endif
16783: char readline ();
16784: int
16785: main ()
16786: {
16787: return readline ();
16788: ;
16789: return 0;
16790: }
16791: _ACEOF
16792: if ac_fn_c_try_link "$LINENO"; then :
16793: ac_cv_lib_readline_readline=yes
16794: else
16795: ac_cv_lib_readline_readline=no
16796: fi
16797: rm -f core conftest.err conftest.$ac_objext \
16798: conftest$ac_exeext conftest.$ac_ext
16799: LIBS=$ac_check_lib_save_LIBS
16800: fi
16801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16802: $as_echo "$ac_cv_lib_readline_readline" >&6; }
16803: if test "x$ac_cv_lib_readline_readline" = xyes; then :
16804: LIBREADLINE="-lcurses"
16805: else
16806: unset ac_cv_lib_readline_readline;
1.1.1.3 ! misho 16807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 16808: $as_echo_n "checking for readline in -lreadline... " >&6; }
16809: if ${ac_cv_lib_readline_readline+:} false; then :
16810: $as_echo_n "(cached) " >&6
16811: else
16812: ac_check_lib_save_LIBS=$LIBS
16813: LIBS="-lreadline -lncurses $LIBS"
16814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815: /* end confdefs.h. */
16816:
16817: /* Override any GCC internal prototype to avoid an error.
16818: Use char because int might match the return type of a GCC
16819: builtin and then its argument prototype would still apply. */
16820: #ifdef __cplusplus
16821: extern "C"
16822: #endif
16823: char readline ();
16824: int
16825: main ()
16826: {
16827: return readline ();
16828: ;
16829: return 0;
16830: }
16831: _ACEOF
16832: if ac_fn_c_try_link "$LINENO"; then :
16833: ac_cv_lib_readline_readline=yes
16834: else
16835: ac_cv_lib_readline_readline=no
16836: fi
16837: rm -f core conftest.err conftest.$ac_objext \
16838: conftest$ac_exeext conftest.$ac_ext
16839: LIBS=$ac_check_lib_save_LIBS
16840: fi
16841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16842: $as_echo "$ac_cv_lib_readline_readline" >&6; }
16843: if test "x$ac_cv_lib_readline_readline" = xyes; then :
16844: LIBREADLINE="-lncurses"
16845: else
16846: unset ac_cv_lib_readline_readline;
1.1.1.3 ! misho 16847: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 16848: $as_echo_n "checking for readline in -lreadline... " >&6; }
16849: if ${ac_cv_lib_readline_readline+:} false; then :
16850: $as_echo_n "(cached) " >&6
16851: else
16852: ac_check_lib_save_LIBS=$LIBS
16853: LIBS="-lreadline -lncursesw $LIBS"
16854: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855: /* end confdefs.h. */
16856:
16857: /* Override any GCC internal prototype to avoid an error.
16858: Use char because int might match the return type of a GCC
16859: builtin and then its argument prototype would still apply. */
16860: #ifdef __cplusplus
16861: extern "C"
16862: #endif
16863: char readline ();
16864: int
16865: main ()
16866: {
16867: return readline ();
16868: ;
16869: return 0;
16870: }
16871: _ACEOF
16872: if ac_fn_c_try_link "$LINENO"; then :
16873: ac_cv_lib_readline_readline=yes
16874: else
16875: ac_cv_lib_readline_readline=no
16876: fi
16877: rm -f core conftest.err conftest.$ac_objext \
16878: conftest$ac_exeext conftest.$ac_ext
16879: LIBS=$ac_check_lib_save_LIBS
1.1 misho 16880: fi
1.1.1.2 misho 16881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16882: $as_echo "$ac_cv_lib_readline_readline" >&6; }
16883: if test "x$ac_cv_lib_readline_readline" = xyes; then :
16884: LIBREADLINE="-lncursesw"
16885: else
16886: unset ac_cv_lib_readline_readline;
1.1.1.3 ! misho 16887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 16888: $as_echo_n "checking for readline in -lreadline... " >&6; }
16889: if ${ac_cv_lib_readline_readline+:} false; then :
16890: $as_echo_n "(cached) " >&6
16891: else
16892: ac_check_lib_save_LIBS=$LIBS
16893: LIBS="-lreadline -ltermcap $LIBS"
16894: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895: /* end confdefs.h. */
1.1 misho 16896:
1.1.1.2 misho 16897: /* Override any GCC internal prototype to avoid an error.
16898: Use char because int might match the return type of a GCC
16899: builtin and then its argument prototype would still apply. */
16900: #ifdef __cplusplus
16901: extern "C"
16902: #endif
16903: char readline ();
16904: int
16905: main ()
16906: {
16907: return readline ();
16908: ;
16909: return 0;
16910: }
16911: _ACEOF
16912: if ac_fn_c_try_link "$LINENO"; then :
16913: ac_cv_lib_readline_readline=yes
16914: else
16915: ac_cv_lib_readline_readline=no
16916: fi
16917: rm -f core conftest.err conftest.$ac_objext \
16918: conftest$ac_exeext conftest.$ac_ext
16919: LIBS=$ac_check_lib_save_LIBS
16920: fi
16921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16922: $as_echo "$ac_cv_lib_readline_readline" >&6; }
16923: if test "x$ac_cv_lib_readline_readline" = xyes; then :
16924: LIBREADLINE="-ltermcap"
16925: else
16926: LIBREADLINE=""
16927: fi
16928:
16929: fi
16930:
16931: fi
16932:
16933: fi
16934:
16935: fi
16936:
16937: fi
16938:
16939:
1.1.1.3 ! misho 16940: if test -n "$LIBREADLINE"; then
! 16941: if test "$LIBREADLINE" != "-lreadline"; then
! 16942: echo "-lreadline needs $LIBREADLINE"
! 16943: LIBREADLINE="-lreadline $LIBREADLINE"
! 16944: fi
! 16945: fi
! 16946: fi
! 16947:
! 16948:
! 16949: # Check for the availability of libedit. Different distributions put its
! 16950: # headers in different places. Try to cover the most common ones.
! 16951:
! 16952: if test "$enable_pcretest_libedit" = "yes"; then
! 16953: for ac_header in editline/readline.h
! 16954: do :
! 16955: ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
! 16956: if test "x$ac_cv_header_editline_readline_h" = xyes; then :
! 16957: cat >>confdefs.h <<_ACEOF
! 16958: #define HAVE_EDITLINE_READLINE_H 1
! 16959: _ACEOF
! 16960: HAVE_EDITLINE_READLINE_H=1
! 16961: else
! 16962: for ac_header in edit/readline/readline.h
! 16963: do :
! 16964: ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
! 16965: if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
! 16966: cat >>confdefs.h <<_ACEOF
! 16967: #define HAVE_EDIT_READLINE_READLINE_H 1
! 16968: _ACEOF
! 16969: HAVE_READLINE_READLINE_H=1
! 16970: else
! 16971: for ac_header in readline/readline.h
! 16972: do :
! 16973: ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
! 16974: if test "x$ac_cv_header_readline_readline_h" = xyes; then :
! 16975: cat >>confdefs.h <<_ACEOF
! 16976: #define HAVE_READLINE_READLINE_H 1
! 16977: _ACEOF
! 16978: HAVE_READLINE_READLINE_H=1
! 16979: fi
! 16980:
! 16981: done
! 16982:
! 16983: fi
! 16984:
! 16985: done
! 16986:
! 16987: fi
! 16988:
! 16989: done
! 16990:
! 16991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
! 16992: $as_echo_n "checking for readline in -ledit... " >&6; }
! 16993: if ${ac_cv_lib_edit_readline+:} false; then :
! 16994: $as_echo_n "(cached) " >&6
! 16995: else
! 16996: ac_check_lib_save_LIBS=$LIBS
! 16997: LIBS="-ledit $LIBS"
! 16998: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 16999: /* end confdefs.h. */
! 17000:
! 17001: /* Override any GCC internal prototype to avoid an error.
! 17002: Use char because int might match the return type of a GCC
! 17003: builtin and then its argument prototype would still apply. */
! 17004: #ifdef __cplusplus
! 17005: extern "C"
! 17006: #endif
! 17007: char readline ();
! 17008: int
! 17009: main ()
! 17010: {
! 17011: return readline ();
! 17012: ;
! 17013: return 0;
! 17014: }
! 17015: _ACEOF
! 17016: if ac_fn_c_try_link "$LINENO"; then :
! 17017: ac_cv_lib_edit_readline=yes
! 17018: else
! 17019: ac_cv_lib_edit_readline=no
! 17020: fi
! 17021: rm -f core conftest.err conftest.$ac_objext \
! 17022: conftest$ac_exeext conftest.$ac_ext
! 17023: LIBS=$ac_check_lib_save_LIBS
! 17024: fi
! 17025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
! 17026: $as_echo "$ac_cv_lib_edit_readline" >&6; }
! 17027: if test "x$ac_cv_lib_edit_readline" = xyes; then :
! 17028: LIBEDIT="-ledit"
! 17029: fi
! 17030:
1.1.1.2 misho 17031: fi
1.1 misho 17032:
17033: # This facilitates -ansi builds under Linux
17034:
17035: PCRE_STATIC_CFLAG=""
17036: if test "x$enable_shared" = "xno" ; then
17037:
17038: $as_echo "#define PCRE_STATIC 1" >>confdefs.h
17039:
17040: PCRE_STATIC_CFLAG="-DPCRE_STATIC"
17041: fi
17042:
17043:
17044: # Here is where pcre specific defines are handled
17045:
1.1.1.2 misho 17046: if test "$enable_pcre8" = "yes"; then
17047:
17048: $as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
17049:
17050: fi
17051:
17052: if test "$enable_pcre16" = "yes"; then
17053:
17054: $as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
17055:
17056: fi
17057:
1.1 misho 17058: if test "$enable_jit" = "yes"; then
17059:
17060: $as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
17061:
17062: else
17063: enable_pcregrep_jit="no"
17064: fi
17065:
17066: if test "$enable_pcregrep_jit" = "yes"; then
17067:
17068: $as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
17069:
17070: fi
17071:
1.1.1.2 misho 17072: if test "$enable_utf" = "yes"; then
1.1 misho 17073:
1.1.1.2 misho 17074: $as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
1.1 misho 17075:
17076: fi
17077:
17078: if test "$enable_unicode_properties" = "yes"; then
17079:
17080: $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
17081:
17082: fi
17083:
17084: if test "$enable_stack_for_recursion" = "no"; then
17085:
17086: $as_echo "#define NO_RECURSE /**/" >>confdefs.h
17087:
17088: fi
17089:
17090: if test "$enable_pcregrep_libz" = "yes"; then
17091:
17092: $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
17093:
17094: fi
17095:
17096: if test "$enable_pcregrep_libbz2" = "yes"; then
17097:
17098: $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
17099:
17100: fi
17101:
17102: if test $with_pcregrep_bufsize -lt 8192 ; then
17103: with_pcregrep_bufsize="8192"
17104: fi
17105:
17106:
17107: cat >>confdefs.h <<_ACEOF
17108: #define PCREGREP_BUFSIZE $with_pcregrep_bufsize
17109: _ACEOF
17110:
17111:
1.1.1.3 ! misho 17112: if test "$enable_pcretest_libedit" = "yes"; then
! 17113:
! 17114: $as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
! 17115:
! 17116: LIBREADLINE="$LIBEDIT"
! 17117: elif test "$enable_pcretest_libreadline" = "yes"; then
1.1 misho 17118:
17119: $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
17120:
17121: fi
17122:
17123:
17124: cat >>confdefs.h <<_ACEOF
17125: #define NEWLINE $ac_pcre_newline_value
17126: _ACEOF
17127:
17128:
17129: if test "$enable_bsr_anycrlf" = "yes"; then
17130:
17131: $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
17132:
17133: fi
17134:
17135:
17136: cat >>confdefs.h <<_ACEOF
17137: #define LINK_SIZE $with_link_size
17138: _ACEOF
17139:
17140:
17141:
17142: cat >>confdefs.h <<_ACEOF
17143: #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
17144: _ACEOF
17145:
17146:
17147:
17148: cat >>confdefs.h <<_ACEOF
17149: #define MATCH_LIMIT $with_match_limit
17150: _ACEOF
17151:
17152:
17153:
17154: cat >>confdefs.h <<_ACEOF
17155: #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
17156: _ACEOF
17157:
17158:
17159:
17160: $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
17161:
17162:
17163:
17164: $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
17165:
17166:
17167:
17168:
17169: if test "$enable_ebcdic" = "yes"; then
17170:
17171: cat >>confdefs.h <<_ACEOF
17172: #define EBCDIC /**/
17173: _ACEOF
17174:
17175: fi
17176:
17177: # Platform specific issues
17178: NO_UNDEFINED=
17179: EXPORT_ALL_SYMBOLS=
17180: case $host_os in
17181: cygwin* | mingw* )
17182: if test X"$enable_shared" = Xyes; then
17183: NO_UNDEFINED="-no-undefined"
17184: EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
17185: fi
17186: ;;
17187: esac
17188:
17189: # The extra LDFLAGS for each particular library
17190: # (Note: The libpcre*_version bits are m4 variables, assigned above)
17191:
17192: EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
1.1.1.3 ! misho 17193: $NO_UNDEFINED -version-info 1:1:0"
1.1.1.2 misho 17194:
17195: EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
1.1.1.3 ! misho 17196: $NO_UNDEFINED -version-info 0:1:0"
1.1 misho 17197:
17198: EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
1.1.1.3 ! misho 17199: $NO_UNDEFINED -version-info 0:1:0"
1.1 misho 17200:
17201: EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
17202: $NO_UNDEFINED -version-info 0:0:0 \
17203: $EXPORT_ALL_SYMBOLS"
17204:
17205:
17206:
17207:
17208:
1.1.1.2 misho 17209:
17210: # When we run 'make distcheck', use these arguments. Turning off compiler
17211: # optimization makes it run faster.
17212: DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-jit --enable-cpp --enable-unicode-properties"
1.1 misho 17213:
17214:
17215: # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
17216: # specified, the relevant library is available.
17217:
17218: if test "$enable_pcregrep_libz" = "yes"; then
17219: if test "$HAVE_ZLIB_H" != "1"; then
17220: echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
17221: exit 1
17222: fi
17223: if test "$HAVE_LIBZ" != "1"; then
17224: echo "** Cannot --enable-pcregrep-libz because libz was not found"
17225: exit 1
17226: fi
17227: LIBZ="-lz"
17228: fi
17229:
17230:
17231: if test "$enable_pcregrep_libbz2" = "yes"; then
17232: if test "$HAVE_BZLIB_H" != "1"; then
17233: echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
17234: exit 1
17235: fi
17236: if test "$HAVE_LIBBZ2" != "1"; then
17237: echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
17238: exit 1
17239: fi
17240: LIBBZ2="-lbz2"
17241: fi
17242:
17243:
17244: # Similarly for --enable-pcretest-readline
17245:
1.1.1.3 ! misho 17246: if test "$enable_pcretest_libedit" = "yes"; then
! 17247: if test "$enable_pcretest_libreadline" = "yes"; then
! 17248: echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
! 17249: exit 1
! 17250: fi
! 17251: if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
! 17252: "$HAVE_READLINE_READLINE_H" != "1"; then
! 17253: echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
! 17254: echo "** nor readline/readline.h was found."
! 17255: exit 1
! 17256: fi
! 17257: if test -z "$LIBEDIT"; then
! 17258: echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
! 17259: exit 1
! 17260: fi
! 17261: fi
! 17262:
1.1 misho 17263: if test "$enable_pcretest_libreadline" = "yes"; then
17264: if test "$HAVE_READLINE_H" != "1"; then
17265: echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
17266: exit 1
17267: fi
17268: if test "$HAVE_HISTORY_H" != "1"; then
17269: echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
17270: exit 1
17271: fi
1.1.1.2 misho 17272: if test -z "$LIBREADLINE"; then
17273: echo "** Cannot --enable-pcretest-readline because readline library was not found."
17274: exit 1
17275: fi
1.1 misho 17276: fi
17277:
17278: # Produce these files, in addition to config.h.
1.1.1.2 misho 17279: ac_config_files="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
1.1 misho 17280:
17281:
17282: # Make the generated script files executable.
17283: ac_config_commands="$ac_config_commands script-chmod"
17284:
17285:
17286: # Make sure that pcre_chartables.c is removed in case the method for
17287: # creating it was changed by reconfiguration.
17288: ac_config_commands="$ac_config_commands delete-old-chartables"
17289:
17290:
17291: cat >confcache <<\_ACEOF
17292: # This file is a shell script that caches the results of configure
17293: # tests run on this system so they can be shared between configure
17294: # scripts and configure runs, see configure's option --config-cache.
17295: # It is not useful on other systems. If it contains results you don't
17296: # want to keep, you may remove or edit it.
17297: #
17298: # config.status only pays attention to the cache file if you give it
17299: # the --recheck option to rerun configure.
17300: #
17301: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17302: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17303: # following values.
17304:
17305: _ACEOF
17306:
17307: # The following way of writing the cache mishandles newlines in values,
17308: # but we know of no workaround that is simple, portable, and efficient.
17309: # So, we kill variables containing newlines.
17310: # Ultrix sh set writes to stderr and can't be redirected directly,
17311: # and sets the high bit in the cache file unless we assign to the vars.
17312: (
17313: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17314: eval ac_val=\$$ac_var
17315: case $ac_val in #(
17316: *${as_nl}*)
17317: case $ac_var in #(
17318: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17319: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17320: esac
17321: case $ac_var in #(
17322: _ | IFS | as_nl) ;; #(
17323: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17324: *) { eval $ac_var=; unset $ac_var;} ;;
17325: esac ;;
17326: esac
17327: done
17328:
17329: (set) 2>&1 |
17330: case $as_nl`(ac_space=' '; set) 2>&1` in #(
17331: *${as_nl}ac_space=\ *)
17332: # `set' does not quote correctly, so add quotes: double-quote
17333: # substitution turns \\\\ into \\, and sed turns \\ into \.
17334: sed -n \
17335: "s/'/'\\\\''/g;
17336: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17337: ;; #(
17338: *)
17339: # `set' quotes correctly as required by POSIX, so do not add quotes.
17340: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17341: ;;
17342: esac |
17343: sort
17344: ) |
17345: sed '
17346: /^ac_cv_env_/b end
17347: t clear
17348: :clear
17349: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17350: t end
17351: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17352: :end' >>confcache
17353: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17354: if test -w "$cache_file"; then
17355: if test "x$cache_file" != "x/dev/null"; then
17356: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17357: $as_echo "$as_me: updating cache $cache_file" >&6;}
17358: if test ! -f "$cache_file" || test -h "$cache_file"; then
17359: cat confcache >"$cache_file"
17360: else
17361: case $cache_file in #(
17362: */* | ?:*)
17363: mv -f confcache "$cache_file"$$ &&
17364: mv -f "$cache_file"$$ "$cache_file" ;; #(
17365: *)
17366: mv -f confcache "$cache_file" ;;
17367: esac
17368: fi
17369: fi
17370: else
17371: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17372: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17373: fi
17374: fi
17375: rm -f confcache
17376:
17377: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17378: # Let make expand exec_prefix.
17379: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17380:
17381: DEFS=-DHAVE_CONFIG_H
17382:
17383: ac_libobjs=
17384: ac_ltlibobjs=
17385: U=
17386: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17387: # 1. Remove the extension, and $U if already installed.
17388: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17389: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17390: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17391: # will be set to the directory where LIBOBJS objects are built.
17392: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17393: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17394: done
17395: LIBOBJS=$ac_libobjs
17396:
17397: LTLIBOBJS=$ac_ltlibobjs
17398:
17399:
17400: if test -n "$EXEEXT"; then
17401: am__EXEEXT_TRUE=
17402: am__EXEEXT_FALSE='#'
17403: else
17404: am__EXEEXT_TRUE='#'
17405: am__EXEEXT_FALSE=
17406: fi
17407:
17408: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17409: as_fn_error $? "conditional \"AMDEP\" was never defined.
17410: Usually this means the macro was only invoked conditionally." "$LINENO" 5
17411: fi
17412: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17413: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17414: Usually this means the macro was only invoked conditionally." "$LINENO" 5
17415: fi
17416: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17417: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17418: Usually this means the macro was only invoked conditionally." "$LINENO" 5
17419: fi
1.1.1.2 misho 17420: if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
17421: as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
17422: Usually this means the macro was only invoked conditionally." "$LINENO" 5
17423: fi
17424: if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
17425: as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
17426: Usually this means the macro was only invoked conditionally." "$LINENO" 5
17427: fi
1.1 misho 17428: if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
17429: as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
17430: Usually this means the macro was only invoked conditionally." "$LINENO" 5
17431: fi
17432: if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
17433: as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
17434: Usually this means the macro was only invoked conditionally." "$LINENO" 5
17435: fi
17436: if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
17437: as_fn_error $? "conditional \"WITH_JIT\" was never defined.
17438: Usually this means the macro was only invoked conditionally." "$LINENO" 5
17439: fi
1.1.1.2 misho 17440: if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
17441: as_fn_error $? "conditional \"WITH_UTF\" was never defined.
1.1 misho 17442: Usually this means the macro was only invoked conditionally." "$LINENO" 5
17443: fi
17444:
17445: : "${CONFIG_STATUS=./config.status}"
17446: ac_write_fail=0
17447: ac_clean_files_save=$ac_clean_files
17448: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17449: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17450: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17451: as_write_fail=0
17452: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17453: #! $SHELL
17454: # Generated by $as_me.
17455: # Run this file to recreate the current configuration.
17456: # Compiler output produced by configure, useful for debugging
17457: # configure, is in config.log if it exists.
17458:
17459: debug=false
17460: ac_cs_recheck=false
17461: ac_cs_silent=false
17462:
17463: SHELL=\${CONFIG_SHELL-$SHELL}
17464: export SHELL
17465: _ASEOF
17466: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17467: ## -------------------- ##
17468: ## M4sh Initialization. ##
17469: ## -------------------- ##
17470:
17471: # Be more Bourne compatible
17472: DUALCASE=1; export DUALCASE # for MKS sh
17473: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17474: emulate sh
17475: NULLCMD=:
17476: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17477: # is contrary to our usage. Disable this feature.
17478: alias -g '${1+"$@"}'='"$@"'
17479: setopt NO_GLOB_SUBST
17480: else
17481: case `(set -o) 2>/dev/null` in #(
17482: *posix*) :
17483: set -o posix ;; #(
17484: *) :
17485: ;;
17486: esac
17487: fi
17488:
17489:
17490: as_nl='
17491: '
17492: export as_nl
17493: # Printing a long string crashes Solaris 7 /usr/bin/printf.
17494: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17495: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17496: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17497: # Prefer a ksh shell builtin over an external printf program on Solaris,
17498: # but without wasting forks for bash or zsh.
17499: if test -z "$BASH_VERSION$ZSH_VERSION" \
17500: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17501: as_echo='print -r --'
17502: as_echo_n='print -rn --'
17503: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17504: as_echo='printf %s\n'
17505: as_echo_n='printf %s'
17506: else
17507: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17508: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17509: as_echo_n='/usr/ucb/echo -n'
17510: else
17511: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17512: as_echo_n_body='eval
17513: arg=$1;
17514: case $arg in #(
17515: *"$as_nl"*)
17516: expr "X$arg" : "X\\(.*\\)$as_nl";
17517: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17518: esac;
17519: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17520: '
17521: export as_echo_n_body
17522: as_echo_n='sh -c $as_echo_n_body as_echo'
17523: fi
17524: export as_echo_body
17525: as_echo='sh -c $as_echo_body as_echo'
17526: fi
17527:
17528: # The user is always right.
17529: if test "${PATH_SEPARATOR+set}" != set; then
17530: PATH_SEPARATOR=:
17531: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17532: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17533: PATH_SEPARATOR=';'
17534: }
17535: fi
17536:
17537:
17538: # IFS
17539: # We need space, tab and new line, in precisely that order. Quoting is
17540: # there to prevent editors from complaining about space-tab.
17541: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17542: # splitting by setting IFS to empty value.)
17543: IFS=" "" $as_nl"
17544:
17545: # Find who we are. Look in the path if we contain no directory separator.
17546: as_myself=
17547: case $0 in #((
17548: *[\\/]* ) as_myself=$0 ;;
17549: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17550: for as_dir in $PATH
17551: do
17552: IFS=$as_save_IFS
17553: test -z "$as_dir" && as_dir=.
17554: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17555: done
17556: IFS=$as_save_IFS
17557:
17558: ;;
17559: esac
17560: # We did not find ourselves, most probably we were run as `sh COMMAND'
17561: # in which case we are not to be found in the path.
17562: if test "x$as_myself" = x; then
17563: as_myself=$0
17564: fi
17565: if test ! -f "$as_myself"; then
17566: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17567: exit 1
17568: fi
17569:
17570: # Unset variables that we do not need and which cause bugs (e.g. in
17571: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17572: # suppresses any "Segmentation fault" message there. '((' could
17573: # trigger a bug in pdksh 5.2.14.
17574: for as_var in BASH_ENV ENV MAIL MAILPATH
17575: do eval test x\${$as_var+set} = xset \
17576: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17577: done
17578: PS1='$ '
17579: PS2='> '
17580: PS4='+ '
17581:
17582: # NLS nuisances.
17583: LC_ALL=C
17584: export LC_ALL
17585: LANGUAGE=C
17586: export LANGUAGE
17587:
17588: # CDPATH.
17589: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17590:
17591:
17592: # as_fn_error STATUS ERROR [LINENO LOG_FD]
17593: # ----------------------------------------
17594: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17595: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17596: # script with STATUS, using 1 if that was 0.
17597: as_fn_error ()
17598: {
17599: as_status=$1; test $as_status -eq 0 && as_status=1
17600: if test "$4"; then
17601: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17602: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17603: fi
17604: $as_echo "$as_me: error: $2" >&2
17605: as_fn_exit $as_status
17606: } # as_fn_error
17607:
17608:
17609: # as_fn_set_status STATUS
17610: # -----------------------
17611: # Set $? to STATUS, without forking.
17612: as_fn_set_status ()
17613: {
17614: return $1
17615: } # as_fn_set_status
17616:
17617: # as_fn_exit STATUS
17618: # -----------------
17619: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17620: as_fn_exit ()
17621: {
17622: set +e
17623: as_fn_set_status $1
17624: exit $1
17625: } # as_fn_exit
17626:
17627: # as_fn_unset VAR
17628: # ---------------
17629: # Portably unset VAR.
17630: as_fn_unset ()
17631: {
17632: { eval $1=; unset $1;}
17633: }
17634: as_unset=as_fn_unset
17635: # as_fn_append VAR VALUE
17636: # ----------------------
17637: # Append the text in VALUE to the end of the definition contained in VAR. Take
17638: # advantage of any shell optimizations that allow amortized linear growth over
17639: # repeated appends, instead of the typical quadratic growth present in naive
17640: # implementations.
17641: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17642: eval 'as_fn_append ()
17643: {
17644: eval $1+=\$2
17645: }'
17646: else
17647: as_fn_append ()
17648: {
17649: eval $1=\$$1\$2
17650: }
17651: fi # as_fn_append
17652:
17653: # as_fn_arith ARG...
17654: # ------------------
17655: # Perform arithmetic evaluation on the ARGs, and store the result in the
17656: # global $as_val. Take advantage of shells that can avoid forks. The arguments
17657: # must be portable across $(()) and expr.
17658: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17659: eval 'as_fn_arith ()
17660: {
17661: as_val=$(( $* ))
17662: }'
17663: else
17664: as_fn_arith ()
17665: {
17666: as_val=`expr "$@" || test $? -eq 1`
17667: }
17668: fi # as_fn_arith
17669:
17670:
17671: if expr a : '\(a\)' >/dev/null 2>&1 &&
17672: test "X`expr 00001 : '.*\(...\)'`" = X001; then
17673: as_expr=expr
17674: else
17675: as_expr=false
17676: fi
17677:
17678: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17679: as_basename=basename
17680: else
17681: as_basename=false
17682: fi
17683:
17684: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17685: as_dirname=dirname
17686: else
17687: as_dirname=false
17688: fi
17689:
17690: as_me=`$as_basename -- "$0" ||
17691: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17692: X"$0" : 'X\(//\)$' \| \
17693: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17694: $as_echo X/"$0" |
17695: sed '/^.*\/\([^/][^/]*\)\/*$/{
17696: s//\1/
17697: q
17698: }
17699: /^X\/\(\/\/\)$/{
17700: s//\1/
17701: q
17702: }
17703: /^X\/\(\/\).*/{
17704: s//\1/
17705: q
17706: }
17707: s/.*/./; q'`
17708:
17709: # Avoid depending upon Character Ranges.
17710: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17711: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17712: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17713: as_cr_digits='0123456789'
17714: as_cr_alnum=$as_cr_Letters$as_cr_digits
17715:
17716: ECHO_C= ECHO_N= ECHO_T=
17717: case `echo -n x` in #(((((
17718: -n*)
17719: case `echo 'xy\c'` in
17720: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17721: xy) ECHO_C='\c';;
17722: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17723: ECHO_T=' ';;
17724: esac;;
17725: *)
17726: ECHO_N='-n';;
17727: esac
17728:
17729: rm -f conf$$ conf$$.exe conf$$.file
17730: if test -d conf$$.dir; then
17731: rm -f conf$$.dir/conf$$.file
17732: else
17733: rm -f conf$$.dir
17734: mkdir conf$$.dir 2>/dev/null
17735: fi
17736: if (echo >conf$$.file) 2>/dev/null; then
17737: if ln -s conf$$.file conf$$ 2>/dev/null; then
17738: as_ln_s='ln -s'
17739: # ... but there are two gotchas:
17740: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17741: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17742: # In both cases, we have to default to `cp -p'.
17743: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17744: as_ln_s='cp -p'
17745: elif ln conf$$.file conf$$ 2>/dev/null; then
17746: as_ln_s=ln
17747: else
17748: as_ln_s='cp -p'
17749: fi
17750: else
17751: as_ln_s='cp -p'
17752: fi
17753: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17754: rmdir conf$$.dir 2>/dev/null
17755:
17756:
17757: # as_fn_mkdir_p
17758: # -------------
17759: # Create "$as_dir" as a directory, including parents if necessary.
17760: as_fn_mkdir_p ()
17761: {
17762:
17763: case $as_dir in #(
17764: -*) as_dir=./$as_dir;;
17765: esac
17766: test -d "$as_dir" || eval $as_mkdir_p || {
17767: as_dirs=
17768: while :; do
17769: case $as_dir in #(
17770: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17771: *) as_qdir=$as_dir;;
17772: esac
17773: as_dirs="'$as_qdir' $as_dirs"
17774: as_dir=`$as_dirname -- "$as_dir" ||
17775: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17776: X"$as_dir" : 'X\(//\)[^/]' \| \
17777: X"$as_dir" : 'X\(//\)$' \| \
17778: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17779: $as_echo X"$as_dir" |
17780: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17781: s//\1/
17782: q
17783: }
17784: /^X\(\/\/\)[^/].*/{
17785: s//\1/
17786: q
17787: }
17788: /^X\(\/\/\)$/{
17789: s//\1/
17790: q
17791: }
17792: /^X\(\/\).*/{
17793: s//\1/
17794: q
17795: }
17796: s/.*/./; q'`
17797: test -d "$as_dir" && break
17798: done
17799: test -z "$as_dirs" || eval "mkdir $as_dirs"
17800: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17801:
17802:
17803: } # as_fn_mkdir_p
17804: if mkdir -p . 2>/dev/null; then
17805: as_mkdir_p='mkdir -p "$as_dir"'
17806: else
17807: test -d ./-p && rmdir ./-p
17808: as_mkdir_p=false
17809: fi
17810:
17811: if test -x / >/dev/null 2>&1; then
17812: as_test_x='test -x'
17813: else
17814: if ls -dL / >/dev/null 2>&1; then
17815: as_ls_L_option=L
17816: else
17817: as_ls_L_option=
17818: fi
17819: as_test_x='
17820: eval sh -c '\''
17821: if test -d "$1"; then
17822: test -d "$1/.";
17823: else
17824: case $1 in #(
17825: -*)set "./$1";;
17826: esac;
17827: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17828: ???[sx]*):;;*)false;;esac;fi
17829: '\'' sh
17830: '
17831: fi
17832: as_executable_p=$as_test_x
17833:
17834: # Sed expression to map a string onto a valid CPP name.
17835: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17836:
17837: # Sed expression to map a string onto a valid variable name.
17838: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17839:
17840:
17841: exec 6>&1
17842: ## ----------------------------------- ##
17843: ## Main body of $CONFIG_STATUS script. ##
17844: ## ----------------------------------- ##
17845: _ASEOF
17846: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17847:
17848: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17849: # Save the log message, to keep $0 and so on meaningful, and to
17850: # report actual input values of CONFIG_FILES etc. instead of their
17851: # values after options handling.
17852: ac_log="
1.1.1.3 ! misho 17853: This file was extended by PCRE $as_me 8.31, which was
1.1 misho 17854: generated by GNU Autoconf 2.68. Invocation command line was
17855:
17856: CONFIG_FILES = $CONFIG_FILES
17857: CONFIG_HEADERS = $CONFIG_HEADERS
17858: CONFIG_LINKS = $CONFIG_LINKS
17859: CONFIG_COMMANDS = $CONFIG_COMMANDS
17860: $ $0 $@
17861:
17862: on `(hostname || uname -n) 2>/dev/null | sed 1q`
17863: "
17864:
17865: _ACEOF
17866:
17867: case $ac_config_files in *"
17868: "*) set x $ac_config_files; shift; ac_config_files=$*;;
17869: esac
17870:
17871: case $ac_config_headers in *"
17872: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17873: esac
17874:
17875:
17876: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17877: # Files that config.status was made for.
17878: config_files="$ac_config_files"
17879: config_headers="$ac_config_headers"
17880: config_commands="$ac_config_commands"
17881:
17882: _ACEOF
17883:
17884: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17885: ac_cs_usage="\
17886: \`$as_me' instantiates files and other configuration actions
17887: from templates according to the current configuration. Unless the files
17888: and actions are specified as TAGs, all are instantiated by default.
17889:
17890: Usage: $0 [OPTION]... [TAG]...
17891:
17892: -h, --help print this help, then exit
17893: -V, --version print version number and configuration settings, then exit
17894: --config print configuration, then exit
17895: -q, --quiet, --silent
17896: do not print progress messages
17897: -d, --debug don't remove temporary files
17898: --recheck update $as_me by reconfiguring in the same conditions
17899: --file=FILE[:TEMPLATE]
17900: instantiate the configuration file FILE
17901: --header=FILE[:TEMPLATE]
17902: instantiate the configuration header FILE
17903:
17904: Configuration files:
17905: $config_files
17906:
17907: Configuration headers:
17908: $config_headers
17909:
17910: Configuration commands:
17911: $config_commands
17912:
17913: Report bugs to the package provider."
17914:
17915: _ACEOF
17916: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17917: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17918: ac_cs_version="\\
1.1.1.3 ! misho 17919: PCRE config.status 8.31
1.1 misho 17920: configured by $0, generated by GNU Autoconf 2.68,
17921: with options \\"\$ac_cs_config\\"
17922:
17923: Copyright (C) 2010 Free Software Foundation, Inc.
17924: This config.status script is free software; the Free Software Foundation
17925: gives unlimited permission to copy, distribute and modify it."
17926:
17927: ac_pwd='$ac_pwd'
17928: srcdir='$srcdir'
17929: INSTALL='$INSTALL'
17930: MKDIR_P='$MKDIR_P'
17931: AWK='$AWK'
17932: test -n "\$AWK" || AWK=awk
17933: _ACEOF
17934:
17935: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17936: # The default lists apply if the user does not specify any file.
17937: ac_need_defaults=:
17938: while test $# != 0
17939: do
17940: case $1 in
17941: --*=?*)
17942: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17943: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17944: ac_shift=:
17945: ;;
17946: --*=)
17947: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17948: ac_optarg=
17949: ac_shift=:
17950: ;;
17951: *)
17952: ac_option=$1
17953: ac_optarg=$2
17954: ac_shift=shift
17955: ;;
17956: esac
17957:
17958: case $ac_option in
17959: # Handling of the options.
17960: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17961: ac_cs_recheck=: ;;
17962: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17963: $as_echo "$ac_cs_version"; exit ;;
17964: --config | --confi | --conf | --con | --co | --c )
17965: $as_echo "$ac_cs_config"; exit ;;
17966: --debug | --debu | --deb | --de | --d | -d )
17967: debug=: ;;
17968: --file | --fil | --fi | --f )
17969: $ac_shift
17970: case $ac_optarg in
17971: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17972: '') as_fn_error $? "missing file argument" ;;
17973: esac
17974: as_fn_append CONFIG_FILES " '$ac_optarg'"
17975: ac_need_defaults=false;;
17976: --header | --heade | --head | --hea )
17977: $ac_shift
17978: case $ac_optarg in
17979: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17980: esac
17981: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17982: ac_need_defaults=false;;
17983: --he | --h)
17984: # Conflict between --help and --header
17985: as_fn_error $? "ambiguous option: \`$1'
17986: Try \`$0 --help' for more information.";;
17987: --help | --hel | -h )
17988: $as_echo "$ac_cs_usage"; exit ;;
17989: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17990: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17991: ac_cs_silent=: ;;
17992:
17993: # This is an error.
17994: -*) as_fn_error $? "unrecognized option: \`$1'
17995: Try \`$0 --help' for more information." ;;
17996:
17997: *) as_fn_append ac_config_targets " $1"
17998: ac_need_defaults=false ;;
17999:
18000: esac
18001: shift
18002: done
18003:
18004: ac_configure_extra_args=
18005:
18006: if $ac_cs_silent; then
18007: exec 6>/dev/null
18008: ac_configure_extra_args="$ac_configure_extra_args --silent"
18009: fi
18010:
18011: _ACEOF
18012: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18013: if \$ac_cs_recheck; then
18014: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18015: shift
18016: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18017: CONFIG_SHELL='$SHELL'
18018: export CONFIG_SHELL
18019: exec "\$@"
18020: fi
18021:
18022: _ACEOF
18023: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18024: exec 5>>config.log
18025: {
18026: echo
18027: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18028: ## Running $as_me. ##
18029: _ASBOX
18030: $as_echo "$ac_log"
18031: } >&5
18032:
18033: _ACEOF
18034: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18035: #
18036: # INIT-COMMANDS
18037: #
18038: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18039:
18040:
18041: # The HP-UX ksh and POSIX shell print the target directory to stdout
18042: # if CDPATH is set.
18043: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18044:
18045: sed_quote_subst='$sed_quote_subst'
18046: double_quote_subst='$double_quote_subst'
18047: delay_variable_subst='$delay_variable_subst'
18048: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18049: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18050: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18051: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18052: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18053: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18054: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18055: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18056: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18057: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18058: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18059: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18060: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18061: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18062: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18063: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18064: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18065: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18066: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18067: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18068: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18069: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18070: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18071: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18072: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18073: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18074: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18075: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18076: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18077: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18078: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18079: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18080: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18081: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18082: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18083: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18084: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18085: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18086: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18087: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18088: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18089: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18090: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18091: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18092: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18093: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18094: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18095: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18096: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18097: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18098: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18099: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18100: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18101: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18102: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18103: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18104: 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"`'
18105: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18106: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18107: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18108: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18109: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18110: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18111: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18112: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18113: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18114: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18115: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18116: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18117: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18118: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18119: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18120: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18121: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18122: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18123: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18124: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18125: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18126: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18127: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18128: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18129: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18130: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18131: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18132: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18133: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18134: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18135: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18136: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18137: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18138: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18139: hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18140: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18141: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18142: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18143: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18144: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18145: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18146: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18147: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18148: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18149: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18150: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18151: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18152: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18153: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18154: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18155: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18156: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18157: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18158: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18159: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18160: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18161: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18162: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18163: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18164: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18165: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18166: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18167: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18168: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18169: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18170: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18171: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18172: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18173: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18174: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18175: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18176: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18177: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18178: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18179: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18180: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18181: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18182: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18183: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18184: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18185: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18186: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18187: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18188: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18189: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18190: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18191: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18192: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18193: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18194: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18195: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18196: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18197: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18198: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18199: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18200: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18201: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18202: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18203: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18204: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18205: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18206: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18207: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18208: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18209: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18210: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18211: hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18212: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18213: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18214: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18215: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18216: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18217: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18218: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18219: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18220: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18221: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18222: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18223: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18224: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18225: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18226: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18227: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18228: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18229: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18230: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18231: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18232: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18233: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18234:
18235: LTCC='$LTCC'
18236: LTCFLAGS='$LTCFLAGS'
18237: compiler='$compiler_DEFAULT'
18238:
18239: # A function that is used when there is no print builtin or printf.
18240: func_fallback_echo ()
18241: {
18242: eval 'cat <<_LTECHO_EOF
18243: \$1
18244: _LTECHO_EOF'
18245: }
18246:
18247: # Quote evaled strings.
18248: for var in AS \
18249: DLLTOOL \
18250: OBJDUMP \
18251: SHELL \
18252: ECHO \
18253: SED \
18254: GREP \
18255: EGREP \
18256: FGREP \
18257: LD \
18258: NM \
18259: LN_S \
18260: lt_SP2NL \
18261: lt_NL2SP \
18262: reload_flag \
18263: deplibs_check_method \
18264: file_magic_cmd \
18265: file_magic_glob \
18266: want_nocaseglob \
18267: sharedlib_from_linklib_cmd \
18268: AR \
18269: AR_FLAGS \
18270: archiver_list_spec \
18271: STRIP \
18272: RANLIB \
18273: CC \
18274: CFLAGS \
18275: compiler \
18276: lt_cv_sys_global_symbol_pipe \
18277: lt_cv_sys_global_symbol_to_cdecl \
18278: lt_cv_sys_global_symbol_to_c_name_address \
18279: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18280: nm_file_list_spec \
18281: lt_prog_compiler_no_builtin_flag \
18282: lt_prog_compiler_pic \
18283: lt_prog_compiler_wl \
18284: lt_prog_compiler_static \
18285: lt_cv_prog_compiler_c_o \
18286: need_locks \
18287: MANIFEST_TOOL \
18288: DSYMUTIL \
18289: NMEDIT \
18290: LIPO \
18291: OTOOL \
18292: OTOOL64 \
18293: shrext_cmds \
18294: export_dynamic_flag_spec \
18295: whole_archive_flag_spec \
18296: compiler_needs_object \
18297: with_gnu_ld \
18298: allow_undefined_flag \
18299: no_undefined_flag \
18300: hardcode_libdir_flag_spec \
18301: hardcode_libdir_flag_spec_ld \
18302: hardcode_libdir_separator \
18303: exclude_expsyms \
18304: include_expsyms \
18305: file_list_spec \
18306: variables_saved_for_relink \
18307: libname_spec \
18308: library_names_spec \
18309: soname_spec \
18310: install_override_mode \
18311: finish_eval \
18312: old_striplib \
18313: striplib \
18314: compiler_lib_search_dirs \
18315: predep_objects \
18316: postdep_objects \
18317: predeps \
18318: postdeps \
18319: compiler_lib_search_path \
18320: LD_CXX \
18321: reload_flag_CXX \
18322: compiler_CXX \
18323: lt_prog_compiler_no_builtin_flag_CXX \
18324: lt_prog_compiler_pic_CXX \
18325: lt_prog_compiler_wl_CXX \
18326: lt_prog_compiler_static_CXX \
18327: lt_cv_prog_compiler_c_o_CXX \
18328: export_dynamic_flag_spec_CXX \
18329: whole_archive_flag_spec_CXX \
18330: compiler_needs_object_CXX \
18331: with_gnu_ld_CXX \
18332: allow_undefined_flag_CXX \
18333: no_undefined_flag_CXX \
18334: hardcode_libdir_flag_spec_CXX \
18335: hardcode_libdir_flag_spec_ld_CXX \
18336: hardcode_libdir_separator_CXX \
18337: exclude_expsyms_CXX \
18338: include_expsyms_CXX \
18339: file_list_spec_CXX \
18340: compiler_lib_search_dirs_CXX \
18341: predep_objects_CXX \
18342: postdep_objects_CXX \
18343: predeps_CXX \
18344: postdeps_CXX \
18345: compiler_lib_search_path_CXX; do
18346: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18347: *[\\\\\\\`\\"\\\$]*)
18348: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18349: ;;
18350: *)
18351: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18352: ;;
18353: esac
18354: done
18355:
18356: # Double-quote double-evaled strings.
18357: for var in reload_cmds \
18358: old_postinstall_cmds \
18359: old_postuninstall_cmds \
18360: old_archive_cmds \
18361: extract_expsyms_cmds \
18362: old_archive_from_new_cmds \
18363: old_archive_from_expsyms_cmds \
18364: archive_cmds \
18365: archive_expsym_cmds \
18366: module_cmds \
18367: module_expsym_cmds \
18368: export_symbols_cmds \
18369: prelink_cmds \
18370: postlink_cmds \
18371: postinstall_cmds \
18372: postuninstall_cmds \
18373: finish_cmds \
18374: sys_lib_search_path_spec \
18375: sys_lib_dlsearch_path_spec \
18376: reload_cmds_CXX \
18377: old_archive_cmds_CXX \
18378: old_archive_from_new_cmds_CXX \
18379: old_archive_from_expsyms_cmds_CXX \
18380: archive_cmds_CXX \
18381: archive_expsym_cmds_CXX \
18382: module_cmds_CXX \
18383: module_expsym_cmds_CXX \
18384: export_symbols_cmds_CXX \
18385: prelink_cmds_CXX \
18386: postlink_cmds_CXX; do
18387: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18388: *[\\\\\\\`\\"\\\$]*)
18389: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18390: ;;
18391: *)
18392: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18393: ;;
18394: esac
18395: done
18396:
18397: ac_aux_dir='$ac_aux_dir'
18398: xsi_shell='$xsi_shell'
18399: lt_shell_append='$lt_shell_append'
18400:
18401: # See if we are running on zsh, and set the options which allow our
18402: # commands through without removal of \ escapes INIT.
18403: if test -n "\${ZSH_VERSION+set}" ; then
18404: setopt NO_GLOB_SUBST
18405: fi
18406:
18407:
18408: PACKAGE='$PACKAGE'
18409: VERSION='$VERSION'
18410: TIMESTAMP='$TIMESTAMP'
18411: RM='$RM'
18412: ofile='$ofile'
18413:
18414:
18415:
18416:
18417:
18418:
18419: _ACEOF
18420:
18421: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18422:
18423: # Handling of arguments.
18424: for ac_config_target in $ac_config_targets
18425: do
18426: case $ac_config_target in
18427: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18428: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18429: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18430: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18431: "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
1.1.1.2 misho 18432: "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
1.1 misho 18433: "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
18434: "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
18435: "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
18436: "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
18437: "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
18438: "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
18439: "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
18440: "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
18441:
18442: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18443: esac
18444: done
18445:
18446:
18447: # If the user did not use the arguments to specify the items to instantiate,
18448: # then the envvar interface is used. Set only those that are not.
18449: # We use the long form for the default assignment because of an extremely
18450: # bizarre bug on SunOS 4.1.3.
18451: if $ac_need_defaults; then
18452: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18453: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18454: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18455: fi
18456:
18457: # Have a temporary directory for convenience. Make it in the build tree
18458: # simply because there is no reason against having it here, and in addition,
18459: # creating and moving files from /tmp can sometimes cause problems.
18460: # Hook for its removal unless debugging.
18461: # Note that there is a small window in which the directory will not be cleaned:
18462: # after its creation but before its name has been assigned to `$tmp'.
18463: $debug ||
18464: {
18465: tmp= ac_tmp=
18466: trap 'exit_status=$?
18467: : "${ac_tmp:=$tmp}"
18468: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18469: ' 0
18470: trap 'as_fn_exit 1' 1 2 13 15
18471: }
18472: # Create a (secure) tmp directory for tmp files.
18473:
18474: {
18475: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18476: test -d "$tmp"
18477: } ||
18478: {
18479: tmp=./conf$$-$RANDOM
18480: (umask 077 && mkdir "$tmp")
18481: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18482: ac_tmp=$tmp
18483:
18484: # Set up the scripts for CONFIG_FILES section.
18485: # No need to generate them if there are no CONFIG_FILES.
18486: # This happens for instance with `./config.status config.h'.
18487: if test -n "$CONFIG_FILES"; then
18488:
18489:
18490: ac_cr=`echo X | tr X '\015'`
18491: # On cygwin, bash can eat \r inside `` if the user requested igncr.
18492: # But we know of no other shell where ac_cr would be empty at this
18493: # point, so we can use a bashism as a fallback.
18494: if test "x$ac_cr" = x; then
18495: eval ac_cr=\$\'\\r\'
18496: fi
18497: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18498: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18499: ac_cs_awk_cr='\\r'
18500: else
18501: ac_cs_awk_cr=$ac_cr
18502: fi
18503:
18504: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18505: _ACEOF
18506:
18507:
18508: {
18509: echo "cat >conf$$subs.awk <<_ACEOF" &&
18510: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18511: echo "_ACEOF"
18512: } >conf$$subs.sh ||
18513: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18514: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18515: ac_delim='%!_!# '
18516: for ac_last_try in false false false false false :; do
18517: . ./conf$$subs.sh ||
18518: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18519:
18520: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18521: if test $ac_delim_n = $ac_delim_num; then
18522: break
18523: elif $ac_last_try; then
18524: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18525: else
18526: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18527: fi
18528: done
18529: rm -f conf$$subs.sh
18530:
18531: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18532: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18533: _ACEOF
18534: sed -n '
18535: h
18536: s/^/S["/; s/!.*/"]=/
18537: p
18538: g
18539: s/^[^!]*!//
18540: :repl
18541: t repl
18542: s/'"$ac_delim"'$//
18543: t delim
18544: :nl
18545: h
18546: s/\(.\{148\}\)..*/\1/
18547: t more1
18548: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18549: p
18550: n
18551: b repl
18552: :more1
18553: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18554: p
18555: g
18556: s/.\{148\}//
18557: t nl
18558: :delim
18559: h
18560: s/\(.\{148\}\)..*/\1/
18561: t more2
18562: s/["\\]/\\&/g; s/^/"/; s/$/"/
18563: p
18564: b
18565: :more2
18566: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18567: p
18568: g
18569: s/.\{148\}//
18570: t delim
18571: ' <conf$$subs.awk | sed '
18572: /^[^""]/{
18573: N
18574: s/\n//
18575: }
18576: ' >>$CONFIG_STATUS || ac_write_fail=1
18577: rm -f conf$$subs.awk
18578: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18579: _ACAWK
18580: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18581: for (key in S) S_is_set[key] = 1
18582: FS = ""
18583:
18584: }
18585: {
18586: line = $ 0
18587: nfields = split(line, field, "@")
18588: substed = 0
18589: len = length(field[1])
18590: for (i = 2; i < nfields; i++) {
18591: key = field[i]
18592: keylen = length(key)
18593: if (S_is_set[key]) {
18594: value = S[key]
18595: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18596: len += length(value) + length(field[++i])
18597: substed = 1
18598: } else
18599: len += 1 + keylen
18600: }
18601:
18602: print line
18603: }
18604:
18605: _ACAWK
18606: _ACEOF
18607: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18608: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18609: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18610: else
18611: cat
18612: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18613: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18614: _ACEOF
18615:
18616: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18617: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18618: # trailing colons and then remove the whole line if VPATH becomes empty
18619: # (actually we leave an empty line to preserve line numbers).
18620: if test "x$srcdir" = x.; then
18621: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18622: h
18623: s///
18624: s/^/:/
18625: s/[ ]*$/:/
18626: s/:\$(srcdir):/:/g
18627: s/:\${srcdir}:/:/g
18628: s/:@srcdir@:/:/g
18629: s/^:*//
18630: s/:*$//
18631: x
18632: s/\(=[ ]*\).*/\1/
18633: G
18634: s/\n//
18635: s/^[^=]*=[ ]*$//
18636: }'
18637: fi
18638:
18639: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18640: fi # test -n "$CONFIG_FILES"
18641:
18642: # Set up the scripts for CONFIG_HEADERS section.
18643: # No need to generate them if there are no CONFIG_HEADERS.
18644: # This happens for instance with `./config.status Makefile'.
18645: if test -n "$CONFIG_HEADERS"; then
18646: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18647: BEGIN {
18648: _ACEOF
18649:
18650: # Transform confdefs.h into an awk script `defines.awk', embedded as
18651: # here-document in config.status, that substitutes the proper values into
18652: # config.h.in to produce config.h.
18653:
18654: # Create a delimiter string that does not exist in confdefs.h, to ease
18655: # handling of long lines.
18656: ac_delim='%!_!# '
18657: for ac_last_try in false false :; do
18658: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18659: if test -z "$ac_tt"; then
18660: break
18661: elif $ac_last_try; then
18662: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18663: else
18664: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18665: fi
18666: done
18667:
18668: # For the awk script, D is an array of macro values keyed by name,
18669: # likewise P contains macro parameters if any. Preserve backslash
18670: # newline sequences.
18671:
18672: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18673: sed -n '
18674: s/.\{148\}/&'"$ac_delim"'/g
18675: t rset
18676: :rset
18677: s/^[ ]*#[ ]*define[ ][ ]*/ /
18678: t def
18679: d
18680: :def
18681: s/\\$//
18682: t bsnl
18683: s/["\\]/\\&/g
18684: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18685: D["\1"]=" \3"/p
18686: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18687: d
18688: :bsnl
18689: s/["\\]/\\&/g
18690: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18691: D["\1"]=" \3\\\\\\n"\\/p
18692: t cont
18693: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18694: t cont
18695: d
18696: :cont
18697: n
18698: s/.\{148\}/&'"$ac_delim"'/g
18699: t clear
18700: :clear
18701: s/\\$//
18702: t bsnlc
18703: s/["\\]/\\&/g; s/^/"/; s/$/"/p
18704: d
18705: :bsnlc
18706: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18707: b cont
18708: ' <confdefs.h | sed '
18709: s/'"$ac_delim"'/"\\\
18710: "/g' >>$CONFIG_STATUS || ac_write_fail=1
18711:
18712: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18713: for (key in D) D_is_set[key] = 1
18714: FS = ""
18715: }
18716: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18717: line = \$ 0
18718: split(line, arg, " ")
18719: if (arg[1] == "#") {
18720: defundef = arg[2]
18721: mac1 = arg[3]
18722: } else {
18723: defundef = substr(arg[1], 2)
18724: mac1 = arg[2]
18725: }
18726: split(mac1, mac2, "(") #)
18727: macro = mac2[1]
18728: prefix = substr(line, 1, index(line, defundef) - 1)
18729: if (D_is_set[macro]) {
18730: # Preserve the white space surrounding the "#".
18731: print prefix "define", macro P[macro] D[macro]
18732: next
18733: } else {
18734: # Replace #undef with comments. This is necessary, for example,
18735: # in the case of _POSIX_SOURCE, which is predefined and required
18736: # on some systems where configure will not decide to define it.
18737: if (defundef == "undef") {
18738: print "/*", prefix defundef, macro, "*/"
18739: next
18740: }
18741: }
18742: }
18743: { print }
18744: _ACAWK
18745: _ACEOF
18746: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18747: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18748: fi # test -n "$CONFIG_HEADERS"
18749:
18750:
18751: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18752: shift
18753: for ac_tag
18754: do
18755: case $ac_tag in
18756: :[FHLC]) ac_mode=$ac_tag; continue;;
18757: esac
18758: case $ac_mode$ac_tag in
18759: :[FHL]*:*);;
18760: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18761: :[FH]-) ac_tag=-:-;;
18762: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18763: esac
18764: ac_save_IFS=$IFS
18765: IFS=:
18766: set x $ac_tag
18767: IFS=$ac_save_IFS
18768: shift
18769: ac_file=$1
18770: shift
18771:
18772: case $ac_mode in
18773: :L) ac_source=$1;;
18774: :[FH])
18775: ac_file_inputs=
18776: for ac_f
18777: do
18778: case $ac_f in
18779: -) ac_f="$ac_tmp/stdin";;
18780: *) # Look for the file first in the build tree, then in the source tree
18781: # (if the path is not absolute). The absolute path cannot be DOS-style,
18782: # because $ac_f cannot contain `:'.
18783: test -f "$ac_f" ||
18784: case $ac_f in
18785: [\\/$]*) false;;
18786: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18787: esac ||
18788: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18789: esac
18790: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18791: as_fn_append ac_file_inputs " '$ac_f'"
18792: done
18793:
18794: # Let's still pretend it is `configure' which instantiates (i.e., don't
18795: # use $as_me), people would be surprised to read:
18796: # /* config.h. Generated by config.status. */
18797: configure_input='Generated from '`
18798: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18799: `' by configure.'
18800: if test x"$ac_file" != x-; then
18801: configure_input="$ac_file. $configure_input"
18802: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18803: $as_echo "$as_me: creating $ac_file" >&6;}
18804: fi
18805: # Neutralize special characters interpreted by sed in replacement strings.
18806: case $configure_input in #(
18807: *\&* | *\|* | *\\* )
18808: ac_sed_conf_input=`$as_echo "$configure_input" |
18809: sed 's/[\\\\&|]/\\\\&/g'`;; #(
18810: *) ac_sed_conf_input=$configure_input;;
18811: esac
18812:
18813: case $ac_tag in
18814: *:-:* | *:-) cat >"$ac_tmp/stdin" \
18815: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18816: esac
18817: ;;
18818: esac
18819:
18820: ac_dir=`$as_dirname -- "$ac_file" ||
18821: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18822: X"$ac_file" : 'X\(//\)[^/]' \| \
18823: X"$ac_file" : 'X\(//\)$' \| \
18824: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18825: $as_echo X"$ac_file" |
18826: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18827: s//\1/
18828: q
18829: }
18830: /^X\(\/\/\)[^/].*/{
18831: s//\1/
18832: q
18833: }
18834: /^X\(\/\/\)$/{
18835: s//\1/
18836: q
18837: }
18838: /^X\(\/\).*/{
18839: s//\1/
18840: q
18841: }
18842: s/.*/./; q'`
18843: as_dir="$ac_dir"; as_fn_mkdir_p
18844: ac_builddir=.
18845:
18846: case "$ac_dir" in
18847: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18848: *)
18849: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18850: # A ".." for each directory in $ac_dir_suffix.
18851: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18852: case $ac_top_builddir_sub in
18853: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18854: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18855: esac ;;
18856: esac
18857: ac_abs_top_builddir=$ac_pwd
18858: ac_abs_builddir=$ac_pwd$ac_dir_suffix
18859: # for backward compatibility:
18860: ac_top_builddir=$ac_top_build_prefix
18861:
18862: case $srcdir in
18863: .) # We are building in place.
18864: ac_srcdir=.
18865: ac_top_srcdir=$ac_top_builddir_sub
18866: ac_abs_top_srcdir=$ac_pwd ;;
18867: [\\/]* | ?:[\\/]* ) # Absolute name.
18868: ac_srcdir=$srcdir$ac_dir_suffix;
18869: ac_top_srcdir=$srcdir
18870: ac_abs_top_srcdir=$srcdir ;;
18871: *) # Relative name.
18872: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18873: ac_top_srcdir=$ac_top_build_prefix$srcdir
18874: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18875: esac
18876: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18877:
18878:
18879: case $ac_mode in
18880: :F)
18881: #
18882: # CONFIG_FILE
18883: #
18884:
18885: case $INSTALL in
18886: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18887: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18888: esac
18889: ac_MKDIR_P=$MKDIR_P
18890: case $MKDIR_P in
18891: [\\/$]* | ?:[\\/]* ) ;;
18892: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18893: esac
18894: _ACEOF
18895:
18896: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18897: # If the template does not know about datarootdir, expand it.
18898: # FIXME: This hack should be removed a few years after 2.60.
18899: ac_datarootdir_hack=; ac_datarootdir_seen=
18900: ac_sed_dataroot='
18901: /datarootdir/ {
18902: p
18903: q
18904: }
18905: /@datadir@/p
18906: /@docdir@/p
18907: /@infodir@/p
18908: /@localedir@/p
18909: /@mandir@/p'
18910: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18911: *datarootdir*) ac_datarootdir_seen=yes;;
18912: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18913: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18914: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18915: _ACEOF
18916: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18917: ac_datarootdir_hack='
18918: s&@datadir@&$datadir&g
18919: s&@docdir@&$docdir&g
18920: s&@infodir@&$infodir&g
18921: s&@localedir@&$localedir&g
18922: s&@mandir@&$mandir&g
18923: s&\\\${datarootdir}&$datarootdir&g' ;;
18924: esac
18925: _ACEOF
18926:
18927: # Neutralize VPATH when `$srcdir' = `.'.
18928: # Shell code in configure.ac might set extrasub.
18929: # FIXME: do we really want to maintain this feature?
18930: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18931: ac_sed_extra="$ac_vpsub
18932: $extrasub
18933: _ACEOF
18934: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18935: :t
18936: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18937: s|@configure_input@|$ac_sed_conf_input|;t t
18938: s&@top_builddir@&$ac_top_builddir_sub&;t t
18939: s&@top_build_prefix@&$ac_top_build_prefix&;t t
18940: s&@srcdir@&$ac_srcdir&;t t
18941: s&@abs_srcdir@&$ac_abs_srcdir&;t t
18942: s&@top_srcdir@&$ac_top_srcdir&;t t
18943: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18944: s&@builddir@&$ac_builddir&;t t
18945: s&@abs_builddir@&$ac_abs_builddir&;t t
18946: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18947: s&@INSTALL@&$ac_INSTALL&;t t
18948: s&@MKDIR_P@&$ac_MKDIR_P&;t t
18949: $ac_datarootdir_hack
18950: "
18951: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18952: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18953:
18954: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18955: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18956: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18957: "$ac_tmp/out"`; test -z "$ac_out"; } &&
18958: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18959: which seems to be undefined. Please make sure it is defined" >&5
18960: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18961: which seems to be undefined. Please make sure it is defined" >&2;}
18962:
18963: rm -f "$ac_tmp/stdin"
18964: case $ac_file in
18965: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18966: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18967: esac \
18968: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18969: ;;
18970: :H)
18971: #
18972: # CONFIG_HEADER
18973: #
18974: if test x"$ac_file" != x-; then
18975: {
18976: $as_echo "/* $configure_input */" \
18977: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18978: } >"$ac_tmp/config.h" \
18979: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18980: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18981: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18982: $as_echo "$as_me: $ac_file is unchanged" >&6;}
18983: else
18984: rm -f "$ac_file"
18985: mv "$ac_tmp/config.h" "$ac_file" \
18986: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18987: fi
18988: else
18989: $as_echo "/* $configure_input */" \
18990: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18991: || as_fn_error $? "could not create -" "$LINENO" 5
18992: fi
18993: # Compute "$ac_file"'s index in $config_headers.
18994: _am_arg="$ac_file"
18995: _am_stamp_count=1
18996: for _am_header in $config_headers :; do
18997: case $_am_header in
18998: $_am_arg | $_am_arg:* )
18999: break ;;
19000: * )
19001: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19002: esac
19003: done
19004: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19005: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19006: X"$_am_arg" : 'X\(//\)[^/]' \| \
19007: X"$_am_arg" : 'X\(//\)$' \| \
19008: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19009: $as_echo X"$_am_arg" |
19010: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19011: s//\1/
19012: q
19013: }
19014: /^X\(\/\/\)[^/].*/{
19015: s//\1/
19016: q
19017: }
19018: /^X\(\/\/\)$/{
19019: s//\1/
19020: q
19021: }
19022: /^X\(\/\).*/{
19023: s//\1/
19024: q
19025: }
19026: s/.*/./; q'`/stamp-h$_am_stamp_count
19027: ;;
19028:
19029: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19030: $as_echo "$as_me: executing $ac_file commands" >&6;}
19031: ;;
19032: esac
19033:
19034:
19035: case $ac_file$ac_mode in
19036: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19037: # Autoconf 2.62 quotes --file arguments for eval, but not when files
19038: # are listed without --file. Let's play safe and only enable the eval
19039: # if we detect the quoting.
19040: case $CONFIG_FILES in
19041: *\'*) eval set x "$CONFIG_FILES" ;;
19042: *) set x $CONFIG_FILES ;;
19043: esac
19044: shift
19045: for mf
19046: do
19047: # Strip MF so we end up with the name of the file.
19048: mf=`echo "$mf" | sed -e 's/:.*$//'`
19049: # Check whether this is an Automake generated Makefile or not.
19050: # We used to match only the files named `Makefile.in', but
19051: # some people rename them; so instead we look at the file content.
19052: # Grep'ing the first line is not enough: some people post-process
19053: # each Makefile.in and add a new line on top of each file to say so.
19054: # Grep'ing the whole file is not good either: AIX grep has a line
19055: # limit of 2048, but all sed's we know have understand at least 4000.
19056: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19057: dirpart=`$as_dirname -- "$mf" ||
19058: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19059: X"$mf" : 'X\(//\)[^/]' \| \
19060: X"$mf" : 'X\(//\)$' \| \
19061: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19062: $as_echo X"$mf" |
19063: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19064: s//\1/
19065: q
19066: }
19067: /^X\(\/\/\)[^/].*/{
19068: s//\1/
19069: q
19070: }
19071: /^X\(\/\/\)$/{
19072: s//\1/
19073: q
19074: }
19075: /^X\(\/\).*/{
19076: s//\1/
19077: q
19078: }
19079: s/.*/./; q'`
19080: else
19081: continue
19082: fi
19083: # Extract the definition of DEPDIR, am__include, and am__quote
19084: # from the Makefile without running `make'.
19085: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19086: test -z "$DEPDIR" && continue
19087: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19088: test -z "am__include" && continue
19089: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19090: # When using ansi2knr, U may be empty or an underscore; expand it
19091: U=`sed -n 's/^U = //p' < "$mf"`
19092: # Find all dependency output files, they are included files with
19093: # $(DEPDIR) in their names. We invoke sed twice because it is the
19094: # simplest approach to changing $(DEPDIR) to its actual value in the
19095: # expansion.
19096: for file in `sed -n "
19097: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19098: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19099: # Make sure the directory exists.
19100: test -f "$dirpart/$file" && continue
19101: fdir=`$as_dirname -- "$file" ||
19102: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19103: X"$file" : 'X\(//\)[^/]' \| \
19104: X"$file" : 'X\(//\)$' \| \
19105: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19106: $as_echo X"$file" |
19107: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19108: s//\1/
19109: q
19110: }
19111: /^X\(\/\/\)[^/].*/{
19112: s//\1/
19113: q
19114: }
19115: /^X\(\/\/\)$/{
19116: s//\1/
19117: q
19118: }
19119: /^X\(\/\).*/{
19120: s//\1/
19121: q
19122: }
19123: s/.*/./; q'`
19124: as_dir=$dirpart/$fdir; as_fn_mkdir_p
19125: # echo "creating $dirpart/$file"
19126: echo '# dummy' > "$dirpart/$file"
19127: done
19128: done
19129: }
19130: ;;
19131: "libtool":C)
19132:
19133: # See if we are running on zsh, and set the options which allow our
19134: # commands through without removal of \ escapes.
19135: if test -n "${ZSH_VERSION+set}" ; then
19136: setopt NO_GLOB_SUBST
19137: fi
19138:
19139: cfgfile="${ofile}T"
19140: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19141: $RM "$cfgfile"
19142:
19143: cat <<_LT_EOF >> "$cfgfile"
19144: #! $SHELL
19145:
19146: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19147: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19148: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19149: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19150: #
19151: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19152: # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19153: # Inc.
19154: # Written by Gordon Matzigkeit, 1996
19155: #
19156: # This file is part of GNU Libtool.
19157: #
19158: # GNU Libtool is free software; you can redistribute it and/or
19159: # modify it under the terms of the GNU General Public License as
19160: # published by the Free Software Foundation; either version 2 of
19161: # the License, or (at your option) any later version.
19162: #
19163: # As a special exception to the GNU General Public License,
19164: # if you distribute this file as part of a program or library that
19165: # is built using GNU Libtool, you may include this file under the
19166: # same distribution terms that you use for the rest of that program.
19167: #
19168: # GNU Libtool is distributed in the hope that it will be useful,
19169: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19170: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19171: # GNU General Public License for more details.
19172: #
19173: # You should have received a copy of the GNU General Public License
19174: # along with GNU Libtool; see the file COPYING. If not, a copy
19175: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19176: # obtained by writing to the Free Software Foundation, Inc.,
19177: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19178:
19179:
19180: # The names of the tagged configurations supported by this script.
19181: available_tags="CXX "
19182:
19183: # ### BEGIN LIBTOOL CONFIG
19184:
19185: # Assembler program.
19186: AS=$lt_AS
19187:
19188: # DLL creation program.
19189: DLLTOOL=$lt_DLLTOOL
19190:
19191: # Object dumper program.
19192: OBJDUMP=$lt_OBJDUMP
19193:
19194: # Which release of libtool.m4 was used?
19195: macro_version=$macro_version
19196: macro_revision=$macro_revision
19197:
19198: # Whether or not to build shared libraries.
19199: build_libtool_libs=$enable_shared
19200:
19201: # Whether or not to build static libraries.
19202: build_old_libs=$enable_static
19203:
19204: # What type of objects to build.
19205: pic_mode=$pic_mode
19206:
19207: # Whether or not to optimize for fast installation.
19208: fast_install=$enable_fast_install
19209:
19210: # Shell to use when invoking shell scripts.
19211: SHELL=$lt_SHELL
19212:
19213: # An echo program that protects backslashes.
19214: ECHO=$lt_ECHO
19215:
19216: # The host system.
19217: host_alias=$host_alias
19218: host=$host
19219: host_os=$host_os
19220:
19221: # The build system.
19222: build_alias=$build_alias
19223: build=$build
19224: build_os=$build_os
19225:
19226: # A sed program that does not truncate output.
19227: SED=$lt_SED
19228:
19229: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19230: Xsed="\$SED -e 1s/^X//"
19231:
19232: # A grep program that handles long lines.
19233: GREP=$lt_GREP
19234:
19235: # An ERE matcher.
19236: EGREP=$lt_EGREP
19237:
19238: # A literal string matcher.
19239: FGREP=$lt_FGREP
19240:
19241: # A BSD- or MS-compatible name lister.
19242: NM=$lt_NM
19243:
19244: # Whether we need soft or hard links.
19245: LN_S=$lt_LN_S
19246:
19247: # What is the maximum length of a command?
19248: max_cmd_len=$max_cmd_len
19249:
19250: # Object file suffix (normally "o").
19251: objext=$ac_objext
19252:
19253: # Executable file suffix (normally "").
19254: exeext=$exeext
19255:
19256: # whether the shell understands "unset".
19257: lt_unset=$lt_unset
19258:
19259: # turn spaces into newlines.
19260: SP2NL=$lt_lt_SP2NL
19261:
19262: # turn newlines into spaces.
19263: NL2SP=$lt_lt_NL2SP
19264:
19265: # convert \$build file names to \$host format.
19266: to_host_file_cmd=$lt_cv_to_host_file_cmd
19267:
19268: # convert \$build files to toolchain format.
19269: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19270:
19271: # Method to check whether dependent libraries are shared objects.
19272: deplibs_check_method=$lt_deplibs_check_method
19273:
19274: # Command to use when deplibs_check_method = "file_magic".
19275: file_magic_cmd=$lt_file_magic_cmd
19276:
19277: # How to find potential files when deplibs_check_method = "file_magic".
19278: file_magic_glob=$lt_file_magic_glob
19279:
19280: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19281: want_nocaseglob=$lt_want_nocaseglob
19282:
19283: # Command to associate shared and link libraries.
19284: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19285:
19286: # The archiver.
19287: AR=$lt_AR
19288:
19289: # Flags to create an archive.
19290: AR_FLAGS=$lt_AR_FLAGS
19291:
19292: # How to feed a file listing to the archiver.
19293: archiver_list_spec=$lt_archiver_list_spec
19294:
19295: # A symbol stripping program.
19296: STRIP=$lt_STRIP
19297:
19298: # Commands used to install an old-style archive.
19299: RANLIB=$lt_RANLIB
19300: old_postinstall_cmds=$lt_old_postinstall_cmds
19301: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19302:
19303: # Whether to use a lock for old archive extraction.
19304: lock_old_archive_extraction=$lock_old_archive_extraction
19305:
19306: # A C compiler.
19307: LTCC=$lt_CC
19308:
19309: # LTCC compiler flags.
19310: LTCFLAGS=$lt_CFLAGS
19311:
19312: # Take the output of nm and produce a listing of raw symbols and C names.
19313: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19314:
19315: # Transform the output of nm in a proper C declaration.
19316: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19317:
19318: # Transform the output of nm in a C name address pair.
19319: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19320:
19321: # Transform the output of nm in a C name address pair when lib prefix is needed.
19322: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19323:
19324: # Specify filename containing input files for \$NM.
19325: nm_file_list_spec=$lt_nm_file_list_spec
19326:
19327: # The root where to search for dependent libraries,and in which our libraries should be installed.
19328: lt_sysroot=$lt_sysroot
19329:
19330: # The name of the directory that contains temporary libtool files.
19331: objdir=$objdir
19332:
19333: # Used to examine libraries when file_magic_cmd begins with "file".
19334: MAGIC_CMD=$MAGIC_CMD
19335:
19336: # Must we lock files when doing compilation?
19337: need_locks=$lt_need_locks
19338:
19339: # Manifest tool.
19340: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19341:
19342: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19343: DSYMUTIL=$lt_DSYMUTIL
19344:
19345: # Tool to change global to local symbols on Mac OS X.
19346: NMEDIT=$lt_NMEDIT
19347:
19348: # Tool to manipulate fat objects and archives on Mac OS X.
19349: LIPO=$lt_LIPO
19350:
19351: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19352: OTOOL=$lt_OTOOL
19353:
19354: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19355: OTOOL64=$lt_OTOOL64
19356:
19357: # Old archive suffix (normally "a").
19358: libext=$libext
19359:
19360: # Shared library suffix (normally ".so").
19361: shrext_cmds=$lt_shrext_cmds
19362:
19363: # The commands to extract the exported symbol list from a shared archive.
19364: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19365:
19366: # Variables whose values should be saved in libtool wrapper scripts and
19367: # restored at link time.
19368: variables_saved_for_relink=$lt_variables_saved_for_relink
19369:
19370: # Do we need the "lib" prefix for modules?
19371: need_lib_prefix=$need_lib_prefix
19372:
19373: # Do we need a version for libraries?
19374: need_version=$need_version
19375:
19376: # Library versioning type.
19377: version_type=$version_type
19378:
19379: # Shared library runtime path variable.
19380: runpath_var=$runpath_var
19381:
19382: # Shared library path variable.
19383: shlibpath_var=$shlibpath_var
19384:
19385: # Is shlibpath searched before the hard-coded library search path?
19386: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19387:
19388: # Format of library name prefix.
19389: libname_spec=$lt_libname_spec
19390:
19391: # List of archive names. First name is the real one, the rest are links.
19392: # The last name is the one that the linker finds with -lNAME
19393: library_names_spec=$lt_library_names_spec
19394:
19395: # The coded name of the library, if different from the real name.
19396: soname_spec=$lt_soname_spec
19397:
19398: # Permission mode override for installation of shared libraries.
19399: install_override_mode=$lt_install_override_mode
19400:
19401: # Command to use after installation of a shared archive.
19402: postinstall_cmds=$lt_postinstall_cmds
19403:
19404: # Command to use after uninstallation of a shared archive.
19405: postuninstall_cmds=$lt_postuninstall_cmds
19406:
19407: # Commands used to finish a libtool library installation in a directory.
19408: finish_cmds=$lt_finish_cmds
19409:
19410: # As "finish_cmds", except a single script fragment to be evaled but
19411: # not shown.
19412: finish_eval=$lt_finish_eval
19413:
19414: # Whether we should hardcode library paths into libraries.
19415: hardcode_into_libs=$hardcode_into_libs
19416:
19417: # Compile-time system search path for libraries.
19418: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19419:
19420: # Run-time system search path for libraries.
19421: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19422:
19423: # Whether dlopen is supported.
19424: dlopen_support=$enable_dlopen
19425:
19426: # Whether dlopen of programs is supported.
19427: dlopen_self=$enable_dlopen_self
19428:
19429: # Whether dlopen of statically linked programs is supported.
19430: dlopen_self_static=$enable_dlopen_self_static
19431:
19432: # Commands to strip libraries.
19433: old_striplib=$lt_old_striplib
19434: striplib=$lt_striplib
19435:
19436:
19437: # The linker used to build libraries.
19438: LD=$lt_LD
19439:
19440: # How to create reloadable object files.
19441: reload_flag=$lt_reload_flag
19442: reload_cmds=$lt_reload_cmds
19443:
19444: # Commands used to build an old-style archive.
19445: old_archive_cmds=$lt_old_archive_cmds
19446:
19447: # A language specific compiler.
19448: CC=$lt_compiler
19449:
19450: # Is the compiler the GNU compiler?
19451: with_gcc=$GCC
19452:
19453: # Compiler flag to turn off builtin functions.
19454: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19455:
19456: # Additional compiler flags for building library objects.
19457: pic_flag=$lt_lt_prog_compiler_pic
19458:
19459: # How to pass a linker flag through the compiler.
19460: wl=$lt_lt_prog_compiler_wl
19461:
19462: # Compiler flag to prevent dynamic linking.
19463: link_static_flag=$lt_lt_prog_compiler_static
19464:
19465: # Does compiler simultaneously support -c and -o options?
19466: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19467:
19468: # Whether or not to add -lc for building shared libraries.
19469: build_libtool_need_lc=$archive_cmds_need_lc
19470:
19471: # Whether or not to disallow shared libs when runtime libs are static.
19472: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19473:
19474: # Compiler flag to allow reflexive dlopens.
19475: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19476:
19477: # Compiler flag to generate shared objects directly from archives.
19478: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19479:
19480: # Whether the compiler copes with passing no objects directly.
19481: compiler_needs_object=$lt_compiler_needs_object
19482:
19483: # Create an old-style archive from a shared archive.
19484: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19485:
19486: # Create a temporary old-style archive to link instead of a shared archive.
19487: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19488:
19489: # Commands used to build a shared archive.
19490: archive_cmds=$lt_archive_cmds
19491: archive_expsym_cmds=$lt_archive_expsym_cmds
19492:
19493: # Commands used to build a loadable module if different from building
19494: # a shared archive.
19495: module_cmds=$lt_module_cmds
19496: module_expsym_cmds=$lt_module_expsym_cmds
19497:
19498: # Whether we are building with GNU ld or not.
19499: with_gnu_ld=$lt_with_gnu_ld
19500:
19501: # Flag that allows shared libraries with undefined symbols to be built.
19502: allow_undefined_flag=$lt_allow_undefined_flag
19503:
19504: # Flag that enforces no undefined symbols.
19505: no_undefined_flag=$lt_no_undefined_flag
19506:
19507: # Flag to hardcode \$libdir into a binary during linking.
19508: # This must work even if \$libdir does not exist
19509: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19510:
19511: # If ld is used when linking, flag to hardcode \$libdir into a binary
19512: # during linking. This must work even if \$libdir does not exist.
19513: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19514:
19515: # Whether we need a single "-rpath" flag with a separated argument.
19516: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19517:
19518: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19519: # DIR into the resulting binary.
19520: hardcode_direct=$hardcode_direct
19521:
19522: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19523: # DIR into the resulting binary and the resulting library dependency is
19524: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19525: # library is relocated.
19526: hardcode_direct_absolute=$hardcode_direct_absolute
19527:
19528: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19529: # into the resulting binary.
19530: hardcode_minus_L=$hardcode_minus_L
19531:
19532: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19533: # into the resulting binary.
19534: hardcode_shlibpath_var=$hardcode_shlibpath_var
19535:
19536: # Set to "yes" if building a shared library automatically hardcodes DIR
19537: # into the library and all subsequent libraries and executables linked
19538: # against it.
19539: hardcode_automatic=$hardcode_automatic
19540:
19541: # Set to yes if linker adds runtime paths of dependent libraries
19542: # to runtime path list.
19543: inherit_rpath=$inherit_rpath
19544:
19545: # Whether libtool must link a program against all its dependency libraries.
19546: link_all_deplibs=$link_all_deplibs
19547:
19548: # Set to "yes" if exported symbols are required.
19549: always_export_symbols=$always_export_symbols
19550:
19551: # The commands to list exported symbols.
19552: export_symbols_cmds=$lt_export_symbols_cmds
19553:
19554: # Symbols that should not be listed in the preloaded symbols.
19555: exclude_expsyms=$lt_exclude_expsyms
19556:
19557: # Symbols that must always be exported.
19558: include_expsyms=$lt_include_expsyms
19559:
19560: # Commands necessary for linking programs (against libraries) with templates.
19561: prelink_cmds=$lt_prelink_cmds
19562:
19563: # Commands necessary for finishing linking programs.
19564: postlink_cmds=$lt_postlink_cmds
19565:
19566: # Specify filename containing input files.
19567: file_list_spec=$lt_file_list_spec
19568:
19569: # How to hardcode a shared library path into an executable.
19570: hardcode_action=$hardcode_action
19571:
19572: # The directories searched by this compiler when creating a shared library.
19573: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19574:
19575: # Dependencies to place before and after the objects being linked to
19576: # create a shared library.
19577: predep_objects=$lt_predep_objects
19578: postdep_objects=$lt_postdep_objects
19579: predeps=$lt_predeps
19580: postdeps=$lt_postdeps
19581:
19582: # The library search path used internally by the compiler when linking
19583: # a shared library.
19584: compiler_lib_search_path=$lt_compiler_lib_search_path
19585:
19586: # ### END LIBTOOL CONFIG
19587:
19588: _LT_EOF
19589:
19590: case $host_os in
19591: aix3*)
19592: cat <<\_LT_EOF >> "$cfgfile"
19593: # AIX sometimes has problems with the GCC collect2 program. For some
19594: # reason, if we set the COLLECT_NAMES environment variable, the problems
19595: # vanish in a puff of smoke.
19596: if test "X${COLLECT_NAMES+set}" != Xset; then
19597: COLLECT_NAMES=
19598: export COLLECT_NAMES
19599: fi
19600: _LT_EOF
19601: ;;
19602: esac
19603:
19604:
19605: ltmain="$ac_aux_dir/ltmain.sh"
19606:
19607:
19608: # We use sed instead of cat because bash on DJGPP gets confused if
19609: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19610: # text mode, it properly converts lines to CR/LF. This bash problem
19611: # is reportedly fixed, but why not run on old versions too?
19612: sed '$q' "$ltmain" >> "$cfgfile" \
19613: || (rm -f "$cfgfile"; exit 1)
19614:
19615: if test x"$xsi_shell" = xyes; then
19616: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19617: func_dirname ()\
19618: {\
19619: \ case ${1} in\
19620: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19621: \ * ) func_dirname_result="${3}" ;;\
19622: \ esac\
19623: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19624: && mv -f "$cfgfile.tmp" "$cfgfile" \
19625: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19626: test 0 -eq $? || _lt_function_replace_fail=:
19627:
19628:
19629: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19630: func_basename ()\
19631: {\
19632: \ func_basename_result="${1##*/}"\
19633: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19634: && mv -f "$cfgfile.tmp" "$cfgfile" \
19635: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19636: test 0 -eq $? || _lt_function_replace_fail=:
19637:
19638:
19639: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19640: func_dirname_and_basename ()\
19641: {\
19642: \ case ${1} in\
19643: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19644: \ * ) func_dirname_result="${3}" ;;\
19645: \ esac\
19646: \ func_basename_result="${1##*/}"\
19647: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19648: && mv -f "$cfgfile.tmp" "$cfgfile" \
19649: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19650: test 0 -eq $? || _lt_function_replace_fail=:
19651:
19652:
19653: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19654: func_stripname ()\
19655: {\
19656: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19657: \ # positional parameters, so assign one to ordinary parameter first.\
19658: \ func_stripname_result=${3}\
19659: \ func_stripname_result=${func_stripname_result#"${1}"}\
19660: \ func_stripname_result=${func_stripname_result%"${2}"}\
19661: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19662: && mv -f "$cfgfile.tmp" "$cfgfile" \
19663: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19664: test 0 -eq $? || _lt_function_replace_fail=:
19665:
19666:
19667: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19668: func_split_long_opt ()\
19669: {\
19670: \ func_split_long_opt_name=${1%%=*}\
19671: \ func_split_long_opt_arg=${1#*=}\
19672: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19673: && mv -f "$cfgfile.tmp" "$cfgfile" \
19674: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19675: test 0 -eq $? || _lt_function_replace_fail=:
19676:
19677:
19678: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19679: func_split_short_opt ()\
19680: {\
19681: \ func_split_short_opt_arg=${1#??}\
19682: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19683: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19684: && mv -f "$cfgfile.tmp" "$cfgfile" \
19685: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19686: test 0 -eq $? || _lt_function_replace_fail=:
19687:
19688:
19689: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19690: func_lo2o ()\
19691: {\
19692: \ case ${1} in\
19693: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19694: \ *) func_lo2o_result=${1} ;;\
19695: \ esac\
19696: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19697: && mv -f "$cfgfile.tmp" "$cfgfile" \
19698: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19699: test 0 -eq $? || _lt_function_replace_fail=:
19700:
19701:
19702: sed -e '/^func_xform ()$/,/^} # func_xform /c\
19703: func_xform ()\
19704: {\
19705: func_xform_result=${1%.*}.lo\
19706: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19707: && mv -f "$cfgfile.tmp" "$cfgfile" \
19708: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19709: test 0 -eq $? || _lt_function_replace_fail=:
19710:
19711:
19712: sed -e '/^func_arith ()$/,/^} # func_arith /c\
19713: func_arith ()\
19714: {\
19715: func_arith_result=$(( $* ))\
19716: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19717: && mv -f "$cfgfile.tmp" "$cfgfile" \
19718: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19719: test 0 -eq $? || _lt_function_replace_fail=:
19720:
19721:
19722: sed -e '/^func_len ()$/,/^} # func_len /c\
19723: func_len ()\
19724: {\
19725: func_len_result=${#1}\
19726: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19727: && mv -f "$cfgfile.tmp" "$cfgfile" \
19728: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19729: test 0 -eq $? || _lt_function_replace_fail=:
19730:
19731: fi
19732:
19733: if test x"$lt_shell_append" = xyes; then
19734: sed -e '/^func_append ()$/,/^} # func_append /c\
19735: func_append ()\
19736: {\
19737: eval "${1}+=\\${2}"\
19738: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19739: && mv -f "$cfgfile.tmp" "$cfgfile" \
19740: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19741: test 0 -eq $? || _lt_function_replace_fail=:
19742:
19743:
19744: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19745: func_append_quoted ()\
19746: {\
19747: \ func_quote_for_eval "${2}"\
19748: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19749: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19750: && mv -f "$cfgfile.tmp" "$cfgfile" \
19751: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19752: test 0 -eq $? || _lt_function_replace_fail=:
19753:
19754:
19755: # Save a `func_append' function call where possible by direct use of '+='
19756: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19757: && mv -f "$cfgfile.tmp" "$cfgfile" \
19758: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19759: test 0 -eq $? || _lt_function_replace_fail=:
19760: else
19761: # Save a `func_append' function call even when '+=' is not available
19762: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19763: && mv -f "$cfgfile.tmp" "$cfgfile" \
19764: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19765: test 0 -eq $? || _lt_function_replace_fail=:
19766: fi
19767:
19768: if test x"$_lt_function_replace_fail" = x":"; then
19769: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19770: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19771: fi
19772:
19773:
19774: mv -f "$cfgfile" "$ofile" ||
19775: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19776: chmod +x "$ofile"
19777:
19778:
19779: cat <<_LT_EOF >> "$ofile"
19780:
19781: # ### BEGIN LIBTOOL TAG CONFIG: CXX
19782:
19783: # The linker used to build libraries.
19784: LD=$lt_LD_CXX
19785:
19786: # How to create reloadable object files.
19787: reload_flag=$lt_reload_flag_CXX
19788: reload_cmds=$lt_reload_cmds_CXX
19789:
19790: # Commands used to build an old-style archive.
19791: old_archive_cmds=$lt_old_archive_cmds_CXX
19792:
19793: # A language specific compiler.
19794: CC=$lt_compiler_CXX
19795:
19796: # Is the compiler the GNU compiler?
19797: with_gcc=$GCC_CXX
19798:
19799: # Compiler flag to turn off builtin functions.
19800: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19801:
19802: # Additional compiler flags for building library objects.
19803: pic_flag=$lt_lt_prog_compiler_pic_CXX
19804:
19805: # How to pass a linker flag through the compiler.
19806: wl=$lt_lt_prog_compiler_wl_CXX
19807:
19808: # Compiler flag to prevent dynamic linking.
19809: link_static_flag=$lt_lt_prog_compiler_static_CXX
19810:
19811: # Does compiler simultaneously support -c and -o options?
19812: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19813:
19814: # Whether or not to add -lc for building shared libraries.
19815: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19816:
19817: # Whether or not to disallow shared libs when runtime libs are static.
19818: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19819:
19820: # Compiler flag to allow reflexive dlopens.
19821: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19822:
19823: # Compiler flag to generate shared objects directly from archives.
19824: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19825:
19826: # Whether the compiler copes with passing no objects directly.
19827: compiler_needs_object=$lt_compiler_needs_object_CXX
19828:
19829: # Create an old-style archive from a shared archive.
19830: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19831:
19832: # Create a temporary old-style archive to link instead of a shared archive.
19833: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19834:
19835: # Commands used to build a shared archive.
19836: archive_cmds=$lt_archive_cmds_CXX
19837: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19838:
19839: # Commands used to build a loadable module if different from building
19840: # a shared archive.
19841: module_cmds=$lt_module_cmds_CXX
19842: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19843:
19844: # Whether we are building with GNU ld or not.
19845: with_gnu_ld=$lt_with_gnu_ld_CXX
19846:
19847: # Flag that allows shared libraries with undefined symbols to be built.
19848: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19849:
19850: # Flag that enforces no undefined symbols.
19851: no_undefined_flag=$lt_no_undefined_flag_CXX
19852:
19853: # Flag to hardcode \$libdir into a binary during linking.
19854: # This must work even if \$libdir does not exist
19855: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19856:
19857: # If ld is used when linking, flag to hardcode \$libdir into a binary
19858: # during linking. This must work even if \$libdir does not exist.
19859: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19860:
19861: # Whether we need a single "-rpath" flag with a separated argument.
19862: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19863:
19864: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19865: # DIR into the resulting binary.
19866: hardcode_direct=$hardcode_direct_CXX
19867:
19868: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19869: # DIR into the resulting binary and the resulting library dependency is
19870: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19871: # library is relocated.
19872: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19873:
19874: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19875: # into the resulting binary.
19876: hardcode_minus_L=$hardcode_minus_L_CXX
19877:
19878: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19879: # into the resulting binary.
19880: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19881:
19882: # Set to "yes" if building a shared library automatically hardcodes DIR
19883: # into the library and all subsequent libraries and executables linked
19884: # against it.
19885: hardcode_automatic=$hardcode_automatic_CXX
19886:
19887: # Set to yes if linker adds runtime paths of dependent libraries
19888: # to runtime path list.
19889: inherit_rpath=$inherit_rpath_CXX
19890:
19891: # Whether libtool must link a program against all its dependency libraries.
19892: link_all_deplibs=$link_all_deplibs_CXX
19893:
19894: # Set to "yes" if exported symbols are required.
19895: always_export_symbols=$always_export_symbols_CXX
19896:
19897: # The commands to list exported symbols.
19898: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19899:
19900: # Symbols that should not be listed in the preloaded symbols.
19901: exclude_expsyms=$lt_exclude_expsyms_CXX
19902:
19903: # Symbols that must always be exported.
19904: include_expsyms=$lt_include_expsyms_CXX
19905:
19906: # Commands necessary for linking programs (against libraries) with templates.
19907: prelink_cmds=$lt_prelink_cmds_CXX
19908:
19909: # Commands necessary for finishing linking programs.
19910: postlink_cmds=$lt_postlink_cmds_CXX
19911:
19912: # Specify filename containing input files.
19913: file_list_spec=$lt_file_list_spec_CXX
19914:
19915: # How to hardcode a shared library path into an executable.
19916: hardcode_action=$hardcode_action_CXX
19917:
19918: # The directories searched by this compiler when creating a shared library.
19919: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19920:
19921: # Dependencies to place before and after the objects being linked to
19922: # create a shared library.
19923: predep_objects=$lt_predep_objects_CXX
19924: postdep_objects=$lt_postdep_objects_CXX
19925: predeps=$lt_predeps_CXX
19926: postdeps=$lt_postdeps_CXX
19927:
19928: # The library search path used internally by the compiler when linking
19929: # a shared library.
19930: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19931:
19932: # ### END LIBTOOL TAG CONFIG: CXX
19933: _LT_EOF
19934:
19935: ;;
19936: "script-chmod":C) chmod a+x pcre-config ;;
19937: "delete-old-chartables":C) rm -f pcre_chartables.c ;;
19938:
19939: esac
19940: done # for ac_tag
19941:
19942:
19943: as_fn_exit 0
19944: _ACEOF
19945: ac_clean_files=$ac_clean_files_save
19946:
19947: test $ac_write_fail = 0 ||
19948: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19949:
19950:
19951: # configure is writing to config.log, and then calls config.status.
19952: # config.status does its own redirection, appending to config.log.
19953: # Unfortunately, on DOS this fails, as config.log is still kept open
19954: # by configure, so config.status won't be able to write to it; its
19955: # output is simply discarded. So we exec the FD to /dev/null,
19956: # effectively closing config.log, so it can be properly (re)opened and
19957: # appended to by config.status. When coming back to configure, we
19958: # need to make the FD available again.
19959: if test "$no_create" != yes; then
19960: ac_cs_success=:
19961: ac_config_status_args=
19962: test "$silent" = yes &&
19963: ac_config_status_args="$ac_config_status_args --quiet"
19964: exec 5>/dev/null
19965: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19966: exec 5>>config.log
19967: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19968: # would make configure fail if this is the last instruction.
19969: $ac_cs_success || as_fn_exit 1
19970: fi
19971: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19972: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19973: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19974: fi
19975:
19976:
19977: # Print out a nice little message after configure is run displaying your
19978: # chosen options.
19979:
19980: cat <<EOF
19981:
19982: $PACKAGE-$VERSION configuration summary:
19983:
19984: Install prefix .................. : ${prefix}
19985: C preprocessor .................. : ${CPP}
19986: C compiler ...................... : ${CC}
19987: C++ preprocessor ................ : ${CXXCPP}
19988: C++ compiler .................... : ${CXX}
19989: Linker .......................... : ${LD}
19990: C preprocessor flags ............ : ${CPPFLAGS}
19991: C compiler flags ................ : ${CFLAGS}
19992: C++ compiler flags .............. : ${CXXFLAGS}
19993: Linker flags .................... : ${LDFLAGS}
19994: Extra libraries ................. : ${LIBS}
19995:
1.1.1.2 misho 19996: Build 8 bit pcre library ........ : ${enable_pcre8}
19997: Build 16 bit pcre library ....... : ${enable_pcre16}
1.1 misho 19998: Build C++ library ............... : ${enable_cpp}
19999: Enable JIT compiling support .... : ${enable_jit}
1.1.1.2 misho 20000: Enable UTF-8/16 support ......... : ${enable_utf}
1.1 misho 20001: Unicode properties .............. : ${enable_unicode_properties}
20002: Newline char/sequence ........... : ${enable_newline}
20003: \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
20004: EBCDIC coding ................... : ${enable_ebcdic}
20005: Rebuild char tables ............. : ${enable_rebuild_chartables}
20006: Use stack recursion ............. : ${enable_stack_for_recursion}
20007: POSIX mem threshold ............. : ${with_posix_malloc_threshold}
20008: Internal link size .............. : ${with_link_size}
20009: Match limit ..................... : ${with_match_limit}
20010: Match limit recursion ........... : ${with_match_limit_recursion}
20011: Build shared libs ............... : ${enable_shared}
20012: Build static libs ............... : ${enable_static}
20013: Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
20014: Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
20015: Link pcregrep with libz ......... : ${enable_pcregrep_libz}
20016: Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
1.1.1.3 ! misho 20017: Link pcretest with libedit ...... : ${enable_pcretest_libedit}
1.1 misho 20018: Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
20019:
20020: EOF
20021:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>