… | |
… | |
239 | |
239 | |
240 | # CDPATH. |
240 | # CDPATH. |
241 | $as_unset CDPATH |
241 | $as_unset CDPATH |
242 | |
242 | |
243 | |
243 | |
244 | # Find the correct PATH separator. Usually this is `:', but |
|
|
245 | # DJGPP uses `;' like DOS. |
|
|
246 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
|
|
247 | UNAME=${UNAME-`uname 2>/dev/null`} |
|
|
248 | case X$UNAME in |
|
|
249 | *-DOS) lt_cv_sys_path_separator=';' ;; |
|
|
250 | *) lt_cv_sys_path_separator=':' ;; |
|
|
251 | esac |
|
|
252 | fi |
|
|
253 | |
|
|
254 | |
|
|
255 | # Check that we are running under the correct shell. |
|
|
256 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
257 | |
|
|
258 | case "X$ECHO" in |
|
|
259 | X*--fallback-echo) |
|
|
260 | # Remove one level of quotation (which was required for Make). |
|
|
261 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
|
262 | ;; |
|
|
263 | esac |
|
|
264 | |
|
|
265 | echo=${ECHO-echo} |
|
|
266 | if test "X$1" = X--no-reexec; then |
|
|
267 | # Discard the --no-reexec flag, and continue. |
|
|
268 | shift |
|
|
269 | elif test "X$1" = X--fallback-echo; then |
|
|
270 | # Avoid inline document here, it may be left over |
|
|
271 | : |
|
|
272 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
|
|
273 | # Yippee, $echo works! |
|
|
274 | : |
|
|
275 | else |
|
|
276 | # Restart under the correct shell. |
|
|
277 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
|
278 | fi |
|
|
279 | |
|
|
280 | if test "X$1" = X--fallback-echo; then |
|
|
281 | # used as fallback echo |
|
|
282 | shift |
|
|
283 | cat <<EOF |
|
|
284 | |
|
|
285 | EOF |
|
|
286 | exit 0 |
|
|
287 | fi |
|
|
288 | |
|
|
289 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
290 | # if CDPATH is set. |
|
|
291 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
292 | |
|
|
293 | if test -z "$ECHO"; then |
|
|
294 | if test "X${echo_test_string+set}" != Xset; then |
|
|
295 | # find a string as large as possible, as long as the shell can cope with it |
|
|
296 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
|
297 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
|
298 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
|
|
299 | echo_test_string="`eval $cmd`" && |
|
|
300 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
|
|
301 | then |
|
|
302 | break |
|
|
303 | fi |
|
|
304 | done |
|
|
305 | fi |
|
|
306 | |
|
|
307 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
308 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
309 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
310 | : |
|
|
311 | else |
|
|
312 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
|
|
313 | # backslashes. This makes it impossible to quote backslashes using |
|
|
314 | # echo "$something" | sed 's/\\/\\\\/g' |
|
|
315 | # |
|
|
316 | # So, first we look for a working echo in the user's PATH. |
|
|
317 | |
|
|
318 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
|
|
319 | for dir in $PATH /usr/ucb; do |
|
|
320 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
|
321 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
322 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
|
323 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
324 | echo="$dir/echo" |
|
|
325 | break |
|
|
326 | fi |
|
|
327 | done |
|
|
328 | IFS="$save_ifs" |
|
|
329 | |
|
|
330 | if test "X$echo" = Xecho; then |
|
|
331 | # We didn't find a better echo, so look for alternatives. |
|
|
332 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
|
|
333 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
|
|
334 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
335 | # This shell has a builtin print -r that does the trick. |
|
|
336 | echo='print -r' |
|
|
337 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
|
|
338 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
|
339 | # If we have ksh, try running ltconfig again with it. |
|
|
340 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
341 | export ORIGINAL_CONFIG_SHELL |
|
|
342 | CONFIG_SHELL=/bin/ksh |
|
|
343 | export CONFIG_SHELL |
|
|
344 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
|
345 | else |
|
|
346 | # Try using printf. |
|
|
347 | echo='printf %s\n' |
|
|
348 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
349 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
350 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
351 | # Cool, printf works |
|
|
352 | : |
|
|
353 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
354 | test "X$echo_testing_string" = 'X\t' && |
|
|
355 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
357 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
|
358 | export CONFIG_SHELL |
|
|
359 | SHELL="$CONFIG_SHELL" |
|
|
360 | export SHELL |
|
|
361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
362 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
363 | test "X$echo_testing_string" = 'X\t' && |
|
|
364 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
365 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
366 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
367 | else |
|
|
368 | # maybe with a smaller string... |
|
|
369 | prev=: |
|
|
370 | |
|
|
371 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
|
372 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
|
|
373 | then |
|
|
374 | break |
|
|
375 | fi |
|
|
376 | prev="$cmd" |
|
|
377 | done |
|
|
378 | |
|
|
379 | if test "$prev" != 'sed 50q "$0"'; then |
|
|
380 | echo_test_string=`eval $prev` |
|
|
381 | export echo_test_string |
|
|
382 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
|
383 | else |
|
|
384 | # Oops. We lost completely, so just stick with echo. |
|
|
385 | echo=echo |
|
|
386 | fi |
|
|
387 | fi |
|
|
388 | fi |
|
|
389 | fi |
|
|
390 | fi |
|
|
391 | fi |
|
|
392 | |
|
|
393 | # Copy echo and quote the copy suitably for passing to libtool from |
|
|
394 | # the Makefile, instead of quoting the original, which is used later. |
|
|
395 | ECHO=$echo |
|
|
396 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
|
397 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
|
398 | fi |
|
|
399 | |
|
|
400 | |
|
|
401 | |
|
|
402 | # Name of the host. |
244 | # Name of the host. |
403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
404 | # so uname gets run too. |
246 | # so uname gets run too. |
405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
406 | |
248 | |
… | |
… | |
465 | #endif |
307 | #endif |
466 | #if HAVE_UNISTD_H |
308 | #if HAVE_UNISTD_H |
467 | # include <unistd.h> |
309 | # include <unistd.h> |
468 | #endif" |
310 | #endif" |
469 | |
311 | |
470 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
471 | ac_subst_files='MCOMMON' |
313 | ac_subst_files='' |
472 | |
314 | |
473 | # Initialize some variables set by options. |
315 | # Initialize some variables set by options. |
474 | ac_init_help= |
316 | ac_init_help= |
475 | ac_init_version=false |
317 | ac_init_version=false |
476 | # The variables have the same names as the options, with |
318 | # The variables have the same names as the options, with |
… | |
… | |
1021 | cat <<\_ACEOF |
863 | cat <<\_ACEOF |
1022 | |
864 | |
1023 | Optional Features: |
865 | Optional Features: |
1024 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
866 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1025 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
867 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1026 | --enable-shared=PKGS build shared libraries default=no |
|
|
1027 | --enable-static=PKGS build static libraries default=yes |
|
|
1028 | --enable-fast-install=PKGS optimize for fast installation default=yes |
|
|
1029 | --disable-libtool-lock avoid locking (might break parallel builds) |
|
|
1030 | --enable-everything enable standard non-multichoice features |
868 | --enable-everything enable standard non-multichoice features |
1031 | NOTE: this option is order dependent |
869 | NOTE: this option is order dependent |
1032 | NOTE: automatically enabled with --enable-shared |
870 | NOTE: automatically enabled with --enable-shared |
1033 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
871 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1034 | --enable-combining enable composition of base and combining characters |
872 | --enable-combining enable composition of base and combining characters |
1035 | --enable-xft enable xft support on systems that have it |
873 | --enable-xft enable xft support on systems that have it |
|
|
874 | --enable-font-styles enable bold and italic support |
1036 | --enable-utmp enable utmp (utmpx) support |
875 | --enable-utmp enable utmp (utmpx) support |
1037 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
876 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1038 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
877 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1039 | --enable-xpm-background enable XPM background pixmaps |
878 | --enable-xpm-background enable XPM background pixmaps |
1040 | --enable-transparency enable transparent backgrounds |
879 | --enable-transparency enable transparent backgrounds |
1041 | --enable-tinting enable tinting of transparent bg |
880 | --enable-tinting enable tinting of transparent bg |
1042 | --enable-menubar enable menubar |
881 | --enable-fading enable colors fading when off focus |
1043 | --enable-rxvt-scroll enable rxvt style scrollbar |
882 | --enable-rxvt-scroll enable rxvt style scrollbar |
1044 | --enable-next-scroll enable NeXT style scrollbar |
883 | --enable-next-scroll enable NeXT style scrollbar |
1045 | --enable-xterm-scroll enable Xterm style scrollbar |
884 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
885 | --enable-perl enable embedded perl interpreter |
1046 | --enable-plain-scroll enable plain style scrollbar |
886 | --enable-plain-scroll enable plain style scrollbar |
1047 | --enable-half-shadow use half width/height shadow on rxvt scrollbar |
|
|
1048 | --enable-xim XIM (X Input Method) protocol support |
887 | --enable-xim XIM (X Input Method) protocol support |
1049 | --enable-ttygid enable tty setting to group named "tty" |
888 | --enable-ttygid enable tty setting to group named "tty" |
1050 | --disable-backspace-key disable handling of the backspace key |
889 | --disable-backspace-key disable handling of the backspace key |
1051 | --disable-delete-key disable handling of the delete key |
890 | --disable-delete-key disable handling of the delete key |
1052 | --disable-resources disable all resource checking |
891 | --disable-resources disable all resource checking |
1053 | --enable-xgetdefault enable resources via X instead of our small version |
|
|
1054 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
892 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1055 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
893 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1056 | --enable-strings enable some replacement system functions |
|
|
1057 | --disable-swapscreen disable swap screen support |
894 | --disable-swapscreen disable swap screen support |
|
|
895 | --enable-iso14755 enable support for extended ISO 14755 modes |
1058 | --enable-frills enable support for rarely used features |
896 | --enable-frills enable support for rarely used features |
1059 | --enable-linespace enable support for linespace |
|
|
1060 | --enable-24bit enable support for using 24bit visuals if available |
897 | --enable-24bit enable support for using 24bit visuals if available |
1061 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
898 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1062 | --enable-selectionscrolling enable scrolling during selections |
899 | --enable-selectionscrolling enable scrolling during selections |
1063 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
900 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1064 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
901 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1065 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
902 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
1066 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
903 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
1067 | NOTE: enable only one malloc package |
904 | NOTE: enable only one malloc package |
1068 | --enable-smart-resize enable smart growth/shrink behaviour |
905 | --enable-smart-resize enable smart growth/shrink behaviour |
1069 | --enable-256-color enable 256-color support |
|
|
1070 | --enable-cursor-blink enable blinking cursor |
|
|
1071 | --enable-text-blink enable blinking text |
906 | --enable-text-blink enable blinking text |
1072 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
907 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1073 | |
908 | |
1074 | Optional Packages: |
909 | Optional Packages: |
1075 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
910 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1076 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
911 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1077 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
|
|
1078 | --with-pic try to use only PIC/non-PIC objects default=use both |
|
|
1079 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) |
912 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1080 | --with-res-name=NAME use this as default resource name (default: urxvt) |
913 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1081 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
914 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1082 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
915 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1083 | --with-term=NAME set the terminal to NAME (default: rxvt) |
916 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1084 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
917 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
… | |
… | |
1535 | |
1368 | |
1536 | |
1369 | |
1537 | |
1370 | |
1538 | |
1371 | |
1539 | |
1372 | |
|
|
1373 | |
|
|
1374 | |
|
|
1375 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
|
|
1376 | |
|
|
1377 | |
1540 | ac_aux_dir= |
1378 | ac_aux_dir= |
1541 | for ac_dir in autoconf $srcdir/autoconf; do |
1379 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1542 | if test -f $ac_dir/install-sh; then |
1380 | if test -f $ac_dir/install-sh; then |
1543 | ac_aux_dir=$ac_dir |
1381 | ac_aux_dir=$ac_dir |
1544 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1382 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1545 | break |
1383 | break |
1546 | elif test -f $ac_dir/install.sh; then |
1384 | elif test -f $ac_dir/install.sh; then |
… | |
… | |
1552 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1390 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1553 | break |
1391 | break |
1554 | fi |
1392 | fi |
1555 | done |
1393 | done |
1556 | if test -z "$ac_aux_dir"; then |
1394 | if test -z "$ac_aux_dir"; then |
1557 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1395 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1558 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
1396 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1559 | { (exit 1); exit 1; }; } |
1397 | { (exit 1); exit 1; }; } |
1560 | fi |
1398 | fi |
1561 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1399 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1562 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1400 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1563 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1401 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1564 | |
1402 | |
1565 | ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" |
1403 | # Make sure we can run config.sub. |
|
|
1404 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
1405 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
1406 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
1407 | { (exit 1); exit 1; }; } |
|
|
1408 | |
|
|
1409 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
1410 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
1411 | if test "${ac_cv_build+set}" = set; then |
|
|
1412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1413 | else |
|
|
1414 | ac_cv_build_alias=$build_alias |
|
|
1415 | test -z "$ac_cv_build_alias" && |
|
|
1416 | ac_cv_build_alias=`$ac_config_guess` |
|
|
1417 | test -z "$ac_cv_build_alias" && |
|
|
1418 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
1419 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
1420 | { (exit 1); exit 1; }; } |
|
|
1421 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
1422 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
1423 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
1424 | { (exit 1); exit 1; }; } |
|
|
1425 | |
|
|
1426 | fi |
|
|
1427 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
1428 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
1429 | build=$ac_cv_build |
|
|
1430 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1431 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1432 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1433 | |
|
|
1434 | |
|
|
1435 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
1436 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
1437 | if test "${ac_cv_host+set}" = set; then |
|
|
1438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1439 | else |
|
|
1440 | ac_cv_host_alias=$host_alias |
|
|
1441 | test -z "$ac_cv_host_alias" && |
|
|
1442 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
1443 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
1444 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
1445 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
1446 | { (exit 1); exit 1; }; } |
|
|
1447 | |
|
|
1448 | fi |
|
|
1449 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
1450 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
1451 | host=$ac_cv_host |
|
|
1452 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1453 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1454 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1455 | |
1566 | |
1456 | |
1567 | |
1457 | |
1568 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1458 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1569 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1459 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1570 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1571 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1572 | echo "" |
1460 | echo "" |
1573 | echo "configuring for rxvt $VERSION" |
1461 | echo "configuring for rxvt $VERSION" |
1574 | echo "" |
1462 | echo "" |
|
|
1463 | |
|
|
1464 | orig_CXXFLAGS="$CXXFLAGS" |
1575 | |
1465 | |
1576 | |
1466 | |
1577 | ac_ext=c |
1467 | ac_ext=c |
1578 | ac_cpp='$CPP $CPPFLAGS' |
1468 | ac_cpp='$CPP $CPPFLAGS' |
1579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
… | |
… | |
3160 | |
3050 | |
3161 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3051 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3162 | |
3052 | |
3163 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3053 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3164 | |
3054 | |
3165 | for ac_prog in gawk mawk nawk awk |
|
|
3166 | do |
|
|
3167 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
3168 | set dummy $ac_prog; ac_word=$2 |
|
|
3169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3171 | if test "${ac_cv_prog_AWK+set}" = set; then |
|
|
3172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3173 | else |
|
|
3174 | if test -n "$AWK"; then |
|
|
3175 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
|
3176 | else |
|
|
3177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3178 | for as_dir in $PATH |
|
|
3179 | do |
|
|
3180 | IFS=$as_save_IFS |
|
|
3181 | test -z "$as_dir" && as_dir=. |
|
|
3182 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3184 | ac_cv_prog_AWK="$ac_prog" |
|
|
3185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3186 | break 2 |
|
|
3187 | fi |
|
|
3188 | done |
|
|
3189 | done |
|
|
3190 | |
3055 | |
3191 | fi |
|
|
3192 | fi |
|
|
3193 | AWK=$ac_cv_prog_AWK |
|
|
3194 | if test -n "$AWK"; then |
|
|
3195 | echo "$as_me:$LINENO: result: $AWK" >&5 |
|
|
3196 | echo "${ECHO_T}$AWK" >&6 |
|
|
3197 | else |
|
|
3198 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3199 | echo "${ECHO_T}no" >&6 |
|
|
3200 | fi |
|
|
3201 | |
|
|
3202 | test -n "$AWK" && break |
|
|
3203 | done |
|
|
3204 | |
|
|
3205 | |
|
|
3206 | ac_ext=c |
|
|
3207 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3211 | |
|
|
3212 | |
|
|
3213 | LINKER="$CXX" |
|
|
3214 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3215 | |
|
|
3216 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3217 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3218 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3220 | else |
|
|
3221 | ac_check_lib_save_LIBS=$LIBS |
|
|
3222 | LIBS="-lsupc++ $LIBS" |
|
|
3223 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3224 | /* confdefs.h. */ |
|
|
3225 | _ACEOF |
|
|
3226 | cat confdefs.h >>conftest.$ac_ext |
|
|
3227 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3228 | /* end confdefs.h. */ |
|
|
3229 | |
|
|
3230 | |
|
|
3231 | int |
|
|
3232 | main () |
|
|
3233 | { |
|
|
3234 | main (); |
|
|
3235 | ; |
|
|
3236 | return 0; |
|
|
3237 | } |
|
|
3238 | _ACEOF |
|
|
3239 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3241 | (eval $ac_link) 2>conftest.er1 |
|
|
3242 | ac_status=$? |
|
|
3243 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3244 | rm -f conftest.er1 |
|
|
3245 | cat conftest.err >&5 |
|
|
3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3247 | (exit $ac_status); } && |
|
|
3248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3250 | (eval $ac_try) 2>&5 |
|
|
3251 | ac_status=$? |
|
|
3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3253 | (exit $ac_status); }; } && |
|
|
3254 | { ac_try='test -s conftest$ac_exeext' |
|
|
3255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3256 | (eval $ac_try) 2>&5 |
|
|
3257 | ac_status=$? |
|
|
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3259 | (exit $ac_status); }; }; then |
|
|
3260 | ac_cv_lib_supcpp_main=yes |
|
|
3261 | else |
|
|
3262 | echo "$as_me: failed program was:" >&5 |
|
|
3263 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3264 | |
|
|
3265 | ac_cv_lib_supcpp_main=no |
|
|
3266 | fi |
|
|
3267 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3268 | conftest$ac_exeext conftest.$ac_ext |
|
|
3269 | LIBS=$ac_check_lib_save_LIBS |
|
|
3270 | fi |
|
|
3271 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3272 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3273 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3274 | |
|
|
3275 | LINKER="$CC" |
|
|
3276 | LIBS="$LIBS -lsupc++" |
|
|
3277 | |
|
|
3278 | fi |
|
|
3279 | |
|
|
3280 | fi |
|
|
3281 | LINKER=$LINKER |
|
|
3282 | |
|
|
3283 | |
|
|
3284 | CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" |
|
|
3285 | |
|
|
3286 | |
|
|
3287 | ac_ext=cc |
|
|
3288 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3289 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3290 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3291 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3292 | |
|
|
3293 | |
|
|
3294 | |
|
|
3295 | ac_ext=cc |
|
|
3296 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3297 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3298 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3299 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3300 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
3301 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
3302 | if test -z "$CXXCPP"; then |
|
|
3303 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
3304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3305 | else |
|
|
3306 | # Double quotes because CXXCPP needs to be expanded |
|
|
3307 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
3308 | do |
|
|
3309 | ac_preproc_ok=false |
|
|
3310 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3311 | do |
|
|
3312 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3313 | # with a fresh cross-compiler works. |
|
|
3314 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3315 | # <limits.h> exists even on freestanding compilers. |
|
|
3316 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3317 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3318 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3319 | /* confdefs.h. */ |
|
|
3320 | _ACEOF |
|
|
3321 | cat confdefs.h >>conftest.$ac_ext |
|
|
3322 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3323 | /* end confdefs.h. */ |
|
|
3324 | #ifdef __STDC__ |
|
|
3325 | # include <limits.h> |
|
|
3326 | #else |
|
|
3327 | # include <assert.h> |
|
|
3328 | #endif |
|
|
3329 | Syntax error |
|
|
3330 | _ACEOF |
|
|
3331 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3332 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3333 | ac_status=$? |
|
|
3334 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3335 | rm -f conftest.er1 |
|
|
3336 | cat conftest.err >&5 |
|
|
3337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3338 | (exit $ac_status); } >/dev/null; then |
|
|
3339 | if test -s conftest.err; then |
|
|
3340 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3341 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3342 | else |
|
|
3343 | ac_cpp_err= |
|
|
3344 | fi |
|
|
3345 | else |
|
|
3346 | ac_cpp_err=yes |
|
|
3347 | fi |
|
|
3348 | if test -z "$ac_cpp_err"; then |
|
|
3349 | : |
|
|
3350 | else |
|
|
3351 | echo "$as_me: failed program was:" >&5 |
|
|
3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3353 | |
|
|
3354 | # Broken: fails on valid input. |
|
|
3355 | continue |
|
|
3356 | fi |
|
|
3357 | rm -f conftest.err conftest.$ac_ext |
|
|
3358 | |
|
|
3359 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3360 | # can be detected and how. |
|
|
3361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3362 | /* confdefs.h. */ |
|
|
3363 | _ACEOF |
|
|
3364 | cat confdefs.h >>conftest.$ac_ext |
|
|
3365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3366 | /* end confdefs.h. */ |
|
|
3367 | #include <ac_nonexistent.h> |
|
|
3368 | _ACEOF |
|
|
3369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3371 | ac_status=$? |
|
|
3372 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3373 | rm -f conftest.er1 |
|
|
3374 | cat conftest.err >&5 |
|
|
3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3376 | (exit $ac_status); } >/dev/null; then |
|
|
3377 | if test -s conftest.err; then |
|
|
3378 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3379 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3380 | else |
|
|
3381 | ac_cpp_err= |
|
|
3382 | fi |
|
|
3383 | else |
|
|
3384 | ac_cpp_err=yes |
|
|
3385 | fi |
|
|
3386 | if test -z "$ac_cpp_err"; then |
|
|
3387 | # Broken: success on invalid input. |
|
|
3388 | continue |
|
|
3389 | else |
|
|
3390 | echo "$as_me: failed program was:" >&5 |
|
|
3391 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3392 | |
|
|
3393 | # Passes both tests. |
|
|
3394 | ac_preproc_ok=: |
|
|
3395 | break |
|
|
3396 | fi |
|
|
3397 | rm -f conftest.err conftest.$ac_ext |
|
|
3398 | |
|
|
3399 | done |
|
|
3400 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3401 | rm -f conftest.err conftest.$ac_ext |
|
|
3402 | if $ac_preproc_ok; then |
|
|
3403 | break |
|
|
3404 | fi |
|
|
3405 | |
|
|
3406 | done |
|
|
3407 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3408 | |
|
|
3409 | fi |
|
|
3410 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
3411 | else |
|
|
3412 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3413 | fi |
|
|
3414 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
3415 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
3416 | ac_preproc_ok=false |
|
|
3417 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3418 | do |
|
|
3419 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3420 | # with a fresh cross-compiler works. |
|
|
3421 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3422 | # <limits.h> exists even on freestanding compilers. |
|
|
3423 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3424 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3425 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3426 | /* confdefs.h. */ |
|
|
3427 | _ACEOF |
|
|
3428 | cat confdefs.h >>conftest.$ac_ext |
|
|
3429 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3430 | /* end confdefs.h. */ |
|
|
3431 | #ifdef __STDC__ |
|
|
3432 | # include <limits.h> |
|
|
3433 | #else |
|
|
3434 | # include <assert.h> |
|
|
3435 | #endif |
|
|
3436 | Syntax error |
|
|
3437 | _ACEOF |
|
|
3438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3440 | ac_status=$? |
|
|
3441 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3442 | rm -f conftest.er1 |
|
|
3443 | cat conftest.err >&5 |
|
|
3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3445 | (exit $ac_status); } >/dev/null; then |
|
|
3446 | if test -s conftest.err; then |
|
|
3447 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3448 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3449 | else |
|
|
3450 | ac_cpp_err= |
|
|
3451 | fi |
|
|
3452 | else |
|
|
3453 | ac_cpp_err=yes |
|
|
3454 | fi |
|
|
3455 | if test -z "$ac_cpp_err"; then |
|
|
3456 | : |
|
|
3457 | else |
|
|
3458 | echo "$as_me: failed program was:" >&5 |
|
|
3459 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3460 | |
|
|
3461 | # Broken: fails on valid input. |
|
|
3462 | continue |
|
|
3463 | fi |
|
|
3464 | rm -f conftest.err conftest.$ac_ext |
|
|
3465 | |
|
|
3466 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3467 | # can be detected and how. |
|
|
3468 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3469 | /* confdefs.h. */ |
|
|
3470 | _ACEOF |
|
|
3471 | cat confdefs.h >>conftest.$ac_ext |
|
|
3472 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3473 | /* end confdefs.h. */ |
|
|
3474 | #include <ac_nonexistent.h> |
|
|
3475 | _ACEOF |
|
|
3476 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3477 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3478 | ac_status=$? |
|
|
3479 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3480 | rm -f conftest.er1 |
|
|
3481 | cat conftest.err >&5 |
|
|
3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3483 | (exit $ac_status); } >/dev/null; then |
|
|
3484 | if test -s conftest.err; then |
|
|
3485 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3486 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3487 | else |
|
|
3488 | ac_cpp_err= |
|
|
3489 | fi |
|
|
3490 | else |
|
|
3491 | ac_cpp_err=yes |
|
|
3492 | fi |
|
|
3493 | if test -z "$ac_cpp_err"; then |
|
|
3494 | # Broken: success on invalid input. |
|
|
3495 | continue |
|
|
3496 | else |
|
|
3497 | echo "$as_me: failed program was:" >&5 |
|
|
3498 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3499 | |
|
|
3500 | # Passes both tests. |
|
|
3501 | ac_preproc_ok=: |
|
|
3502 | break |
|
|
3503 | fi |
|
|
3504 | rm -f conftest.err conftest.$ac_ext |
|
|
3505 | |
|
|
3506 | done |
|
|
3507 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3508 | rm -f conftest.err conftest.$ac_ext |
|
|
3509 | if $ac_preproc_ok; then |
|
|
3510 | : |
|
|
3511 | else |
|
|
3512 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3513 | See \`config.log' for more details." >&5 |
|
|
3514 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3515 | See \`config.log' for more details." >&2;} |
|
|
3516 | { (exit 1); exit 1; }; } |
|
|
3517 | fi |
|
|
3518 | |
|
|
3519 | ac_ext=cc |
|
|
3520 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3521 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3522 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3523 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3524 | |
3056 | |
3525 | |
3057 | |
3526 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3058 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3527 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3059 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3528 | if test "${ac_cv_prog_egrep+set}" = set; then |
3060 | if test "${ac_cv_prog_egrep+set}" = set; then |
… | |
… | |
3603 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
3604 | rm -f conftest.er1 |
3136 | rm -f conftest.er1 |
3605 | cat conftest.err >&5 |
3137 | cat conftest.err >&5 |
3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3607 | (exit $ac_status); } && |
3139 | (exit $ac_status); } && |
3608 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3610 | (eval $ac_try) 2>&5 |
3142 | (eval $ac_try) 2>&5 |
3611 | ac_status=$? |
3143 | ac_status=$? |
3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3613 | (exit $ac_status); }; } && |
3145 | (exit $ac_status); }; } && |
… | |
… | |
3657 | grep -v '^ *+' conftest.er1 >conftest.err |
3189 | grep -v '^ *+' conftest.er1 >conftest.err |
3658 | rm -f conftest.er1 |
3190 | rm -f conftest.er1 |
3659 | cat conftest.err >&5 |
3191 | cat conftest.err >&5 |
3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3661 | (exit $ac_status); } && |
3193 | (exit $ac_status); } && |
3662 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3664 | (eval $ac_try) 2>&5 |
3196 | (eval $ac_try) 2>&5 |
3665 | ac_status=$? |
3197 | ac_status=$? |
3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3667 | (exit $ac_status); }; } && |
3199 | (exit $ac_status); }; } && |
… | |
… | |
3689 | if test "$ac_cv_search_strerror" != no; then |
3221 | if test "$ac_cv_search_strerror" != no; then |
3690 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3222 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3691 | |
3223 | |
3692 | fi |
3224 | fi |
3693 | |
3225 | |
|
|
3226 | ac_ext=cc |
|
|
3227 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3228 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3229 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3230 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3694 | |
3231 | |
|
|
3232 | |
|
|
3233 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3234 | echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
|
|
3235 | echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6 |
|
|
3236 | save_CXX="$CXX" |
|
|
3237 | save_LIBS="$LIBS" |
|
|
3238 | CXX="$CC" |
|
|
3239 | LIBS="$LIBS -lsupc++" |
|
|
3240 | LINKER="$CC" |
|
|
3241 | |
|
|
3242 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3243 | /* confdefs.h. */ |
|
|
3244 | _ACEOF |
|
|
3245 | cat confdefs.h >>conftest.$ac_ext |
|
|
3246 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3247 | /* end confdefs.h. */ |
|
|
3248 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
3249 | int |
|
|
3250 | main () |
|
|
3251 | { |
|
|
3252 | |
|
|
3253 | ; |
|
|
3254 | return 0; |
|
|
3255 | } |
|
|
3256 | _ACEOF |
|
|
3257 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3259 | (eval $ac_link) 2>conftest.er1 |
|
|
3260 | ac_status=$? |
|
|
3261 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3262 | rm -f conftest.er1 |
|
|
3263 | cat conftest.err >&5 |
|
|
3264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3265 | (exit $ac_status); } && |
|
|
3266 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3268 | (eval $ac_try) 2>&5 |
|
|
3269 | ac_status=$? |
|
|
3270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3271 | (exit $ac_status); }; } && |
|
|
3272 | { ac_try='test -s conftest$ac_exeext' |
|
|
3273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3274 | (eval $ac_try) 2>&5 |
|
|
3275 | ac_status=$? |
|
|
3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3277 | (exit $ac_status); }; }; then |
|
|
3278 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
3279 | echo "${ECHO_T}ok" >&6 |
|
|
3280 | else |
|
|
3281 | echo "$as_me: failed program was:" >&5 |
|
|
3282 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3283 | |
|
|
3284 | |
|
|
3285 | echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
|
|
3286 | echo "${ECHO_T}no, making everything bigger and slower" >&6 |
|
|
3287 | LIBS="$save_LIBS" |
|
|
3288 | LINKER="$save_CXX" |
|
|
3289 | |
|
|
3290 | |
|
|
3291 | fi |
|
|
3292 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3293 | conftest$ac_exeext conftest.$ac_ext |
|
|
3294 | CXX="$save_CXX" |
|
|
3295 | fi |
|
|
3296 | LINKER=$LINKER |
|
|
3297 | |
|
|
3298 | |
|
|
3299 | ac_ext=cc |
|
|
3300 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3301 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3302 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3303 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3304 | |
|
|
3305 | if test -z "$orig_CXXFLAGS"; then |
|
|
3306 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3307 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3308 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3309 | /* confdefs.h. */ |
|
|
3310 | _ACEOF |
|
|
3311 | cat confdefs.h >>conftest.$ac_ext |
|
|
3312 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3313 | /* end confdefs.h. */ |
|
|
3314 | |
|
|
3315 | int |
|
|
3316 | main () |
|
|
3317 | { |
|
|
3318 | |
|
|
3319 | ; |
|
|
3320 | return 0; |
|
|
3321 | } |
|
|
3322 | _ACEOF |
|
|
3323 | rm -f conftest.$ac_objext |
|
|
3324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3325 | (eval $ac_compile) 2>conftest.er1 |
|
|
3326 | ac_status=$? |
|
|
3327 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3328 | rm -f conftest.er1 |
|
|
3329 | cat conftest.err >&5 |
|
|
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3331 | (exit $ac_status); } && |
|
|
3332 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3334 | (eval $ac_try) 2>&5 |
|
|
3335 | ac_status=$? |
|
|
3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3337 | (exit $ac_status); }; } && |
|
|
3338 | { ac_try='test -s conftest.$ac_objext' |
|
|
3339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3340 | (eval $ac_try) 2>&5 |
|
|
3341 | ac_status=$? |
|
|
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3343 | (exit $ac_status); }; }; then |
|
|
3344 | : |
|
|
3345 | else |
|
|
3346 | echo "$as_me: failed program was:" >&5 |
|
|
3347 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3348 | |
|
|
3349 | CXXFLAGS="-g -O3" |
|
|
3350 | fi |
|
|
3351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3352 | else |
|
|
3353 | CXXFLAGS="-O" |
|
|
3354 | fi |
|
|
3355 | CFLAGS="$CXXFLAGS" |
|
|
3356 | fi |
|
|
3357 | |
|
|
3358 | |
|
|
3359 | cat >>confdefs.h <<\_ACEOF |
|
|
3360 | #define _GNU_SOURCE 1 |
|
|
3361 | _ACEOF |
|
|
3362 | |
|
|
3363 | |
|
|
3364 | case $host in |
|
|
3365 | *-*-solaris* ) |
|
|
3366 | |
|
|
3367 | cat >>confdefs.h <<\_ACEOF |
|
|
3368 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3369 | _ACEOF |
|
|
3370 | |
|
|
3371 | |
|
|
3372 | cat >>confdefs.h <<\_ACEOF |
|
|
3373 | #define _XOPEN_SOURCE 2 |
|
|
3374 | _ACEOF |
|
|
3375 | |
|
|
3376 | |
|
|
3377 | cat >>confdefs.h <<\_ACEOF |
|
|
3378 | #define __EXTENSIONS__ 1 |
|
|
3379 | _ACEOF |
|
|
3380 | |
|
|
3381 | ;; |
|
|
3382 | esac |
|
|
3383 | |
|
|
3384 | |
|
|
3385 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3386 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
|
|
3387 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3389 | else |
|
|
3390 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3391 | /* confdefs.h. */ |
|
|
3392 | _ACEOF |
|
|
3393 | cat confdefs.h >>conftest.$ac_ext |
|
|
3394 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3395 | /* end confdefs.h. */ |
|
|
3396 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3397 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3398 | #define setlocale innocuous_setlocale |
|
|
3399 | |
|
|
3400 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3401 | which can conflict with char setlocale (); below. |
|
|
3402 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3403 | <limits.h> exists even on freestanding compilers. */ |
|
|
3404 | |
|
|
3405 | #ifdef __STDC__ |
|
|
3406 | # include <limits.h> |
|
|
3407 | #else |
|
|
3408 | # include <assert.h> |
|
|
3409 | #endif |
|
|
3410 | |
|
|
3411 | #undef setlocale |
|
|
3412 | |
|
|
3413 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3414 | #ifdef __cplusplus |
|
|
3415 | extern "C" |
|
|
3416 | { |
|
|
3417 | #endif |
|
|
3418 | /* We use char because int might match the return type of a gcc2 |
|
|
3419 | builtin and then its argument prototype would still apply. */ |
|
|
3420 | char setlocale (); |
|
|
3421 | /* The GNU C library defines this for functions which it implements |
|
|
3422 | to always fail with ENOSYS. Some functions are actually named |
|
|
3423 | something starting with __ and the normal name is an alias. */ |
|
|
3424 | #if defined (__stub_setlocale) || defined (__stub___setlocale) |
|
|
3425 | choke me |
|
|
3426 | #else |
|
|
3427 | char (*f) () = setlocale; |
|
|
3428 | #endif |
|
|
3429 | #ifdef __cplusplus |
|
|
3430 | } |
|
|
3431 | #endif |
|
|
3432 | |
|
|
3433 | int |
|
|
3434 | main () |
|
|
3435 | { |
|
|
3436 | return f != setlocale; |
|
|
3437 | ; |
|
|
3438 | return 0; |
|
|
3439 | } |
|
|
3440 | _ACEOF |
|
|
3441 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3443 | (eval $ac_link) 2>conftest.er1 |
|
|
3444 | ac_status=$? |
|
|
3445 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3446 | rm -f conftest.er1 |
|
|
3447 | cat conftest.err >&5 |
|
|
3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3449 | (exit $ac_status); } && |
|
|
3450 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3452 | (eval $ac_try) 2>&5 |
|
|
3453 | ac_status=$? |
|
|
3454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3455 | (exit $ac_status); }; } && |
|
|
3456 | { ac_try='test -s conftest$ac_exeext' |
|
|
3457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3458 | (eval $ac_try) 2>&5 |
|
|
3459 | ac_status=$? |
|
|
3460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3461 | (exit $ac_status); }; }; then |
|
|
3462 | ac_cv_func_setlocale=yes |
|
|
3463 | else |
|
|
3464 | echo "$as_me: failed program was:" >&5 |
|
|
3465 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3466 | |
|
|
3467 | ac_cv_func_setlocale=no |
|
|
3468 | fi |
|
|
3469 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3470 | conftest$ac_exeext conftest.$ac_ext |
|
|
3471 | fi |
|
|
3472 | echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
|
|
3473 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6 |
|
|
3474 | if test $ac_cv_func_setlocale = yes; then |
|
|
3475 | : |
|
|
3476 | else |
3695 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3477 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3696 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3478 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3697 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3479 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3699 | else |
3481 | else |
3700 | ac_check_lib_save_LIBS=$LIBS |
3482 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3757 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3539 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3758 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3540 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3759 | LIBS="$LIBS -lxpg4" |
3541 | LIBS="$LIBS -lxpg4" |
3760 | fi |
3542 | fi |
3761 | |
3543 | |
|
|
3544 | fi |
3762 | |
3545 | |
|
|
3546 | |
|
|
3547 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
3548 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
3549 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
3550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3551 | else |
|
|
3552 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3553 | /* confdefs.h. */ |
|
|
3554 | _ACEOF |
|
|
3555 | cat confdefs.h >>conftest.$ac_ext |
|
|
3556 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3557 | /* end confdefs.h. */ |
|
|
3558 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
3559 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3560 | #define gethostbyname innocuous_gethostbyname |
|
|
3561 | |
|
|
3562 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3563 | which can conflict with char gethostbyname (); below. |
|
|
3564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3565 | <limits.h> exists even on freestanding compilers. */ |
|
|
3566 | |
|
|
3567 | #ifdef __STDC__ |
|
|
3568 | # include <limits.h> |
|
|
3569 | #else |
|
|
3570 | # include <assert.h> |
|
|
3571 | #endif |
|
|
3572 | |
|
|
3573 | #undef gethostbyname |
|
|
3574 | |
|
|
3575 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3576 | #ifdef __cplusplus |
|
|
3577 | extern "C" |
|
|
3578 | { |
|
|
3579 | #endif |
|
|
3580 | /* We use char because int might match the return type of a gcc2 |
|
|
3581 | builtin and then its argument prototype would still apply. */ |
|
|
3582 | char gethostbyname (); |
|
|
3583 | /* The GNU C library defines this for functions which it implements |
|
|
3584 | to always fail with ENOSYS. Some functions are actually named |
|
|
3585 | something starting with __ and the normal name is an alias. */ |
|
|
3586 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
|
|
3587 | choke me |
|
|
3588 | #else |
|
|
3589 | char (*f) () = gethostbyname; |
|
|
3590 | #endif |
|
|
3591 | #ifdef __cplusplus |
|
|
3592 | } |
|
|
3593 | #endif |
|
|
3594 | |
|
|
3595 | int |
|
|
3596 | main () |
|
|
3597 | { |
|
|
3598 | return f != gethostbyname; |
|
|
3599 | ; |
|
|
3600 | return 0; |
|
|
3601 | } |
|
|
3602 | _ACEOF |
|
|
3603 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3605 | (eval $ac_link) 2>conftest.er1 |
|
|
3606 | ac_status=$? |
|
|
3607 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3608 | rm -f conftest.er1 |
|
|
3609 | cat conftest.err >&5 |
|
|
3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3611 | (exit $ac_status); } && |
|
|
3612 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3614 | (eval $ac_try) 2>&5 |
|
|
3615 | ac_status=$? |
|
|
3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3617 | (exit $ac_status); }; } && |
|
|
3618 | { ac_try='test -s conftest$ac_exeext' |
|
|
3619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3620 | (eval $ac_try) 2>&5 |
|
|
3621 | ac_status=$? |
|
|
3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3623 | (exit $ac_status); }; }; then |
|
|
3624 | ac_cv_func_gethostbyname=yes |
|
|
3625 | else |
|
|
3626 | echo "$as_me: failed program was:" >&5 |
|
|
3627 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3628 | |
|
|
3629 | ac_cv_func_gethostbyname=no |
|
|
3630 | fi |
|
|
3631 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3632 | conftest$ac_exeext conftest.$ac_ext |
|
|
3633 | fi |
|
|
3634 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
3635 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
|
3636 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
3637 | : |
|
|
3638 | else |
3763 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3639 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3764 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3640 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3765 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3641 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3767 | else |
3643 | else |
3768 | ac_check_lib_save_LIBS=$LIBS |
3644 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3825 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3701 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3826 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3702 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3827 | LIBS="$LIBS -lnsl" |
3703 | LIBS="$LIBS -lnsl" |
3828 | fi |
3704 | fi |
3829 | |
3705 | |
|
|
3706 | fi |
|
|
3707 | |
|
|
3708 | echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
3709 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
|
|
3710 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
3711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3712 | else |
|
|
3713 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3714 | /* confdefs.h. */ |
|
|
3715 | _ACEOF |
|
|
3716 | cat confdefs.h >>conftest.$ac_ext |
|
|
3717 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3718 | /* end confdefs.h. */ |
|
|
3719 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
3720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3721 | #define socket innocuous_socket |
|
|
3722 | |
|
|
3723 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3724 | which can conflict with char socket (); below. |
|
|
3725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3726 | <limits.h> exists even on freestanding compilers. */ |
|
|
3727 | |
|
|
3728 | #ifdef __STDC__ |
|
|
3729 | # include <limits.h> |
|
|
3730 | #else |
|
|
3731 | # include <assert.h> |
|
|
3732 | #endif |
|
|
3733 | |
|
|
3734 | #undef socket |
|
|
3735 | |
|
|
3736 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3737 | #ifdef __cplusplus |
|
|
3738 | extern "C" |
|
|
3739 | { |
|
|
3740 | #endif |
|
|
3741 | /* We use char because int might match the return type of a gcc2 |
|
|
3742 | builtin and then its argument prototype would still apply. */ |
|
|
3743 | char socket (); |
|
|
3744 | /* The GNU C library defines this for functions which it implements |
|
|
3745 | to always fail with ENOSYS. Some functions are actually named |
|
|
3746 | something starting with __ and the normal name is an alias. */ |
|
|
3747 | #if defined (__stub_socket) || defined (__stub___socket) |
|
|
3748 | choke me |
|
|
3749 | #else |
|
|
3750 | char (*f) () = socket; |
|
|
3751 | #endif |
|
|
3752 | #ifdef __cplusplus |
|
|
3753 | } |
|
|
3754 | #endif |
|
|
3755 | |
|
|
3756 | int |
|
|
3757 | main () |
|
|
3758 | { |
|
|
3759 | return f != socket; |
|
|
3760 | ; |
|
|
3761 | return 0; |
|
|
3762 | } |
|
|
3763 | _ACEOF |
|
|
3764 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3766 | (eval $ac_link) 2>conftest.er1 |
|
|
3767 | ac_status=$? |
|
|
3768 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3769 | rm -f conftest.er1 |
|
|
3770 | cat conftest.err >&5 |
|
|
3771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3772 | (exit $ac_status); } && |
|
|
3773 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3775 | (eval $ac_try) 2>&5 |
|
|
3776 | ac_status=$? |
|
|
3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3778 | (exit $ac_status); }; } && |
|
|
3779 | { ac_try='test -s conftest$ac_exeext' |
|
|
3780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3781 | (eval $ac_try) 2>&5 |
|
|
3782 | ac_status=$? |
|
|
3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3784 | (exit $ac_status); }; }; then |
|
|
3785 | ac_cv_func_socket=yes |
|
|
3786 | else |
|
|
3787 | echo "$as_me: failed program was:" >&5 |
|
|
3788 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3789 | |
|
|
3790 | ac_cv_func_socket=no |
|
|
3791 | fi |
|
|
3792 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3793 | conftest$ac_exeext conftest.$ac_ext |
|
|
3794 | fi |
|
|
3795 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
3796 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
|
|
3797 | if test $ac_cv_func_socket = yes; then |
|
|
3798 | : |
|
|
3799 | else |
3830 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3800 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3831 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
3801 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
3832 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3802 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3834 | else |
3804 | else |
3835 | ac_check_lib_save_LIBS=$LIBS |
3805 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3892 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
3862 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
3893 | if test $ac_cv_lib_socket_socket = yes; then |
3863 | if test $ac_cv_lib_socket_socket = yes; then |
3894 | LIBS="$LIBS -lsocket" |
3864 | LIBS="$LIBS -lsocket" |
3895 | fi |
3865 | fi |
3896 | |
3866 | |
3897 | |
|
|
3898 | # Check whether --enable-shared or --disable-shared was given. |
|
|
3899 | if test "${enable_shared+set}" = set; then |
|
|
3900 | enableval="$enable_shared" |
|
|
3901 | p=${PACKAGE-default} |
|
|
3902 | case "$enableval" in |
|
|
3903 | yes) enable_shared=yes ;; |
|
|
3904 | no) enable_shared=no ;; |
|
|
3905 | *) |
|
|
3906 | enable_shared=no |
|
|
3907 | # Look at the argument we got. We use all the common list separators. |
|
|
3908 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3909 | for pkg in $enableval; do |
|
|
3910 | if test "X$pkg" = "X$p"; then |
|
|
3911 | enable_shared=yes |
|
|
3912 | fi |
|
|
3913 | done |
|
|
3914 | IFS="$ac_save_ifs" |
|
|
3915 | ;; |
|
|
3916 | esac |
|
|
3917 | else |
|
|
3918 | enable_shared=no |
|
|
3919 | fi; # Check whether --enable-static or --disable-static was given. |
|
|
3920 | if test "${enable_static+set}" = set; then |
|
|
3921 | enableval="$enable_static" |
|
|
3922 | p=${PACKAGE-default} |
|
|
3923 | case "$enableval" in |
|
|
3924 | yes) enable_static=yes ;; |
|
|
3925 | no) enable_static=no ;; |
|
|
3926 | *) |
|
|
3927 | enable_static=no |
|
|
3928 | # Look at the argument we got. We use all the common list separators. |
|
|
3929 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3930 | for pkg in $enableval; do |
|
|
3931 | if test "X$pkg" = "X$p"; then |
|
|
3932 | enable_static=yes |
|
|
3933 | fi |
|
|
3934 | done |
|
|
3935 | IFS="$ac_save_ifs" |
|
|
3936 | ;; |
|
|
3937 | esac |
|
|
3938 | else |
|
|
3939 | enable_static=yes |
|
|
3940 | fi; # Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
3941 | if test "${enable_fast_install+set}" = set; then |
|
|
3942 | enableval="$enable_fast_install" |
|
|
3943 | p=${PACKAGE-default} |
|
|
3944 | case "$enableval" in |
|
|
3945 | yes) enable_fast_install=yes ;; |
|
|
3946 | no) enable_fast_install=no ;; |
|
|
3947 | *) |
|
|
3948 | enable_fast_install=no |
|
|
3949 | # Look at the argument we got. We use all the common list separators. |
|
|
3950 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3951 | for pkg in $enableval; do |
|
|
3952 | if test "X$pkg" = "X$p"; then |
|
|
3953 | enable_fast_install=yes |
|
|
3954 | fi |
|
|
3955 | done |
|
|
3956 | IFS="$ac_save_ifs" |
|
|
3957 | ;; |
|
|
3958 | esac |
|
|
3959 | else |
|
|
3960 | enable_fast_install=yes |
|
|
3961 | fi; |
3867 | fi |
3962 | # Make sure we can run config.sub. |
|
|
3963 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
3964 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
3965 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
3966 | { (exit 1); exit 1; }; } |
|
|
3967 | |
3868 | |
3968 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
3969 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
3970 | if test "${ac_cv_build+set}" = set; then |
|
|
3971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3972 | else |
|
|
3973 | ac_cv_build_alias=$build_alias |
|
|
3974 | test -z "$ac_cv_build_alias" && |
|
|
3975 | ac_cv_build_alias=`$ac_config_guess` |
|
|
3976 | test -z "$ac_cv_build_alias" && |
|
|
3977 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
3978 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
3979 | { (exit 1); exit 1; }; } |
|
|
3980 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
3981 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
3982 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
3983 | { (exit 1); exit 1; }; } |
|
|
3984 | |
3869 | |
3985 | fi |
|
|
3986 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
3987 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
3988 | build=$ac_cv_build |
|
|
3989 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
3990 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
3991 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
3992 | |
|
|
3993 | |
|
|
3994 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
3995 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
3996 | if test "${ac_cv_host+set}" = set; then |
|
|
3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3998 | else |
|
|
3999 | ac_cv_host_alias=$host_alias |
|
|
4000 | test -z "$ac_cv_host_alias" && |
|
|
4001 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
4002 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
4003 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
4004 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
4005 | { (exit 1); exit 1; }; } |
|
|
4006 | |
|
|
4007 | fi |
|
|
4008 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
4009 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
4010 | host=$ac_cv_host |
|
|
4011 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
4012 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
4013 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
4014 | |
|
|
4015 | |
|
|
4016 | |
|
|
4017 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
4018 | if test "${with_gnu_ld+set}" = set; then |
|
|
4019 | withval="$with_gnu_ld" |
|
|
4020 | test "$withval" = no || with_gnu_ld=yes |
|
|
4021 | else |
|
|
4022 | with_gnu_ld=no |
|
|
4023 | fi; |
|
|
4024 | ac_prog=ld |
|
|
4025 | if test "$GCC" = yes; then |
|
|
4026 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
4027 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
|
|
4028 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
|
|
4029 | case $host in |
|
|
4030 | *-*-mingw*) |
|
|
4031 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
4032 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
4033 | *) |
|
|
4034 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
4035 | esac |
|
|
4036 | case "$ac_prog" in |
|
|
4037 | # Accept absolute paths. |
|
|
4038 | [\\/]* | [A-Za-z]:[\\/]*) |
|
|
4039 | re_direlt='/[^/][^/]*/\.\./' |
|
|
4040 | # Canonicalize the path of ld |
|
|
4041 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
|
|
4042 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
4043 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
|
|
4044 | done |
|
|
4045 | test -z "$LD" && LD="$ac_prog" |
|
|
4046 | ;; |
|
|
4047 | "") |
|
|
4048 | # If it fails, then pretend we aren't using GCC. |
|
|
4049 | ac_prog=ld |
|
|
4050 | ;; |
|
|
4051 | *) |
|
|
4052 | # If it is relative, then search for the first ld in PATH. |
|
|
4053 | with_gnu_ld=unknown |
|
|
4054 | ;; |
|
|
4055 | esac |
|
|
4056 | elif test "$with_gnu_ld" = yes; then |
|
|
4057 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3870 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
4058 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3871 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 |
4059 | else |
|
|
4060 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
4061 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
4062 | fi |
|
|
4063 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
4064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4065 | else |
|
|
4066 | if test -z "$LD"; then |
|
|
4067 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4068 | for ac_dir in $PATH; do |
|
|
4069 | test -z "$ac_dir" && ac_dir=. |
|
|
4070 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
4071 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
4072 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
4073 | # but apparently some GNU ld's only accept -v. |
|
|
4074 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
4075 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4076 | test "$with_gnu_ld" != no && break |
|
|
4077 | else |
|
|
4078 | test "$with_gnu_ld" != yes && break |
|
|
4079 | fi |
|
|
4080 | fi |
|
|
4081 | done |
|
|
4082 | IFS="$ac_save_ifs" |
|
|
4083 | else |
|
|
4084 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
4085 | fi |
|
|
4086 | fi |
|
|
4087 | |
|
|
4088 | LD="$lt_cv_path_LD" |
|
|
4089 | if test -n "$LD"; then |
|
|
4090 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
4091 | echo "${ECHO_T}$LD" >&6 |
|
|
4092 | else |
|
|
4093 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4094 | echo "${ECHO_T}no" >&6 |
|
|
4095 | fi |
|
|
4096 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
4097 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
4098 | { (exit 1); exit 1; }; } |
|
|
4099 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
4100 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
4101 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4103 | else |
|
|
4104 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
4105 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
|
|
4106 | lt_cv_prog_gnu_ld=yes |
|
|
4107 | else |
|
|
4108 | lt_cv_prog_gnu_ld=no |
|
|
4109 | fi |
|
|
4110 | fi |
|
|
4111 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
4112 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
4113 | with_gnu_ld=$lt_cv_prog_gnu_ld |
|
|
4114 | |
|
|
4115 | |
|
|
4116 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
|
4117 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
|
4118 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
|
4119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4120 | else |
|
|
4121 | lt_cv_ld_reload_flag='-r' |
|
|
4122 | fi |
|
|
4123 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
|
4124 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
|
4125 | reload_flag=$lt_cv_ld_reload_flag |
|
|
4126 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
|
|
4127 | |
|
|
4128 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
|
4129 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
|
4130 | if test "${lt_cv_path_NM+set}" = set; then |
|
|
4131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4132 | else |
|
|
4133 | if test -n "$NM"; then |
|
|
4134 | # Let the user override the test. |
|
|
4135 | lt_cv_path_NM="$NM" |
|
|
4136 | else |
|
|
4137 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4138 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
|
|
4139 | test -z "$ac_dir" && ac_dir=. |
|
|
4140 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
|
|
4141 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
|
|
4142 | # Check to see if the nm accepts a BSD-compat flag. |
|
|
4143 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
|
4144 | # nm: unknown option "B" ignored |
|
|
4145 | # Tru64's nm complains that /dev/null is an invalid object file |
|
|
4146 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
|
|
4147 | lt_cv_path_NM="$tmp_nm -B" |
|
|
4148 | break |
|
|
4149 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
|
|
4150 | lt_cv_path_NM="$tmp_nm -p" |
|
|
4151 | break |
|
|
4152 | else |
|
|
4153 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
|
4154 | continue # so that we can try to find one that supports BSD flags |
|
|
4155 | fi |
|
|
4156 | fi |
|
|
4157 | done |
|
|
4158 | IFS="$ac_save_ifs" |
|
|
4159 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
|
4160 | fi |
|
|
4161 | fi |
|
|
4162 | |
|
|
4163 | NM="$lt_cv_path_NM" |
|
|
4164 | echo "$as_me:$LINENO: result: $NM" >&5 |
|
|
4165 | echo "${ECHO_T}$NM" >&6 |
|
|
4166 | |
|
|
4167 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
|
4168 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
|
4169 | LN_S=$as_ln_s |
|
|
4170 | if test "$LN_S" = "ln -s"; then |
|
|
4171 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4172 | echo "${ECHO_T}yes" >&6 |
|
|
4173 | else |
|
|
4174 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
|
4175 | echo "${ECHO_T}no, using $LN_S" >&6 |
|
|
4176 | fi |
|
|
4177 | |
|
|
4178 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
|
|
4179 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
|
|
4180 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
|
4181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4182 | else |
|
|
4183 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
|
4184 | lt_cv_file_magic_test_file= |
|
|
4185 | lt_cv_deplibs_check_method='unknown' |
|
|
4186 | # Need to set the preceding variable on all platforms that support |
|
|
4187 | # interlibrary dependencies. |
|
|
4188 | # 'none' -- dependencies not supported. |
|
|
4189 | # `unknown' -- same as none, but documents that we really don't know. |
|
|
4190 | # 'pass_all' -- all dependencies passed with no checks. |
|
|
4191 | # 'test_compile' -- check by making test program. |
|
|
4192 | # ['file_magic [regex]'] -- check by looking for files in library path |
|
|
4193 | # which responds to the $file_magic_cmd with a given egrep regex. |
|
|
4194 | # If you have `file' or equivalent on your system and you're not sure |
|
|
4195 | # whether `pass_all' will *always* work, you probably want this one. |
|
|
4196 | |
|
|
4197 | case "$host_os" in |
|
|
4198 | aix4*) |
|
|
4199 | lt_cv_deplibs_check_method=pass_all |
|
|
4200 | ;; |
|
|
4201 | |
|
|
4202 | beos*) |
|
|
4203 | lt_cv_deplibs_check_method=pass_all |
|
|
4204 | ;; |
|
|
4205 | |
|
|
4206 | bsdi4*) |
|
|
4207 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
|
4208 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4209 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4210 | ;; |
|
|
4211 | |
|
|
4212 | cygwin* | mingw* | pw32*) |
|
|
4213 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
4214 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
|
4215 | ;; |
|
|
4216 | |
|
|
4217 | darwin*|rhapsody*) |
|
|
4218 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
|
4219 | lt_cv_file_magiic_cmd=/usr/bin/file |
|
|
4220 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
|
|
4221 | ;; |
|
|
4222 | |
|
|
4223 | freebsd*) |
|
|
4224 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4225 | case "$host_cpu" in |
|
|
4226 | i*86 ) |
|
|
4227 | # Not sure whether the presence of OpenBSD here was a mistake. |
|
|
4228 | # Let's accept both of them until this is cleared up. |
|
|
4229 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
|
|
4230 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4231 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
|
4232 | ;; |
|
|
4233 | esac |
|
|
4234 | else |
|
|
4235 | lt_cv_deplibs_check_method=pass_all |
|
|
4236 | fi |
|
|
4237 | ;; |
|
|
4238 | |
|
|
4239 | gnu*) |
|
|
4240 | lt_cv_deplibs_check_method=pass_all |
|
|
4241 | ;; |
|
|
4242 | |
|
|
4243 | hpux10.20*|hpux11*) |
|
|
4244 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
|
4245 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4246 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
|
4247 | ;; |
|
|
4248 | |
|
|
4249 | irix5* | irix6*) |
|
|
4250 | case "$host_os" in |
|
|
4251 | irix5*) |
|
|
4252 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4253 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
|
|
4254 | ;; |
|
|
4255 | *) |
|
|
4256 | case "$LD" in |
|
|
4257 | *-32|*"-32 ") libmagic=32-bit;; |
|
|
4258 | *-n32|*"-n32 ") libmagic=N32;; |
|
|
4259 | *-64|*"-64 ") libmagic=64-bit;; |
|
|
4260 | *) libmagic=never-match;; |
|
|
4261 | esac |
|
|
4262 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4263 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
|
|
4264 | ;; |
|
|
4265 | esac |
|
|
4266 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
|
4267 | lt_cv_deplibs_check_method=pass_all |
|
|
4268 | ;; |
|
|
4269 | |
|
|
4270 | # This must be Linux ELF. |
|
|
4271 | linux-gnu*) |
|
|
4272 | case "$host_cpu" in |
|
|
4273 | alpha* | i*86 | powerpc* | sparc* | ia64* ) |
|
|
4274 | lt_cv_deplibs_check_method=pass_all ;; |
|
|
4275 | *) |
|
|
4276 | # glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
4277 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
4278 | esac |
|
|
4279 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
|
4280 | ;; |
|
|
4281 | |
|
|
4282 | netbsd*) |
|
|
4283 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4284 | lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library' |
|
|
4285 | else |
|
|
4286 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
|
|
4287 | fi |
|
|
4288 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4289 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4290 | ;; |
|
|
4291 | |
|
|
4292 | newos6*) |
|
|
4293 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
|
4294 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4295 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
|
4296 | ;; |
|
|
4297 | |
|
|
4298 | osf3* | osf4* | osf5*) |
|
|
4299 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4300 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
|
4301 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4302 | lt_cv_deplibs_check_method=pass_all |
|
|
4303 | ;; |
|
|
4304 | |
|
|
4305 | sco3.2v5*) |
|
|
4306 | lt_cv_deplibs_check_method=pass_all |
|
|
4307 | ;; |
|
|
4308 | |
|
|
4309 | solaris*) |
|
|
4310 | lt_cv_deplibs_check_method=pass_all |
|
|
4311 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4312 | ;; |
|
|
4313 | |
|
|
4314 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
4315 | case "$host_vendor" in |
|
|
4316 | motorola) |
|
|
4317 | 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]' |
|
|
4318 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4319 | ;; |
|
|
4320 | ncr) |
|
|
4321 | lt_cv_deplibs_check_method=pass_all |
|
|
4322 | ;; |
|
|
4323 | sequent) |
|
|
4324 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4325 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
|
4326 | ;; |
|
|
4327 | sni) |
|
|
4328 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4329 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
|
4330 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4331 | ;; |
|
|
4332 | esac |
|
|
4333 | ;; |
|
|
4334 | esac |
|
|
4335 | |
|
|
4336 | fi |
|
|
4337 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
|
4338 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
|
4339 | file_magic_cmd=$lt_cv_file_magic_cmd |
|
|
4340 | deplibs_check_method=$lt_cv_deplibs_check_method |
|
|
4341 | |
|
|
4342 | |
|
|
4343 | |
|
|
4344 | |
|
|
4345 | |
|
|
4346 | |
|
|
4347 | |
|
|
4348 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
4349 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
|
|
4350 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
|
|
4351 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
4352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4353 | else |
|
|
4354 | |
|
|
4355 | # These are sane defaults that work on at least a few old systems. |
|
|
4356 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
4357 | |
|
|
4358 | # Character class describing NM global symbol codes. |
|
|
4359 | symcode='[BCDEGRST]' |
|
|
4360 | |
|
|
4361 | # Regexp to match symbols that can be accessed directly from C. |
|
|
4362 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
4363 | |
|
|
4364 | # Transform the above into a raw symbol and a C symbol. |
|
|
4365 | symxfrm='\1 \2\3 \3' |
|
|
4366 | |
|
|
4367 | # Transform an extracted symbol line into a proper C declaration |
|
|
4368 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4369 | |
|
|
4370 | # Define system-specific variables. |
|
|
4371 | case "$host_os" in |
|
|
4372 | aix*) |
|
|
4373 | symcode='[BCDT]' |
|
|
4374 | ;; |
|
|
4375 | cygwin* | mingw* | pw32*) |
|
|
4376 | symcode='[ABCDGISTW]' |
|
|
4377 | ;; |
|
|
4378 | hpux*) # Its linker distinguishes data from code symbols |
|
|
4379 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4380 | ;; |
|
|
4381 | irix*) |
|
|
4382 | symcode='[BCDEGRST]' |
|
|
4383 | ;; |
|
|
4384 | solaris* | sysv5*) |
|
|
4385 | symcode='[BDT]' |
|
|
4386 | ;; |
|
|
4387 | sysv4) |
|
|
4388 | symcode='[DFNSTU]' |
|
|
4389 | ;; |
|
|
4390 | esac |
|
|
4391 | |
|
|
4392 | # Handle CRLF in mingw tool chain |
|
|
4393 | opt_cr= |
|
|
4394 | case "$host_os" in |
|
|
4395 | mingw*) |
|
|
4396 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
4397 | ;; |
|
|
4398 | esac |
|
|
4399 | |
|
|
4400 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
4401 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4402 | symcode='[ABCDGISTW]' |
|
|
4403 | fi |
|
|
4404 | |
|
|
4405 | # Try without a prefix undercore, then with it. |
|
|
4406 | for ac_symprfx in "" "_"; do |
|
|
4407 | |
|
|
4408 | # Write the raw and C identifiers. |
|
|
4409 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
|
4410 | |
|
|
4411 | # Check to see that the pipe works correctly. |
|
|
4412 | pipe_works=no |
|
|
4413 | rm -f conftest* |
|
|
4414 | cat > conftest.$ac_ext <<EOF |
|
|
4415 | #ifdef __cplusplus |
|
|
4416 | extern "C" { |
|
|
4417 | #endif |
|
|
4418 | char nm_test_var; |
|
|
4419 | void nm_test_func(){} |
|
|
4420 | #ifdef __cplusplus |
|
|
4421 | } |
|
|
4422 | #endif |
|
|
4423 | main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
4424 | EOF |
|
|
4425 | |
|
|
4426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4427 | (eval $ac_compile) 2>&5 |
|
|
4428 | ac_status=$? |
|
|
4429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4430 | (exit $ac_status); }; then |
|
|
4431 | # Now try to grab the symbols. |
|
|
4432 | nlist=conftest.nm |
|
|
4433 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
4434 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
4435 | ac_status=$? |
|
|
4436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4437 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
4438 | # Try sorting and uniquifying the output. |
|
|
4439 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
4440 | mv -f "$nlist"T "$nlist" |
|
|
4441 | else |
|
|
4442 | rm -f "$nlist"T |
|
|
4443 | fi |
|
|
4444 | |
|
|
4445 | # Make sure that we snagged all the symbols we need. |
|
|
4446 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
4447 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
4448 | cat <<EOF > conftest.$ac_ext |
|
|
4449 | #ifdef __cplusplus |
|
|
4450 | extern "C" { |
|
|
4451 | #endif |
|
|
4452 | |
|
|
4453 | EOF |
|
|
4454 | # Now generate the symbol file. |
|
|
4455 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
|
|
4456 | |
|
|
4457 | cat <<EOF >> conftest.$ac_ext |
|
|
4458 | #if defined (__STDC__) && __STDC__ |
|
|
4459 | # define lt_ptr_t void * |
|
|
4460 | #else |
|
|
4461 | # define lt_ptr_t char * |
|
|
4462 | # define const |
|
|
4463 | #endif |
|
|
4464 | |
|
|
4465 | /* The mapping between symbol names and symbols. */ |
|
|
4466 | const struct { |
|
|
4467 | const char *name; |
|
|
4468 | lt_ptr_t address; |
|
|
4469 | } |
|
|
4470 | lt_preloaded_symbols[] = |
|
|
4471 | { |
|
|
4472 | EOF |
|
|
4473 | sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext |
|
|
4474 | cat <<\EOF >> conftest.$ac_ext |
|
|
4475 | {0, (lt_ptr_t) 0} |
|
|
4476 | }; |
|
|
4477 | |
|
|
4478 | #ifdef __cplusplus |
|
|
4479 | } |
|
|
4480 | #endif |
|
|
4481 | EOF |
|
|
4482 | # Now try linking the two files. |
|
|
4483 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
4484 | save_LIBS="$LIBS" |
|
|
4485 | save_CFLAGS="$CFLAGS" |
|
|
4486 | LIBS="conftstm.$ac_objext" |
|
|
4487 | CFLAGS="$CFLAGS$no_builtin_flag" |
|
|
4488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4489 | (eval $ac_link) 2>&5 |
|
|
4490 | ac_status=$? |
|
|
4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4492 | (exit $ac_status); } && test -s conftest; then |
|
|
4493 | pipe_works=yes |
|
|
4494 | fi |
|
|
4495 | LIBS="$save_LIBS" |
|
|
4496 | CFLAGS="$save_CFLAGS" |
|
|
4497 | else |
|
|
4498 | echo "cannot find nm_test_func in $nlist" >&5 |
|
|
4499 | fi |
|
|
4500 | else |
|
|
4501 | echo "cannot find nm_test_var in $nlist" >&5 |
|
|
4502 | fi |
|
|
4503 | else |
|
|
4504 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
4505 | fi |
|
|
4506 | else |
|
|
4507 | echo "$progname: failed program was:" >&5 |
|
|
4508 | cat conftest.$ac_ext >&5 |
|
|
4509 | fi |
|
|
4510 | rm -f conftest* conftst* |
|
|
4511 | |
|
|
4512 | # Do not use the global_symbol_pipe unless it works. |
|
|
4513 | if test "$pipe_works" = yes; then |
|
|
4514 | break |
|
|
4515 | else |
|
|
4516 | lt_cv_sys_global_symbol_pipe= |
|
|
4517 | fi |
|
|
4518 | done |
|
|
4519 | |
|
|
4520 | fi |
|
|
4521 | |
|
|
4522 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
|
|
4523 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
4524 | global_symbol_to_cdecl= |
|
|
4525 | else |
|
|
4526 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
|
|
4527 | fi |
|
|
4528 | if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
|
|
4529 | echo "$as_me:$LINENO: result: failed" >&5 |
|
|
4530 | echo "${ECHO_T}failed" >&6 |
|
|
4531 | else |
|
|
4532 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
4533 | echo "${ECHO_T}ok" >&6 |
|
|
4534 | fi |
|
|
4535 | |
|
|
4536 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
4537 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
4538 | if test "${ac_cv_header_stdc+set}" = set; then |
3872 | if test "${ac_cv_func_sched_yield+set}" = set; then |
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4540 | else |
3874 | else |
4541 | cat >conftest.$ac_ext <<_ACEOF |
3875 | cat >conftest.$ac_ext <<_ACEOF |
4542 | /* confdefs.h. */ |
3876 | /* confdefs.h. */ |
4543 | _ACEOF |
3877 | _ACEOF |
4544 | cat confdefs.h >>conftest.$ac_ext |
3878 | cat confdefs.h >>conftest.$ac_ext |
4545 | cat >>conftest.$ac_ext <<_ACEOF |
3879 | cat >>conftest.$ac_ext <<_ACEOF |
4546 | /* end confdefs.h. */ |
3880 | /* end confdefs.h. */ |
4547 | #include <stdlib.h> |
|
|
4548 | #include <stdarg.h> |
|
|
4549 | #include <string.h> |
|
|
4550 | #include <float.h> |
|
|
4551 | |
|
|
4552 | int |
|
|
4553 | main () |
|
|
4554 | { |
|
|
4555 | |
|
|
4556 | ; |
|
|
4557 | return 0; |
|
|
4558 | } |
|
|
4559 | _ACEOF |
|
|
4560 | rm -f conftest.$ac_objext |
|
|
4561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4562 | (eval $ac_compile) 2>conftest.er1 |
|
|
4563 | ac_status=$? |
|
|
4564 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4565 | rm -f conftest.er1 |
|
|
4566 | cat conftest.err >&5 |
|
|
4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4568 | (exit $ac_status); } && |
|
|
4569 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4571 | (eval $ac_try) 2>&5 |
|
|
4572 | ac_status=$? |
|
|
4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4574 | (exit $ac_status); }; } && |
|
|
4575 | { ac_try='test -s conftest.$ac_objext' |
|
|
4576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4577 | (eval $ac_try) 2>&5 |
|
|
4578 | ac_status=$? |
|
|
4579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4580 | (exit $ac_status); }; }; then |
|
|
4581 | ac_cv_header_stdc=yes |
|
|
4582 | else |
|
|
4583 | echo "$as_me: failed program was:" >&5 |
|
|
4584 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4585 | |
|
|
4586 | ac_cv_header_stdc=no |
|
|
4587 | fi |
|
|
4588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4589 | |
|
|
4590 | if test $ac_cv_header_stdc = yes; then |
|
|
4591 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
4592 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4593 | /* confdefs.h. */ |
|
|
4594 | _ACEOF |
|
|
4595 | cat confdefs.h >>conftest.$ac_ext |
|
|
4596 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4597 | /* end confdefs.h. */ |
|
|
4598 | #include <string.h> |
|
|
4599 | |
|
|
4600 | _ACEOF |
|
|
4601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4602 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
4603 | : |
|
|
4604 | else |
|
|
4605 | ac_cv_header_stdc=no |
|
|
4606 | fi |
|
|
4607 | rm -f conftest* |
|
|
4608 | |
|
|
4609 | fi |
|
|
4610 | |
|
|
4611 | if test $ac_cv_header_stdc = yes; then |
|
|
4612 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
4613 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4614 | /* confdefs.h. */ |
|
|
4615 | _ACEOF |
|
|
4616 | cat confdefs.h >>conftest.$ac_ext |
|
|
4617 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4618 | /* end confdefs.h. */ |
|
|
4619 | #include <stdlib.h> |
|
|
4620 | |
|
|
4621 | _ACEOF |
|
|
4622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4623 | $EGREP "free" >/dev/null 2>&1; then |
|
|
4624 | : |
|
|
4625 | else |
|
|
4626 | ac_cv_header_stdc=no |
|
|
4627 | fi |
|
|
4628 | rm -f conftest* |
|
|
4629 | |
|
|
4630 | fi |
|
|
4631 | |
|
|
4632 | if test $ac_cv_header_stdc = yes; then |
|
|
4633 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
4634 | if test "$cross_compiling" = yes; then |
|
|
4635 | : |
|
|
4636 | else |
|
|
4637 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4638 | /* confdefs.h. */ |
|
|
4639 | _ACEOF |
|
|
4640 | cat confdefs.h >>conftest.$ac_ext |
|
|
4641 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4642 | /* end confdefs.h. */ |
|
|
4643 | #include <ctype.h> |
|
|
4644 | #if ((' ' & 0x0FF) == 0x020) |
|
|
4645 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
4646 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
4647 | #else |
|
|
4648 | # define ISLOWER(c) \ |
|
|
4649 | (('a' <= (c) && (c) <= 'i') \ |
|
|
4650 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
4651 | || ('s' <= (c) && (c) <= 'z')) |
|
|
4652 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
4653 | #endif |
|
|
4654 | |
|
|
4655 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
4656 | int |
|
|
4657 | main () |
|
|
4658 | { |
|
|
4659 | int i; |
|
|
4660 | for (i = 0; i < 256; i++) |
|
|
4661 | if (XOR (islower (i), ISLOWER (i)) |
|
|
4662 | || toupper (i) != TOUPPER (i)) |
|
|
4663 | exit(2); |
|
|
4664 | exit (0); |
|
|
4665 | } |
|
|
4666 | _ACEOF |
|
|
4667 | rm -f conftest$ac_exeext |
|
|
4668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4669 | (eval $ac_link) 2>&5 |
|
|
4670 | ac_status=$? |
|
|
4671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4672 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4674 | (eval $ac_try) 2>&5 |
|
|
4675 | ac_status=$? |
|
|
4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4677 | (exit $ac_status); }; }; then |
|
|
4678 | : |
|
|
4679 | else |
|
|
4680 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4681 | echo "$as_me: failed program was:" >&5 |
|
|
4682 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4683 | |
|
|
4684 | ( exit $ac_status ) |
|
|
4685 | ac_cv_header_stdc=no |
|
|
4686 | fi |
|
|
4687 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4688 | fi |
|
|
4689 | fi |
|
|
4690 | fi |
|
|
4691 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
4692 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
4693 | if test $ac_cv_header_stdc = yes; then |
|
|
4694 | |
|
|
4695 | cat >>confdefs.h <<\_ACEOF |
|
|
4696 | #define STDC_HEADERS 1 |
|
|
4697 | _ACEOF |
|
|
4698 | |
|
|
4699 | fi |
|
|
4700 | |
|
|
4701 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
4702 | |
|
|
4703 | |
|
|
4704 | |
|
|
4705 | |
|
|
4706 | |
|
|
4707 | |
|
|
4708 | |
|
|
4709 | |
|
|
4710 | |
|
|
4711 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
4712 | inttypes.h stdint.h unistd.h |
|
|
4713 | do |
|
|
4714 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4715 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4717 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4719 | else |
|
|
4720 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4721 | /* confdefs.h. */ |
|
|
4722 | _ACEOF |
|
|
4723 | cat confdefs.h >>conftest.$ac_ext |
|
|
4724 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4725 | /* end confdefs.h. */ |
|
|
4726 | $ac_includes_default |
|
|
4727 | |
|
|
4728 | #include <$ac_header> |
|
|
4729 | _ACEOF |
|
|
4730 | rm -f conftest.$ac_objext |
|
|
4731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4732 | (eval $ac_compile) 2>conftest.er1 |
|
|
4733 | ac_status=$? |
|
|
4734 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4735 | rm -f conftest.er1 |
|
|
4736 | cat conftest.err >&5 |
|
|
4737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4738 | (exit $ac_status); } && |
|
|
4739 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4741 | (eval $ac_try) 2>&5 |
|
|
4742 | ac_status=$? |
|
|
4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4744 | (exit $ac_status); }; } && |
|
|
4745 | { ac_try='test -s conftest.$ac_objext' |
|
|
4746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4747 | (eval $ac_try) 2>&5 |
|
|
4748 | ac_status=$? |
|
|
4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4750 | (exit $ac_status); }; }; then |
|
|
4751 | eval "$as_ac_Header=yes" |
|
|
4752 | else |
|
|
4753 | echo "$as_me: failed program was:" >&5 |
|
|
4754 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4755 | |
|
|
4756 | eval "$as_ac_Header=no" |
|
|
4757 | fi |
|
|
4758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4759 | fi |
|
|
4760 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4761 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4762 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4763 | cat >>confdefs.h <<_ACEOF |
|
|
4764 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4765 | _ACEOF |
|
|
4766 | |
|
|
4767 | fi |
|
|
4768 | |
|
|
4769 | done |
|
|
4770 | |
|
|
4771 | |
|
|
4772 | |
|
|
4773 | for ac_header in dlfcn.h |
|
|
4774 | do |
|
|
4775 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4776 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4777 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4779 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4781 | fi |
|
|
4782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4784 | else |
|
|
4785 | # Is the header compilable? |
|
|
4786 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
4787 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
4788 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4789 | /* confdefs.h. */ |
|
|
4790 | _ACEOF |
|
|
4791 | cat confdefs.h >>conftest.$ac_ext |
|
|
4792 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4793 | /* end confdefs.h. */ |
|
|
4794 | $ac_includes_default |
|
|
4795 | #include <$ac_header> |
|
|
4796 | _ACEOF |
|
|
4797 | rm -f conftest.$ac_objext |
|
|
4798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4799 | (eval $ac_compile) 2>conftest.er1 |
|
|
4800 | ac_status=$? |
|
|
4801 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4802 | rm -f conftest.er1 |
|
|
4803 | cat conftest.err >&5 |
|
|
4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4805 | (exit $ac_status); } && |
|
|
4806 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4808 | (eval $ac_try) 2>&5 |
|
|
4809 | ac_status=$? |
|
|
4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4811 | (exit $ac_status); }; } && |
|
|
4812 | { ac_try='test -s conftest.$ac_objext' |
|
|
4813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4814 | (eval $ac_try) 2>&5 |
|
|
4815 | ac_status=$? |
|
|
4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4817 | (exit $ac_status); }; }; then |
|
|
4818 | ac_header_compiler=yes |
|
|
4819 | else |
|
|
4820 | echo "$as_me: failed program was:" >&5 |
|
|
4821 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4822 | |
|
|
4823 | ac_header_compiler=no |
|
|
4824 | fi |
|
|
4825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4826 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
4827 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
4828 | |
|
|
4829 | # Is the header present? |
|
|
4830 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
4831 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
4832 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4833 | /* confdefs.h. */ |
|
|
4834 | _ACEOF |
|
|
4835 | cat confdefs.h >>conftest.$ac_ext |
|
|
4836 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4837 | /* end confdefs.h. */ |
|
|
4838 | #include <$ac_header> |
|
|
4839 | _ACEOF |
|
|
4840 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4841 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4842 | ac_status=$? |
|
|
4843 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4844 | rm -f conftest.er1 |
|
|
4845 | cat conftest.err >&5 |
|
|
4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4847 | (exit $ac_status); } >/dev/null; then |
|
|
4848 | if test -s conftest.err; then |
|
|
4849 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4850 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4851 | else |
|
|
4852 | ac_cpp_err= |
|
|
4853 | fi |
|
|
4854 | else |
|
|
4855 | ac_cpp_err=yes |
|
|
4856 | fi |
|
|
4857 | if test -z "$ac_cpp_err"; then |
|
|
4858 | ac_header_preproc=yes |
|
|
4859 | else |
|
|
4860 | echo "$as_me: failed program was:" >&5 |
|
|
4861 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4862 | |
|
|
4863 | ac_header_preproc=no |
|
|
4864 | fi |
|
|
4865 | rm -f conftest.err conftest.$ac_ext |
|
|
4866 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
4867 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
4868 | |
|
|
4869 | # So? What about this header? |
|
|
4870 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
4871 | yes:no: ) |
|
|
4872 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
4873 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
4874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
4875 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
4876 | ac_header_preproc=yes |
|
|
4877 | ;; |
|
|
4878 | no:yes:* ) |
|
|
4879 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
4880 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
4881 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
4882 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
4883 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
4884 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
4885 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
4886 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
4887 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
4888 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
4889 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
4890 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
4891 | ( |
|
|
4892 | cat <<\_ASBOX |
|
|
4893 | ## ------------------------------------------ ## |
|
|
4894 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
4895 | ## ------------------------------------------ ## |
|
|
4896 | _ASBOX |
|
|
4897 | ) | |
|
|
4898 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
4899 | ;; |
|
|
4900 | esac |
|
|
4901 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4902 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4905 | else |
|
|
4906 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
4907 | fi |
|
|
4908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4909 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4910 | |
|
|
4911 | fi |
|
|
4912 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4913 | cat >>confdefs.h <<_ACEOF |
|
|
4914 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4915 | _ACEOF |
|
|
4916 | |
|
|
4917 | fi |
|
|
4918 | |
|
|
4919 | done |
|
|
4920 | |
|
|
4921 | |
|
|
4922 | |
|
|
4923 | |
|
|
4924 | |
|
|
4925 | # Only perform the check for file, if the check method requires it |
|
|
4926 | case "$deplibs_check_method" in |
|
|
4927 | file_magic*) |
|
|
4928 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
|
4929 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
4930 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
4931 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4933 | else |
|
|
4934 | case "$MAGIC_CMD" in |
|
|
4935 | /*) |
|
|
4936 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
4937 | ;; |
|
|
4938 | ?:/*) |
|
|
4939 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
4940 | ;; |
|
|
4941 | *) |
|
|
4942 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
4943 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
4944 | ac_dummy="/usr/bin:$PATH" |
|
|
4945 | for ac_dir in $ac_dummy; do |
|
|
4946 | test -z "$ac_dir" && ac_dir=. |
|
|
4947 | if test -f $ac_dir/${ac_tool_prefix}file; then |
|
|
4948 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
|
4949 | if test -n "$file_magic_test_file"; then |
|
|
4950 | case "$deplibs_check_method" in |
|
|
4951 | "file_magic "*) |
|
|
4952 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
4953 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4954 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
4955 | egrep "$file_magic_regex" > /dev/null; then |
|
|
4956 | : |
|
|
4957 | else |
|
|
4958 | cat <<EOF 1>&2 |
|
|
4959 | |
|
|
4960 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
4961 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
4962 | *** The result is that libtool may fail to recognize shared libraries |
|
|
4963 | *** as such. This will affect the creation of libtool libraries that |
|
|
4964 | *** depend on shared libraries, but programs linked with such libtool |
|
|
4965 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
4966 | *** may want to report the problem to your system manager and/or to |
|
|
4967 | *** bug-libtool@gnu.org |
|
|
4968 | |
|
|
4969 | EOF |
|
|
4970 | fi ;; |
|
|
4971 | esac |
|
|
4972 | fi |
|
|
4973 | break |
|
|
4974 | fi |
|
|
4975 | done |
|
|
4976 | IFS="$ac_save_ifs" |
|
|
4977 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
4978 | ;; |
|
|
4979 | esac |
|
|
4980 | fi |
|
|
4981 | |
|
|
4982 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4983 | if test -n "$MAGIC_CMD"; then |
|
|
4984 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
4985 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
4986 | else |
|
|
4987 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4988 | echo "${ECHO_T}no" >&6 |
|
|
4989 | fi |
|
|
4990 | |
|
|
4991 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
|
4992 | if test -n "$ac_tool_prefix"; then |
|
|
4993 | echo "$as_me:$LINENO: checking for file" >&5 |
|
|
4994 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
4995 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4997 | else |
|
|
4998 | case "$MAGIC_CMD" in |
|
|
4999 | /*) |
|
|
5000 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
5001 | ;; |
|
|
5002 | ?:/*) |
|
|
5003 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
5004 | ;; |
|
|
5005 | *) |
|
|
5006 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
5007 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
5008 | ac_dummy="/usr/bin:$PATH" |
|
|
5009 | for ac_dir in $ac_dummy; do |
|
|
5010 | test -z "$ac_dir" && ac_dir=. |
|
|
5011 | if test -f $ac_dir/file; then |
|
|
5012 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
5013 | if test -n "$file_magic_test_file"; then |
|
|
5014 | case "$deplibs_check_method" in |
|
|
5015 | "file_magic "*) |
|
|
5016 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
5017 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5018 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
5019 | egrep "$file_magic_regex" > /dev/null; then |
|
|
5020 | : |
|
|
5021 | else |
|
|
5022 | cat <<EOF 1>&2 |
|
|
5023 | |
|
|
5024 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
5025 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
5026 | *** The result is that libtool may fail to recognize shared libraries |
|
|
5027 | *** as such. This will affect the creation of libtool libraries that |
|
|
5028 | *** depend on shared libraries, but programs linked with such libtool |
|
|
5029 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
5030 | *** may want to report the problem to your system manager and/or to |
|
|
5031 | *** bug-libtool@gnu.org |
|
|
5032 | |
|
|
5033 | EOF |
|
|
5034 | fi ;; |
|
|
5035 | esac |
|
|
5036 | fi |
|
|
5037 | break |
|
|
5038 | fi |
|
|
5039 | done |
|
|
5040 | IFS="$ac_save_ifs" |
|
|
5041 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
5042 | ;; |
|
|
5043 | esac |
|
|
5044 | fi |
|
|
5045 | |
|
|
5046 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5047 | if test -n "$MAGIC_CMD"; then |
|
|
5048 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
5049 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
5050 | else |
|
|
5051 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5052 | echo "${ECHO_T}no" >&6 |
|
|
5053 | fi |
|
|
5054 | |
|
|
5055 | else |
|
|
5056 | MAGIC_CMD=: |
|
|
5057 | fi |
|
|
5058 | fi |
|
|
5059 | |
|
|
5060 | fi |
|
|
5061 | ;; |
|
|
5062 | esac |
|
|
5063 | |
|
|
5064 | if test -n "$ac_tool_prefix"; then |
|
|
5065 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
5066 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
5067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5069 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
5070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5071 | else |
|
|
5072 | if test -n "$RANLIB"; then |
|
|
5073 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
5074 | else |
|
|
5075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5076 | for as_dir in $PATH |
|
|
5077 | do |
|
|
5078 | IFS=$as_save_IFS |
|
|
5079 | test -z "$as_dir" && as_dir=. |
|
|
5080 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5082 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
5083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5084 | break 2 |
|
|
5085 | fi |
|
|
5086 | done |
|
|
5087 | done |
|
|
5088 | |
|
|
5089 | fi |
|
|
5090 | fi |
|
|
5091 | RANLIB=$ac_cv_prog_RANLIB |
|
|
5092 | if test -n "$RANLIB"; then |
|
|
5093 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
5094 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
5095 | else |
|
|
5096 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5097 | echo "${ECHO_T}no" >&6 |
|
|
5098 | fi |
|
|
5099 | |
|
|
5100 | fi |
|
|
5101 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
5102 | ac_ct_RANLIB=$RANLIB |
|
|
5103 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
5104 | set dummy ranlib; ac_word=$2 |
|
|
5105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5107 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5109 | else |
|
|
5110 | if test -n "$ac_ct_RANLIB"; then |
|
|
5111 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
5112 | else |
|
|
5113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5114 | for as_dir in $PATH |
|
|
5115 | do |
|
|
5116 | IFS=$as_save_IFS |
|
|
5117 | test -z "$as_dir" && as_dir=. |
|
|
5118 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5120 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
5121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5122 | break 2 |
|
|
5123 | fi |
|
|
5124 | done |
|
|
5125 | done |
|
|
5126 | |
|
|
5127 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
5128 | fi |
|
|
5129 | fi |
|
|
5130 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
5131 | if test -n "$ac_ct_RANLIB"; then |
|
|
5132 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
5133 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
5134 | else |
|
|
5135 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5136 | echo "${ECHO_T}no" >&6 |
|
|
5137 | fi |
|
|
5138 | |
|
|
5139 | RANLIB=$ac_ct_RANLIB |
|
|
5140 | else |
|
|
5141 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
5142 | fi |
|
|
5143 | |
|
|
5144 | if test -n "$ac_tool_prefix"; then |
|
|
5145 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
5146 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
5147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5149 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
5150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5151 | else |
|
|
5152 | if test -n "$STRIP"; then |
|
|
5153 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
5154 | else |
|
|
5155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5156 | for as_dir in $PATH |
|
|
5157 | do |
|
|
5158 | IFS=$as_save_IFS |
|
|
5159 | test -z "$as_dir" && as_dir=. |
|
|
5160 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5162 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
5163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5164 | break 2 |
|
|
5165 | fi |
|
|
5166 | done |
|
|
5167 | done |
|
|
5168 | |
|
|
5169 | fi |
|
|
5170 | fi |
|
|
5171 | STRIP=$ac_cv_prog_STRIP |
|
|
5172 | if test -n "$STRIP"; then |
|
|
5173 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
5174 | echo "${ECHO_T}$STRIP" >&6 |
|
|
5175 | else |
|
|
5176 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5177 | echo "${ECHO_T}no" >&6 |
|
|
5178 | fi |
|
|
5179 | |
|
|
5180 | fi |
|
|
5181 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
5182 | ac_ct_STRIP=$STRIP |
|
|
5183 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
5184 | set dummy strip; ac_word=$2 |
|
|
5185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5187 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
5188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5189 | else |
|
|
5190 | if test -n "$ac_ct_STRIP"; then |
|
|
5191 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
5192 | else |
|
|
5193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5194 | for as_dir in $PATH |
|
|
5195 | do |
|
|
5196 | IFS=$as_save_IFS |
|
|
5197 | test -z "$as_dir" && as_dir=. |
|
|
5198 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5200 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
5201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5202 | break 2 |
|
|
5203 | fi |
|
|
5204 | done |
|
|
5205 | done |
|
|
5206 | |
|
|
5207 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
5208 | fi |
|
|
5209 | fi |
|
|
5210 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
5211 | if test -n "$ac_ct_STRIP"; then |
|
|
5212 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
5213 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
5214 | else |
|
|
5215 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5216 | echo "${ECHO_T}no" >&6 |
|
|
5217 | fi |
|
|
5218 | |
|
|
5219 | STRIP=$ac_ct_STRIP |
|
|
5220 | else |
|
|
5221 | STRIP="$ac_cv_prog_STRIP" |
|
|
5222 | fi |
|
|
5223 | |
|
|
5224 | |
|
|
5225 | enable_dlopen=no |
|
|
5226 | enable_win32_dll=no |
|
|
5227 | |
|
|
5228 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
5229 | if test "${enable_libtool_lock+set}" = set; then |
|
|
5230 | enableval="$enable_libtool_lock" |
|
|
5231 | |
|
|
5232 | fi; |
|
|
5233 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
|
5234 | |
|
|
5235 | # Some flags need to be propagated to the compiler or linker for good |
|
|
5236 | # libtool support. |
|
|
5237 | case "$host" in |
|
|
5238 | *-*-irix6*) |
|
|
5239 | # Find out which ABI we are using. |
|
|
5240 | echo '#line 5240 "configure"' > conftest.$ac_ext |
|
|
5241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5242 | (eval $ac_compile) 2>&5 |
|
|
5243 | ac_status=$? |
|
|
5244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5245 | (exit $ac_status); }; then |
|
|
5246 | case "`/usr/bin/file conftest.$ac_objext`" in |
|
|
5247 | *32-bit*) |
|
|
5248 | LD="${LD-ld} -32" |
|
|
5249 | ;; |
|
|
5250 | *N32*) |
|
|
5251 | LD="${LD-ld} -n32" |
|
|
5252 | ;; |
|
|
5253 | *64-bit*) |
|
|
5254 | LD="${LD-ld} -64" |
|
|
5255 | ;; |
|
|
5256 | esac |
|
|
5257 | fi |
|
|
5258 | rm -rf conftest* |
|
|
5259 | ;; |
|
|
5260 | |
|
|
5261 | *-*-sco3.2v5*) |
|
|
5262 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
|
5263 | SAVE_CFLAGS="$CFLAGS" |
|
|
5264 | CFLAGS="$CFLAGS -belf" |
|
|
5265 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
5266 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
5267 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
|
5268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5269 | else |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | ac_ext=c |
|
|
5273 | ac_cpp='$CPP $CPPFLAGS' |
|
|
5274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
5277 | |
|
|
5278 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5279 | /* confdefs.h. */ |
|
|
5280 | _ACEOF |
|
|
5281 | cat confdefs.h >>conftest.$ac_ext |
|
|
5282 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5283 | /* end confdefs.h. */ |
|
|
5284 | |
|
|
5285 | int |
|
|
5286 | main () |
|
|
5287 | { |
|
|
5288 | |
|
|
5289 | ; |
|
|
5290 | return 0; |
|
|
5291 | } |
|
|
5292 | _ACEOF |
|
|
5293 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5295 | (eval $ac_link) 2>conftest.er1 |
|
|
5296 | ac_status=$? |
|
|
5297 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5298 | rm -f conftest.er1 |
|
|
5299 | cat conftest.err >&5 |
|
|
5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5301 | (exit $ac_status); } && |
|
|
5302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
5303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5304 | (eval $ac_try) 2>&5 |
|
|
5305 | ac_status=$? |
|
|
5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5307 | (exit $ac_status); }; } && |
|
|
5308 | { ac_try='test -s conftest$ac_exeext' |
|
|
5309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5310 | (eval $ac_try) 2>&5 |
|
|
5311 | ac_status=$? |
|
|
5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5313 | (exit $ac_status); }; }; then |
|
|
5314 | lt_cv_cc_needs_belf=yes |
|
|
5315 | else |
|
|
5316 | echo "$as_me: failed program was:" >&5 |
|
|
5317 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5318 | |
|
|
5319 | lt_cv_cc_needs_belf=no |
|
|
5320 | fi |
|
|
5321 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5322 | conftest$ac_exeext conftest.$ac_ext |
|
|
5323 | ac_ext=cc |
|
|
5324 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5325 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5326 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5327 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5328 | |
|
|
5329 | fi |
|
|
5330 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
5331 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
5332 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
5333 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
5334 | CFLAGS="$SAVE_CFLAGS" |
|
|
5335 | fi |
|
|
5336 | ;; |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | esac |
|
|
5340 | |
|
|
5341 | # Sed substitution that helps us do robust quoting. It backslashifies |
|
|
5342 | # metacharacters that are still active within double-quoted strings. |
|
|
5343 | Xsed='sed -e s/^X//' |
|
|
5344 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
|
5345 | |
|
|
5346 | # Same as above, but do not quote variable references. |
|
|
5347 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
|
5348 | |
|
|
5349 | # Sed substitution to delay expansion of an escaped shell variable in a |
|
|
5350 | # double_quote_subst'ed string. |
|
|
5351 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
|
5352 | |
|
|
5353 | # Constants: |
|
|
5354 | rm="rm -f" |
|
|
5355 | |
|
|
5356 | # Global variables: |
|
|
5357 | default_ofile=libtool |
|
|
5358 | can_build_shared=yes |
|
|
5359 | |
|
|
5360 | # All known linkers require a `.a' archive for static linking (except M$VC, |
|
|
5361 | # which needs '.lib'). |
|
|
5362 | libext=a |
|
|
5363 | ltmain="$ac_aux_dir/ltmain.sh" |
|
|
5364 | ofile="$default_ofile" |
|
|
5365 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
5366 | need_locks="$enable_libtool_lock" |
|
|
5367 | |
|
|
5368 | old_CC="$CC" |
|
|
5369 | old_CFLAGS="$CFLAGS" |
|
|
5370 | |
|
|
5371 | # Set sane defaults for various variables |
|
|
5372 | test -z "$AR" && AR=ar |
|
|
5373 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
5374 | test -z "$AS" && AS=as |
|
|
5375 | test -z "$CC" && CC=cc |
|
|
5376 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
5377 | test -z "$LD" && LD=ld |
|
|
5378 | test -z "$LN_S" && LN_S="ln -s" |
|
|
5379 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
5380 | test -z "$NM" && NM=nm |
|
|
5381 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
5382 | test -z "$RANLIB" && RANLIB=: |
|
|
5383 | test -z "$STRIP" && STRIP=: |
|
|
5384 | test -z "$ac_objext" && ac_objext=o |
|
|
5385 | |
|
|
5386 | if test x"$host" != x"$build"; then |
|
|
5387 | ac_tool_prefix=${host_alias}- |
|
|
5388 | else |
|
|
5389 | ac_tool_prefix= |
|
|
5390 | fi |
|
|
5391 | |
|
|
5392 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
|
|
5393 | case "$host_os" in |
|
|
5394 | linux-gnu*) ;; |
|
|
5395 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
|
|
5396 | esac |
|
|
5397 | |
|
|
5398 | case "$host_os" in |
|
|
5399 | aix3*) |
|
|
5400 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
5401 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
5402 | # vanish in a puff of smoke. |
|
|
5403 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
5404 | COLLECT_NAMES= |
|
|
5405 | export COLLECT_NAMES |
|
|
5406 | fi |
|
|
5407 | ;; |
|
|
5408 | esac |
|
|
5409 | |
|
|
5410 | # Determine commands to create old-style static archives. |
|
|
5411 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
5412 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
5413 | old_postuninstall_cmds= |
|
|
5414 | |
|
|
5415 | if test -n "$RANLIB"; then |
|
|
5416 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
5417 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
5418 | fi |
|
|
5419 | |
|
|
5420 | # Allow CC to be a program name with arguments. |
|
|
5421 | set dummy $CC |
|
|
5422 | compiler="$2" |
|
|
5423 | |
|
|
5424 | ## FIXME: this should be a separate macro |
|
|
5425 | ## |
|
|
5426 | echo "$as_me:$LINENO: checking for objdir" >&5 |
|
|
5427 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
|
5428 | rm -f .libs 2>/dev/null |
|
|
5429 | mkdir .libs 2>/dev/null |
|
|
5430 | if test -d .libs; then |
|
|
5431 | objdir=.libs |
|
|
5432 | else |
|
|
5433 | # MS-DOS does not allow filenames that begin with a dot. |
|
|
5434 | objdir=_libs |
|
|
5435 | fi |
|
|
5436 | rmdir .libs 2>/dev/null |
|
|
5437 | echo "$as_me:$LINENO: result: $objdir" >&5 |
|
|
5438 | echo "${ECHO_T}$objdir" >&6 |
|
|
5439 | ## |
|
|
5440 | ## END FIXME |
|
|
5441 | |
|
|
5442 | |
|
|
5443 | ## FIXME: this should be a separate macro |
|
|
5444 | ## |
|
|
5445 | |
|
|
5446 | # Check whether --with-pic or --without-pic was given. |
|
|
5447 | if test "${with_pic+set}" = set; then |
|
|
5448 | withval="$with_pic" |
|
|
5449 | pic_mode="$withval" |
|
|
5450 | else |
|
|
5451 | pic_mode=default |
|
|
5452 | fi; |
|
|
5453 | test -z "$pic_mode" && pic_mode=default |
|
|
5454 | |
|
|
5455 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
|
|
5456 | # in isolation, and that seeing it set (from the cache) indicates that |
|
|
5457 | # the associated values are set (in the cache) correctly too. |
|
|
5458 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
5459 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
5460 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
|
|
5461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5462 | else |
|
|
5463 | lt_cv_prog_cc_pic= |
|
|
5464 | lt_cv_prog_cc_shlib= |
|
|
5465 | lt_cv_prog_cc_wl= |
|
|
5466 | lt_cv_prog_cc_static= |
|
|
5467 | lt_cv_prog_cc_no_builtin= |
|
|
5468 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
|
|
5469 | |
|
|
5470 | if test "$GCC" = yes; then |
|
|
5471 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5472 | lt_cv_prog_cc_static='-static' |
|
|
5473 | |
|
|
5474 | case "$host_os" in |
|
|
5475 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
|
|
5476 | # PIC is the default for these OSes. |
|
|
5477 | ;; |
|
|
5478 | aix*) |
|
|
5479 | # Below there is a dirty hack to force normal static linking with -ldl |
|
|
5480 | # The problem is because libdl dynamically linked with both libc and |
|
|
5481 | # libC (AIX C++ library), which obviously doesn't included in libraries |
|
|
5482 | # list by gcc. This cause undefined symbols with -static flags. |
|
|
5483 | # This hack allows C programs to be linked with "-static -ldl", but |
|
|
5484 | # we not sure about C++ programs. |
|
|
5485 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
|
|
5486 | ;; |
|
|
5487 | cygwin* | mingw* | pw32* | os2*) |
|
|
5488 | # This hack is so that the source file can tell whether it is being |
|
|
5489 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5490 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5491 | ;; |
|
|
5492 | amigaos*) |
|
|
5493 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
5494 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
5495 | # like `-m68040'. |
|
|
5496 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
5497 | ;; |
|
|
5498 | sysv4*MP*) |
|
|
5499 | if test -d /usr/nec; then |
|
|
5500 | lt_cv_prog_cc_pic=-Kconform_pic |
|
|
5501 | fi |
|
|
5502 | ;; |
|
|
5503 | *) |
|
|
5504 | lt_cv_prog_cc_pic='-fPIC' |
|
|
5505 | ;; |
|
|
5506 | esac |
|
|
5507 | else |
|
|
5508 | # PORTME Check for PIC flags for the system compiler. |
|
|
5509 | case "$host_os" in |
|
|
5510 | aix3* | aix4*) |
|
|
5511 | # All AIX code is PIC. |
|
|
5512 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
|
|
5513 | ;; |
|
|
5514 | |
|
|
5515 | hpux9* | hpux10* | hpux11*) |
|
|
5516 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
|
|
5517 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5518 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
|
|
5519 | lt_cv_prog_cc_pic='+Z' |
|
|
5520 | ;; |
|
|
5521 | |
|
|
5522 | irix5* | irix6*) |
|
|
5523 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5524 | lt_cv_prog_cc_static='-non_shared' |
|
|
5525 | # PIC (with -KPIC) is the default. |
|
|
5526 | ;; |
|
|
5527 | |
|
|
5528 | cygwin* | mingw* | pw32* | os2*) |
|
|
5529 | # This hack is so that the source file can tell whether it is being |
|
|
5530 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5531 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5532 | ;; |
|
|
5533 | |
|
|
5534 | newsos6) |
|
|
5535 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5536 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5537 | ;; |
|
|
5538 | |
|
|
5539 | osf3* | osf4* | osf5*) |
|
|
5540 | # All OSF/1 code is PIC. |
|
|
5541 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5542 | lt_cv_prog_cc_static='-non_shared' |
|
|
5543 | ;; |
|
|
5544 | |
|
|
5545 | sco3.2v5*) |
|
|
5546 | lt_cv_prog_cc_pic='-Kpic' |
|
|
5547 | lt_cv_prog_cc_static='-dn' |
|
|
5548 | lt_cv_prog_cc_shlib='-belf' |
|
|
5549 | ;; |
|
|
5550 | |
|
|
5551 | solaris*) |
|
|
5552 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5553 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5554 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5555 | ;; |
|
|
5556 | |
|
|
5557 | sunos4*) |
|
|
5558 | lt_cv_prog_cc_pic='-PIC' |
|
|
5559 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5560 | lt_cv_prog_cc_wl='-Qoption ld ' |
|
|
5561 | ;; |
|
|
5562 | |
|
|
5563 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
5564 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5565 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5566 | if test "x$host_vendor" = xsni; then |
|
|
5567 | lt_cv_prog_cc_wl='-LD' |
|
|
5568 | else |
|
|
5569 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5570 | fi |
|
|
5571 | ;; |
|
|
5572 | |
|
|
5573 | uts4*) |
|
|
5574 | lt_cv_prog_cc_pic='-pic' |
|
|
5575 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5576 | ;; |
|
|
5577 | |
|
|
5578 | sysv4*MP*) |
|
|
5579 | if test -d /usr/nec ;then |
|
|
5580 | lt_cv_prog_cc_pic='-Kconform_pic' |
|
|
5581 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5582 | fi |
|
|
5583 | ;; |
|
|
5584 | |
|
|
5585 | *) |
|
|
5586 | lt_cv_prog_cc_can_build_shared=no |
|
|
5587 | ;; |
|
|
5588 | esac |
|
|
5589 | fi |
|
|
5590 | |
|
|
5591 | fi |
|
|
5592 | |
|
|
5593 | if test -z "$lt_cv_prog_cc_pic"; then |
|
|
5594 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
5595 | echo "${ECHO_T}none" >&6 |
|
|
5596 | else |
|
|
5597 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
|
|
5598 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
|
|
5599 | |
|
|
5600 | # Check to make sure the pic_flag actually works. |
|
|
5601 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
|
|
5602 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
|
|
5603 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
|
|
5604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5605 | else |
|
|
5606 | save_CFLAGS="$CFLAGS" |
|
|
5607 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
|
|
5608 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5609 | /* confdefs.h. */ |
|
|
5610 | _ACEOF |
|
|
5611 | cat confdefs.h >>conftest.$ac_ext |
|
|
5612 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5613 | /* end confdefs.h. */ |
|
|
5614 | |
|
|
5615 | int |
|
|
5616 | main () |
|
|
5617 | { |
|
|
5618 | |
|
|
5619 | ; |
|
|
5620 | return 0; |
|
|
5621 | } |
|
|
5622 | _ACEOF |
|
|
5623 | rm -f conftest.$ac_objext |
|
|
5624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5625 | (eval $ac_compile) 2>conftest.er1 |
|
|
5626 | ac_status=$? |
|
|
5627 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5628 | rm -f conftest.er1 |
|
|
5629 | cat conftest.err >&5 |
|
|
5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5631 | (exit $ac_status); } && |
|
|
5632 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5634 | (eval $ac_try) 2>&5 |
|
|
5635 | ac_status=$? |
|
|
5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5637 | (exit $ac_status); }; } && |
|
|
5638 | { ac_try='test -s conftest.$ac_objext' |
|
|
5639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5640 | (eval $ac_try) 2>&5 |
|
|
5641 | ac_status=$? |
|
|
5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5643 | (exit $ac_status); }; }; then |
|
|
5644 | case "$host_os" in |
|
|
5645 | hpux9* | hpux10* | hpux11*) |
|
|
5646 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
|
|
5647 | # they create non-PIC objects. So, if there were any warnings, we |
|
|
5648 | # assume that PIC is not supported. |
|
|
5649 | if test -s conftest.err; then |
|
|
5650 | lt_cv_prog_cc_pic_works=no |
|
|
5651 | else |
|
|
5652 | lt_cv_prog_cc_pic_works=yes |
|
|
5653 | fi |
|
|
5654 | ;; |
|
|
5655 | *) |
|
|
5656 | lt_cv_prog_cc_pic_works=yes |
|
|
5657 | ;; |
|
|
5658 | esac |
|
|
5659 | |
|
|
5660 | else |
|
|
5661 | echo "$as_me: failed program was:" >&5 |
|
|
5662 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5663 | |
|
|
5664 | lt_cv_prog_cc_pic_works=no |
|
|
5665 | |
|
|
5666 | fi |
|
|
5667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5668 | CFLAGS="$save_CFLAGS" |
|
|
5669 | |
|
|
5670 | fi |
|
|
5671 | |
|
|
5672 | |
|
|
5673 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
|
|
5674 | lt_cv_prog_cc_pic= |
|
|
5675 | lt_cv_prog_cc_can_build_shared=no |
|
|
5676 | else |
|
|
5677 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
|
|
5678 | fi |
|
|
5679 | |
|
|
5680 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
|
|
5681 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
|
|
5682 | fi |
|
|
5683 | ## |
|
|
5684 | ## END FIXME |
|
|
5685 | |
|
|
5686 | # Check for any special shared library compilation flags. |
|
|
5687 | if test -n "$lt_cv_prog_cc_shlib"; then |
|
|
5688 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
|
|
5689 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
5690 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
5691 | else |
|
|
5692 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
5693 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
5694 | lt_cv_prog_cc_can_build_shared=no |
|
|
5695 | fi |
|
|
5696 | fi |
|
|
5697 | |
|
|
5698 | ## FIXME: this should be a separate macro |
|
|
5699 | ## |
|
|
5700 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
|
|
5701 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
|
|
5702 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
|
|
5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5704 | else |
|
|
5705 | lt_cv_prog_cc_static_works=no |
|
|
5706 | save_LDFLAGS="$LDFLAGS" |
|
|
5707 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
|
|
5708 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5709 | /* confdefs.h. */ |
|
|
5710 | _ACEOF |
|
|
5711 | cat confdefs.h >>conftest.$ac_ext |
|
|
5712 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5713 | /* end confdefs.h. */ |
|
|
5714 | |
|
|
5715 | int |
|
|
5716 | main () |
|
|
5717 | { |
|
|
5718 | |
|
|
5719 | ; |
|
|
5720 | return 0; |
|
|
5721 | } |
|
|
5722 | _ACEOF |
|
|
5723 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5725 | (eval $ac_link) 2>conftest.er1 |
|
|
5726 | ac_status=$? |
|
|
5727 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5728 | rm -f conftest.er1 |
|
|
5729 | cat conftest.err >&5 |
|
|
5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5731 | (exit $ac_status); } && |
|
|
5732 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5734 | (eval $ac_try) 2>&5 |
|
|
5735 | ac_status=$? |
|
|
5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5737 | (exit $ac_status); }; } && |
|
|
5738 | { ac_try='test -s conftest$ac_exeext' |
|
|
5739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5740 | (eval $ac_try) 2>&5 |
|
|
5741 | ac_status=$? |
|
|
5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5743 | (exit $ac_status); }; }; then |
|
|
5744 | lt_cv_prog_cc_static_works=yes |
|
|
5745 | else |
|
|
5746 | echo "$as_me: failed program was:" >&5 |
|
|
5747 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5748 | |
|
|
5749 | fi |
|
|
5750 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5751 | conftest$ac_exeext conftest.$ac_ext |
|
|
5752 | LDFLAGS="$save_LDFLAGS" |
|
|
5753 | |
|
|
5754 | fi |
|
|
5755 | |
|
|
5756 | |
|
|
5757 | # Belt *and* braces to stop my trousers falling down: |
|
|
5758 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
|
|
5759 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
|
|
5760 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
|
|
5761 | |
|
|
5762 | pic_flag="$lt_cv_prog_cc_pic" |
|
|
5763 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
|
|
5764 | wl="$lt_cv_prog_cc_wl" |
|
|
5765 | link_static_flag="$lt_cv_prog_cc_static" |
|
|
5766 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
5767 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
5768 | ## |
|
|
5769 | ## END FIXME |
|
|
5770 | |
|
|
5771 | |
|
|
5772 | ## FIXME: this should be a separate macro |
|
|
5773 | ## |
|
|
5774 | # Check to see if options -o and -c are simultaneously supported by compiler |
|
|
5775 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
5776 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
5777 | $rm -r conftest 2>/dev/null |
|
|
5778 | mkdir conftest |
|
|
5779 | cd conftest |
|
|
5780 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5781 | mkdir out |
|
|
5782 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
5783 | # that will create temporary files in the current directory regardless of |
|
|
5784 | # the output directory. Thus, making CWD read-only will cause this test |
|
|
5785 | # to fail, enabling locking or at least warning the user not to do parallel |
|
|
5786 | # builds. |
|
|
5787 | chmod -w . |
|
|
5788 | save_CFLAGS="$CFLAGS" |
|
|
5789 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
|
|
5790 | compiler_c_o=no |
|
|
5791 | if { (eval echo configure:5791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
|
5792 | # The compiler can only warn and ignore the option if not recognized |
|
|
5793 | # So say no if there are warnings |
|
|
5794 | if test -s out/conftest.err; then |
|
|
5795 | compiler_c_o=no |
|
|
5796 | else |
|
|
5797 | compiler_c_o=yes |
|
|
5798 | fi |
|
|
5799 | else |
|
|
5800 | # Append any errors to the config.log. |
|
|
5801 | cat out/conftest.err 1>&5 |
|
|
5802 | compiler_c_o=no |
|
|
5803 | fi |
|
|
5804 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5805 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5806 | CFLAGS="$save_CFLAGS" |
|
|
5807 | chmod u+w . |
|
|
5808 | $rm conftest* out/* |
|
|
5809 | rmdir out |
|
|
5810 | cd .. |
|
|
5811 | rmdir conftest |
|
|
5812 | $rm -r conftest 2>/dev/null |
|
|
5813 | |
|
|
5814 | if test x"$compiler_c_o" = x"yes"; then |
|
|
5815 | # Check to see if we can write to a .lo |
|
|
5816 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
|
|
5817 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
|
|
5818 | compiler_o_lo=no |
|
|
5819 | save_CFLAGS="$CFLAGS" |
|
|
5820 | CFLAGS="$CFLAGS -c -o conftest.lo" |
|
|
5821 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5822 | /* confdefs.h. */ |
|
|
5823 | _ACEOF |
|
|
5824 | cat confdefs.h >>conftest.$ac_ext |
|
|
5825 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5826 | /* end confdefs.h. */ |
|
|
5827 | |
|
|
5828 | int |
|
|
5829 | main () |
|
|
5830 | { |
|
|
5831 | int some_variable = 0; |
|
|
5832 | ; |
|
|
5833 | return 0; |
|
|
5834 | } |
|
|
5835 | _ACEOF |
|
|
5836 | rm -f conftest.$ac_objext |
|
|
5837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5838 | (eval $ac_compile) 2>conftest.er1 |
|
|
5839 | ac_status=$? |
|
|
5840 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5841 | rm -f conftest.er1 |
|
|
5842 | cat conftest.err >&5 |
|
|
5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5844 | (exit $ac_status); } && |
|
|
5845 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5847 | (eval $ac_try) 2>&5 |
|
|
5848 | ac_status=$? |
|
|
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5850 | (exit $ac_status); }; } && |
|
|
5851 | { ac_try='test -s conftest.$ac_objext' |
|
|
5852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5853 | (eval $ac_try) 2>&5 |
|
|
5854 | ac_status=$? |
|
|
5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5856 | (exit $ac_status); }; }; then |
|
|
5857 | # The compiler can only warn and ignore the option if not recognized |
|
|
5858 | # So say no if there are warnings |
|
|
5859 | if test -s conftest.err; then |
|
|
5860 | compiler_o_lo=no |
|
|
5861 | else |
|
|
5862 | compiler_o_lo=yes |
|
|
5863 | fi |
|
|
5864 | |
|
|
5865 | else |
|
|
5866 | echo "$as_me: failed program was:" >&5 |
|
|
5867 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5868 | |
|
|
5869 | fi |
|
|
5870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5871 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5872 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5873 | CFLAGS="$save_CFLAGS" |
|
|
5874 | else |
|
|
5875 | compiler_o_lo=no |
|
|
5876 | fi |
|
|
5877 | ## |
|
|
5878 | ## END FIXME |
|
|
5879 | |
|
|
5880 | ## FIXME: this should be a separate macro |
|
|
5881 | ## |
|
|
5882 | # Check to see if we can do hard links to lock some files if needed |
|
|
5883 | hard_links="nottested" |
|
|
5884 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
5885 | # do not overwrite the value of need_locks provided by the user |
|
|
5886 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
5887 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
5888 | hard_links=yes |
|
|
5889 | $rm conftest* |
|
|
5890 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5891 | touch conftest.a |
|
|
5892 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
5893 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5894 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
5895 | echo "${ECHO_T}$hard_links" >&6 |
|
|
5896 | if test "$hard_links" = no; then |
|
|
5897 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
5898 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
5899 | need_locks=warn |
|
|
5900 | fi |
|
|
5901 | else |
|
|
5902 | need_locks=no |
|
|
5903 | fi |
|
|
5904 | ## |
|
|
5905 | ## END FIXME |
|
|
5906 | |
|
|
5907 | ## FIXME: this should be a separate macro |
|
|
5908 | ## |
|
|
5909 | if test "$GCC" = yes; then |
|
|
5910 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
|
|
5911 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
5912 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
5913 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5914 | save_CFLAGS="$CFLAGS" |
|
|
5915 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
|
|
5916 | compiler_rtti_exceptions=no |
|
|
5917 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5918 | /* confdefs.h. */ |
|
|
5919 | _ACEOF |
|
|
5920 | cat confdefs.h >>conftest.$ac_ext |
|
|
5921 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5922 | /* end confdefs.h. */ |
|
|
5923 | |
|
|
5924 | int |
|
|
5925 | main () |
|
|
5926 | { |
|
|
5927 | int some_variable = 0; |
|
|
5928 | ; |
|
|
5929 | return 0; |
|
|
5930 | } |
|
|
5931 | _ACEOF |
|
|
5932 | rm -f conftest.$ac_objext |
|
|
5933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5934 | (eval $ac_compile) 2>conftest.er1 |
|
|
5935 | ac_status=$? |
|
|
5936 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5937 | rm -f conftest.er1 |
|
|
5938 | cat conftest.err >&5 |
|
|
5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5940 | (exit $ac_status); } && |
|
|
5941 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5943 | (eval $ac_try) 2>&5 |
|
|
5944 | ac_status=$? |
|
|
5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5946 | (exit $ac_status); }; } && |
|
|
5947 | { ac_try='test -s conftest.$ac_objext' |
|
|
5948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5949 | (eval $ac_try) 2>&5 |
|
|
5950 | ac_status=$? |
|
|
5951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5952 | (exit $ac_status); }; }; then |
|
|
5953 | # The compiler can only warn and ignore the option if not recognized |
|
|
5954 | # So say no if there are warnings |
|
|
5955 | if test -s conftest.err; then |
|
|
5956 | compiler_rtti_exceptions=no |
|
|
5957 | else |
|
|
5958 | compiler_rtti_exceptions=yes |
|
|
5959 | fi |
|
|
5960 | |
|
|
5961 | else |
|
|
5962 | echo "$as_me: failed program was:" >&5 |
|
|
5963 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5964 | |
|
|
5965 | fi |
|
|
5966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5967 | CFLAGS="$save_CFLAGS" |
|
|
5968 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
|
|
5969 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
|
|
5970 | |
|
|
5971 | if test "$compiler_rtti_exceptions" = "yes"; then |
|
|
5972 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
|
|
5973 | else |
|
|
5974 | no_builtin_flag=' -fno-builtin' |
|
|
5975 | fi |
|
|
5976 | fi |
|
|
5977 | ## |
|
|
5978 | ## END FIXME |
|
|
5979 | |
|
|
5980 | ## FIXME: this should be a separate macro |
|
|
5981 | ## |
|
|
5982 | # See if the linker supports building shared libraries. |
|
|
5983 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
|
|
5984 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
5985 | |
|
|
5986 | allow_undefined_flag= |
|
|
5987 | no_undefined_flag= |
|
|
5988 | need_lib_prefix=unknown |
|
|
5989 | need_version=unknown |
|
|
5990 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
5991 | # flags to be left without arguments |
|
|
5992 | archive_cmds= |
|
|
5993 | archive_expsym_cmds= |
|
|
5994 | old_archive_from_new_cmds= |
|
|
5995 | old_archive_from_expsyms_cmds= |
|
|
5996 | export_dynamic_flag_spec= |
|
|
5997 | whole_archive_flag_spec= |
|
|
5998 | thread_safe_flag_spec= |
|
|
5999 | hardcode_into_libs=no |
|
|
6000 | hardcode_libdir_flag_spec= |
|
|
6001 | hardcode_libdir_separator= |
|
|
6002 | hardcode_direct=no |
|
|
6003 | hardcode_minus_L=no |
|
|
6004 | hardcode_shlibpath_var=unsupported |
|
|
6005 | runpath_var= |
|
|
6006 | link_all_deplibs=unknown |
|
|
6007 | always_export_symbols=no |
|
|
6008 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
6009 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
6010 | # included in the symbol list |
|
|
6011 | include_expsyms= |
|
|
6012 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
|
|
6013 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
6014 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
6015 | # as well as any symbol that contains `d'. |
|
|
6016 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
6017 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
6018 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
6019 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
6020 | # rely on this symbol name, it's probably fine to never include it in |
|
|
6021 | # preloaded symbol tables. |
|
|
6022 | extract_expsyms_cmds= |
|
|
6023 | |
|
|
6024 | case "$host_os" in |
|
|
6025 | cygwin* | mingw* | pw32* ) |
|
|
6026 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
6027 | # When not using gcc, we currently assume that we are using |
|
|
6028 | # Microsoft Visual C++. |
|
|
6029 | if test "$GCC" != yes; then |
|
|
6030 | with_gnu_ld=no |
|
|
6031 | fi |
|
|
6032 | ;; |
|
|
6033 | |
|
|
6034 | esac |
|
|
6035 | |
|
|
6036 | ld_shlibs=yes |
|
|
6037 | if test "$with_gnu_ld" = yes; then |
|
|
6038 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
6039 | wlarc='${wl}' |
|
|
6040 | |
|
|
6041 | # See if GNU ld supports shared libraries. |
|
|
6042 | case "$host_os" in |
|
|
6043 | aix3* | aix4*) |
|
|
6044 | # On AIX, the GNU linker is very broken |
|
|
6045 | ld_shlibs=no |
|
|
6046 | cat <<EOF 1>&2 |
|
|
6047 | |
|
|
6048 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
6049 | *** to be unable to reliably create shared libraries on AIX. |
|
|
6050 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
6051 | *** really care for shared libraries, you may want to modify your PATH |
|
|
6052 | *** so that a non-GNU linker is found, and then restart. |
|
|
6053 | |
|
|
6054 | EOF |
|
|
6055 | ;; |
|
|
6056 | |
|
|
6057 | amigaos*) |
|
|
6058 | 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)' |
|
|
6059 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6060 | hardcode_minus_L=yes |
|
|
6061 | |
|
|
6062 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
6063 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
6064 | # to version 4, is to share data among multiple programs linked |
|
|
6065 | # with the same dynamic library. Since this doesn't match the |
|
|
6066 | # behavior of shared libraries on other platforms, we can use |
|
|
6067 | # them. |
|
|
6068 | ld_shlibs=no |
|
|
6069 | ;; |
|
|
6070 | |
|
|
6071 | beos*) |
|
|
6072 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6073 | allow_undefined_flag=unsupported |
|
|
6074 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
6075 | # support --undefined. This deserves some investigation. FIXME |
|
|
6076 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6077 | else |
|
|
6078 | ld_shlibs=no |
|
|
6079 | fi |
|
|
6080 | ;; |
|
|
6081 | |
|
|
6082 | cygwin* | mingw* | pw32*) |
|
|
6083 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6084 | # no search path for DLLs. |
|
|
6085 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6086 | allow_undefined_flag=unsupported |
|
|
6087 | always_export_symbols=yes |
|
|
6088 | |
|
|
6089 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
|
|
6090 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
|
|
6091 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
|
|
6092 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
|
|
6093 | else $CC -o impgen impgen.c ; fi)~ |
|
|
6094 | $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def' |
|
|
6095 | |
|
|
6096 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
|
|
6097 | |
|
|
6098 | # cygwin and mingw dlls have different entry points and sets of symbols |
|
|
6099 | # to exclude. |
|
|
6100 | # FIXME: what about values for MSVC? |
|
|
6101 | dll_entry=__cygwin_dll_entry@12 |
|
|
6102 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
|
|
6103 | case "$host_os" in |
|
|
6104 | mingw*) |
|
|
6105 | # mingw values |
|
|
6106 | dll_entry=_DllMainCRTStartup@12 |
|
|
6107 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
|
|
6108 | ;; |
|
|
6109 | esac |
|
|
6110 | |
|
|
6111 | # mingw and cygwin differ, and it's simplest to just exclude the union |
|
|
6112 | # of the two symbol sets. |
|
|
6113 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
|
|
6114 | |
|
|
6115 | # recent cygwin and mingw systems supply a stub DllMain which the user |
|
|
6116 | # can override, but on older systems we have to supply one (in ltdll.c) |
|
|
6117 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
|
|
6118 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
|
|
6119 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~ |
|
|
6120 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
|
|
6121 | else |
|
|
6122 | ltdll_obj= |
|
|
6123 | ltdll_cmds= |
|
|
6124 | fi |
|
|
6125 | |
|
|
6126 | # Extract the symbol export list from an `--export-all' def file, |
|
|
6127 | # then regenerate the def file from the symbol export list, so that |
|
|
6128 | # the compiled dll only exports the symbol export list. |
|
|
6129 | # Be careful not to strip the DATA tag left be newer dlltools. |
|
|
6130 | export_symbols_cmds="$ltdll_cmds"' |
|
|
6131 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
|
|
6132 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
|
|
6133 | |
|
|
6134 | # If DATA tags from a recent dlltool are present, honour them! |
|
|
6135 | archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~ |
|
|
6136 | _lt_hint=1; |
|
|
6137 | cat $export_symbols | while read symbol; do |
|
|
6138 | set dummy \$symbol; |
|
|
6139 | case \$# in |
|
|
6140 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
6141 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
|
|
6142 | esac; |
|
|
6143 | _lt_hint=`expr 1 + \$_lt_hint`; |
|
|
6144 | done~ |
|
|
6145 | '"$ltdll_cmds"' |
|
|
6146 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
6147 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
|
|
6148 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
6149 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
|
|
6150 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
|
|
6151 | ;; |
|
|
6152 | |
|
|
6153 | netbsd*) |
|
|
6154 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6155 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
6156 | wlarc= |
|
|
6157 | else |
|
|
6158 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6159 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6160 | fi |
|
|
6161 | ;; |
|
|
6162 | |
|
|
6163 | solaris* | sysv5*) |
|
|
6164 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
|
|
6165 | ld_shlibs=no |
|
|
6166 | cat <<EOF 1>&2 |
|
|
6167 | |
|
|
6168 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
6169 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
6170 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
6171 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
6172 | *** your PATH or compiler configuration so that the native linker is |
|
|
6173 | *** used, and then restart. |
|
|
6174 | |
|
|
6175 | EOF |
|
|
6176 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6177 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6178 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6179 | else |
|
|
6180 | ld_shlibs=no |
|
|
6181 | fi |
|
|
6182 | ;; |
|
|
6183 | |
|
|
6184 | sunos4*) |
|
|
6185 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6186 | wlarc= |
|
|
6187 | hardcode_direct=yes |
|
|
6188 | hardcode_shlibpath_var=no |
|
|
6189 | ;; |
|
|
6190 | |
|
|
6191 | *) |
|
|
6192 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6193 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6194 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6195 | else |
|
|
6196 | ld_shlibs=no |
|
|
6197 | fi |
|
|
6198 | ;; |
|
|
6199 | esac |
|
|
6200 | |
|
|
6201 | if test "$ld_shlibs" = yes; then |
|
|
6202 | runpath_var=LD_RUN_PATH |
|
|
6203 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
6204 | export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
6205 | case $host_os in |
|
|
6206 | cygwin* | mingw* | pw32*) |
|
|
6207 | # dlltool doesn't understand --whole-archive et. al. |
|
|
6208 | whole_archive_flag_spec= |
|
|
6209 | ;; |
|
|
6210 | *) |
|
|
6211 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
6212 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
|
|
6213 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
6214 | else |
|
|
6215 | whole_archive_flag_spec= |
|
|
6216 | fi |
|
|
6217 | ;; |
|
|
6218 | esac |
|
|
6219 | fi |
|
|
6220 | else |
|
|
6221 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
6222 | case "$host_os" in |
|
|
6223 | aix3*) |
|
|
6224 | allow_undefined_flag=unsupported |
|
|
6225 | always_export_symbols=yes |
|
|
6226 | 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' |
|
|
6227 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
6228 | # are no directories specified by -L. |
|
|
6229 | hardcode_minus_L=yes |
|
|
6230 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
6231 | # Neither direct hardcoding nor static linking is supported with a |
|
|
6232 | # broken collect2. |
|
|
6233 | hardcode_direct=unsupported |
|
|
6234 | fi |
|
|
6235 | ;; |
|
|
6236 | |
|
|
6237 | aix4*) |
|
|
6238 | hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib' |
|
|
6239 | hardcode_libdir_separator=':' |
|
|
6240 | if test "$GCC" = yes; then |
|
|
6241 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
6242 | if test -f "$collect2name" && \ |
|
|
6243 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
6244 | then |
|
|
6245 | # We have reworked collect2 |
|
|
6246 | hardcode_direct=yes |
|
|
6247 | else |
|
|
6248 | # We have old collect2 |
|
|
6249 | hardcode_direct=unsupported |
|
|
6250 | # It fails to find uninstalled libraries when the uninstalled |
|
|
6251 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
6252 | # to unsupported forces relinking |
|
|
6253 | hardcode_minus_L=yes |
|
|
6254 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6255 | hardcode_libdir_separator= |
|
|
6256 | fi |
|
|
6257 | shared_flag='-shared' |
|
|
6258 | else |
|
|
6259 | shared_flag='${wl}-bM:SRE' |
|
|
6260 | hardcode_direct=yes |
|
|
6261 | fi |
|
|
6262 | allow_undefined_flag=' ${wl}-berok' |
|
|
6263 | archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6264 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6265 | case "$host_os" in aix4.[01]|aix4.[01].*) |
|
|
6266 | # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on |
|
|
6267 | always_export_symbols=yes ;; |
|
|
6268 | esac |
|
|
6269 | |
|
|
6270 | # We don't want to build shared libraries on unknown CPU types. |
|
|
6271 | case $host_cpu in |
|
|
6272 | powerpc | rs6000) ;; |
|
|
6273 | *) ld_shlibs=no ;; |
|
|
6274 | esac |
|
|
6275 | ;; |
|
|
6276 | |
|
|
6277 | amigaos*) |
|
|
6278 | 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)' |
|
|
6279 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6280 | hardcode_minus_L=yes |
|
|
6281 | # see comment about different semantics on the GNU ld section |
|
|
6282 | ld_shlibs=no |
|
|
6283 | ;; |
|
|
6284 | |
|
|
6285 | cygwin* | mingw* | pw32*) |
|
|
6286 | # When not using gcc, we currently assume that we are using |
|
|
6287 | # Microsoft Visual C++. |
|
|
6288 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6289 | # no search path for DLLs. |
|
|
6290 | hardcode_libdir_flag_spec=' ' |
|
|
6291 | allow_undefined_flag=unsupported |
|
|
6292 | # Tell ltmain to make .lib files, not .a files. |
|
|
6293 | libext=lib |
|
|
6294 | # FIXME: Setting linknames here is a bad hack. |
|
|
6295 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
6296 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
6297 | old_archive_from_new_cmds='true' |
|
|
6298 | # FIXME: Should let the user specify the lib program. |
|
|
6299 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
6300 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
6301 | ;; |
|
|
6302 | |
|
|
6303 | darwin* | rhapsody*) |
|
|
6304 | allow_undefined_flag='-undefined warning' |
|
|
6305 | archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else |
|
|
6306 | echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts' |
|
|
6307 | archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
|
|
6308 | ## What we need is to hardcode the path to the library, not the search path |
|
|
6309 | #hardcode_direct=yes |
|
|
6310 | #hardcode_libdir_flag_spec='-install_name $libdir/$lib' |
|
|
6311 | hardcode_shlibpath_var=no |
|
|
6312 | whole_archive_flag_spec='-all_load' |
|
|
6313 | ;; |
|
|
6314 | |
|
|
6315 | freebsd1*) |
|
|
6316 | ld_shlibs=no |
|
|
6317 | ;; |
|
|
6318 | |
|
|
6319 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
6320 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
6321 | # does not break anything, and helps significantly (at the cost of a little |
|
|
6322 | # extra space). |
|
|
6323 | freebsd2.2*) |
|
|
6324 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
6325 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6326 | hardcode_direct=yes |
|
|
6327 | hardcode_shlibpath_var=no |
|
|
6328 | ;; |
|
|
6329 | |
|
|
6330 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
6331 | freebsd2*) |
|
|
6332 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6333 | hardcode_direct=yes |
|
|
6334 | hardcode_minus_L=yes |
|
|
6335 | hardcode_shlibpath_var=no |
|
|
6336 | ;; |
|
|
6337 | |
|
|
6338 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
6339 | freebsd*) |
|
|
6340 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6341 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6342 | hardcode_direct=yes |
|
|
6343 | hardcode_shlibpath_var=no |
|
|
6344 | ;; |
|
|
6345 | |
|
|
6346 | hpux9* | hpux10* | hpux11*) |
|
|
6347 | case "$host_os" in |
|
|
6348 | hpux9*) 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' ;; |
|
|
6349 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
|
|
6350 | esac |
|
|
6351 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6352 | hardcode_libdir_separator=: |
|
|
6353 | hardcode_direct=yes |
|
|
6354 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
|
|
6355 | # location of the library. |
|
|
6356 | export_dynamic_flag_spec='${wl}-E' |
|
|
6357 | ;; |
|
|
6358 | |
|
|
6359 | irix5* | irix6*) |
|
|
6360 | if test "$GCC" = yes; then |
|
|
6361 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
6362 | else |
|
|
6363 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
6364 | fi |
|
|
6365 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6366 | hardcode_libdir_separator=: |
|
|
6367 | link_all_deplibs=yes |
|
|
6368 | ;; |
|
|
6369 | |
|
|
6370 | netbsd*) |
|
|
6371 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6372 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
6373 | else |
|
|
6374 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
6375 | fi |
|
|
6376 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6377 | hardcode_direct=yes |
|
|
6378 | hardcode_shlibpath_var=no |
|
|
6379 | ;; |
|
|
6380 | |
|
|
6381 | newsos6) |
|
|
6382 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6383 | hardcode_direct=yes |
|
|
6384 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6385 | hardcode_libdir_separator=: |
|
|
6386 | hardcode_shlibpath_var=no |
|
|
6387 | ;; |
|
|
6388 | |
|
|
6389 | openbsd*) |
|
|
6390 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6391 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6392 | hardcode_direct=yes |
|
|
6393 | hardcode_shlibpath_var=no |
|
|
6394 | ;; |
|
|
6395 | |
|
|
6396 | os2*) |
|
|
6397 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6398 | hardcode_minus_L=yes |
|
|
6399 | allow_undefined_flag=unsupported |
|
|
6400 | 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' |
|
|
6401 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
6402 | ;; |
|
|
6403 | |
|
|
6404 | osf3*) |
|
|
6405 | if test "$GCC" = yes; then |
|
|
6406 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6407 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
6408 | else |
|
|
6409 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6410 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
6411 | fi |
|
|
6412 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6413 | hardcode_libdir_separator=: |
|
|
6414 | ;; |
|
|
6415 | |
|
|
6416 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
6417 | if test "$GCC" = yes; then |
|
|
6418 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6419 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
6420 | else |
|
|
6421 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6422 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
6423 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
6424 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
|
6425 | fi |
|
|
6426 | #Both c and cxx compiler support -rpath directly |
|
|
6427 | hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
6428 | hardcode_libdir_separator=: |
|
|
6429 | ;; |
|
|
6430 | |
|
|
6431 | sco3.2v5*) |
|
|
6432 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6433 | hardcode_shlibpath_var=no |
|
|
6434 | runpath_var=LD_RUN_PATH |
|
|
6435 | hardcode_runpath_var=yes |
|
|
6436 | ;; |
|
|
6437 | |
|
|
6438 | solaris*) |
|
|
6439 | no_undefined_flag=' -z text' |
|
|
6440 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6441 | # object files and a static libstdc++, better avoid it by now |
|
|
6442 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6443 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6444 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6445 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6446 | hardcode_shlibpath_var=no |
|
|
6447 | case "$host_os" in |
|
|
6448 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
6449 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
6450 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
|
6451 | esac |
|
|
6452 | link_all_deplibs=yes |
|
|
6453 | ;; |
|
|
6454 | |
|
|
6455 | sunos4*) |
|
|
6456 | if test "x$host_vendor" = xsequent; then |
|
|
6457 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
6458 | # files that make .init and .fini sections work. |
|
|
6459 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6460 | else |
|
|
6461 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
6462 | fi |
|
|
6463 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6464 | hardcode_direct=yes |
|
|
6465 | hardcode_minus_L=yes |
|
|
6466 | hardcode_shlibpath_var=no |
|
|
6467 | ;; |
|
|
6468 | |
|
|
6469 | sysv4) |
|
|
6470 | if test "x$host_vendor" = xsno; then |
|
|
6471 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6472 | hardcode_direct=yes # is this really true??? |
|
|
6473 | else |
|
|
6474 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6475 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
6476 | fi |
|
|
6477 | runpath_var='LD_RUN_PATH' |
|
|
6478 | hardcode_shlibpath_var=no |
|
|
6479 | ;; |
|
|
6480 | |
|
|
6481 | sysv4.3*) |
|
|
6482 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6483 | hardcode_shlibpath_var=no |
|
|
6484 | export_dynamic_flag_spec='-Bexport' |
|
|
6485 | ;; |
|
|
6486 | |
|
|
6487 | sysv5*) |
|
|
6488 | no_undefined_flag=' -z text' |
|
|
6489 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6490 | # object files and a static libstdc++, better avoid it by now |
|
|
6491 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6492 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6493 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6494 | hardcode_libdir_flag_spec= |
|
|
6495 | hardcode_shlibpath_var=no |
|
|
6496 | runpath_var='LD_RUN_PATH' |
|
|
6497 | ;; |
|
|
6498 | |
|
|
6499 | uts4*) |
|
|
6500 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6501 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6502 | hardcode_shlibpath_var=no |
|
|
6503 | ;; |
|
|
6504 | |
|
|
6505 | dgux*) |
|
|
6506 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6507 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6508 | hardcode_shlibpath_var=no |
|
|
6509 | ;; |
|
|
6510 | |
|
|
6511 | sysv4*MP*) |
|
|
6512 | if test -d /usr/nec; then |
|
|
6513 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6514 | hardcode_shlibpath_var=no |
|
|
6515 | runpath_var=LD_RUN_PATH |
|
|
6516 | hardcode_runpath_var=yes |
|
|
6517 | ld_shlibs=yes |
|
|
6518 | fi |
|
|
6519 | ;; |
|
|
6520 | |
|
|
6521 | sysv4.2uw2*) |
|
|
6522 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
6523 | hardcode_direct=yes |
|
|
6524 | hardcode_minus_L=no |
|
|
6525 | hardcode_shlibpath_var=no |
|
|
6526 | hardcode_runpath_var=yes |
|
|
6527 | runpath_var=LD_RUN_PATH |
|
|
6528 | ;; |
|
|
6529 | |
|
|
6530 | unixware7*) |
|
|
6531 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6532 | runpath_var='LD_RUN_PATH' |
|
|
6533 | hardcode_shlibpath_var=no |
|
|
6534 | ;; |
|
|
6535 | |
|
|
6536 | *) |
|
|
6537 | ld_shlibs=no |
|
|
6538 | ;; |
|
|
6539 | esac |
|
|
6540 | fi |
|
|
6541 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
|
6542 | echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
6543 | test "$ld_shlibs" = no && can_build_shared=no |
|
|
6544 | ## |
|
|
6545 | ## END FIXME |
|
|
6546 | |
|
|
6547 | ## FIXME: this should be a separate macro |
|
|
6548 | ## |
|
|
6549 | # Check hardcoding attributes. |
|
|
6550 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
6551 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
6552 | hardcode_action= |
|
|
6553 | if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
6554 | test -n "$runpath_var"; then |
|
|
6555 | |
|
|
6556 | # We can hardcode non-existant directories. |
|
|
6557 | if test "$hardcode_direct" != no && |
|
|
6558 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
6559 | # have to relink, otherwise we might link with an installed library |
|
|
6560 | # when we should be linking with a yet-to-be-installed one |
|
|
6561 | ## test "$hardcode_shlibpath_var" != no && |
|
|
6562 | test "$hardcode_minus_L" != no; then |
|
|
6563 | # Linking always hardcodes the temporary library directory. |
|
|
6564 | hardcode_action=relink |
|
|
6565 | else |
|
|
6566 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
6567 | hardcode_action=immediate |
|
|
6568 | fi |
|
|
6569 | else |
|
|
6570 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
6571 | # directories. |
|
|
6572 | hardcode_action=unsupported |
|
|
6573 | fi |
|
|
6574 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
6575 | echo "${ECHO_T}$hardcode_action" >&6 |
|
|
6576 | ## |
|
|
6577 | ## END FIXME |
|
|
6578 | |
|
|
6579 | ## FIXME: this should be a separate macro |
|
|
6580 | ## |
|
|
6581 | striplib= |
|
|
6582 | old_striplib= |
|
|
6583 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
6584 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
6585 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
6586 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
6587 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
6588 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
6589 | echo "${ECHO_T}yes" >&6 |
|
|
6590 | else |
|
|
6591 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6592 | echo "${ECHO_T}no" >&6 |
|
|
6593 | fi |
|
|
6594 | ## |
|
|
6595 | ## END FIXME |
|
|
6596 | |
|
|
6597 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
6598 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
6599 | |
|
|
6600 | ## FIXME: this should be a separate macro |
|
|
6601 | ## |
|
|
6602 | # PORTME Fill in your ld.so characteristics |
|
|
6603 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
6604 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
6605 | library_names_spec= |
|
|
6606 | libname_spec='lib$name' |
|
|
6607 | soname_spec= |
|
|
6608 | postinstall_cmds= |
|
|
6609 | postuninstall_cmds= |
|
|
6610 | finish_cmds= |
|
|
6611 | finish_eval= |
|
|
6612 | shlibpath_var= |
|
|
6613 | shlibpath_overrides_runpath=unknown |
|
|
6614 | version_type=none |
|
|
6615 | dynamic_linker="$host_os ld.so" |
|
|
6616 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
6617 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
6618 | |
|
|
6619 | case "$host_os" in |
|
|
6620 | aix3*) |
|
|
6621 | version_type=linux |
|
|
6622 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
|
|
6623 | shlibpath_var=LIBPATH |
|
|
6624 | |
|
|
6625 | # AIX has no versioning support, so we append a major version to the name. |
|
|
6626 | soname_spec='${libname}${release}.so$major' |
|
|
6627 | ;; |
|
|
6628 | |
|
|
6629 | aix4*) |
|
|
6630 | version_type=linux |
|
|
6631 | # AIX has no versioning support, so currently we can not hardcode correct |
|
|
6632 | # soname into executable. Probably we can add versioning support to |
|
|
6633 | # collect2, so additional links can be useful in future. |
|
|
6634 | # We preserve .a as extension for shared libraries though AIX4.2 |
|
|
6635 | # and later linker supports .so |
|
|
6636 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' |
|
|
6637 | shlibpath_var=LIBPATH |
|
|
6638 | ;; |
|
|
6639 | |
|
|
6640 | amigaos*) |
|
|
6641 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
6642 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
6643 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
|
|
6644 | ;; |
|
|
6645 | |
|
|
6646 | beos*) |
|
|
6647 | library_names_spec='${libname}.so' |
|
|
6648 | dynamic_linker="$host_os ld.so" |
|
|
6649 | shlibpath_var=LIBRARY_PATH |
|
|
6650 | ;; |
|
|
6651 | |
|
|
6652 | bsdi4*) |
|
|
6653 | version_type=linux |
|
|
6654 | need_version=no |
|
|
6655 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6656 | soname_spec='${libname}${release}.so$major' |
|
|
6657 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
6658 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6659 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
6660 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
6661 | export_dynamic_flag_spec=-rdynamic |
|
|
6662 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
6663 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
6664 | # libtool to hard-code these into programs |
|
|
6665 | ;; |
|
|
6666 | |
|
|
6667 | cygwin* | mingw* | pw32*) |
|
|
6668 | version_type=windows |
|
|
6669 | need_version=no |
|
|
6670 | need_lib_prefix=no |
|
|
6671 | if test "$GCC" = yes; then |
|
|
6672 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
|
|
6673 | else |
|
|
6674 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
|
|
6675 | fi |
|
|
6676 | dynamic_linker='Win32 ld.exe' |
|
|
6677 | # FIXME: first we should search . and the directory the executable is in |
|
|
6678 | shlibpath_var=PATH |
|
|
6679 | ;; |
|
|
6680 | |
|
|
6681 | darwin* | rhapsody*) |
|
|
6682 | need_lib_prefix=no |
|
|
6683 | need_version=no |
|
|
6684 | library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`' |
|
|
6685 | shlibpath_overrides_runpath=yes |
|
|
6686 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
6687 | postinstall_cmds='chmod +x $lib' |
|
|
6688 | ;; |
|
|
6689 | |
|
|
6690 | freebsd1*) |
|
|
6691 | dynamic_linker=no |
|
|
6692 | ;; |
|
|
6693 | |
|
|
6694 | freebsd*) |
|
|
6695 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
6696 | version_type=freebsd-$objformat |
|
|
6697 | case "$version_type" in |
|
|
6698 | freebsd-elf*) |
|
|
6699 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6700 | need_version=no |
|
|
6701 | need_lib_prefix=no |
|
|
6702 | ;; |
|
|
6703 | freebsd-*) |
|
|
6704 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
|
|
6705 | need_version=yes |
|
|
6706 | ;; |
|
|
6707 | esac |
|
|
6708 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6709 | case "$host_os" in |
|
|
6710 | freebsd2*) |
|
|
6711 | shlibpath_overrides_runpath=yes |
|
|
6712 | ;; |
|
|
6713 | *) |
|
|
6714 | shlibpath_overrides_runpath=no |
|
|
6715 | hardcode_into_libs=yes |
|
|
6716 | ;; |
|
|
6717 | esac |
|
|
6718 | ;; |
|
|
6719 | |
|
|
6720 | gnu*) |
|
|
6721 | version_type=linux |
|
|
6722 | need_lib_prefix=no |
|
|
6723 | need_version=no |
|
|
6724 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
|
|
6725 | soname_spec='${libname}${release}.so$major' |
|
|
6726 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6727 | hardcode_into_libs=yes |
|
|
6728 | ;; |
|
|
6729 | |
|
|
6730 | hpux9* | hpux10* | hpux11*) |
|
|
6731 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
6732 | # link against other versions. |
|
|
6733 | dynamic_linker="$host_os dld.sl" |
|
|
6734 | version_type=sunos |
|
|
6735 | need_lib_prefix=no |
|
|
6736 | need_version=no |
|
|
6737 | shlibpath_var=SHLIB_PATH |
|
|
6738 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
6739 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
|
|
6740 | soname_spec='${libname}${release}.sl$major' |
|
|
6741 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
6742 | postinstall_cmds='chmod 555 $lib' |
|
|
6743 | ;; |
|
|
6744 | |
|
|
6745 | irix5* | irix6*) |
|
|
6746 | version_type=irix |
|
|
6747 | need_lib_prefix=no |
|
|
6748 | need_version=no |
|
|
6749 | soname_spec='${libname}${release}.so$major' |
|
|
6750 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
|
|
6751 | case "$host_os" in |
|
|
6752 | irix5*) |
|
|
6753 | libsuff= shlibsuff= |
|
|
6754 | ;; |
|
|
6755 | *) |
|
|
6756 | case "$LD" in # libtool.m4 will add one of these switches to LD |
|
|
6757 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
|
|
6758 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
6759 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
6760 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
6761 | esac |
|
|
6762 | ;; |
|
|
6763 | esac |
|
|
6764 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
6765 | shlibpath_overrides_runpath=no |
|
|
6766 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
6767 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
6768 | ;; |
|
|
6769 | |
|
|
6770 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
6771 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
|
|
6772 | dynamic_linker=no |
|
|
6773 | ;; |
|
|
6774 | |
|
|
6775 | # This must be Linux ELF. |
|
|
6776 | linux-gnu*) |
|
|
6777 | version_type=linux |
|
|
6778 | need_lib_prefix=no |
|
|
6779 | need_version=no |
|
|
6780 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6781 | soname_spec='${libname}${release}.so$major' |
|
|
6782 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
6783 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6784 | shlibpath_overrides_runpath=no |
|
|
6785 | # This implies no fast_install, which is unacceptable. |
|
|
6786 | # Some rework will be needed to allow for fast_install |
|
|
6787 | # before this can be enabled. |
|
|
6788 | hardcode_into_libs=yes |
|
|
6789 | |
|
|
6790 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
6791 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
6792 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
6793 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
6794 | # people can always --disable-shared, the test was removed, and we |
|
|
6795 | # assume the GNU/Linux dynamic linker is in use. |
|
|
6796 | dynamic_linker='GNU/Linux ld.so' |
|
|
6797 | ;; |
|
|
6798 | |
|
|
6799 | netbsd*) |
|
|
6800 | version_type=sunos |
|
|
6801 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6802 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6803 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6804 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
6805 | else |
|
|
6806 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
|
|
6807 | soname_spec='${libname}${release}.so$major' |
|
|
6808 | dynamic_linker='NetBSD ld.elf_so' |
|
|
6809 | fi |
|
|
6810 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6811 | shlibpath_overrides_runpath=yes |
|
|
6812 | hardcode_into_libs=yes |
|
|
6813 | ;; |
|
|
6814 | |
|
|
6815 | newsos6) |
|
|
6816 | version_type=linux |
|
|
6817 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6818 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6819 | shlibpath_overrides_runpath=yes |
|
|
6820 | ;; |
|
|
6821 | |
|
|
6822 | openbsd*) |
|
|
6823 | version_type=sunos |
|
|
6824 | if test "$with_gnu_ld" = yes; then |
|
|
6825 | need_lib_prefix=no |
|
|
6826 | need_version=no |
|
|
6827 | fi |
|
|
6828 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6829 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6830 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6831 | ;; |
|
|
6832 | |
|
|
6833 | os2*) |
|
|
6834 | libname_spec='$name' |
|
|
6835 | need_lib_prefix=no |
|
|
6836 | library_names_spec='$libname.dll $libname.a' |
|
|
6837 | dynamic_linker='OS/2 ld.exe' |
|
|
6838 | shlibpath_var=LIBPATH |
|
|
6839 | ;; |
|
|
6840 | |
|
|
6841 | osf3* | osf4* | osf5*) |
|
|
6842 | version_type=osf |
|
|
6843 | need_version=no |
|
|
6844 | soname_spec='${libname}${release}.so' |
|
|
6845 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6846 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6847 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
6848 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
6849 | ;; |
|
|
6850 | |
|
|
6851 | sco3.2v5*) |
|
|
6852 | version_type=osf |
|
|
6853 | soname_spec='${libname}${release}.so$major' |
|
|
6854 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6855 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6856 | ;; |
|
|
6857 | |
|
|
6858 | solaris*) |
|
|
6859 | version_type=linux |
|
|
6860 | need_lib_prefix=no |
|
|
6861 | need_version=no |
|
|
6862 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6863 | soname_spec='${libname}${release}.so$major' |
|
|
6864 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6865 | shlibpath_overrides_runpath=yes |
|
|
6866 | hardcode_into_libs=yes |
|
|
6867 | # ldd complains unless libraries are executable |
|
|
6868 | postinstall_cmds='chmod +x $lib' |
|
|
6869 | ;; |
|
|
6870 | |
|
|
6871 | sunos4*) |
|
|
6872 | version_type=sunos |
|
|
6873 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6874 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
6875 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6876 | shlibpath_overrides_runpath=yes |
|
|
6877 | if test "$with_gnu_ld" = yes; then |
|
|
6878 | need_lib_prefix=no |
|
|
6879 | fi |
|
|
6880 | need_version=yes |
|
|
6881 | ;; |
|
|
6882 | |
|
|
6883 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
6884 | version_type=linux |
|
|
6885 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6886 | soname_spec='${libname}${release}.so$major' |
|
|
6887 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6888 | case "$host_vendor" in |
|
|
6889 | sni) |
|
|
6890 | shlibpath_overrides_runpath=no |
|
|
6891 | ;; |
|
|
6892 | motorola) |
|
|
6893 | need_lib_prefix=no |
|
|
6894 | need_version=no |
|
|
6895 | shlibpath_overrides_runpath=no |
|
|
6896 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
6897 | ;; |
|
|
6898 | esac |
|
|
6899 | ;; |
|
|
6900 | |
|
|
6901 | uts4*) |
|
|
6902 | version_type=linux |
|
|
6903 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6904 | soname_spec='${libname}${release}.so$major' |
|
|
6905 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6906 | ;; |
|
|
6907 | |
|
|
6908 | dgux*) |
|
|
6909 | version_type=linux |
|
|
6910 | need_lib_prefix=no |
|
|
6911 | need_version=no |
|
|
6912 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6913 | soname_spec='${libname}${release}.so$major' |
|
|
6914 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6915 | ;; |
|
|
6916 | |
|
|
6917 | sysv4*MP*) |
|
|
6918 | if test -d /usr/nec ;then |
|
|
6919 | version_type=linux |
|
|
6920 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
|
|
6921 | soname_spec='$libname.so.$major' |
|
|
6922 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6923 | fi |
|
|
6924 | ;; |
|
|
6925 | |
|
|
6926 | *) |
|
|
6927 | dynamic_linker=no |
|
|
6928 | ;; |
|
|
6929 | esac |
|
|
6930 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
6931 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
6932 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
6933 | ## |
|
|
6934 | ## END FIXME |
|
|
6935 | |
|
|
6936 | ## FIXME: this should be a separate macro |
|
|
6937 | ## |
|
|
6938 | # Report the final consequences. |
|
|
6939 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
6940 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
6941 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
6942 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
6943 | ## |
|
|
6944 | ## END FIXME |
|
|
6945 | |
|
|
6946 | if test "$hardcode_action" = relink; then |
|
|
6947 | # Fast installation is not supported |
|
|
6948 | enable_fast_install=no |
|
|
6949 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
6950 | test "$enable_shared" = no; then |
|
|
6951 | # Fast installation is not necessary |
|
|
6952 | enable_fast_install=needless |
|
|
6953 | fi |
|
|
6954 | |
|
|
6955 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
6956 | if test "$GCC" = yes; then |
|
|
6957 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
6958 | fi |
|
|
6959 | |
|
|
6960 | if test "x$enable_dlopen" != xyes; then |
|
|
6961 | enable_dlopen=unknown |
|
|
6962 | enable_dlopen_self=unknown |
|
|
6963 | enable_dlopen_self_static=unknown |
|
|
6964 | else |
|
|
6965 | lt_cv_dlopen=no |
|
|
6966 | lt_cv_dlopen_libs= |
|
|
6967 | |
|
|
6968 | case "$host_os" in |
|
|
6969 | beos*) |
|
|
6970 | lt_cv_dlopen="load_add_on" |
|
|
6971 | lt_cv_dlopen_libs= |
|
|
6972 | lt_cv_dlopen_self=yes |
|
|
6973 | ;; |
|
|
6974 | |
|
|
6975 | cygwin* | mingw* | pw32*) |
|
|
6976 | lt_cv_dlopen="LoadLibrary" |
|
|
6977 | lt_cv_dlopen_libs= |
|
|
6978 | ;; |
|
|
6979 | |
|
|
6980 | *) |
|
|
6981 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
6982 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
6983 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
6984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6985 | else |
|
|
6986 | ac_check_lib_save_LIBS=$LIBS |
|
|
6987 | LIBS="-ldl $LIBS" |
|
|
6988 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6989 | /* confdefs.h. */ |
|
|
6990 | _ACEOF |
|
|
6991 | cat confdefs.h >>conftest.$ac_ext |
|
|
6992 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6993 | /* end confdefs.h. */ |
|
|
6994 | |
|
|
6995 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6996 | #ifdef __cplusplus |
|
|
6997 | extern "C" |
|
|
6998 | #endif |
|
|
6999 | /* We use char because int might match the return type of a gcc2 |
|
|
7000 | builtin and then its argument prototype would still apply. */ |
|
|
7001 | char dlopen (); |
|
|
7002 | int |
|
|
7003 | main () |
|
|
7004 | { |
|
|
7005 | dlopen (); |
|
|
7006 | ; |
|
|
7007 | return 0; |
|
|
7008 | } |
|
|
7009 | _ACEOF |
|
|
7010 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7012 | (eval $ac_link) 2>conftest.er1 |
|
|
7013 | ac_status=$? |
|
|
7014 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7015 | rm -f conftest.er1 |
|
|
7016 | cat conftest.err >&5 |
|
|
7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7018 | (exit $ac_status); } && |
|
|
7019 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7021 | (eval $ac_try) 2>&5 |
|
|
7022 | ac_status=$? |
|
|
7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7024 | (exit $ac_status); }; } && |
|
|
7025 | { ac_try='test -s conftest$ac_exeext' |
|
|
7026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7027 | (eval $ac_try) 2>&5 |
|
|
7028 | ac_status=$? |
|
|
7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7030 | (exit $ac_status); }; }; then |
|
|
7031 | ac_cv_lib_dl_dlopen=yes |
|
|
7032 | else |
|
|
7033 | echo "$as_me: failed program was:" >&5 |
|
|
7034 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7035 | |
|
|
7036 | ac_cv_lib_dl_dlopen=no |
|
|
7037 | fi |
|
|
7038 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7039 | conftest$ac_exeext conftest.$ac_ext |
|
|
7040 | LIBS=$ac_check_lib_save_LIBS |
|
|
7041 | fi |
|
|
7042 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
7043 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
7044 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
7045 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
7046 | else |
|
|
7047 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
7048 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
7049 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
7050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7051 | else |
|
|
7052 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7053 | /* confdefs.h. */ |
|
|
7054 | _ACEOF |
|
|
7055 | cat confdefs.h >>conftest.$ac_ext |
|
|
7056 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7057 | /* end confdefs.h. */ |
|
|
7058 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
3881 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
7059 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3882 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7060 | #define dlopen innocuous_dlopen |
3883 | #define sched_yield innocuous_sched_yield |
7061 | |
3884 | |
7062 | /* System header to define __stub macros and hopefully few prototypes, |
3885 | /* System header to define __stub macros and hopefully few prototypes, |
7063 | which can conflict with char dlopen (); below. |
3886 | which can conflict with char sched_yield (); below. |
7064 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3887 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7065 | <limits.h> exists even on freestanding compilers. */ |
3888 | <limits.h> exists even on freestanding compilers. */ |
7066 | |
3889 | |
7067 | #ifdef __STDC__ |
3890 | #ifdef __STDC__ |
7068 | # include <limits.h> |
3891 | # include <limits.h> |
7069 | #else |
3892 | #else |
7070 | # include <assert.h> |
3893 | # include <assert.h> |
7071 | #endif |
3894 | #endif |
7072 | |
3895 | |
7073 | #undef dlopen |
3896 | #undef sched_yield |
7074 | |
3897 | |
7075 | /* Override any gcc2 internal prototype to avoid an error. */ |
3898 | /* Override any gcc2 internal prototype to avoid an error. */ |
7076 | #ifdef __cplusplus |
3899 | #ifdef __cplusplus |
7077 | extern "C" |
3900 | extern "C" |
7078 | { |
3901 | { |
7079 | #endif |
3902 | #endif |
7080 | /* We use char because int might match the return type of a gcc2 |
3903 | /* We use char because int might match the return type of a gcc2 |
7081 | builtin and then its argument prototype would still apply. */ |
3904 | builtin and then its argument prototype would still apply. */ |
7082 | char dlopen (); |
3905 | char sched_yield (); |
7083 | /* The GNU C library defines this for functions which it implements |
3906 | /* The GNU C library defines this for functions which it implements |
7084 | to always fail with ENOSYS. Some functions are actually named |
3907 | to always fail with ENOSYS. Some functions are actually named |
7085 | something starting with __ and the normal name is an alias. */ |
3908 | something starting with __ and the normal name is an alias. */ |
7086 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
3909 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) |
7087 | choke me |
3910 | choke me |
7088 | #else |
3911 | #else |
7089 | char (*f) () = dlopen; |
3912 | char (*f) () = sched_yield; |
7090 | #endif |
3913 | #endif |
7091 | #ifdef __cplusplus |
3914 | #ifdef __cplusplus |
7092 | } |
3915 | } |
7093 | #endif |
3916 | #endif |
7094 | |
3917 | |
7095 | int |
3918 | int |
7096 | main () |
3919 | main () |
7097 | { |
3920 | { |
7098 | return f != dlopen; |
3921 | return f != sched_yield; |
7099 | ; |
3922 | ; |
7100 | return 0; |
3923 | return 0; |
7101 | } |
3924 | } |
7102 | _ACEOF |
3925 | _ACEOF |
7103 | rm -f conftest.$ac_objext conftest$ac_exeext |
3926 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7120 | (eval $ac_try) 2>&5 |
3943 | (eval $ac_try) 2>&5 |
7121 | ac_status=$? |
3944 | ac_status=$? |
7122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7123 | (exit $ac_status); }; }; then |
3946 | (exit $ac_status); }; }; then |
7124 | ac_cv_func_dlopen=yes |
3947 | ac_cv_func_sched_yield=yes |
7125 | else |
3948 | else |
7126 | echo "$as_me: failed program was:" >&5 |
3949 | echo "$as_me: failed program was:" >&5 |
7127 | sed 's/^/| /' conftest.$ac_ext >&5 |
3950 | sed 's/^/| /' conftest.$ac_ext >&5 |
7128 | |
3951 | |
7129 | ac_cv_func_dlopen=no |
3952 | ac_cv_func_sched_yield=no |
7130 | fi |
3953 | fi |
7131 | rm -f conftest.err conftest.$ac_objext \ |
3954 | rm -f conftest.err conftest.$ac_objext \ |
7132 | conftest$ac_exeext conftest.$ac_ext |
3955 | conftest$ac_exeext conftest.$ac_ext |
7133 | fi |
3956 | fi |
7134 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
3957 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
7135 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
3958 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 |
7136 | if test $ac_cv_func_dlopen = yes; then |
3959 | if test $ac_cv_func_sched_yield = yes; then |
7137 | lt_cv_dlopen="dlopen" |
3960 | : |
7138 | else |
3961 | else |
7139 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
3962 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
7140 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
3963 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 |
7141 | if test "${ac_cv_func_shl_load+set}" = set; then |
3964 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
7142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7143 | else |
3966 | else |
7144 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7145 | /* confdefs.h. */ |
|
|
7146 | _ACEOF |
|
|
7147 | cat confdefs.h >>conftest.$ac_ext |
|
|
7148 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7149 | /* end confdefs.h. */ |
|
|
7150 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
7151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
7152 | #define shl_load innocuous_shl_load |
|
|
7153 | |
|
|
7154 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7155 | which can conflict with char shl_load (); below. |
|
|
7156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7157 | <limits.h> exists even on freestanding compilers. */ |
|
|
7158 | |
|
|
7159 | #ifdef __STDC__ |
|
|
7160 | # include <limits.h> |
|
|
7161 | #else |
|
|
7162 | # include <assert.h> |
|
|
7163 | #endif |
|
|
7164 | |
|
|
7165 | #undef shl_load |
|
|
7166 | |
|
|
7167 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7168 | #ifdef __cplusplus |
|
|
7169 | extern "C" |
|
|
7170 | { |
|
|
7171 | #endif |
|
|
7172 | /* We use char because int might match the return type of a gcc2 |
|
|
7173 | builtin and then its argument prototype would still apply. */ |
|
|
7174 | char shl_load (); |
|
|
7175 | /* The GNU C library defines this for functions which it implements |
|
|
7176 | to always fail with ENOSYS. Some functions are actually named |
|
|
7177 | something starting with __ and the normal name is an alias. */ |
|
|
7178 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
7179 | choke me |
|
|
7180 | #else |
|
|
7181 | char (*f) () = shl_load; |
|
|
7182 | #endif |
|
|
7183 | #ifdef __cplusplus |
|
|
7184 | } |
|
|
7185 | #endif |
|
|
7186 | |
|
|
7187 | int |
|
|
7188 | main () |
|
|
7189 | { |
|
|
7190 | return f != shl_load; |
|
|
7191 | ; |
|
|
7192 | return 0; |
|
|
7193 | } |
|
|
7194 | _ACEOF |
|
|
7195 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7197 | (eval $ac_link) 2>conftest.er1 |
|
|
7198 | ac_status=$? |
|
|
7199 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7200 | rm -f conftest.er1 |
|
|
7201 | cat conftest.err >&5 |
|
|
7202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7203 | (exit $ac_status); } && |
|
|
7204 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7206 | (eval $ac_try) 2>&5 |
|
|
7207 | ac_status=$? |
|
|
7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7209 | (exit $ac_status); }; } && |
|
|
7210 | { ac_try='test -s conftest$ac_exeext' |
|
|
7211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7212 | (eval $ac_try) 2>&5 |
|
|
7213 | ac_status=$? |
|
|
7214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7215 | (exit $ac_status); }; }; then |
|
|
7216 | ac_cv_func_shl_load=yes |
|
|
7217 | else |
|
|
7218 | echo "$as_me: failed program was:" >&5 |
|
|
7219 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7220 | |
|
|
7221 | ac_cv_func_shl_load=no |
|
|
7222 | fi |
|
|
7223 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7224 | conftest$ac_exeext conftest.$ac_ext |
|
|
7225 | fi |
|
|
7226 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
7227 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
7228 | if test $ac_cv_func_shl_load = yes; then |
|
|
7229 | lt_cv_dlopen="shl_load" |
|
|
7230 | else |
|
|
7231 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
7232 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
7233 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
7234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7235 | else |
|
|
7236 | ac_check_lib_save_LIBS=$LIBS |
3967 | ac_check_lib_save_LIBS=$LIBS |
7237 | LIBS="-lsvld $LIBS" |
3968 | LIBS="-lrt $LIBS" |
7238 | cat >conftest.$ac_ext <<_ACEOF |
3969 | cat >conftest.$ac_ext <<_ACEOF |
7239 | /* confdefs.h. */ |
3970 | /* confdefs.h. */ |
7240 | _ACEOF |
3971 | _ACEOF |
7241 | cat confdefs.h >>conftest.$ac_ext |
3972 | cat confdefs.h >>conftest.$ac_ext |
7242 | cat >>conftest.$ac_ext <<_ACEOF |
3973 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
7246 | #ifdef __cplusplus |
3977 | #ifdef __cplusplus |
7247 | extern "C" |
3978 | extern "C" |
7248 | #endif |
3979 | #endif |
7249 | /* We use char because int might match the return type of a gcc2 |
3980 | /* We use char because int might match the return type of a gcc2 |
7250 | builtin and then its argument prototype would still apply. */ |
3981 | builtin and then its argument prototype would still apply. */ |
7251 | char dlopen (); |
3982 | char sched_yield (); |
7252 | int |
3983 | int |
7253 | main () |
3984 | main () |
7254 | { |
3985 | { |
7255 | dlopen (); |
3986 | sched_yield (); |
7256 | ; |
3987 | ; |
7257 | return 0; |
3988 | return 0; |
7258 | } |
3989 | } |
7259 | _ACEOF |
3990 | _ACEOF |
7260 | rm -f conftest.$ac_objext conftest$ac_exeext |
3991 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7277 | (eval $ac_try) 2>&5 |
4008 | (eval $ac_try) 2>&5 |
7278 | ac_status=$? |
4009 | ac_status=$? |
7279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7280 | (exit $ac_status); }; }; then |
4011 | (exit $ac_status); }; }; then |
7281 | ac_cv_lib_svld_dlopen=yes |
4012 | ac_cv_lib_rt_sched_yield=yes |
7282 | else |
4013 | else |
7283 | echo "$as_me: failed program was:" >&5 |
4014 | echo "$as_me: failed program was:" >&5 |
7284 | sed 's/^/| /' conftest.$ac_ext >&5 |
4015 | sed 's/^/| /' conftest.$ac_ext >&5 |
7285 | |
4016 | |
7286 | ac_cv_lib_svld_dlopen=no |
4017 | ac_cv_lib_rt_sched_yield=no |
7287 | fi |
4018 | fi |
7288 | rm -f conftest.err conftest.$ac_objext \ |
4019 | rm -f conftest.err conftest.$ac_objext \ |
7289 | conftest$ac_exeext conftest.$ac_ext |
4020 | conftest$ac_exeext conftest.$ac_ext |
7290 | LIBS=$ac_check_lib_save_LIBS |
4021 | LIBS=$ac_check_lib_save_LIBS |
7291 | fi |
4022 | fi |
7292 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
4023 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
7293 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
4024 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 |
7294 | if test $ac_cv_lib_svld_dlopen = yes; then |
4025 | if test $ac_cv_lib_rt_sched_yield = yes; then |
7295 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
4026 | LIBS="$LIBS -lrt" |
7296 | else |
4027 | fi |
|
|
4028 | |
|
|
4029 | fi |
|
|
4030 | |
|
|
4031 | |
7297 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
4032 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
7298 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
4033 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
7299 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
7300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7301 | else |
|
|
7302 | ac_check_lib_save_LIBS=$LIBS |
|
|
7303 | LIBS="-ldld $LIBS" |
|
|
7304 | cat >conftest.$ac_ext <<_ACEOF |
4034 | cat >conftest.$ac_ext <<_ACEOF |
7305 | /* confdefs.h. */ |
4035 | /* confdefs.h. */ |
7306 | _ACEOF |
4036 | _ACEOF |
7307 | cat confdefs.h >>conftest.$ac_ext |
4037 | cat confdefs.h >>conftest.$ac_ext |
7308 | cat >>conftest.$ac_ext <<_ACEOF |
4038 | cat >>conftest.$ac_ext <<_ACEOF |
7309 | /* end confdefs.h. */ |
4039 | /* end confdefs.h. */ |
7310 | |
4040 | #include <sched.h> |
7311 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7312 | #ifdef __cplusplus |
|
|
7313 | extern "C" |
|
|
7314 | #endif |
|
|
7315 | /* We use char because int might match the return type of a gcc2 |
|
|
7316 | builtin and then its argument prototype would still apply. */ |
|
|
7317 | char shl_load (); |
|
|
7318 | int |
4041 | int |
7319 | main () |
4042 | main () |
7320 | { |
4043 | { |
7321 | shl_load (); |
4044 | sched_yield () |
7322 | ; |
4045 | ; |
7323 | return 0; |
4046 | return 0; |
7324 | } |
4047 | } |
7325 | _ACEOF |
4048 | _ACEOF |
7326 | rm -f conftest.$ac_objext conftest$ac_exeext |
4049 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7343 | (eval $ac_try) 2>&5 |
4066 | (eval $ac_try) 2>&5 |
7344 | ac_status=$? |
4067 | ac_status=$? |
7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7346 | (exit $ac_status); }; }; then |
4069 | (exit $ac_status); }; }; then |
7347 | ac_cv_lib_dld_shl_load=yes |
4070 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4071 | echo "${ECHO_T}yes" >&6 |
|
|
4072 | |
|
|
4073 | cat >>confdefs.h <<\_ACEOF |
|
|
4074 | #define HAVE_SCHED_YIELD 1 |
|
|
4075 | _ACEOF |
|
|
4076 | |
7348 | else |
4077 | else |
7349 | echo "$as_me: failed program was:" >&5 |
4078 | echo "$as_me: failed program was:" >&5 |
7350 | sed 's/^/| /' conftest.$ac_ext >&5 |
4079 | sed 's/^/| /' conftest.$ac_ext >&5 |
7351 | |
4080 | |
7352 | ac_cv_lib_dld_shl_load=no |
4081 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4082 | echo "${ECHO_T}no" >&6 |
7353 | fi |
4083 | fi |
7354 | rm -f conftest.err conftest.$ac_objext \ |
4084 | rm -f conftest.err conftest.$ac_objext \ |
7355 | conftest$ac_exeext conftest.$ac_ext |
4085 | conftest$ac_exeext conftest.$ac_ext |
7356 | LIBS=$ac_check_lib_save_LIBS |
|
|
7357 | fi |
|
|
7358 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
7359 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
7360 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
7361 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
7362 | fi |
|
|
7363 | |
|
|
7364 | |
|
|
7365 | fi |
|
|
7366 | |
|
|
7367 | |
|
|
7368 | fi |
|
|
7369 | |
|
|
7370 | |
|
|
7371 | fi |
|
|
7372 | |
|
|
7373 | |
|
|
7374 | fi |
|
|
7375 | |
|
|
7376 | ;; |
|
|
7377 | esac |
|
|
7378 | |
|
|
7379 | if test "x$lt_cv_dlopen" != xno; then |
|
|
7380 | enable_dlopen=yes |
|
|
7381 | else |
|
|
7382 | enable_dlopen=no |
|
|
7383 | fi |
|
|
7384 | |
|
|
7385 | case "$lt_cv_dlopen" in |
|
|
7386 | dlopen) |
|
|
7387 | save_CPPFLAGS="$CPP_FLAGS" |
|
|
7388 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
7389 | |
|
|
7390 | save_LDFLAGS="$LDFLAGS" |
|
|
7391 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
7392 | |
|
|
7393 | save_LIBS="$LIBS" |
|
|
7394 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
7395 | |
|
|
7396 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
7397 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
7398 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
7399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7400 | else |
|
|
7401 | if test "$cross_compiling" = yes; then : |
|
|
7402 | lt_cv_dlopen_self=cross |
|
|
7403 | else |
|
|
7404 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7405 | lt_status=$lt_dlunknown |
|
|
7406 | cat > conftest.$ac_ext <<EOF |
|
|
7407 | #line 7407 "configure" |
|
|
7408 | #include "confdefs.h" |
|
|
7409 | |
|
|
7410 | #if HAVE_DLFCN_H |
|
|
7411 | #include <dlfcn.h> |
|
|
7412 | #endif |
|
|
7413 | |
|
|
7414 | #include <stdio.h> |
|
|
7415 | |
|
|
7416 | #ifdef RTLD_GLOBAL |
|
|
7417 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7418 | #else |
|
|
7419 | # ifdef DL_GLOBAL |
|
|
7420 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7421 | # else |
|
|
7422 | # define LT_DLGLOBAL 0 |
|
|
7423 | # endif |
|
|
7424 | #endif |
|
|
7425 | |
|
|
7426 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7427 | find out it does not work in some platform. */ |
|
|
7428 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7429 | # ifdef RTLD_LAZY |
|
|
7430 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7431 | # else |
|
|
7432 | # ifdef DL_LAZY |
|
|
7433 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7434 | # else |
|
|
7435 | # ifdef RTLD_NOW |
|
|
7436 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7437 | # else |
|
|
7438 | # ifdef DL_NOW |
|
|
7439 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7440 | # else |
|
|
7441 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7442 | # endif |
|
|
7443 | # endif |
|
|
7444 | # endif |
|
|
7445 | # endif |
|
|
7446 | #endif |
|
|
7447 | |
|
|
7448 | #ifdef __cplusplus |
|
|
7449 | extern "C" void exit (int); |
|
|
7450 | #endif |
|
|
7451 | |
|
|
7452 | fnord() { int i=42;} |
|
|
7453 | main () |
|
|
7454 | { |
|
|
7455 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7456 | int status = $lt_dlunknown; |
|
|
7457 | |
|
|
7458 | if (self) |
|
|
7459 | { |
|
|
7460 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7461 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7462 | /* dlclose (self); */ |
|
|
7463 | } |
|
|
7464 | |
|
|
7465 | exit (status); |
|
|
7466 | } |
|
|
7467 | EOF |
|
|
7468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7469 | (eval $ac_link) 2>&5 |
|
|
7470 | ac_status=$? |
|
|
7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7472 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7473 | (./conftest; exit; ) 2>/dev/null |
|
|
7474 | lt_status=$? |
|
|
7475 | case x$lt_status in |
|
|
7476 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7477 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7478 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
7479 | esac |
|
|
7480 | else : |
|
|
7481 | # compilation failed |
|
|
7482 | lt_cv_dlopen_self=no |
|
|
7483 | fi |
|
|
7484 | fi |
|
|
7485 | rm -fr conftest* |
|
|
7486 | |
|
|
7487 | |
|
|
7488 | fi |
|
|
7489 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
7490 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
7491 | |
|
|
7492 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
7493 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
7494 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
7495 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
7496 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
7497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7498 | else |
|
|
7499 | if test "$cross_compiling" = yes; then : |
|
|
7500 | lt_cv_dlopen_self_static=cross |
|
|
7501 | else |
|
|
7502 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7503 | lt_status=$lt_dlunknown |
|
|
7504 | cat > conftest.$ac_ext <<EOF |
|
|
7505 | #line 7505 "configure" |
|
|
7506 | #include "confdefs.h" |
|
|
7507 | |
|
|
7508 | #if HAVE_DLFCN_H |
|
|
7509 | #include <dlfcn.h> |
|
|
7510 | #endif |
|
|
7511 | |
|
|
7512 | #include <stdio.h> |
|
|
7513 | |
|
|
7514 | #ifdef RTLD_GLOBAL |
|
|
7515 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7516 | #else |
|
|
7517 | # ifdef DL_GLOBAL |
|
|
7518 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7519 | # else |
|
|
7520 | # define LT_DLGLOBAL 0 |
|
|
7521 | # endif |
|
|
7522 | #endif |
|
|
7523 | |
|
|
7524 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7525 | find out it does not work in some platform. */ |
|
|
7526 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7527 | # ifdef RTLD_LAZY |
|
|
7528 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7529 | # else |
|
|
7530 | # ifdef DL_LAZY |
|
|
7531 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7532 | # else |
|
|
7533 | # ifdef RTLD_NOW |
|
|
7534 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7535 | # else |
|
|
7536 | # ifdef DL_NOW |
|
|
7537 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7538 | # else |
|
|
7539 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7540 | # endif |
|
|
7541 | # endif |
|
|
7542 | # endif |
|
|
7543 | # endif |
|
|
7544 | #endif |
|
|
7545 | |
|
|
7546 | #ifdef __cplusplus |
|
|
7547 | extern "C" void exit (int); |
|
|
7548 | #endif |
|
|
7549 | |
|
|
7550 | fnord() { int i=42;} |
|
|
7551 | main () |
|
|
7552 | { |
|
|
7553 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7554 | int status = $lt_dlunknown; |
|
|
7555 | |
|
|
7556 | if (self) |
|
|
7557 | { |
|
|
7558 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7559 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7560 | /* dlclose (self); */ |
|
|
7561 | } |
|
|
7562 | |
|
|
7563 | exit (status); |
|
|
7564 | } |
|
|
7565 | EOF |
|
|
7566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7567 | (eval $ac_link) 2>&5 |
|
|
7568 | ac_status=$? |
|
|
7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7570 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7571 | (./conftest; exit; ) 2>/dev/null |
|
|
7572 | lt_status=$? |
|
|
7573 | case x$lt_status in |
|
|
7574 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7575 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7576 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
7577 | esac |
|
|
7578 | else : |
|
|
7579 | # compilation failed |
|
|
7580 | lt_cv_dlopen_self_static=no |
|
|
7581 | fi |
|
|
7582 | fi |
|
|
7583 | rm -fr conftest* |
|
|
7584 | |
|
|
7585 | |
|
|
7586 | fi |
|
|
7587 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
7588 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
7589 | fi |
|
|
7590 | |
|
|
7591 | CPPFLAGS="$save_CPPFLAGS" |
|
|
7592 | LDFLAGS="$save_LDFLAGS" |
|
|
7593 | LIBS="$save_LIBS" |
|
|
7594 | ;; |
|
|
7595 | esac |
|
|
7596 | |
|
|
7597 | case "$lt_cv_dlopen_self" in |
|
|
7598 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
7599 | *) enable_dlopen_self=unknown ;; |
|
|
7600 | esac |
|
|
7601 | |
|
|
7602 | case "$lt_cv_dlopen_self_static" in |
|
|
7603 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
7604 | *) enable_dlopen_self_static=unknown ;; |
|
|
7605 | esac |
|
|
7606 | fi |
|
|
7607 | |
|
|
7608 | |
|
|
7609 | ## FIXME: this should be a separate macro |
|
|
7610 | ## |
|
|
7611 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
7612 | case "$archive_cmds" in |
|
|
7613 | *'~'*) |
|
|
7614 | # FIXME: we may have to deal with multi-command sequences. |
|
|
7615 | ;; |
|
|
7616 | '$CC '*) |
|
|
7617 | # Test whether the compiler implicitly links with -lc since on some |
|
|
7618 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
7619 | # to ld, don't add -lc before -lgcc. |
|
|
7620 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
7621 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
7622 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
|
|
7623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7624 | else |
|
|
7625 | $rm conftest* |
|
|
7626 | echo 'static int dummy;' > conftest.$ac_ext |
|
|
7627 | |
|
|
7628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7629 | (eval $ac_compile) 2>&5 |
|
|
7630 | ac_status=$? |
|
|
7631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7632 | (exit $ac_status); }; then |
|
|
7633 | soname=conftest |
|
|
7634 | lib=conftest |
|
|
7635 | libobjs=conftest.$ac_objext |
|
|
7636 | deplibs= |
|
|
7637 | wl=$lt_cv_prog_cc_wl |
|
|
7638 | compiler_flags=-v |
|
|
7639 | linker_flags=-v |
|
|
7640 | verstring= |
|
|
7641 | output_objdir=. |
|
|
7642 | libname=conftest |
|
|
7643 | save_allow_undefined_flag=$allow_undefined_flag |
|
|
7644 | allow_undefined_flag= |
|
|
7645 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
7646 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
7647 | ac_status=$? |
|
|
7648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7649 | (exit $ac_status); } |
|
|
7650 | then |
|
|
7651 | lt_cv_archive_cmds_need_lc=no |
|
|
7652 | else |
|
|
7653 | lt_cv_archive_cmds_need_lc=yes |
|
|
7654 | fi |
|
|
7655 | allow_undefined_flag=$save_allow_undefined_flag |
|
|
7656 | else |
|
|
7657 | cat conftest.err 1>&5 |
|
|
7658 | fi |
|
|
7659 | fi |
|
|
7660 | |
|
|
7661 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
|
|
7662 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
|
|
7663 | ;; |
|
|
7664 | esac |
|
|
7665 | fi |
|
|
7666 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
|
7667 | ## |
|
|
7668 | ## END FIXME |
|
|
7669 | |
|
|
7670 | ## FIXME: this should be a separate macro |
|
|
7671 | ## |
|
|
7672 | # The second clause should only fire when bootstrapping the |
|
|
7673 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
7674 | # with your package, and you will get complaints that there are |
|
|
7675 | # no rules to generate ltmain.sh. |
|
|
7676 | if test -f "$ltmain"; then |
|
|
7677 | : |
|
|
7678 | else |
|
|
7679 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
7680 | # `config.status --recheck' to rerun these tests and create the |
|
|
7681 | # libtool script then. |
|
|
7682 | test -f Makefile && make "$ltmain" |
|
|
7683 | fi |
|
|
7684 | |
|
|
7685 | if test -f "$ltmain"; then |
|
|
7686 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
|
|
7687 | $rm -f "${ofile}T" |
|
|
7688 | |
|
|
7689 | echo creating $ofile |
|
|
7690 | |
|
|
7691 | # Now quote all the things that may contain metacharacters while being |
|
|
7692 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
7693 | # variables and quote the copies for generation of the libtool script. |
|
|
7694 | for var in echo old_CC old_CFLAGS \ |
|
|
7695 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
|
|
7696 | reload_flag reload_cmds wl \ |
|
|
7697 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
|
|
7698 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
|
|
7699 | library_names_spec soname_spec \ |
|
|
7700 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
|
|
7701 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
|
|
7702 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
|
|
7703 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
|
|
7704 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
|
|
7705 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
|
|
7706 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
|
|
7707 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
7708 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
|
|
7709 | |
|
|
7710 | case "$var" in |
|
|
7711 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
|
|
7712 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
7713 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
|
|
7714 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
|
|
7715 | postinstall_cmds | postuninstall_cmds | \ |
|
|
7716 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
7717 | # Double-quote double-evaled strings. |
|
|
7718 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
7719 | ;; |
|
|
7720 | *) |
|
|
7721 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
7722 | ;; |
|
|
7723 | esac |
|
|
7724 | done |
|
|
7725 | |
|
|
7726 | cat <<__EOF__ > "${ofile}T" |
|
|
7727 | #! $SHELL |
|
|
7728 | |
|
|
7729 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
7730 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
7731 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
7732 | # |
|
|
7733 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
|
|
7734 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
7735 | # |
|
|
7736 | # This program is free software; you can redistribute it and/or modify |
|
|
7737 | # it under the terms of the GNU General Public License as published by |
|
|
7738 | # the Free Software Foundation; either version 2 of the License, or |
|
|
7739 | # (at your option) any later version. |
|
|
7740 | # |
|
|
7741 | # This program is distributed in the hope that it will be useful, but |
|
|
7742 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
7743 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
7744 | # General Public License for more details. |
|
|
7745 | # |
|
|
7746 | # You should have received a copy of the GNU General Public License |
|
|
7747 | # along with this program; if not, write to the Free Software |
|
|
7748 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
7749 | # |
|
|
7750 | # As a special exception to the GNU General Public License, if you |
|
|
7751 | # distribute this file as part of a program that contains a |
|
|
7752 | # configuration script generated by Autoconf, you may include it under |
|
|
7753 | # the same distribution terms that you use for the rest of that program. |
|
|
7754 | |
|
|
7755 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
7756 | Xsed="sed -e s/^X//" |
|
|
7757 | |
|
|
7758 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
7759 | # if CDPATH is set. |
|
|
7760 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
7761 | |
|
|
7762 | # ### BEGIN LIBTOOL CONFIG |
|
|
7763 | |
|
|
7764 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
7765 | |
|
|
7766 | # Shell to use when invoking shell scripts. |
|
|
7767 | SHELL=$lt_SHELL |
|
|
7768 | |
|
|
7769 | # Whether or not to build shared libraries. |
|
|
7770 | build_libtool_libs=$enable_shared |
|
|
7771 | |
|
|
7772 | # Whether or not to add -lc for building shared libraries. |
|
|
7773 | build_libtool_need_lc=$need_lc |
|
|
7774 | |
|
|
7775 | # Whether or not to build static libraries. |
|
|
7776 | build_old_libs=$enable_static |
|
|
7777 | |
|
|
7778 | # Whether or not to optimize for fast installation. |
|
|
7779 | fast_install=$enable_fast_install |
|
|
7780 | |
|
|
7781 | # The host system. |
|
|
7782 | host_alias=$host_alias |
|
|
7783 | host=$host |
|
|
7784 | |
|
|
7785 | # An echo program that does not interpret backslashes. |
|
|
7786 | echo=$lt_echo |
|
|
7787 | |
|
|
7788 | # The archiver. |
|
|
7789 | AR=$lt_AR |
|
|
7790 | AR_FLAGS=$lt_AR_FLAGS |
|
|
7791 | |
|
|
7792 | # The default C compiler. |
|
|
7793 | CC=$lt_CC |
|
|
7794 | |
|
|
7795 | # Is the compiler the GNU C compiler? |
|
|
7796 | with_gcc=$GCC |
|
|
7797 | |
|
|
7798 | # The linker used to build libraries. |
|
|
7799 | LD=$lt_LD |
|
|
7800 | |
|
|
7801 | # Whether we need hard or soft links. |
|
|
7802 | LN_S=$lt_LN_S |
|
|
7803 | |
|
|
7804 | # A BSD-compatible nm program. |
|
|
7805 | NM=$lt_NM |
|
|
7806 | |
|
|
7807 | # A symbol stripping program |
|
|
7808 | STRIP=$STRIP |
|
|
7809 | |
|
|
7810 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
7811 | MAGIC_CMD=$MAGIC_CMD |
|
|
7812 | |
|
|
7813 | # Used on cygwin: DLL creation program. |
|
|
7814 | DLLTOOL="$DLLTOOL" |
|
|
7815 | |
|
|
7816 | # Used on cygwin: object dumper. |
|
|
7817 | OBJDUMP="$OBJDUMP" |
|
|
7818 | |
|
|
7819 | # Used on cygwin: assembler. |
|
|
7820 | AS="$AS" |
|
|
7821 | |
|
|
7822 | # The name of the directory that contains temporary libtool files. |
|
|
7823 | objdir=$objdir |
|
|
7824 | |
|
|
7825 | # How to create reloadable object files. |
|
|
7826 | reload_flag=$lt_reload_flag |
|
|
7827 | reload_cmds=$lt_reload_cmds |
|
|
7828 | |
|
|
7829 | # How to pass a linker flag through the compiler. |
|
|
7830 | wl=$lt_wl |
|
|
7831 | |
|
|
7832 | # Object file suffix (normally "o"). |
|
|
7833 | objext="$ac_objext" |
|
|
7834 | |
|
|
7835 | # Old archive suffix (normally "a"). |
|
|
7836 | libext="$libext" |
|
|
7837 | |
|
|
7838 | # Executable file suffix (normally ""). |
|
|
7839 | exeext="$exeext" |
|
|
7840 | |
|
|
7841 | # Additional compiler flags for building library objects. |
|
|
7842 | pic_flag=$lt_pic_flag |
|
|
7843 | pic_mode=$pic_mode |
|
|
7844 | |
|
|
7845 | # Does compiler simultaneously support -c and -o options? |
|
|
7846 | compiler_c_o=$lt_compiler_c_o |
|
|
7847 | |
|
|
7848 | # Can we write directly to a .lo ? |
|
|
7849 | compiler_o_lo=$lt_compiler_o_lo |
|
|
7850 | |
|
|
7851 | # Must we lock files when doing compilation ? |
|
|
7852 | need_locks=$lt_need_locks |
|
|
7853 | |
|
|
7854 | # Do we need the lib prefix for modules? |
|
|
7855 | need_lib_prefix=$need_lib_prefix |
|
|
7856 | |
|
|
7857 | # Do we need a version for libraries? |
|
|
7858 | need_version=$need_version |
|
|
7859 | |
|
|
7860 | # Whether dlopen is supported. |
|
|
7861 | dlopen_support=$enable_dlopen |
|
|
7862 | |
|
|
7863 | # Whether dlopen of programs is supported. |
|
|
7864 | dlopen_self=$enable_dlopen_self |
|
|
7865 | |
|
|
7866 | # Whether dlopen of statically linked programs is supported. |
|
|
7867 | dlopen_self_static=$enable_dlopen_self_static |
|
|
7868 | |
|
|
7869 | # Compiler flag to prevent dynamic linking. |
|
|
7870 | link_static_flag=$lt_link_static_flag |
|
|
7871 | |
|
|
7872 | # Compiler flag to turn off builtin functions. |
|
|
7873 | no_builtin_flag=$lt_no_builtin_flag |
|
|
7874 | |
|
|
7875 | # Compiler flag to allow reflexive dlopens. |
|
|
7876 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
7877 | |
|
|
7878 | # Compiler flag to generate shared objects directly from archives. |
|
|
7879 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
7880 | |
|
|
7881 | # Compiler flag to generate thread-safe objects. |
|
|
7882 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
|
7883 | |
|
|
7884 | # Library versioning type. |
|
|
7885 | version_type=$version_type |
|
|
7886 | |
|
|
7887 | # Format of library name prefix. |
|
|
7888 | libname_spec=$lt_libname_spec |
|
|
7889 | |
|
|
7890 | # List of archive names. First name is the real one, the rest are links. |
|
|
7891 | # The last name is the one that the linker finds with -lNAME. |
|
|
7892 | library_names_spec=$lt_library_names_spec |
|
|
7893 | |
|
|
7894 | # The coded name of the library, if different from the real name. |
|
|
7895 | soname_spec=$lt_soname_spec |
|
|
7896 | |
|
|
7897 | # Commands used to build and install an old-style archive. |
|
|
7898 | RANLIB=$lt_RANLIB |
|
|
7899 | old_archive_cmds=$lt_old_archive_cmds |
|
|
7900 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
7901 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
7902 | |
|
|
7903 | # Create an old-style archive from a shared archive. |
|
|
7904 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
7905 | |
|
|
7906 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
7907 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
7908 | |
|
|
7909 | # Commands used to build and install a shared archive. |
|
|
7910 | archive_cmds=$lt_archive_cmds |
|
|
7911 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
7912 | postinstall_cmds=$lt_postinstall_cmds |
|
|
7913 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
7914 | |
|
|
7915 | # Commands to strip libraries. |
|
|
7916 | old_striplib=$lt_old_striplib |
|
|
7917 | striplib=$lt_striplib |
|
|
7918 | |
|
|
7919 | # Method to check whether dependent libraries are shared objects. |
|
|
7920 | deplibs_check_method=$lt_deplibs_check_method |
|
|
7921 | |
|
|
7922 | # Command to use when deplibs_check_method == file_magic. |
|
|
7923 | file_magic_cmd=$lt_file_magic_cmd |
|
|
7924 | |
|
|
7925 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
7926 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
7927 | |
|
|
7928 | # Flag that forces no undefined symbols. |
|
|
7929 | no_undefined_flag=$lt_no_undefined_flag |
|
|
7930 | |
|
|
7931 | # Commands used to finish a libtool library installation in a directory. |
|
|
7932 | finish_cmds=$lt_finish_cmds |
|
|
7933 | |
|
|
7934 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
7935 | finish_eval=$lt_finish_eval |
|
|
7936 | |
|
|
7937 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
7938 | global_symbol_pipe=$lt_global_symbol_pipe |
|
|
7939 | |
|
|
7940 | # Transform the output of nm in a proper C declaration |
|
|
7941 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
|
|
7942 | |
|
|
7943 | # This is the shared library runtime path variable. |
|
|
7944 | runpath_var=$runpath_var |
|
|
7945 | |
|
|
7946 | # This is the shared library path variable. |
|
|
7947 | shlibpath_var=$shlibpath_var |
|
|
7948 | |
|
|
7949 | # Is shlibpath searched before the hard-coded library search path? |
|
|
7950 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
7951 | |
|
|
7952 | # How to hardcode a shared library path into an executable. |
|
|
7953 | hardcode_action=$hardcode_action |
|
|
7954 | |
|
|
7955 | # Whether we should hardcode library paths into libraries. |
|
|
7956 | hardcode_into_libs=$hardcode_into_libs |
|
|
7957 | |
|
|
7958 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
7959 | # This must work even if \$libdir does not exist. |
|
|
7960 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
7961 | |
|
|
7962 | # Whether we need a single -rpath flag with a separated argument. |
|
|
7963 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
7964 | |
|
|
7965 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
|
|
7966 | # resulting binary. |
|
|
7967 | hardcode_direct=$hardcode_direct |
|
|
7968 | |
|
|
7969 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
7970 | # resulting binary. |
|
|
7971 | hardcode_minus_L=$hardcode_minus_L |
|
|
7972 | |
|
|
7973 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
7974 | # the resulting binary. |
|
|
7975 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
7976 | |
|
|
7977 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
7978 | # restored at relink time. |
|
|
7979 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
7980 | |
|
|
7981 | # Whether libtool must link a program against all its dependency libraries. |
|
|
7982 | link_all_deplibs=$link_all_deplibs |
|
|
7983 | |
|
|
7984 | # Compile-time system search path for libraries |
|
|
7985 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
7986 | |
|
|
7987 | # Run-time system search path for libraries |
|
|
7988 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
7989 | |
|
|
7990 | # Fix the shell variable \$srcfile for the compiler. |
|
|
7991 | fix_srcfile_path="$fix_srcfile_path" |
|
|
7992 | |
|
|
7993 | # Set to yes if exported symbols are required. |
|
|
7994 | always_export_symbols=$always_export_symbols |
|
|
7995 | |
|
|
7996 | # The commands to list exported symbols. |
|
|
7997 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
7998 | |
|
|
7999 | # The commands to extract the exported symbol list from a shared archive. |
|
|
8000 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
8001 | |
|
|
8002 | # Symbols that should not be listed in the preloaded symbols. |
|
|
8003 | exclude_expsyms=$lt_exclude_expsyms |
|
|
8004 | |
|
|
8005 | # Symbols that must always be exported. |
|
|
8006 | include_expsyms=$lt_include_expsyms |
|
|
8007 | |
|
|
8008 | # ### END LIBTOOL CONFIG |
|
|
8009 | |
|
|
8010 | __EOF__ |
|
|
8011 | |
|
|
8012 | case "$host_os" in |
|
|
8013 | aix3*) |
|
|
8014 | cat <<\EOF >> "${ofile}T" |
|
|
8015 | |
|
|
8016 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
8017 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
8018 | # vanish in a puff of smoke. |
|
|
8019 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
8020 | COLLECT_NAMES= |
|
|
8021 | export COLLECT_NAMES |
|
|
8022 | fi |
|
|
8023 | EOF |
|
|
8024 | ;; |
|
|
8025 | esac |
|
|
8026 | |
|
|
8027 | case "$host_os" in |
|
|
8028 | cygwin* | mingw* | pw32* | os2*) |
|
|
8029 | cat <<'EOF' >> "${ofile}T" |
|
|
8030 | # This is a source program that is used to create dlls on Windows |
|
|
8031 | # Don't remove nor modify the starting and closing comments |
|
|
8032 | # /* ltdll.c starts here */ |
|
|
8033 | # #define WIN32_LEAN_AND_MEAN |
|
|
8034 | # #include <windows.h> |
|
|
8035 | # #undef WIN32_LEAN_AND_MEAN |
|
|
8036 | # #include <stdio.h> |
|
|
8037 | # |
|
|
8038 | # #ifndef __CYGWIN__ |
|
|
8039 | # # ifdef __CYGWIN32__ |
|
|
8040 | # # define __CYGWIN__ __CYGWIN32__ |
|
|
8041 | # # endif |
|
|
8042 | # #endif |
|
|
8043 | # |
|
|
8044 | # #ifdef __cplusplus |
|
|
8045 | # extern "C" { |
|
|
8046 | # #endif |
|
|
8047 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
|
|
8048 | # #ifdef __cplusplus |
|
|
8049 | # } |
|
|
8050 | # #endif |
|
|
8051 | # |
|
|
8052 | # #ifdef __CYGWIN__ |
|
|
8053 | # #include <cygwin/cygwin_dll.h> |
|
|
8054 | # DECLARE_CYGWIN_DLL( DllMain ); |
|
|
8055 | # #endif |
|
|
8056 | # HINSTANCE __hDllInstance_base; |
|
|
8057 | # |
|
|
8058 | # BOOL APIENTRY |
|
|
8059 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
|
|
8060 | # { |
|
|
8061 | # __hDllInstance_base = hInst; |
|
|
8062 | # return TRUE; |
|
|
8063 | # } |
|
|
8064 | # /* ltdll.c ends here */ |
|
|
8065 | # This is a source program that is used to create import libraries |
|
|
8066 | # on Windows for dlls which lack them. Don't remove nor modify the |
|
|
8067 | # starting and closing comments |
|
|
8068 | # /* impgen.c starts here */ |
|
|
8069 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
|
|
8070 | # |
|
|
8071 | # This file is part of GNU libtool. |
|
|
8072 | # |
|
|
8073 | # This program is free software; you can redistribute it and/or modify |
|
|
8074 | # it under the terms of the GNU General Public License as published by |
|
|
8075 | # the Free Software Foundation; either version 2 of the License, or |
|
|
8076 | # (at your option) any later version. |
|
|
8077 | # |
|
|
8078 | # This program is distributed in the hope that it will be useful, |
|
|
8079 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
8080 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
8081 | # GNU General Public License for more details. |
|
|
8082 | # |
|
|
8083 | # You should have received a copy of the GNU General Public License |
|
|
8084 | # along with this program; if not, write to the Free Software |
|
|
8085 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
8086 | # */ |
|
|
8087 | # |
|
|
8088 | # #include <stdio.h> /* for printf() */ |
|
|
8089 | # #include <unistd.h> /* for open(), lseek(), read() */ |
|
|
8090 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
|
|
8091 | # #include <string.h> /* for strdup() */ |
|
|
8092 | # |
|
|
8093 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
|
|
8094 | # #ifndef O_BINARY |
|
|
8095 | # #define O_BINARY 0 |
|
|
8096 | # #endif |
|
|
8097 | # |
|
|
8098 | # static unsigned int |
|
|
8099 | # pe_get16 (fd, offset) |
|
|
8100 | # int fd; |
|
|
8101 | # int offset; |
|
|
8102 | # { |
|
|
8103 | # unsigned char b[2]; |
|
|
8104 | # lseek (fd, offset, SEEK_SET); |
|
|
8105 | # read (fd, b, 2); |
|
|
8106 | # return b[0] + (b[1]<<8); |
|
|
8107 | # } |
|
|
8108 | # |
|
|
8109 | # static unsigned int |
|
|
8110 | # pe_get32 (fd, offset) |
|
|
8111 | # int fd; |
|
|
8112 | # int offset; |
|
|
8113 | # { |
|
|
8114 | # unsigned char b[4]; |
|
|
8115 | # lseek (fd, offset, SEEK_SET); |
|
|
8116 | # read (fd, b, 4); |
|
|
8117 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8118 | # } |
|
|
8119 | # |
|
|
8120 | # static unsigned int |
|
|
8121 | # pe_as32 (ptr) |
|
|
8122 | # void *ptr; |
|
|
8123 | # { |
|
|
8124 | # unsigned char *b = ptr; |
|
|
8125 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8126 | # } |
|
|
8127 | # |
|
|
8128 | # int |
|
|
8129 | # main (argc, argv) |
|
|
8130 | # int argc; |
|
|
8131 | # char *argv[]; |
|
|
8132 | # { |
|
|
8133 | # int dll; |
|
|
8134 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
|
|
8135 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
|
|
8136 | # unsigned long name_rvas, nexp; |
|
|
8137 | # unsigned char *expdata, *erva; |
|
|
8138 | # char *filename, *dll_name; |
|
|
8139 | # |
|
|
8140 | # filename = argv[1]; |
|
|
8141 | # |
|
|
8142 | # dll = open(filename, O_RDONLY|O_BINARY); |
|
|
8143 | # if (!dll) |
|
|
8144 | # return 1; |
|
|
8145 | # |
|
|
8146 | # dll_name = filename; |
|
|
8147 | # |
|
|
8148 | # for (i=0; filename[i]; i++) |
|
|
8149 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
|
|
8150 | # dll_name = filename + i +1; |
|
|
8151 | # |
|
|
8152 | # pe_header_offset = pe_get32 (dll, 0x3c); |
|
|
8153 | # opthdr_ofs = pe_header_offset + 4 + 20; |
|
|
8154 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
|
|
8155 | # |
|
|
8156 | # if (num_entries < 1) /* no exports */ |
|
|
8157 | # return 1; |
|
|
8158 | # |
|
|
8159 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
|
|
8160 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
|
|
8161 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
|
|
8162 | # secptr = (pe_header_offset + 4 + 20 + |
|
|
8163 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
|
|
8164 | # |
|
|
8165 | # expptr = 0; |
|
|
8166 | # for (i = 0; i < nsections; i++) |
|
|
8167 | # { |
|
|
8168 | # char sname[8]; |
|
|
8169 | # unsigned long secptr1 = secptr + 40 * i; |
|
|
8170 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
|
|
8171 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
|
|
8172 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
|
|
8173 | # lseek(dll, secptr1, SEEK_SET); |
|
|
8174 | # read(dll, sname, 8); |
|
|
8175 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
|
|
8176 | # { |
|
|
8177 | # expptr = fptr + (export_rva - vaddr); |
|
|
8178 | # if (export_rva + export_size > vaddr + vsize) |
|
|
8179 | # export_size = vsize - (export_rva - vaddr); |
|
|
8180 | # break; |
|
|
8181 | # } |
|
|
8182 | # } |
|
|
8183 | # |
|
|
8184 | # expdata = (unsigned char*)malloc(export_size); |
|
|
8185 | # lseek (dll, expptr, SEEK_SET); |
|
|
8186 | # read (dll, expdata, export_size); |
|
|
8187 | # erva = expdata - export_rva; |
|
|
8188 | # |
|
|
8189 | # nexp = pe_as32 (expdata+24); |
|
|
8190 | # name_rvas = pe_as32 (expdata+32); |
|
|
8191 | # |
|
|
8192 | # printf ("EXPORTS\n"); |
|
|
8193 | # for (i = 0; i<nexp; i++) |
|
|
8194 | # { |
|
|
8195 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
|
|
8196 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
|
|
8197 | # } |
|
|
8198 | # |
|
|
8199 | # return 0; |
|
|
8200 | # } |
|
|
8201 | # /* impgen.c ends here */ |
|
|
8202 | |
|
|
8203 | EOF |
|
|
8204 | ;; |
|
|
8205 | esac |
|
|
8206 | |
|
|
8207 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
8208 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
8209 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
8210 | # is reportedly fixed, but why not run on old versions too? |
|
|
8211 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
|
|
8212 | |
|
|
8213 | mv -f "${ofile}T" "$ofile" || \ |
|
|
8214 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
|
8215 | chmod +x "$ofile" |
|
|
8216 | fi |
|
|
8217 | ## |
|
|
8218 | ## END FIXME |
|
|
8219 | |
|
|
8220 | |
|
|
8221 | |
|
|
8222 | |
|
|
8223 | |
|
|
8224 | # This can be used to rebuild libtool when needed |
|
|
8225 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
|
8226 | |
|
|
8227 | # Always use our own libtool. |
|
|
8228 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
8229 | |
|
|
8230 | # Prevent multiple expansion |
|
|
8231 | |
4086 | |
8232 | |
4087 | |
8233 | MALLOC_TYPE=S |
4088 | MALLOC_TYPE=S |
8234 | support_addstrings=no |
4089 | |
8235 | support_frills=no |
4090 | support_frills=yes |
8236 | support_linespace=no |
|
|
8237 | support_inheritpixmap=no |
4091 | support_inheritpixmap=yes |
8238 | support_tinting=no |
4092 | support_tinting=yes |
|
|
4093 | support_fading=yes |
8239 | support_keepscrolling=no |
4094 | support_keepscrolling=yes |
8240 | support_selectionscrolling=no |
4095 | support_selectionscrolling=yes |
8241 | support_menubar=no |
|
|
8242 | support_mousewheel=no |
4096 | support_mousewheel=yes |
8243 | support_mouseslipwheel=no |
4097 | support_mouseslipwheel=yes |
8244 | support_utmp=no |
4098 | support_utmp=yes |
8245 | support_wtmp=no |
4099 | support_wtmp=yes |
8246 | support_lastlog=no |
4100 | support_lastlog=yes |
8247 | support_cursor_blink=no |
|
|
8248 | support_text_blink=no |
4101 | support_text_blink=yes |
8249 | support_pointer_blank=no |
4102 | support_pointer_blank=yes |
8250 | support_scroll_rxvt=no |
4103 | support_scroll_rxvt=yes |
8251 | support_scroll_next=no |
4104 | support_scroll_next=yes |
8252 | support_scroll_xterm=no |
4105 | support_scroll_xterm=yes |
8253 | support_scroll_plain=no |
4106 | support_scroll_plain=yes |
8254 | support_xim=no |
4107 | support_xim=yes |
8255 | support_xpm=no |
4108 | support_xpm=yes |
8256 | support_xft=no |
4109 | support_xft=yes |
8257 | support_unicode3=no |
4110 | support_unicode3=no |
8258 | support_combining=no |
4111 | support_combining=yes |
8259 | support_8bitctrls=no |
4112 | support_8bitctrls=no |
|
|
4113 | support_iso14755=yes |
|
|
4114 | support_styles=yes |
|
|
4115 | support_perl=yes |
8260 | codesets= |
4116 | codesets=all |
8261 | |
4117 | |
8262 | |
4118 | |
8263 | if test "x$enable_shared" = xyes; then |
4119 | if test "x$enable_shared" = xyes; then |
8264 | |
4120 | |
8265 | cat >>confdefs.h <<\_ACEOF |
4121 | cat >>confdefs.h <<\_ACEOF |
… | |
… | |
8271 | |
4127 | |
8272 | |
4128 | |
8273 | # Check whether --enable-everything or --disable-everything was given. |
4129 | # Check whether --enable-everything or --disable-everything was given. |
8274 | if test "${enable_everything+set}" = set; then |
4130 | if test "${enable_everything+set}" = set; then |
8275 | enableval="$enable_everything" |
4131 | enableval="$enable_everything" |
|
|
4132 | |
|
|
4133 | if test x$enableval = xno; then |
|
|
4134 | support_24bit=no |
|
|
4135 | support_frills=no |
|
|
4136 | support_inheritpixmap=no |
|
|
4137 | support_tinting=no |
|
|
4138 | support_fading=no |
|
|
4139 | support_keepscrolling=no |
|
|
4140 | support_selectionscrolling=no |
|
|
4141 | support_lastlog=no |
|
|
4142 | support_mousewheel=no |
|
|
4143 | support_mouseslipwheel=no |
|
|
4144 | support_text_blink=no |
|
|
4145 | support_pointer_blank=no |
|
|
4146 | support_scroll_rxvt=no |
|
|
4147 | support_scroll_next=no |
|
|
4148 | support_scroll_xterm=no |
|
|
4149 | support_scroll_plain=no |
|
|
4150 | support_utmp=no |
|
|
4151 | support_wtmp=no |
|
|
4152 | support_xim=no |
|
|
4153 | support_xpm=no |
|
|
4154 | support_xft=no |
|
|
4155 | support_unicode3=no |
|
|
4156 | support_combining=no |
|
|
4157 | support_8bitctrls=no |
|
|
4158 | support_iso14755=no |
|
|
4159 | support_styles=no |
|
|
4160 | support_perl=no |
|
|
4161 | codesets= |
|
|
4162 | fi |
8276 | if test x$enableval = xyes; then |
4163 | if test x$enableval = xyes; then |
8277 | support_24bit=yes |
4164 | support_24bit=yes |
8278 | support_frills=yes |
4165 | support_frills=yes |
8279 | support_linespace=yes |
|
|
8280 | support_inheritpixmap=yes |
4166 | support_inheritpixmap=yes |
8281 | support_tinting=yes |
4167 | support_tinting=yes |
|
|
4168 | support_fading=yes |
8282 | support_keepscrolling=yes |
4169 | support_keepscrolling=yes |
8283 | support_selectionscrolling=yes |
4170 | support_selectionscrolling=yes |
8284 | support_lastlog=yes |
4171 | support_lastlog=yes |
8285 | support_menubar=yes |
|
|
8286 | support_mousewheel=yes |
4172 | support_mousewheel=yes |
8287 | support_mouseslipwheel=yes |
4173 | support_mouseslipwheel=yes |
8288 | support_cursor_blink=yes |
|
|
8289 | support_text_blink=yes |
4174 | support_text_blink=yes |
8290 | support_pointer_blank=yes |
4175 | support_pointer_blank=yes |
8291 | support_scroll_rxvt=yes |
4176 | support_scroll_rxvt=yes |
8292 | support_scroll_next=yes |
4177 | support_scroll_next=yes |
8293 | support_scroll_xterm=yes |
4178 | support_scroll_xterm=yes |
8294 | support_scroll_plain=yes |
4179 | support_scroll_plain=yes |
8295 | support_utmp=yes |
4180 | support_utmp=yes |
8296 | support_wtmp=yes |
4181 | support_wtmp=yes |
8297 | support_xim=yes |
4182 | support_xim=yes |
8298 | support_xpm=yes |
4183 | support_xpm=yes |
8299 | support_xft=yes |
4184 | support_xft=yes |
8300 | support_unicode3=yes |
4185 | support_unicode3=yes |
8301 | support_combining=yes |
4186 | support_combining=yes |
8302 | #support_8bitctrls=yes |
4187 | #support_8bitctrls=yes |
|
|
4188 | support_iso14755=yes |
|
|
4189 | support_styles=yes |
|
|
4190 | support_perl=yes |
8303 | codesets=all |
4191 | codesets=all |
8304 | fi |
4192 | fi |
|
|
4193 | |
8305 | fi; |
4194 | fi; |
8306 | |
4195 | |
8307 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
4196 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
8308 | if test "${enable_unicode3+set}" = set; then |
4197 | if test "${enable_unicode3+set}" = set; then |
8309 | enableval="$enable_unicode3" |
4198 | enableval="$enable_unicode3" |
8310 | if test x$enableval = xyes -o x$enableval = xno; then |
4199 | if test x$enableval = xyes -o x$enableval = xno; then |
8311 | support_unicode3=yes |
4200 | support_unicode3=$enableval |
8312 | fi |
4201 | fi |
8313 | fi; |
4202 | fi; |
8314 | |
4203 | |
8315 | # Check whether --enable-combining or --disable-combining was given. |
4204 | # Check whether --enable-combining or --disable-combining was given. |
8316 | if test "${enable_combining+set}" = set; then |
4205 | if test "${enable_combining+set}" = set; then |
8317 | enableval="$enable_combining" |
4206 | enableval="$enable_combining" |
8318 | if test x$enableval = xyes -o x$enableval = xno; then |
4207 | if test x$enableval = xyes -o x$enableval = xno; then |
8319 | support_combining=yes |
4208 | support_combining=$enableval |
8320 | fi |
4209 | fi |
8321 | fi; |
4210 | fi; |
8322 | |
4211 | |
8323 | # Check whether --enable-xft or --disable-xft was given. |
4212 | # Check whether --enable-xft or --disable-xft was given. |
8324 | if test "${enable_xft+set}" = set; then |
4213 | if test "${enable_xft+set}" = set; then |
8325 | enableval="$enable_xft" |
4214 | enableval="$enable_xft" |
8326 | if test x$enableval = xyes -o x$enableval = xno; then |
4215 | if test x$enableval = xyes -o x$enableval = xno; then |
8327 | support_xft=yes |
4216 | support_xft=$enableval |
|
|
4217 | fi |
|
|
4218 | fi; |
|
|
4219 | |
|
|
4220 | # Check whether --enable-font-styles or --disable-font-styles was given. |
|
|
4221 | if test "${enable_font_styles+set}" = set; then |
|
|
4222 | enableval="$enable_font_styles" |
|
|
4223 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4224 | support_styles=$enableval |
8328 | fi |
4225 | fi |
8329 | fi; |
4226 | fi; |
8330 | |
4227 | |
8331 | # Check whether --enable-utmp or --disable-utmp was given. |
4228 | # Check whether --enable-utmp or --disable-utmp was given. |
8332 | if test "${enable_utmp+set}" = set; then |
4229 | if test "${enable_utmp+set}" = set; then |
… | |
… | |
8374 | if test x$enableval = xyes -o x$enableval = xno; then |
4271 | if test x$enableval = xyes -o x$enableval = xno; then |
8375 | support_tinting=$enableval |
4272 | support_tinting=$enableval |
8376 | fi |
4273 | fi |
8377 | fi; |
4274 | fi; |
8378 | |
4275 | |
8379 | # Check whether --enable-menubar or --disable-menubar was given. |
4276 | # Check whether --enable-fading or --disable-fading was given. |
8380 | if test "${enable_menubar+set}" = set; then |
4277 | if test "${enable_fading+set}" = set; then |
8381 | enableval="$enable_menubar" |
4278 | enableval="$enable_fading" |
8382 | if test x$enableval = xyes -o x$enableval = xno; then |
4279 | if test x$enableval = xyes -o x$enableval = xno; then |
8383 | support_menubar=$enableval |
4280 | support_fading=$enableval |
8384 | fi |
4281 | fi |
8385 | fi; |
4282 | fi; |
8386 | |
4283 | |
8387 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
4284 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
8388 | if test "${enable_rxvt_scroll+set}" = set; then |
4285 | if test "${enable_rxvt_scroll+set}" = set; then |
… | |
… | |
8406 | if test x$enableval = xyes -o x$enableval = xno; then |
4303 | if test x$enableval = xyes -o x$enableval = xno; then |
8407 | support_scroll_xterm=$enableval |
4304 | support_scroll_xterm=$enableval |
8408 | fi |
4305 | fi |
8409 | fi; |
4306 | fi; |
8410 | |
4307 | |
|
|
4308 | # Check whether --enable-perl or --disable-perl was given. |
|
|
4309 | if test "${enable_perl+set}" = set; then |
|
|
4310 | enableval="$enable_perl" |
|
|
4311 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4312 | support_perl=$enableval |
|
|
4313 | fi |
|
|
4314 | fi; |
|
|
4315 | |
8411 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
4316 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
8412 | if test "${enable_plain_scroll+set}" = set; then |
4317 | if test "${enable_plain_scroll+set}" = set; then |
8413 | enableval="$enable_plain_scroll" |
4318 | enableval="$enable_plain_scroll" |
8414 | if test x$enableval = xyes -o x$enableval = xno; then |
4319 | if test x$enableval = xyes -o x$enableval = xno; then |
8415 | support_scroll_plain=$enableval |
4320 | support_scroll_plain=$enableval |
8416 | fi |
4321 | fi |
8417 | fi; |
4322 | fi; |
8418 | |
4323 | |
8419 | # Check whether --enable-half-shadow or --disable-half-shadow was given. |
|
|
8420 | if test "${enable_half_shadow+set}" = set; then |
|
|
8421 | enableval="$enable_half_shadow" |
|
|
8422 | if test x$enableval = xyes; then |
|
|
8423 | |
|
|
8424 | cat >>confdefs.h <<\_ACEOF |
|
|
8425 | #define HALFSHADOW 1 |
|
|
8426 | _ACEOF |
|
|
8427 | |
|
|
8428 | fi |
|
|
8429 | fi; |
|
|
8430 | |
4324 | |
8431 | |
4325 | |
8432 | # Check whether --with-codesets or --without-codesets was given. |
4326 | # Check whether --with-codesets or --without-codesets was given. |
8433 | if test "${with_codesets+set}" = set; then |
4327 | if test "${with_codesets+set}" = set; then |
8434 | withval="$with_codesets" |
4328 | withval="$with_codesets" |
… | |
… | |
8489 | _ACEOF |
4383 | _ACEOF |
8490 | |
4384 | |
8491 | fi |
4385 | fi |
8492 | fi; |
4386 | fi; |
8493 | |
4387 | |
8494 | # Check whether --enable-xgetdefault or --disable-xgetdefault was given. |
|
|
8495 | if test "${enable_xgetdefault+set}" = set; then |
|
|
8496 | enableval="$enable_xgetdefault" |
|
|
8497 | if test x$enableval = xyes; then |
|
|
8498 | |
|
|
8499 | cat >>confdefs.h <<\_ACEOF |
|
|
8500 | #define USE_XGETDEFAULT 1 |
|
|
8501 | _ACEOF |
|
|
8502 | |
|
|
8503 | fi |
|
|
8504 | fi; |
|
|
8505 | |
|
|
8506 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
4388 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
8507 | if test "${enable_8bitctrls+set}" = set; then |
4389 | if test "${enable_8bitctrls+set}" = set; then |
8508 | enableval="$enable_8bitctrls" |
4390 | enableval="$enable_8bitctrls" |
8509 | if test x$enableval = xyes -o x$enableval = xno; then |
4391 | if test x$enableval = xyes -o x$enableval = xno; then |
8510 | support_8bitctrls=yes |
4392 | support_8bitctrls=$enableval |
8511 | fi |
4393 | fi |
8512 | fi; |
4394 | fi; |
8513 | |
4395 | |
8514 | RESFALLBACK=Rxvt |
4396 | RESFALLBACK=Rxvt |
8515 | # Check whether --enable-fallback or --disable-fallback was given. |
4397 | # Check whether --enable-fallback or --disable-fallback was given. |
… | |
… | |
8562 | if test "${with_name+set}" = set; then |
4444 | if test "${with_name+set}" = set; then |
8563 | withval="$with_name" |
4445 | withval="$with_name" |
8564 | RXVTNAME="$withval" |
4446 | RXVTNAME="$withval" |
8565 | fi; |
4447 | fi; |
8566 | |
4448 | |
|
|
4449 | cat >>confdefs.h <<_ACEOF |
|
|
4450 | #define RXVTNAME "$RXVTNAME" |
|
|
4451 | _ACEOF |
|
|
4452 | |
|
|
4453 | |
8567 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4454 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
8568 | |
4455 | |
8569 | |
|
|
8570 | # Check whether --enable-strings or --disable-strings was given. |
|
|
8571 | if test "${enable_strings+set}" = set; then |
|
|
8572 | enableval="$enable_strings" |
|
|
8573 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8574 | support_addstrings=$enableval |
|
|
8575 | fi |
|
|
8576 | fi; |
|
|
8577 | |
4456 | |
8578 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4457 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
8579 | if test "${enable_swapscreen+set}" = set; then |
4458 | if test "${enable_swapscreen+set}" = set; then |
8580 | enableval="$enable_swapscreen" |
4459 | enableval="$enable_swapscreen" |
8581 | if test x$enableval = xno; then |
4460 | if test x$enableval = xno; then |
8582 | |
4461 | |
8583 | cat >>confdefs.h <<\_ACEOF |
4462 | cat >>confdefs.h <<\_ACEOF |
8584 | #define NO_SECONDARY_SCREEN 1 |
4463 | #define NO_SECONDARY_SCREEN 1 |
8585 | _ACEOF |
4464 | _ACEOF |
8586 | |
4465 | |
|
|
4466 | fi |
|
|
4467 | fi; |
|
|
4468 | |
|
|
4469 | # Check whether --enable-iso14755 or --disable-iso14755 was given. |
|
|
4470 | if test "${enable_iso14755+set}" = set; then |
|
|
4471 | enableval="$enable_iso14755" |
|
|
4472 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4473 | support_iso14755=$enableval |
8587 | fi |
4474 | fi |
8588 | fi; |
4475 | fi; |
8589 | |
4476 | |
8590 | # Check whether --enable-frills or --disable-frills was given. |
4477 | # Check whether --enable-frills or --disable-frills was given. |
8591 | if test "${enable_frills+set}" = set; then |
4478 | if test "${enable_frills+set}" = set; then |
8592 | enableval="$enable_frills" |
4479 | enableval="$enable_frills" |
8593 | if test x$enableval = xyes -o x$enableval = xno; then |
4480 | if test x$enableval = xyes -o x$enableval = xno; then |
8594 | support_frills=$enableval |
4481 | support_frills=$enableval |
8595 | fi |
|
|
8596 | fi; |
|
|
8597 | |
|
|
8598 | # Check whether --enable-linespace or --disable-linespace was given. |
|
|
8599 | if test "${enable_linespace+set}" = set; then |
|
|
8600 | enableval="$enable_linespace" |
|
|
8601 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8602 | support_linespace=$enableval |
|
|
8603 | fi |
4482 | fi |
8604 | fi; |
4483 | fi; |
8605 | |
4484 | |
8606 | # Check whether --enable-24bit or --disable-24bit was given. |
4485 | # Check whether --enable-24bit or --disable-24bit was given. |
8607 | if test "${enable_24bit+set}" = set; then |
4486 | if test "${enable_24bit+set}" = set; then |
… | |
… | |
8675 | _ACEOF |
4554 | _ACEOF |
8676 | |
4555 | |
8677 | fi |
4556 | fi |
8678 | fi; |
4557 | fi; |
8679 | |
4558 | |
8680 | # Check whether --enable-256-color or --disable-256-color was given. |
|
|
8681 | if test "${enable_256_color+set}" = set; then |
|
|
8682 | enableval="$enable_256_color" |
|
|
8683 | if test x$enableval = xyes; then |
|
|
8684 | |
|
|
8685 | cat >>confdefs.h <<\_ACEOF |
|
|
8686 | #define TTY_256COLOR 1 |
|
|
8687 | _ACEOF |
|
|
8688 | |
|
|
8689 | fi |
|
|
8690 | fi; |
|
|
8691 | |
|
|
8692 | # Check whether --enable-cursor-blink or --disable-cursor-blink was given. |
|
|
8693 | if test "${enable_cursor_blink+set}" = set; then |
|
|
8694 | enableval="$enable_cursor_blink" |
|
|
8695 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8696 | support_cursor_blink=$enableval |
|
|
8697 | fi |
|
|
8698 | fi; |
|
|
8699 | |
|
|
8700 | # Check whether --enable-text-blink or --disable-text-blink was given. |
4559 | # Check whether --enable-text-blink or --disable-text-blink was given. |
8701 | if test "${enable_text_blink+set}" = set; then |
4560 | if test "${enable_text_blink+set}" = set; then |
8702 | enableval="$enable_text_blink" |
4561 | enableval="$enable_text_blink" |
8703 | if test x$enableval = xyes -o x$enableval = xno; then |
4562 | if test x$enableval = xyes -o x$enableval = xno; then |
8704 | support_text_blink=$enableval |
4563 | support_text_blink=$enableval |
… | |
… | |
8737 | _ACEOF |
4596 | _ACEOF |
8738 | terminfo="$withval" |
4597 | terminfo="$withval" |
8739 | fi |
4598 | fi |
8740 | fi; |
4599 | fi; |
8741 | |
4600 | |
8742 | |
|
|
8743 | |
|
|
8744 | cat >>confdefs.h <<\_ACEOF |
|
|
8745 | #define PROTOTYPES 1 |
|
|
8746 | _ACEOF |
|
|
8747 | |
|
|
8748 | |
|
|
8749 | if test -z "$CFLAGS"; then |
|
|
8750 | if test -z "$CCOPTS"; then |
|
|
8751 | CCOPTS='-O' |
|
|
8752 | fi |
|
|
8753 | CFLAGS="$CCOPTS" |
|
|
8754 | fi |
|
|
8755 | |
4601 | |
8756 | # Extract the first word of "mv", so it can be a program name with args. |
4602 | # Extract the first word of "mv", so it can be a program name with args. |
8757 | set dummy mv; ac_word=$2 |
4603 | set dummy mv; ac_word=$2 |
8758 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
… | |
… | |
9031 | else |
4877 | else |
9032 | echo "$as_me:$LINENO: result: no" >&5 |
4878 | echo "$as_me:$LINENO: result: no" >&5 |
9033 | echo "${ECHO_T}no" >&6 |
4879 | echo "${ECHO_T}no" >&6 |
9034 | fi |
4880 | fi |
9035 | |
4881 | |
9036 | # Extract the first word of "tbl", so it can be a program name with args. |
4882 | # Extract the first word of "tic", so it can be a program name with args. |
9037 | set dummy tbl; ac_word=$2 |
4883 | set dummy tic; ac_word=$2 |
9038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4884 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
9040 | if test "${ac_cv_path_TBL+set}" = set; then |
4886 | if test "${ac_cv_path_TIC+set}" = set; then |
9041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9042 | else |
4888 | else |
9043 | case $TBL in |
4889 | case $TIC in |
9044 | [\\/]* | ?:[\\/]*) |
4890 | [\\/]* | ?:[\\/]*) |
9045 | ac_cv_path_TBL="$TBL" # Let the user override the test with a path. |
4891 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
9046 | ;; |
4892 | ;; |
9047 | *) |
4893 | *) |
9048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9049 | for as_dir in $PATH |
4895 | for as_dir in $PATH |
9050 | do |
4896 | do |
9051 | IFS=$as_save_IFS |
4897 | IFS=$as_save_IFS |
9052 | test -z "$as_dir" && as_dir=. |
4898 | test -z "$as_dir" && as_dir=. |
9053 | for ac_exec_ext in '' $ac_executable_extensions; do |
4899 | for ac_exec_ext in '' $ac_executable_extensions; do |
9054 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9055 | ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" |
4901 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
9056 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9057 | break 2 |
4903 | break 2 |
9058 | fi |
4904 | fi |
9059 | done |
4905 | done |
9060 | done |
4906 | done |
9061 | |
4907 | |
9062 | ;; |
4908 | ;; |
9063 | esac |
4909 | esac |
9064 | fi |
4910 | fi |
9065 | TBL=$ac_cv_path_TBL |
4911 | TIC=$ac_cv_path_TIC |
9066 | |
4912 | |
9067 | if test -n "$TBL"; then |
4913 | if test -n "$TIC"; then |
9068 | echo "$as_me:$LINENO: result: $TBL" >&5 |
4914 | echo "$as_me:$LINENO: result: $TIC" >&5 |
9069 | echo "${ECHO_T}$TBL" >&6 |
4915 | echo "${ECHO_T}$TIC" >&6 |
9070 | else |
4916 | else |
9071 | echo "$as_me:$LINENO: result: no" >&5 |
4917 | echo "$as_me:$LINENO: result: no" >&5 |
9072 | echo "${ECHO_T}no" >&6 |
4918 | echo "${ECHO_T}no" >&6 |
9073 | fi |
4919 | fi |
9074 | |
4920 | |
9075 | |
4921 | |
|
|
4922 | |
|
|
4923 | |
|
|
4924 | ac_ext=cc |
|
|
4925 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4926 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4927 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4928 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4929 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4930 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
4931 | if test -z "$CXXCPP"; then |
|
|
4932 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4934 | else |
|
|
4935 | # Double quotes because CXXCPP needs to be expanded |
|
|
4936 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4937 | do |
|
|
4938 | ac_preproc_ok=false |
|
|
4939 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4940 | do |
|
|
4941 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4942 | # with a fresh cross-compiler works. |
|
|
4943 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4944 | # <limits.h> exists even on freestanding compilers. |
|
|
4945 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4946 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4947 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4948 | /* confdefs.h. */ |
|
|
4949 | _ACEOF |
|
|
4950 | cat confdefs.h >>conftest.$ac_ext |
|
|
4951 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4952 | /* end confdefs.h. */ |
|
|
4953 | #ifdef __STDC__ |
|
|
4954 | # include <limits.h> |
|
|
4955 | #else |
|
|
4956 | # include <assert.h> |
|
|
4957 | #endif |
|
|
4958 | Syntax error |
|
|
4959 | _ACEOF |
|
|
4960 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4961 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4962 | ac_status=$? |
|
|
4963 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4964 | rm -f conftest.er1 |
|
|
4965 | cat conftest.err >&5 |
|
|
4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4967 | (exit $ac_status); } >/dev/null; then |
|
|
4968 | if test -s conftest.err; then |
|
|
4969 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4970 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4971 | else |
|
|
4972 | ac_cpp_err= |
|
|
4973 | fi |
|
|
4974 | else |
|
|
4975 | ac_cpp_err=yes |
|
|
4976 | fi |
|
|
4977 | if test -z "$ac_cpp_err"; then |
|
|
4978 | : |
|
|
4979 | else |
|
|
4980 | echo "$as_me: failed program was:" >&5 |
|
|
4981 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4982 | |
|
|
4983 | # Broken: fails on valid input. |
|
|
4984 | continue |
|
|
4985 | fi |
|
|
4986 | rm -f conftest.err conftest.$ac_ext |
|
|
4987 | |
|
|
4988 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4989 | # can be detected and how. |
|
|
4990 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4991 | /* confdefs.h. */ |
|
|
4992 | _ACEOF |
|
|
4993 | cat confdefs.h >>conftest.$ac_ext |
|
|
4994 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4995 | /* end confdefs.h. */ |
|
|
4996 | #include <ac_nonexistent.h> |
|
|
4997 | _ACEOF |
|
|
4998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5000 | ac_status=$? |
|
|
5001 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5002 | rm -f conftest.er1 |
|
|
5003 | cat conftest.err >&5 |
|
|
5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5005 | (exit $ac_status); } >/dev/null; then |
|
|
5006 | if test -s conftest.err; then |
|
|
5007 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5008 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5009 | else |
|
|
5010 | ac_cpp_err= |
|
|
5011 | fi |
|
|
5012 | else |
|
|
5013 | ac_cpp_err=yes |
|
|
5014 | fi |
|
|
5015 | if test -z "$ac_cpp_err"; then |
|
|
5016 | # Broken: success on invalid input. |
|
|
5017 | continue |
|
|
5018 | else |
|
|
5019 | echo "$as_me: failed program was:" >&5 |
|
|
5020 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5021 | |
|
|
5022 | # Passes both tests. |
|
|
5023 | ac_preproc_ok=: |
|
|
5024 | break |
|
|
5025 | fi |
|
|
5026 | rm -f conftest.err conftest.$ac_ext |
|
|
5027 | |
|
|
5028 | done |
|
|
5029 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5030 | rm -f conftest.err conftest.$ac_ext |
|
|
5031 | if $ac_preproc_ok; then |
|
|
5032 | break |
|
|
5033 | fi |
|
|
5034 | |
|
|
5035 | done |
|
|
5036 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5037 | |
|
|
5038 | fi |
|
|
5039 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5040 | else |
|
|
5041 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5042 | fi |
|
|
5043 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5044 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
5045 | ac_preproc_ok=false |
|
|
5046 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5047 | do |
|
|
5048 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5049 | # with a fresh cross-compiler works. |
|
|
5050 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5051 | # <limits.h> exists even on freestanding compilers. |
|
|
5052 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5053 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5054 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5055 | /* confdefs.h. */ |
|
|
5056 | _ACEOF |
|
|
5057 | cat confdefs.h >>conftest.$ac_ext |
|
|
5058 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5059 | /* end confdefs.h. */ |
|
|
5060 | #ifdef __STDC__ |
|
|
5061 | # include <limits.h> |
|
|
5062 | #else |
|
|
5063 | # include <assert.h> |
|
|
5064 | #endif |
|
|
5065 | Syntax error |
|
|
5066 | _ACEOF |
|
|
5067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5069 | ac_status=$? |
|
|
5070 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5071 | rm -f conftest.er1 |
|
|
5072 | cat conftest.err >&5 |
|
|
5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5074 | (exit $ac_status); } >/dev/null; then |
|
|
5075 | if test -s conftest.err; then |
|
|
5076 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5077 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5078 | else |
|
|
5079 | ac_cpp_err= |
|
|
5080 | fi |
|
|
5081 | else |
|
|
5082 | ac_cpp_err=yes |
|
|
5083 | fi |
|
|
5084 | if test -z "$ac_cpp_err"; then |
|
|
5085 | : |
|
|
5086 | else |
|
|
5087 | echo "$as_me: failed program was:" >&5 |
|
|
5088 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5089 | |
|
|
5090 | # Broken: fails on valid input. |
|
|
5091 | continue |
|
|
5092 | fi |
|
|
5093 | rm -f conftest.err conftest.$ac_ext |
|
|
5094 | |
|
|
5095 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
5096 | # can be detected and how. |
|
|
5097 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5098 | /* confdefs.h. */ |
|
|
5099 | _ACEOF |
|
|
5100 | cat confdefs.h >>conftest.$ac_ext |
|
|
5101 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5102 | /* end confdefs.h. */ |
|
|
5103 | #include <ac_nonexistent.h> |
|
|
5104 | _ACEOF |
|
|
5105 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5106 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5107 | ac_status=$? |
|
|
5108 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5109 | rm -f conftest.er1 |
|
|
5110 | cat conftest.err >&5 |
|
|
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5112 | (exit $ac_status); } >/dev/null; then |
|
|
5113 | if test -s conftest.err; then |
|
|
5114 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5115 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5116 | else |
|
|
5117 | ac_cpp_err= |
|
|
5118 | fi |
|
|
5119 | else |
|
|
5120 | ac_cpp_err=yes |
|
|
5121 | fi |
|
|
5122 | if test -z "$ac_cpp_err"; then |
|
|
5123 | # Broken: success on invalid input. |
|
|
5124 | continue |
|
|
5125 | else |
|
|
5126 | echo "$as_me: failed program was:" >&5 |
|
|
5127 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5128 | |
|
|
5129 | # Passes both tests. |
|
|
5130 | ac_preproc_ok=: |
|
|
5131 | break |
|
|
5132 | fi |
|
|
5133 | rm -f conftest.err conftest.$ac_ext |
|
|
5134 | |
|
|
5135 | done |
|
|
5136 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5137 | rm -f conftest.err conftest.$ac_ext |
|
|
5138 | if $ac_preproc_ok; then |
|
|
5139 | : |
|
|
5140 | else |
|
|
5141 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5142 | See \`config.log' for more details." >&5 |
|
|
5143 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5144 | See \`config.log' for more details." >&2;} |
|
|
5145 | { (exit 1); exit 1; }; } |
|
|
5146 | fi |
|
|
5147 | |
|
|
5148 | ac_ext=cc |
|
|
5149 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5150 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5151 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5152 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9076 | |
5153 | |
9077 | |
5154 | |
9078 | |
5155 | |
9079 | if test "x$ac_path_x_has_been_run" != xyes; then |
5156 | if test "x$ac_path_x_has_been_run" != xyes; then |
9080 | echo "$as_me:$LINENO: checking for X" >&5 |
5157 | echo "$as_me:$LINENO: checking for X" >&5 |
… | |
… | |
9179 | /* confdefs.h. */ |
5256 | /* confdefs.h. */ |
9180 | _ACEOF |
5257 | _ACEOF |
9181 | cat confdefs.h >>conftest.$ac_ext |
5258 | cat confdefs.h >>conftest.$ac_ext |
9182 | cat >>conftest.$ac_ext <<_ACEOF |
5259 | cat >>conftest.$ac_ext <<_ACEOF |
9183 | /* end confdefs.h. */ |
5260 | /* end confdefs.h. */ |
9184 | #include <X11/Intrinsic.h> |
5261 | #include <X11/Xlib.h> |
9185 | _ACEOF |
5262 | _ACEOF |
9186 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9187 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5264 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9188 | ac_status=$? |
5265 | ac_status=$? |
9189 | grep -v '^ *+' conftest.er1 >conftest.err |
5266 | grep -v '^ *+' conftest.er1 >conftest.err |
… | |
… | |
9206 | else |
5283 | else |
9207 | echo "$as_me: failed program was:" >&5 |
5284 | echo "$as_me: failed program was:" >&5 |
9208 | sed 's/^/| /' conftest.$ac_ext >&5 |
5285 | sed 's/^/| /' conftest.$ac_ext >&5 |
9209 | |
5286 | |
9210 | for ac_dir in $ac_x_header_dirs; do |
5287 | for ac_dir in $ac_x_header_dirs; do |
9211 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
5288 | if test -r "$ac_dir/X11/Xlib.h"; then |
9212 | ac_x_includes=$ac_dir |
5289 | ac_x_includes=$ac_dir |
9213 | break |
5290 | break |
9214 | fi |
5291 | fi |
9215 | done |
5292 | done |
9216 | fi |
5293 | fi |
… | |
… | |
9220 | if test "$ac_x_libraries" = no; then |
5297 | if test "$ac_x_libraries" = no; then |
9221 | # Check for the libraries. |
5298 | # Check for the libraries. |
9222 | # See if we find them without any special options. |
5299 | # See if we find them without any special options. |
9223 | # Don't add to $LIBS permanently. |
5300 | # Don't add to $LIBS permanently. |
9224 | ac_save_LIBS=$LIBS |
5301 | ac_save_LIBS=$LIBS |
9225 | LIBS="-lXt $LIBS" |
5302 | LIBS="-lX11 $LIBS" |
9226 | cat >conftest.$ac_ext <<_ACEOF |
5303 | cat >conftest.$ac_ext <<_ACEOF |
9227 | /* confdefs.h. */ |
5304 | /* confdefs.h. */ |
9228 | _ACEOF |
5305 | _ACEOF |
9229 | cat confdefs.h >>conftest.$ac_ext |
5306 | cat confdefs.h >>conftest.$ac_ext |
9230 | cat >>conftest.$ac_ext <<_ACEOF |
5307 | cat >>conftest.$ac_ext <<_ACEOF |
9231 | /* end confdefs.h. */ |
5308 | /* end confdefs.h. */ |
9232 | #include <X11/Intrinsic.h> |
5309 | #include <X11/Xlib.h> |
9233 | int |
5310 | int |
9234 | main () |
5311 | main () |
9235 | { |
5312 | { |
9236 | XtMalloc (0) |
5313 | XrmInitialize () |
9237 | ; |
5314 | ; |
9238 | return 0; |
5315 | return 0; |
9239 | } |
5316 | } |
9240 | _ACEOF |
5317 | _ACEOF |
9241 | rm -f conftest.$ac_objext conftest$ac_exeext |
5318 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
9269 | LIBS=$ac_save_LIBS |
5346 | LIBS=$ac_save_LIBS |
9270 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
5347 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9271 | do |
5348 | do |
9272 | # Don't even attempt the hair of trying to link an X program! |
5349 | # Don't even attempt the hair of trying to link an X program! |
9273 | for ac_extension in a so sl; do |
5350 | for ac_extension in a so sl; do |
9274 | if test -r $ac_dir/libXt.$ac_extension; then |
5351 | if test -r $ac_dir/libX11.$ac_extension; then |
9275 | ac_x_libraries=$ac_dir |
5352 | ac_x_libraries=$ac_dir |
9276 | break 2 |
5353 | break 2 |
9277 | fi |
5354 | fi |
9278 | done |
5355 | done |
9279 | done |
5356 | done |
… | |
… | |
10881 | #define HAVE_SYS_WAIT_H 1 |
6958 | #define HAVE_SYS_WAIT_H 1 |
10882 | _ACEOF |
6959 | _ACEOF |
10883 | |
6960 | |
10884 | fi |
6961 | fi |
10885 | |
6962 | |
|
|
6963 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6964 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
6965 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6967 | else |
|
|
6968 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6969 | /* confdefs.h. */ |
|
|
6970 | _ACEOF |
|
|
6971 | cat confdefs.h >>conftest.$ac_ext |
|
|
6972 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6973 | /* end confdefs.h. */ |
|
|
6974 | #include <stdlib.h> |
|
|
6975 | #include <stdarg.h> |
|
|
6976 | #include <string.h> |
|
|
6977 | #include <float.h> |
|
|
6978 | |
|
|
6979 | int |
|
|
6980 | main () |
|
|
6981 | { |
|
|
6982 | |
|
|
6983 | ; |
|
|
6984 | return 0; |
|
|
6985 | } |
|
|
6986 | _ACEOF |
|
|
6987 | rm -f conftest.$ac_objext |
|
|
6988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
6989 | (eval $ac_compile) 2>conftest.er1 |
|
|
6990 | ac_status=$? |
|
|
6991 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6992 | rm -f conftest.er1 |
|
|
6993 | cat conftest.err >&5 |
|
|
6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6995 | (exit $ac_status); } && |
|
|
6996 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6998 | (eval $ac_try) 2>&5 |
|
|
6999 | ac_status=$? |
|
|
7000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7001 | (exit $ac_status); }; } && |
|
|
7002 | { ac_try='test -s conftest.$ac_objext' |
|
|
7003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7004 | (eval $ac_try) 2>&5 |
|
|
7005 | ac_status=$? |
|
|
7006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7007 | (exit $ac_status); }; }; then |
|
|
7008 | ac_cv_header_stdc=yes |
|
|
7009 | else |
|
|
7010 | echo "$as_me: failed program was:" >&5 |
|
|
7011 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7012 | |
|
|
7013 | ac_cv_header_stdc=no |
|
|
7014 | fi |
|
|
7015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7016 | |
|
|
7017 | if test $ac_cv_header_stdc = yes; then |
|
|
7018 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7019 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7020 | /* confdefs.h. */ |
|
|
7021 | _ACEOF |
|
|
7022 | cat confdefs.h >>conftest.$ac_ext |
|
|
7023 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7024 | /* end confdefs.h. */ |
|
|
7025 | #include <string.h> |
|
|
7026 | |
|
|
7027 | _ACEOF |
|
|
7028 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7029 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7030 | : |
|
|
7031 | else |
|
|
7032 | ac_cv_header_stdc=no |
|
|
7033 | fi |
|
|
7034 | rm -f conftest* |
|
|
7035 | |
|
|
7036 | fi |
|
|
7037 | |
|
|
7038 | if test $ac_cv_header_stdc = yes; then |
|
|
7039 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7040 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7041 | /* confdefs.h. */ |
|
|
7042 | _ACEOF |
|
|
7043 | cat confdefs.h >>conftest.$ac_ext |
|
|
7044 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7045 | /* end confdefs.h. */ |
|
|
7046 | #include <stdlib.h> |
|
|
7047 | |
|
|
7048 | _ACEOF |
|
|
7049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7050 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7051 | : |
|
|
7052 | else |
|
|
7053 | ac_cv_header_stdc=no |
|
|
7054 | fi |
|
|
7055 | rm -f conftest* |
|
|
7056 | |
|
|
7057 | fi |
|
|
7058 | |
|
|
7059 | if test $ac_cv_header_stdc = yes; then |
|
|
7060 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7061 | if test "$cross_compiling" = yes; then |
|
|
7062 | : |
|
|
7063 | else |
|
|
7064 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7065 | /* confdefs.h. */ |
|
|
7066 | _ACEOF |
|
|
7067 | cat confdefs.h >>conftest.$ac_ext |
|
|
7068 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7069 | /* end confdefs.h. */ |
|
|
7070 | #include <ctype.h> |
|
|
7071 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7072 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7073 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7074 | #else |
|
|
7075 | # define ISLOWER(c) \ |
|
|
7076 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7077 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7078 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7079 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7080 | #endif |
|
|
7081 | |
|
|
7082 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7083 | int |
|
|
7084 | main () |
|
|
7085 | { |
|
|
7086 | int i; |
|
|
7087 | for (i = 0; i < 256; i++) |
|
|
7088 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7089 | || toupper (i) != TOUPPER (i)) |
|
|
7090 | exit(2); |
|
|
7091 | exit (0); |
|
|
7092 | } |
|
|
7093 | _ACEOF |
|
|
7094 | rm -f conftest$ac_exeext |
|
|
7095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7096 | (eval $ac_link) 2>&5 |
|
|
7097 | ac_status=$? |
|
|
7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7099 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7101 | (eval $ac_try) 2>&5 |
|
|
7102 | ac_status=$? |
|
|
7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7104 | (exit $ac_status); }; }; then |
|
|
7105 | : |
|
|
7106 | else |
|
|
7107 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7108 | echo "$as_me: failed program was:" >&5 |
|
|
7109 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7110 | |
|
|
7111 | ( exit $ac_status ) |
|
|
7112 | ac_cv_header_stdc=no |
|
|
7113 | fi |
|
|
7114 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7115 | fi |
|
|
7116 | fi |
|
|
7117 | fi |
|
|
7118 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7119 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
7120 | if test $ac_cv_header_stdc = yes; then |
|
|
7121 | |
|
|
7122 | cat >>confdefs.h <<\_ACEOF |
|
|
7123 | #define STDC_HEADERS 1 |
|
|
7124 | _ACEOF |
|
|
7125 | |
|
|
7126 | fi |
|
|
7127 | |
|
|
7128 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7129 | |
|
|
7130 | |
|
|
7131 | |
|
|
7132 | |
|
|
7133 | |
|
|
7134 | |
|
|
7135 | |
|
|
7136 | |
|
|
7137 | |
|
|
7138 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7139 | inttypes.h stdint.h unistd.h |
|
|
7140 | do |
|
|
7141 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7142 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
7144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
7145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7146 | else |
|
|
7147 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7148 | /* confdefs.h. */ |
|
|
7149 | _ACEOF |
|
|
7150 | cat confdefs.h >>conftest.$ac_ext |
|
|
7151 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7152 | /* end confdefs.h. */ |
|
|
7153 | $ac_includes_default |
|
|
7154 | |
|
|
7155 | #include <$ac_header> |
|
|
7156 | _ACEOF |
|
|
7157 | rm -f conftest.$ac_objext |
|
|
7158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7159 | (eval $ac_compile) 2>conftest.er1 |
|
|
7160 | ac_status=$? |
|
|
7161 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7162 | rm -f conftest.er1 |
|
|
7163 | cat conftest.err >&5 |
|
|
7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7165 | (exit $ac_status); } && |
|
|
7166 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7168 | (eval $ac_try) 2>&5 |
|
|
7169 | ac_status=$? |
|
|
7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7171 | (exit $ac_status); }; } && |
|
|
7172 | { ac_try='test -s conftest.$ac_objext' |
|
|
7173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7174 | (eval $ac_try) 2>&5 |
|
|
7175 | ac_status=$? |
|
|
7176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7177 | (exit $ac_status); }; }; then |
|
|
7178 | eval "$as_ac_Header=yes" |
|
|
7179 | else |
|
|
7180 | echo "$as_me: failed program was:" >&5 |
|
|
7181 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7182 | |
|
|
7183 | eval "$as_ac_Header=no" |
|
|
7184 | fi |
|
|
7185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7186 | fi |
|
|
7187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
7188 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
7189 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7190 | cat >>confdefs.h <<_ACEOF |
|
|
7191 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7192 | _ACEOF |
|
|
7193 | |
|
|
7194 | fi |
|
|
7195 | |
|
|
7196 | done |
10886 | |
7197 | |
10887 | |
7198 | |
10888 | |
7199 | |
10889 | |
7200 | |
10890 | |
7201 | |
… | |
… | |
10903 | |
7214 | |
10904 | |
7215 | |
10905 | for ac_header in \ |
7216 | for ac_header in \ |
10906 | assert.h \ |
7217 | assert.h \ |
10907 | fcntl.h \ |
7218 | fcntl.h \ |
10908 | grp.h \ |
|
|
10909 | libc.h \ |
|
|
10910 | lastlog.h \ |
|
|
10911 | stdarg.h \ |
7219 | stdarg.h \ |
10912 | stdlib.h \ |
7220 | stdlib.h \ |
10913 | string.h \ |
7221 | string.h \ |
10914 | termios.h \ |
7222 | termios.h \ |
10915 | unistd.h \ |
7223 | unistd.h \ |
… | |
… | |
10917 | sys/ioctl.h \ |
7225 | sys/ioctl.h \ |
10918 | sys/select.h \ |
7226 | sys/select.h \ |
10919 | sys/sockio.h \ |
7227 | sys/sockio.h \ |
10920 | sys/strredir.h \ |
7228 | sys/strredir.h \ |
10921 | sys/time.h \ |
7229 | sys/time.h \ |
10922 | utmp.h \ |
7230 | stdint.h \ |
10923 | utmpx.h \ |
7231 | wchar.h \ |
10924 | stdint.h \ |
7232 | cwchar \ |
|
|
7233 | clocale \ |
10925 | |
7234 | |
10926 | do |
7235 | do |
10927 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7236 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
11713 | _ACEOF |
8022 | _ACEOF |
11714 | |
8023 | |
11715 | fi |
8024 | fi |
11716 | |
8025 | |
11717 | |
8026 | |
11718 | |
|
|
11719 | echo "$as_me:$LINENO: checking for char" >&5 |
|
|
11720 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
|
|
11721 | if test "${ac_cv_type_char+set}" = set; then |
|
|
11722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11723 | else |
|
|
11724 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11725 | /* confdefs.h. */ |
|
|
11726 | _ACEOF |
|
|
11727 | cat confdefs.h >>conftest.$ac_ext |
|
|
11728 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11729 | /* end confdefs.h. */ |
|
|
11730 | $ac_includes_default |
|
|
11731 | int |
|
|
11732 | main () |
|
|
11733 | { |
|
|
11734 | if ((char *) 0) |
|
|
11735 | return 0; |
|
|
11736 | if (sizeof (char)) |
|
|
11737 | return 0; |
|
|
11738 | ; |
|
|
11739 | return 0; |
|
|
11740 | } |
|
|
11741 | _ACEOF |
|
|
11742 | rm -f conftest.$ac_objext |
|
|
11743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11744 | (eval $ac_compile) 2>conftest.er1 |
|
|
11745 | ac_status=$? |
|
|
11746 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11747 | rm -f conftest.er1 |
|
|
11748 | cat conftest.err >&5 |
|
|
11749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11750 | (exit $ac_status); } && |
|
|
11751 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11753 | (eval $ac_try) 2>&5 |
|
|
11754 | ac_status=$? |
|
|
11755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11756 | (exit $ac_status); }; } && |
|
|
11757 | { ac_try='test -s conftest.$ac_objext' |
|
|
11758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11759 | (eval $ac_try) 2>&5 |
|
|
11760 | ac_status=$? |
|
|
11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11762 | (exit $ac_status); }; }; then |
|
|
11763 | ac_cv_type_char=yes |
|
|
11764 | else |
|
|
11765 | echo "$as_me: failed program was:" >&5 |
|
|
11766 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11767 | |
|
|
11768 | ac_cv_type_char=no |
|
|
11769 | fi |
|
|
11770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11771 | fi |
|
|
11772 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
|
|
11773 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
|
|
11774 | |
|
|
11775 | echo "$as_me:$LINENO: checking size of char" >&5 |
|
|
11776 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
|
|
11777 | if test "${ac_cv_sizeof_char+set}" = set; then |
|
|
11778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11779 | else |
|
|
11780 | if test "$ac_cv_type_char" = yes; then |
|
|
11781 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
11782 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
11783 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
11784 | # This bug is HP SR number 8606223364. |
|
|
11785 | if test "$cross_compiling" = yes; then |
|
|
11786 | # Depending upon the size, compute the lo and hi bounds. |
|
|
11787 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11788 | /* confdefs.h. */ |
|
|
11789 | _ACEOF |
|
|
11790 | cat confdefs.h >>conftest.$ac_ext |
|
|
11791 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11792 | /* end confdefs.h. */ |
|
|
11793 | $ac_includes_default |
|
|
11794 | int |
|
|
11795 | main () |
|
|
11796 | { |
|
|
11797 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
|
|
11798 | test_array [0] = 0 |
|
|
11799 | |
|
|
11800 | ; |
|
|
11801 | return 0; |
|
|
11802 | } |
|
|
11803 | _ACEOF |
|
|
11804 | rm -f conftest.$ac_objext |
|
|
11805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11806 | (eval $ac_compile) 2>conftest.er1 |
|
|
11807 | ac_status=$? |
|
|
11808 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11809 | rm -f conftest.er1 |
|
|
11810 | cat conftest.err >&5 |
|
|
11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11812 | (exit $ac_status); } && |
|
|
11813 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11815 | (eval $ac_try) 2>&5 |
|
|
11816 | ac_status=$? |
|
|
11817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11818 | (exit $ac_status); }; } && |
|
|
11819 | { ac_try='test -s conftest.$ac_objext' |
|
|
11820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11821 | (eval $ac_try) 2>&5 |
|
|
11822 | ac_status=$? |
|
|
11823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11824 | (exit $ac_status); }; }; then |
|
|
11825 | ac_lo=0 ac_mid=0 |
|
|
11826 | while :; do |
|
|
11827 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11828 | /* confdefs.h. */ |
|
|
11829 | _ACEOF |
|
|
11830 | cat confdefs.h >>conftest.$ac_ext |
|
|
11831 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11832 | /* end confdefs.h. */ |
|
|
11833 | $ac_includes_default |
|
|
11834 | int |
|
|
11835 | main () |
|
|
11836 | { |
|
|
11837 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
11838 | test_array [0] = 0 |
|
|
11839 | |
|
|
11840 | ; |
|
|
11841 | return 0; |
|
|
11842 | } |
|
|
11843 | _ACEOF |
|
|
11844 | rm -f conftest.$ac_objext |
|
|
11845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11846 | (eval $ac_compile) 2>conftest.er1 |
|
|
11847 | ac_status=$? |
|
|
11848 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11849 | rm -f conftest.er1 |
|
|
11850 | cat conftest.err >&5 |
|
|
11851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11852 | (exit $ac_status); } && |
|
|
11853 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11855 | (eval $ac_try) 2>&5 |
|
|
11856 | ac_status=$? |
|
|
11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11858 | (exit $ac_status); }; } && |
|
|
11859 | { ac_try='test -s conftest.$ac_objext' |
|
|
11860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11861 | (eval $ac_try) 2>&5 |
|
|
11862 | ac_status=$? |
|
|
11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11864 | (exit $ac_status); }; }; then |
|
|
11865 | ac_hi=$ac_mid; break |
|
|
11866 | else |
|
|
11867 | echo "$as_me: failed program was:" >&5 |
|
|
11868 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11869 | |
|
|
11870 | ac_lo=`expr $ac_mid + 1` |
|
|
11871 | if test $ac_lo -le $ac_mid; then |
|
|
11872 | ac_lo= ac_hi= |
|
|
11873 | break |
|
|
11874 | fi |
|
|
11875 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
11876 | fi |
|
|
11877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11878 | done |
|
|
11879 | else |
|
|
11880 | echo "$as_me: failed program was:" >&5 |
|
|
11881 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11882 | |
|
|
11883 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11884 | /* confdefs.h. */ |
|
|
11885 | _ACEOF |
|
|
11886 | cat confdefs.h >>conftest.$ac_ext |
|
|
11887 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11888 | /* end confdefs.h. */ |
|
|
11889 | $ac_includes_default |
|
|
11890 | int |
|
|
11891 | main () |
|
|
11892 | { |
|
|
11893 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
|
|
11894 | test_array [0] = 0 |
|
|
11895 | |
|
|
11896 | ; |
|
|
11897 | return 0; |
|
|
11898 | } |
|
|
11899 | _ACEOF |
|
|
11900 | rm -f conftest.$ac_objext |
|
|
11901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11902 | (eval $ac_compile) 2>conftest.er1 |
|
|
11903 | ac_status=$? |
|
|
11904 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11905 | rm -f conftest.er1 |
|
|
11906 | cat conftest.err >&5 |
|
|
11907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11908 | (exit $ac_status); } && |
|
|
11909 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11911 | (eval $ac_try) 2>&5 |
|
|
11912 | ac_status=$? |
|
|
11913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11914 | (exit $ac_status); }; } && |
|
|
11915 | { ac_try='test -s conftest.$ac_objext' |
|
|
11916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11917 | (eval $ac_try) 2>&5 |
|
|
11918 | ac_status=$? |
|
|
11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11920 | (exit $ac_status); }; }; then |
|
|
11921 | ac_hi=-1 ac_mid=-1 |
|
|
11922 | while :; do |
|
|
11923 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11924 | /* confdefs.h. */ |
|
|
11925 | _ACEOF |
|
|
11926 | cat confdefs.h >>conftest.$ac_ext |
|
|
11927 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11928 | /* end confdefs.h. */ |
|
|
11929 | $ac_includes_default |
|
|
11930 | int |
|
|
11931 | main () |
|
|
11932 | { |
|
|
11933 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
|
|
11934 | test_array [0] = 0 |
|
|
11935 | |
|
|
11936 | ; |
|
|
11937 | return 0; |
|
|
11938 | } |
|
|
11939 | _ACEOF |
|
|
11940 | rm -f conftest.$ac_objext |
|
|
11941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11942 | (eval $ac_compile) 2>conftest.er1 |
|
|
11943 | ac_status=$? |
|
|
11944 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11945 | rm -f conftest.er1 |
|
|
11946 | cat conftest.err >&5 |
|
|
11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11948 | (exit $ac_status); } && |
|
|
11949 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11951 | (eval $ac_try) 2>&5 |
|
|
11952 | ac_status=$? |
|
|
11953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11954 | (exit $ac_status); }; } && |
|
|
11955 | { ac_try='test -s conftest.$ac_objext' |
|
|
11956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11957 | (eval $ac_try) 2>&5 |
|
|
11958 | ac_status=$? |
|
|
11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11960 | (exit $ac_status); }; }; then |
|
|
11961 | ac_lo=$ac_mid; break |
|
|
11962 | else |
|
|
11963 | echo "$as_me: failed program was:" >&5 |
|
|
11964 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11965 | |
|
|
11966 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
11967 | if test $ac_mid -le $ac_hi; then |
|
|
11968 | ac_lo= ac_hi= |
|
|
11969 | break |
|
|
11970 | fi |
|
|
11971 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
11972 | fi |
|
|
11973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11974 | done |
|
|
11975 | else |
|
|
11976 | echo "$as_me: failed program was:" >&5 |
|
|
11977 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11978 | |
|
|
11979 | ac_lo= ac_hi= |
|
|
11980 | fi |
|
|
11981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11982 | fi |
|
|
11983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11984 | # Binary search between lo and hi bounds. |
|
|
11985 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
11986 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
11987 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11988 | /* confdefs.h. */ |
|
|
11989 | _ACEOF |
|
|
11990 | cat confdefs.h >>conftest.$ac_ext |
|
|
11991 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11992 | /* end confdefs.h. */ |
|
|
11993 | $ac_includes_default |
|
|
11994 | int |
|
|
11995 | main () |
|
|
11996 | { |
|
|
11997 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
11998 | test_array [0] = 0 |
|
|
11999 | |
|
|
12000 | ; |
|
|
12001 | return 0; |
|
|
12002 | } |
|
|
12003 | _ACEOF |
|
|
12004 | rm -f conftest.$ac_objext |
|
|
12005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12006 | (eval $ac_compile) 2>conftest.er1 |
|
|
12007 | ac_status=$? |
|
|
12008 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12009 | rm -f conftest.er1 |
|
|
12010 | cat conftest.err >&5 |
|
|
12011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12012 | (exit $ac_status); } && |
|
|
12013 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12015 | (eval $ac_try) 2>&5 |
|
|
12016 | ac_status=$? |
|
|
12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12018 | (exit $ac_status); }; } && |
|
|
12019 | { ac_try='test -s conftest.$ac_objext' |
|
|
12020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12021 | (eval $ac_try) 2>&5 |
|
|
12022 | ac_status=$? |
|
|
12023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12024 | (exit $ac_status); }; }; then |
|
|
12025 | ac_hi=$ac_mid |
|
|
12026 | else |
|
|
12027 | echo "$as_me: failed program was:" >&5 |
|
|
12028 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12029 | |
|
|
12030 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
12031 | fi |
|
|
12032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12033 | done |
|
|
12034 | case $ac_lo in |
|
|
12035 | ?*) ac_cv_sizeof_char=$ac_lo;; |
|
|
12036 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12037 | See \`config.log' for more details." >&5 |
|
|
12038 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12039 | See \`config.log' for more details." >&2;} |
|
|
12040 | { (exit 1); exit 1; }; } ;; |
|
|
12041 | esac |
|
|
12042 | else |
|
|
12043 | if test "$cross_compiling" = yes; then |
|
|
12044 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
12045 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
12046 | { (exit 1); exit 1; }; } |
|
|
12047 | else |
|
|
12048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12049 | /* confdefs.h. */ |
|
|
12050 | _ACEOF |
|
|
12051 | cat confdefs.h >>conftest.$ac_ext |
|
|
12052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12053 | /* end confdefs.h. */ |
|
|
12054 | $ac_includes_default |
|
|
12055 | long longval () { return (long) (sizeof (char)); } |
|
|
12056 | unsigned long ulongval () { return (long) (sizeof (char)); } |
|
|
12057 | #include <stdio.h> |
|
|
12058 | #include <stdlib.h> |
|
|
12059 | int |
|
|
12060 | main () |
|
|
12061 | { |
|
|
12062 | |
|
|
12063 | FILE *f = fopen ("conftest.val", "w"); |
|
|
12064 | if (! f) |
|
|
12065 | exit (1); |
|
|
12066 | if (((long) (sizeof (char))) < 0) |
|
|
12067 | { |
|
|
12068 | long i = longval (); |
|
|
12069 | if (i != ((long) (sizeof (char)))) |
|
|
12070 | exit (1); |
|
|
12071 | fprintf (f, "%ld\n", i); |
|
|
12072 | } |
|
|
12073 | else |
|
|
12074 | { |
|
|
12075 | unsigned long i = ulongval (); |
|
|
12076 | if (i != ((long) (sizeof (char)))) |
|
|
12077 | exit (1); |
|
|
12078 | fprintf (f, "%lu\n", i); |
|
|
12079 | } |
|
|
12080 | exit (ferror (f) || fclose (f) != 0); |
|
|
12081 | |
|
|
12082 | ; |
|
|
12083 | return 0; |
|
|
12084 | } |
|
|
12085 | _ACEOF |
|
|
12086 | rm -f conftest$ac_exeext |
|
|
12087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12088 | (eval $ac_link) 2>&5 |
|
|
12089 | ac_status=$? |
|
|
12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12093 | (eval $ac_try) 2>&5 |
|
|
12094 | ac_status=$? |
|
|
12095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12096 | (exit $ac_status); }; }; then |
|
|
12097 | ac_cv_sizeof_char=`cat conftest.val` |
|
|
12098 | else |
|
|
12099 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12100 | echo "$as_me: failed program was:" >&5 |
|
|
12101 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12102 | |
|
|
12103 | ( exit $ac_status ) |
|
|
12104 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12105 | See \`config.log' for more details." >&5 |
|
|
12106 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12107 | See \`config.log' for more details." >&2;} |
|
|
12108 | { (exit 1); exit 1; }; } |
|
|
12109 | fi |
|
|
12110 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12111 | fi |
|
|
12112 | fi |
|
|
12113 | rm -f conftest.val |
|
|
12114 | else |
|
|
12115 | ac_cv_sizeof_char=0 |
|
|
12116 | fi |
|
|
12117 | fi |
|
|
12118 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
|
|
12119 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
|
|
12120 | cat >>confdefs.h <<_ACEOF |
|
|
12121 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
|
|
12122 | _ACEOF |
|
|
12123 | |
|
|
12124 | |
|
|
12125 | echo "$as_me:$LINENO: checking for short" >&5 |
8027 | echo "$as_me:$LINENO: checking for short" >&5 |
12126 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
8028 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
12127 | if test "${ac_cv_type_short+set}" = set; then |
8029 | if test "${ac_cv_type_short+set}" = set; then |
12128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12129 | else |
8031 | else |
… | |
… | |
12932 | cat >>confdefs.h <<_ACEOF |
8834 | cat >>confdefs.h <<_ACEOF |
12933 | #define SIZEOF_INT $ac_cv_sizeof_int |
8835 | #define SIZEOF_INT $ac_cv_sizeof_int |
12934 | _ACEOF |
8836 | _ACEOF |
12935 | |
8837 | |
12936 | |
8838 | |
12937 | echo "$as_me:$LINENO: checking for long" >&5 |
|
|
12938 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
|
|
12939 | if test "${ac_cv_type_long+set}" = set; then |
|
|
12940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12941 | else |
|
|
12942 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12943 | /* confdefs.h. */ |
|
|
12944 | _ACEOF |
|
|
12945 | cat confdefs.h >>conftest.$ac_ext |
|
|
12946 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12947 | /* end confdefs.h. */ |
|
|
12948 | $ac_includes_default |
|
|
12949 | int |
|
|
12950 | main () |
|
|
12951 | { |
|
|
12952 | if ((long *) 0) |
|
|
12953 | return 0; |
|
|
12954 | if (sizeof (long)) |
|
|
12955 | return 0; |
|
|
12956 | ; |
|
|
12957 | return 0; |
|
|
12958 | } |
|
|
12959 | _ACEOF |
|
|
12960 | rm -f conftest.$ac_objext |
|
|
12961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12962 | (eval $ac_compile) 2>conftest.er1 |
|
|
12963 | ac_status=$? |
|
|
12964 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12965 | rm -f conftest.er1 |
|
|
12966 | cat conftest.err >&5 |
|
|
12967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12968 | (exit $ac_status); } && |
|
|
12969 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12971 | (eval $ac_try) 2>&5 |
|
|
12972 | ac_status=$? |
|
|
12973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12974 | (exit $ac_status); }; } && |
|
|
12975 | { ac_try='test -s conftest.$ac_objext' |
|
|
12976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12977 | (eval $ac_try) 2>&5 |
|
|
12978 | ac_status=$? |
|
|
12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12980 | (exit $ac_status); }; }; then |
|
|
12981 | ac_cv_type_long=yes |
|
|
12982 | else |
|
|
12983 | echo "$as_me: failed program was:" >&5 |
|
|
12984 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12985 | |
|
|
12986 | ac_cv_type_long=no |
|
|
12987 | fi |
|
|
12988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12989 | fi |
|
|
12990 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
|
|
12991 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
|
|
12992 | |
|
|
12993 | echo "$as_me:$LINENO: checking size of long" >&5 |
|
|
12994 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
|
|
12995 | if test "${ac_cv_sizeof_long+set}" = set; then |
|
|
12996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12997 | else |
|
|
12998 | if test "$ac_cv_type_long" = yes; then |
|
|
12999 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
13000 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
13001 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
13002 | # This bug is HP SR number 8606223364. |
|
|
13003 | if test "$cross_compiling" = yes; then |
|
|
13004 | # Depending upon the size, compute the lo and hi bounds. |
|
|
13005 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13006 | /* confdefs.h. */ |
|
|
13007 | _ACEOF |
|
|
13008 | cat confdefs.h >>conftest.$ac_ext |
|
|
13009 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13010 | /* end confdefs.h. */ |
|
|
13011 | $ac_includes_default |
|
|
13012 | int |
|
|
13013 | main () |
|
|
13014 | { |
|
|
13015 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
|
|
13016 | test_array [0] = 0 |
|
|
13017 | |
|
|
13018 | ; |
|
|
13019 | return 0; |
|
|
13020 | } |
|
|
13021 | _ACEOF |
|
|
13022 | rm -f conftest.$ac_objext |
|
|
13023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13024 | (eval $ac_compile) 2>conftest.er1 |
|
|
13025 | ac_status=$? |
|
|
13026 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13027 | rm -f conftest.er1 |
|
|
13028 | cat conftest.err >&5 |
|
|
13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13030 | (exit $ac_status); } && |
|
|
13031 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13033 | (eval $ac_try) 2>&5 |
|
|
13034 | ac_status=$? |
|
|
13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13036 | (exit $ac_status); }; } && |
|
|
13037 | { ac_try='test -s conftest.$ac_objext' |
|
|
13038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13039 | (eval $ac_try) 2>&5 |
|
|
13040 | ac_status=$? |
|
|
13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13042 | (exit $ac_status); }; }; then |
|
|
13043 | ac_lo=0 ac_mid=0 |
|
|
13044 | while :; do |
|
|
13045 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13046 | /* confdefs.h. */ |
|
|
13047 | _ACEOF |
|
|
13048 | cat confdefs.h >>conftest.$ac_ext |
|
|
13049 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13050 | /* end confdefs.h. */ |
|
|
13051 | $ac_includes_default |
|
|
13052 | int |
|
|
13053 | main () |
|
|
13054 | { |
|
|
13055 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13056 | test_array [0] = 0 |
|
|
13057 | |
|
|
13058 | ; |
|
|
13059 | return 0; |
|
|
13060 | } |
|
|
13061 | _ACEOF |
|
|
13062 | rm -f conftest.$ac_objext |
|
|
13063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13064 | (eval $ac_compile) 2>conftest.er1 |
|
|
13065 | ac_status=$? |
|
|
13066 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13067 | rm -f conftest.er1 |
|
|
13068 | cat conftest.err >&5 |
|
|
13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13070 | (exit $ac_status); } && |
|
|
13071 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13073 | (eval $ac_try) 2>&5 |
|
|
13074 | ac_status=$? |
|
|
13075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13076 | (exit $ac_status); }; } && |
|
|
13077 | { ac_try='test -s conftest.$ac_objext' |
|
|
13078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13079 | (eval $ac_try) 2>&5 |
|
|
13080 | ac_status=$? |
|
|
13081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13082 | (exit $ac_status); }; }; then |
|
|
13083 | ac_hi=$ac_mid; break |
|
|
13084 | else |
|
|
13085 | echo "$as_me: failed program was:" >&5 |
|
|
13086 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13087 | |
|
|
13088 | ac_lo=`expr $ac_mid + 1` |
|
|
13089 | if test $ac_lo -le $ac_mid; then |
|
|
13090 | ac_lo= ac_hi= |
|
|
13091 | break |
|
|
13092 | fi |
|
|
13093 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
13094 | fi |
|
|
13095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13096 | done |
|
|
13097 | else |
|
|
13098 | echo "$as_me: failed program was:" >&5 |
|
|
13099 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13100 | |
|
|
13101 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13102 | /* confdefs.h. */ |
|
|
13103 | _ACEOF |
|
|
13104 | cat confdefs.h >>conftest.$ac_ext |
|
|
13105 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13106 | /* end confdefs.h. */ |
|
|
13107 | $ac_includes_default |
|
|
13108 | int |
|
|
13109 | main () |
|
|
13110 | { |
|
|
13111 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
|
|
13112 | test_array [0] = 0 |
|
|
13113 | |
|
|
13114 | ; |
|
|
13115 | return 0; |
|
|
13116 | } |
|
|
13117 | _ACEOF |
|
|
13118 | rm -f conftest.$ac_objext |
|
|
13119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13120 | (eval $ac_compile) 2>conftest.er1 |
|
|
13121 | ac_status=$? |
|
|
13122 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13123 | rm -f conftest.er1 |
|
|
13124 | cat conftest.err >&5 |
|
|
13125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13126 | (exit $ac_status); } && |
|
|
13127 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13129 | (eval $ac_try) 2>&5 |
|
|
13130 | ac_status=$? |
|
|
13131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13132 | (exit $ac_status); }; } && |
|
|
13133 | { ac_try='test -s conftest.$ac_objext' |
|
|
13134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13135 | (eval $ac_try) 2>&5 |
|
|
13136 | ac_status=$? |
|
|
13137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13138 | (exit $ac_status); }; }; then |
|
|
13139 | ac_hi=-1 ac_mid=-1 |
|
|
13140 | while :; do |
|
|
13141 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13142 | /* confdefs.h. */ |
|
|
13143 | _ACEOF |
|
|
13144 | cat confdefs.h >>conftest.$ac_ext |
|
|
13145 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13146 | /* end confdefs.h. */ |
|
|
13147 | $ac_includes_default |
|
|
13148 | int |
|
|
13149 | main () |
|
|
13150 | { |
|
|
13151 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
|
|
13152 | test_array [0] = 0 |
|
|
13153 | |
|
|
13154 | ; |
|
|
13155 | return 0; |
|
|
13156 | } |
|
|
13157 | _ACEOF |
|
|
13158 | rm -f conftest.$ac_objext |
|
|
13159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13160 | (eval $ac_compile) 2>conftest.er1 |
|
|
13161 | ac_status=$? |
|
|
13162 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13163 | rm -f conftest.er1 |
|
|
13164 | cat conftest.err >&5 |
|
|
13165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13166 | (exit $ac_status); } && |
|
|
13167 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13169 | (eval $ac_try) 2>&5 |
|
|
13170 | ac_status=$? |
|
|
13171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13172 | (exit $ac_status); }; } && |
|
|
13173 | { ac_try='test -s conftest.$ac_objext' |
|
|
13174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13175 | (eval $ac_try) 2>&5 |
|
|
13176 | ac_status=$? |
|
|
13177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13178 | (exit $ac_status); }; }; then |
|
|
13179 | ac_lo=$ac_mid; break |
|
|
13180 | else |
|
|
13181 | echo "$as_me: failed program was:" >&5 |
|
|
13182 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13183 | |
|
|
13184 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
13185 | if test $ac_mid -le $ac_hi; then |
|
|
13186 | ac_lo= ac_hi= |
|
|
13187 | break |
|
|
13188 | fi |
|
|
13189 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
13190 | fi |
|
|
13191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13192 | done |
|
|
13193 | else |
|
|
13194 | echo "$as_me: failed program was:" >&5 |
|
|
13195 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13196 | |
|
|
13197 | ac_lo= ac_hi= |
|
|
13198 | fi |
|
|
13199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13200 | fi |
|
|
13201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13202 | # Binary search between lo and hi bounds. |
|
|
13203 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
13204 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
13205 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13206 | /* confdefs.h. */ |
|
|
13207 | _ACEOF |
|
|
13208 | cat confdefs.h >>conftest.$ac_ext |
|
|
13209 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13210 | /* end confdefs.h. */ |
|
|
13211 | $ac_includes_default |
|
|
13212 | int |
|
|
13213 | main () |
|
|
13214 | { |
|
|
13215 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13216 | test_array [0] = 0 |
|
|
13217 | |
|
|
13218 | ; |
|
|
13219 | return 0; |
|
|
13220 | } |
|
|
13221 | _ACEOF |
|
|
13222 | rm -f conftest.$ac_objext |
|
|
13223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13224 | (eval $ac_compile) 2>conftest.er1 |
|
|
13225 | ac_status=$? |
|
|
13226 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13227 | rm -f conftest.er1 |
|
|
13228 | cat conftest.err >&5 |
|
|
13229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13230 | (exit $ac_status); } && |
|
|
13231 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13233 | (eval $ac_try) 2>&5 |
|
|
13234 | ac_status=$? |
|
|
13235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13236 | (exit $ac_status); }; } && |
|
|
13237 | { ac_try='test -s conftest.$ac_objext' |
|
|
13238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13239 | (eval $ac_try) 2>&5 |
|
|
13240 | ac_status=$? |
|
|
13241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13242 | (exit $ac_status); }; }; then |
|
|
13243 | ac_hi=$ac_mid |
|
|
13244 | else |
|
|
13245 | echo "$as_me: failed program was:" >&5 |
|
|
13246 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13247 | |
|
|
13248 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
13249 | fi |
|
|
13250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13251 | done |
|
|
13252 | case $ac_lo in |
|
|
13253 | ?*) ac_cv_sizeof_long=$ac_lo;; |
|
|
13254 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13255 | See \`config.log' for more details." >&5 |
|
|
13256 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13257 | See \`config.log' for more details." >&2;} |
|
|
13258 | { (exit 1); exit 1; }; } ;; |
|
|
13259 | esac |
|
|
13260 | else |
|
|
13261 | if test "$cross_compiling" = yes; then |
|
|
13262 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
13263 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
13264 | { (exit 1); exit 1; }; } |
|
|
13265 | else |
|
|
13266 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13267 | /* confdefs.h. */ |
|
|
13268 | _ACEOF |
|
|
13269 | cat confdefs.h >>conftest.$ac_ext |
|
|
13270 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13271 | /* end confdefs.h. */ |
|
|
13272 | $ac_includes_default |
|
|
13273 | long longval () { return (long) (sizeof (long)); } |
|
|
13274 | unsigned long ulongval () { return (long) (sizeof (long)); } |
|
|
13275 | #include <stdio.h> |
|
|
13276 | #include <stdlib.h> |
|
|
13277 | int |
|
|
13278 | main () |
|
|
13279 | { |
|
|
13280 | |
|
|
13281 | FILE *f = fopen ("conftest.val", "w"); |
|
|
13282 | if (! f) |
|
|
13283 | exit (1); |
|
|
13284 | if (((long) (sizeof (long))) < 0) |
|
|
13285 | { |
|
|
13286 | long i = longval (); |
|
|
13287 | if (i != ((long) (sizeof (long)))) |
|
|
13288 | exit (1); |
|
|
13289 | fprintf (f, "%ld\n", i); |
|
|
13290 | } |
|
|
13291 | else |
|
|
13292 | { |
|
|
13293 | unsigned long i = ulongval (); |
|
|
13294 | if (i != ((long) (sizeof (long)))) |
|
|
13295 | exit (1); |
|
|
13296 | fprintf (f, "%lu\n", i); |
|
|
13297 | } |
|
|
13298 | exit (ferror (f) || fclose (f) != 0); |
|
|
13299 | |
|
|
13300 | ; |
|
|
13301 | return 0; |
|
|
13302 | } |
|
|
13303 | _ACEOF |
|
|
13304 | rm -f conftest$ac_exeext |
|
|
13305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13306 | (eval $ac_link) 2>&5 |
|
|
13307 | ac_status=$? |
|
|
13308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
13310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13311 | (eval $ac_try) 2>&5 |
|
|
13312 | ac_status=$? |
|
|
13313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13314 | (exit $ac_status); }; }; then |
|
|
13315 | ac_cv_sizeof_long=`cat conftest.val` |
|
|
13316 | else |
|
|
13317 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
13318 | echo "$as_me: failed program was:" >&5 |
|
|
13319 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13320 | |
|
|
13321 | ( exit $ac_status ) |
|
|
13322 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13323 | See \`config.log' for more details." >&5 |
|
|
13324 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13325 | See \`config.log' for more details." >&2;} |
|
|
13326 | { (exit 1); exit 1; }; } |
|
|
13327 | fi |
|
|
13328 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
13329 | fi |
|
|
13330 | fi |
|
|
13331 | rm -f conftest.val |
|
|
13332 | else |
|
|
13333 | ac_cv_sizeof_long=0 |
|
|
13334 | fi |
|
|
13335 | fi |
|
|
13336 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
|
|
13337 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
|
|
13338 | cat >>confdefs.h <<_ACEOF |
|
|
13339 | #define SIZEOF_LONG $ac_cv_sizeof_long |
|
|
13340 | _ACEOF |
|
|
13341 | |
|
|
13342 | |
|
|
13343 | echo "$as_me:$LINENO: checking for long long" >&5 |
8839 | echo "$as_me:$LINENO: checking for long long" >&5 |
13344 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
8840 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
13345 | if test "${ac_cv_type_long_long+set}" = set; then |
8841 | if test "${ac_cv_type_long_long+set}" = set; then |
13346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13347 | else |
8843 | else |
… | |
… | |
14198 | rxvt_cv_int16_t=yes |
9694 | rxvt_cv_int16_t=yes |
14199 | else |
9695 | else |
14200 | echo "$as_me: failed program was:" >&5 |
9696 | echo "$as_me: failed program was:" >&5 |
14201 | sed 's/^/| /' conftest.$ac_ext >&5 |
9697 | sed 's/^/| /' conftest.$ac_ext >&5 |
14202 | |
9698 | |
14203 | if test $ac_cv_sizeof_char -ge 2; then |
9699 | if test "$ac_cv_sizeof_char" -ge 2; then |
14204 | rxvt_cv_int16_t=" char" |
9700 | rxvt_cv_int16_t=" char" |
14205 | else |
9701 | else |
14206 | if test $ac_cv_sizeof_short -ge 2; then |
9702 | if test "$ac_cv_sizeof_short" -ge 2; then |
14207 | rxvt_cv_int16_t=" short" |
9703 | rxvt_cv_int16_t=" short" |
14208 | else |
9704 | else |
14209 | if test $ac_cv_sizeof_int -ge 2; then |
9705 | if test "$ac_cv_sizeof_int" -ge 2; then |
14210 | rxvt_cv_int16_t=" int" |
9706 | rxvt_cv_int16_t=" int" |
14211 | else |
9707 | else |
14212 | if test $ac_cv_sizeof_long -ge 2; then |
9708 | if test "$ac_cv_sizeof_long" -ge 2; then |
14213 | rxvt_cv_int16_t=" long" |
9709 | rxvt_cv_int16_t=" long" |
14214 | else |
9710 | else |
14215 | if test $ac_cv_sizeof_long_long -ge 2; then |
9711 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14216 | rxvt_cv_int16_t=" long long" |
9712 | rxvt_cv_int16_t=" long long" |
14217 | else |
9713 | else |
14218 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
9714 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
14219 | fi |
9715 | fi |
14220 | fi |
9716 | fi |
… | |
… | |
14280 | rxvt_cv_uint16_t=yes |
9776 | rxvt_cv_uint16_t=yes |
14281 | else |
9777 | else |
14282 | echo "$as_me: failed program was:" >&5 |
9778 | echo "$as_me: failed program was:" >&5 |
14283 | sed 's/^/| /' conftest.$ac_ext >&5 |
9779 | sed 's/^/| /' conftest.$ac_ext >&5 |
14284 | |
9780 | |
14285 | if test $ac_cv_sizeof_char -ge 2; then |
9781 | if test "$ac_cv_sizeof_char" -ge 2; then |
14286 | rxvt_cv_uint16_t="unsigned char" |
9782 | rxvt_cv_uint16_t="unsigned char" |
14287 | else |
9783 | else |
14288 | if test $ac_cv_sizeof_short -ge 2; then |
9784 | if test "$ac_cv_sizeof_short" -ge 2; then |
14289 | rxvt_cv_uint16_t="unsigned short" |
9785 | rxvt_cv_uint16_t="unsigned short" |
14290 | else |
9786 | else |
14291 | if test $ac_cv_sizeof_int -ge 2; then |
9787 | if test "$ac_cv_sizeof_int" -ge 2; then |
14292 | rxvt_cv_uint16_t="unsigned int" |
9788 | rxvt_cv_uint16_t="unsigned int" |
14293 | else |
9789 | else |
14294 | if test $ac_cv_sizeof_long -ge 2; then |
9790 | if test "$ac_cv_sizeof_long" -ge 2; then |
14295 | rxvt_cv_uint16_t="unsigned long" |
9791 | rxvt_cv_uint16_t="unsigned long" |
14296 | else |
9792 | else |
14297 | if test $ac_cv_sizeof_long_long -ge 2; then |
9793 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14298 | rxvt_cv_uint16_t="unsigned long long" |
9794 | rxvt_cv_uint16_t="unsigned long long" |
14299 | else |
9795 | else |
14300 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
9796 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
14301 | fi |
9797 | fi |
14302 | fi |
9798 | fi |
… | |
… | |
14362 | rxvt_cv_int32_t=yes |
9858 | rxvt_cv_int32_t=yes |
14363 | else |
9859 | else |
14364 | echo "$as_me: failed program was:" >&5 |
9860 | echo "$as_me: failed program was:" >&5 |
14365 | sed 's/^/| /' conftest.$ac_ext >&5 |
9861 | sed 's/^/| /' conftest.$ac_ext >&5 |
14366 | |
9862 | |
14367 | if test $ac_cv_sizeof_char -ge 4; then |
9863 | if test "$ac_cv_sizeof_char" -ge 4; then |
14368 | rxvt_cv_int32_t=" char" |
9864 | rxvt_cv_int32_t=" char" |
14369 | else |
9865 | else |
14370 | if test $ac_cv_sizeof_short -ge 4; then |
9866 | if test "$ac_cv_sizeof_short" -ge 4; then |
14371 | rxvt_cv_int32_t=" short" |
9867 | rxvt_cv_int32_t=" short" |
14372 | else |
9868 | else |
14373 | if test $ac_cv_sizeof_int -ge 4; then |
9869 | if test "$ac_cv_sizeof_int" -ge 4; then |
14374 | rxvt_cv_int32_t=" int" |
9870 | rxvt_cv_int32_t=" int" |
14375 | else |
9871 | else |
14376 | if test $ac_cv_sizeof_long -ge 4; then |
9872 | if test "$ac_cv_sizeof_long" -ge 4; then |
14377 | rxvt_cv_int32_t=" long" |
9873 | rxvt_cv_int32_t=" long" |
14378 | else |
9874 | else |
14379 | if test $ac_cv_sizeof_long_long -ge 4; then |
9875 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14380 | rxvt_cv_int32_t=" long long" |
9876 | rxvt_cv_int32_t=" long long" |
14381 | else |
9877 | else |
14382 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
9878 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
14383 | fi |
9879 | fi |
14384 | fi |
9880 | fi |
… | |
… | |
14444 | rxvt_cv_uint32_t=yes |
9940 | rxvt_cv_uint32_t=yes |
14445 | else |
9941 | else |
14446 | echo "$as_me: failed program was:" >&5 |
9942 | echo "$as_me: failed program was:" >&5 |
14447 | sed 's/^/| /' conftest.$ac_ext >&5 |
9943 | sed 's/^/| /' conftest.$ac_ext >&5 |
14448 | |
9944 | |
14449 | if test $ac_cv_sizeof_char -ge 4; then |
9945 | if test "$ac_cv_sizeof_char" -ge 4; then |
14450 | rxvt_cv_uint32_t="unsigned char" |
9946 | rxvt_cv_uint32_t="unsigned char" |
14451 | else |
9947 | else |
14452 | if test $ac_cv_sizeof_short -ge 4; then |
9948 | if test "$ac_cv_sizeof_short" -ge 4; then |
14453 | rxvt_cv_uint32_t="unsigned short" |
9949 | rxvt_cv_uint32_t="unsigned short" |
14454 | else |
9950 | else |
14455 | if test $ac_cv_sizeof_int -ge 4; then |
9951 | if test "$ac_cv_sizeof_int" -ge 4; then |
14456 | rxvt_cv_uint32_t="unsigned int" |
9952 | rxvt_cv_uint32_t="unsigned int" |
14457 | else |
9953 | else |
14458 | if test $ac_cv_sizeof_long -ge 4; then |
9954 | if test "$ac_cv_sizeof_long" -ge 4; then |
14459 | rxvt_cv_uint32_t="unsigned long" |
9955 | rxvt_cv_uint32_t="unsigned long" |
14460 | else |
9956 | else |
14461 | if test $ac_cv_sizeof_long_long -ge 4; then |
9957 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14462 | rxvt_cv_uint32_t="unsigned long long" |
9958 | rxvt_cv_uint32_t="unsigned long long" |
14463 | else |
9959 | else |
14464 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
9960 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
14465 | fi |
9961 | fi |
14466 | fi |
9962 | fi |
… | |
… | |
14480 | else |
9976 | else |
14481 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
9977 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
14482 | fi |
9978 | fi |
14483 | fi |
9979 | fi |
14484 | |
9980 | |
14485 | if test $ac_cv_sizeof_int_p -eq 8; then |
9981 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
14486 | rxvt_intp_define="#define intp_t int64_t" |
9982 | rxvt_intp_define="#define intp_t int64_t" |
14487 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
9983 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
14488 | else |
9984 | else |
14489 | if test $ac_cv_sizeof_int_p -eq 4; then |
9985 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
14490 | rxvt_intp_define="#define intp_t int32_t" |
9986 | rxvt_intp_define="#define intp_t int32_t" |
14491 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
9987 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
14492 | else |
9988 | else |
14493 | if test $ac_cv_sizeof_int_p -eq 2; then |
9989 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
14494 | rxvt_intp_define="#define intp_t int16_t" |
9990 | rxvt_intp_define="#define intp_t int16_t" |
14495 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
9991 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
14496 | else |
9992 | else |
14497 | rxvt_intp_define="#error set intp_t" |
9993 | rxvt_intp_define="#error set intp_t" |
14498 | rxvt_u_intp_define="#error set u_intp_t" |
9994 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
14569 | #define RETSIGTYPE $ac_cv_type_signal |
10065 | #define RETSIGTYPE $ac_cv_type_signal |
14570 | _ACEOF |
10066 | _ACEOF |
14571 | |
10067 | |
14572 | |
10068 | |
14573 | |
10069 | |
14574 | case "$host_alias" in |
|
|
14575 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
14576 | *) break;; |
|
|
14577 | esac |
|
|
14578 | |
|
|
14579 | |
|
|
14580 | |
|
|
14581 | |
|
|
14582 | |
|
|
14583 | |
|
|
14584 | |
|
|
14585 | |
|
|
14586 | |
|
|
14587 | |
|
|
14588 | |
|
|
14589 | |
|
|
14590 | |
10070 | |
14591 | |
10071 | |
14592 | |
10072 | |
14593 | |
10073 | |
14594 | |
10074 | |
14595 | |
10075 | |
14596 | |
10076 | |
14597 | for ac_func in \ |
10077 | for ac_func in \ |
14598 | atexit \ |
|
|
14599 | revoke \ |
|
|
14600 | unsetenv \ |
10078 | unsetenv \ |
14601 | setutent \ |
10079 | setutent \ |
14602 | seteuid \ |
10080 | seteuid \ |
|
|
10081 | setresuid \ |
14603 | setreuid \ |
10082 | setreuid \ |
14604 | setsid \ |
|
|
14605 | setpgrp \ |
|
|
14606 | setpgid \ |
|
|
14607 | openpty \ |
|
|
14608 | _getpty \ |
|
|
14609 | grantpt \ |
|
|
14610 | unlockpt \ |
|
|
14611 | isastream \ |
|
|
14612 | on_exit \ |
10083 | on_exit \ |
14613 | nanosleep \ |
10084 | nanosleep \ |
14614 | updwtmp \ |
|
|
14615 | ttyslot \ |
|
|
14616 | |
10085 | |
14617 | do |
10086 | do |
14618 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14619 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14620 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
14709 | cat >>confdefs.h <<_ACEOF |
10178 | cat >>confdefs.h <<_ACEOF |
14710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10179 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
14711 | _ACEOF |
10180 | _ACEOF |
14712 | |
10181 | |
14713 | fi |
10182 | fi |
|
|
10183 | done |
|
|
10184 | |
|
|
10185 | |
|
|
10186 | |
|
|
10187 | |
|
|
10188 | |
|
|
10189 | |
|
|
10190 | for ac_func in \ |
|
|
10191 | ttyslot \ |
|
|
10192 | updwtmp \ |
|
|
10193 | updwtmpx \ |
|
|
10194 | |
|
|
10195 | do |
|
|
10196 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10197 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10198 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
10199 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
10200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10201 | else |
|
|
10202 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10203 | /* confdefs.h. */ |
|
|
10204 | _ACEOF |
|
|
10205 | cat confdefs.h >>conftest.$ac_ext |
|
|
10206 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10207 | /* end confdefs.h. */ |
|
|
10208 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10209 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10210 | #define $ac_func innocuous_$ac_func |
|
|
10211 | |
|
|
10212 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10213 | which can conflict with char $ac_func (); below. |
|
|
10214 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10215 | <limits.h> exists even on freestanding compilers. */ |
|
|
10216 | |
|
|
10217 | #ifdef __STDC__ |
|
|
10218 | # include <limits.h> |
|
|
10219 | #else |
|
|
10220 | # include <assert.h> |
|
|
10221 | #endif |
|
|
10222 | |
|
|
10223 | #undef $ac_func |
|
|
10224 | |
|
|
10225 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
10226 | #ifdef __cplusplus |
|
|
10227 | extern "C" |
|
|
10228 | { |
|
|
10229 | #endif |
|
|
10230 | /* We use char because int might match the return type of a gcc2 |
|
|
10231 | builtin and then its argument prototype would still apply. */ |
|
|
10232 | char $ac_func (); |
|
|
10233 | /* The GNU C library defines this for functions which it implements |
|
|
10234 | to always fail with ENOSYS. Some functions are actually named |
|
|
10235 | something starting with __ and the normal name is an alias. */ |
|
|
10236 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
10237 | choke me |
|
|
10238 | #else |
|
|
10239 | char (*f) () = $ac_func; |
|
|
10240 | #endif |
|
|
10241 | #ifdef __cplusplus |
|
|
10242 | } |
|
|
10243 | #endif |
|
|
10244 | |
|
|
10245 | int |
|
|
10246 | main () |
|
|
10247 | { |
|
|
10248 | return f != $ac_func; |
|
|
10249 | ; |
|
|
10250 | return 0; |
|
|
10251 | } |
|
|
10252 | _ACEOF |
|
|
10253 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10255 | (eval $ac_link) 2>conftest.er1 |
|
|
10256 | ac_status=$? |
|
|
10257 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10258 | rm -f conftest.er1 |
|
|
10259 | cat conftest.err >&5 |
|
|
10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10261 | (exit $ac_status); } && |
|
|
10262 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10264 | (eval $ac_try) 2>&5 |
|
|
10265 | ac_status=$? |
|
|
10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10267 | (exit $ac_status); }; } && |
|
|
10268 | { ac_try='test -s conftest$ac_exeext' |
|
|
10269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10270 | (eval $ac_try) 2>&5 |
|
|
10271 | ac_status=$? |
|
|
10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10273 | (exit $ac_status); }; }; then |
|
|
10274 | eval "$as_ac_var=yes" |
|
|
10275 | else |
|
|
10276 | echo "$as_me: failed program was:" >&5 |
|
|
10277 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10278 | |
|
|
10279 | eval "$as_ac_var=no" |
|
|
10280 | fi |
|
|
10281 | rm -f conftest.err conftest.$ac_objext \ |
|
|
10282 | conftest$ac_exeext conftest.$ac_ext |
|
|
10283 | fi |
|
|
10284 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
10285 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
10286 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10287 | cat >>confdefs.h <<_ACEOF |
|
|
10288 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10289 | _ACEOF |
|
|
10290 | |
|
|
10291 | fi |
|
|
10292 | done |
|
|
10293 | |
|
|
10294 | |
|
|
10295 | |
|
|
10296 | |
|
|
10297 | |
|
|
10298 | for ac_header in \ |
|
|
10299 | utmp.h \ |
|
|
10300 | utmpx.h \ |
|
|
10301 | lastlog.h \ |
|
|
10302 | |
|
|
10303 | do |
|
|
10304 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10306 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10310 | fi |
|
|
10311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10313 | else |
|
|
10314 | # Is the header compilable? |
|
|
10315 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10316 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
10317 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10318 | /* confdefs.h. */ |
|
|
10319 | _ACEOF |
|
|
10320 | cat confdefs.h >>conftest.$ac_ext |
|
|
10321 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10322 | /* end confdefs.h. */ |
|
|
10323 | $ac_includes_default |
|
|
10324 | #include <$ac_header> |
|
|
10325 | _ACEOF |
|
|
10326 | rm -f conftest.$ac_objext |
|
|
10327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10328 | (eval $ac_compile) 2>conftest.er1 |
|
|
10329 | ac_status=$? |
|
|
10330 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10331 | rm -f conftest.er1 |
|
|
10332 | cat conftest.err >&5 |
|
|
10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10334 | (exit $ac_status); } && |
|
|
10335 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10337 | (eval $ac_try) 2>&5 |
|
|
10338 | ac_status=$? |
|
|
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10340 | (exit $ac_status); }; } && |
|
|
10341 | { ac_try='test -s conftest.$ac_objext' |
|
|
10342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10343 | (eval $ac_try) 2>&5 |
|
|
10344 | ac_status=$? |
|
|
10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10346 | (exit $ac_status); }; }; then |
|
|
10347 | ac_header_compiler=yes |
|
|
10348 | else |
|
|
10349 | echo "$as_me: failed program was:" >&5 |
|
|
10350 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10351 | |
|
|
10352 | ac_header_compiler=no |
|
|
10353 | fi |
|
|
10354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10355 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10356 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10357 | |
|
|
10358 | # Is the header present? |
|
|
10359 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10360 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
10361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10362 | /* confdefs.h. */ |
|
|
10363 | _ACEOF |
|
|
10364 | cat confdefs.h >>conftest.$ac_ext |
|
|
10365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10366 | /* end confdefs.h. */ |
|
|
10367 | #include <$ac_header> |
|
|
10368 | _ACEOF |
|
|
10369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10371 | ac_status=$? |
|
|
10372 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10373 | rm -f conftest.er1 |
|
|
10374 | cat conftest.err >&5 |
|
|
10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10376 | (exit $ac_status); } >/dev/null; then |
|
|
10377 | if test -s conftest.err; then |
|
|
10378 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10379 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10380 | else |
|
|
10381 | ac_cpp_err= |
|
|
10382 | fi |
|
|
10383 | else |
|
|
10384 | ac_cpp_err=yes |
|
|
10385 | fi |
|
|
10386 | if test -z "$ac_cpp_err"; then |
|
|
10387 | ac_header_preproc=yes |
|
|
10388 | else |
|
|
10389 | echo "$as_me: failed program was:" >&5 |
|
|
10390 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10391 | |
|
|
10392 | ac_header_preproc=no |
|
|
10393 | fi |
|
|
10394 | rm -f conftest.err conftest.$ac_ext |
|
|
10395 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10396 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10397 | |
|
|
10398 | # So? What about this header? |
|
|
10399 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10400 | yes:no: ) |
|
|
10401 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10402 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10404 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10405 | ac_header_preproc=yes |
|
|
10406 | ;; |
|
|
10407 | no:yes:* ) |
|
|
10408 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10409 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10410 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10411 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10412 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10413 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10414 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10415 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10417 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10418 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10419 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10420 | ( |
|
|
10421 | cat <<\_ASBOX |
|
|
10422 | ## ------------------------------------------ ## |
|
|
10423 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10424 | ## ------------------------------------------ ## |
|
|
10425 | _ASBOX |
|
|
10426 | ) | |
|
|
10427 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10428 | ;; |
|
|
10429 | esac |
|
|
10430 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10434 | else |
|
|
10435 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10436 | fi |
|
|
10437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10439 | |
|
|
10440 | fi |
|
|
10441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10442 | cat >>confdefs.h <<_ACEOF |
|
|
10443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10444 | _ACEOF |
|
|
10445 | |
|
|
10446 | fi |
|
|
10447 | |
14714 | done |
10448 | done |
14715 | |
10449 | |
14716 | |
10450 | |
14717 | |
10451 | |
14718 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10452 | if test "${ac_cv_header_utmp_h+set}" = set; then |
… | |
… | |
14862 | _ACEOF |
10596 | _ACEOF |
14863 | cat confdefs.h >>conftest.$ac_ext |
10597 | cat confdefs.h >>conftest.$ac_ext |
14864 | cat >>conftest.$ac_ext <<_ACEOF |
10598 | cat >>conftest.$ac_ext <<_ACEOF |
14865 | /* end confdefs.h. */ |
10599 | /* end confdefs.h. */ |
14866 | #include <sys/types.h> |
10600 | #include <sys/types.h> |
14867 | #include <stdint.h> |
|
|
14868 | #include <utmp.h> |
10601 | #include <utmp.h> |
14869 | int |
10602 | int |
14870 | main () |
10603 | main () |
14871 | { |
10604 | { |
14872 | struct utmp ut; |
10605 | struct utmp ut; |
… | |
… | |
15299 | #define HAVE_UTMPX_HOST 1 |
11032 | #define HAVE_UTMPX_HOST 1 |
15300 | _ACEOF |
11033 | _ACEOF |
15301 | |
11034 | |
15302 | fi |
11035 | fi |
15303 | |
11036 | |
15304 | fi |
11037 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
11038 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
11039 | if test "${rxvt_cv_struct_utmpx_session+set}" = set; then |
|
|
11040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11041 | else |
|
|
11042 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11043 | /* confdefs.h. */ |
|
|
11044 | _ACEOF |
|
|
11045 | cat confdefs.h >>conftest.$ac_ext |
|
|
11046 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11047 | /* end confdefs.h. */ |
|
|
11048 | #include <sys/types.h> |
|
|
11049 | #include <utmpx.h> |
|
|
11050 | int |
|
|
11051 | main () |
|
|
11052 | { |
|
|
11053 | struct utmpx utx; utx.ut_session; |
|
|
11054 | ; |
|
|
11055 | return 0; |
|
|
11056 | } |
|
|
11057 | _ACEOF |
|
|
11058 | rm -f conftest.$ac_objext |
|
|
11059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11060 | (eval $ac_compile) 2>conftest.er1 |
|
|
11061 | ac_status=$? |
|
|
11062 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11063 | rm -f conftest.er1 |
|
|
11064 | cat conftest.err >&5 |
|
|
11065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11066 | (exit $ac_status); } && |
|
|
11067 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11069 | (eval $ac_try) 2>&5 |
|
|
11070 | ac_status=$? |
|
|
11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11072 | (exit $ac_status); }; } && |
|
|
11073 | { ac_try='test -s conftest.$ac_objext' |
|
|
11074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11075 | (eval $ac_try) 2>&5 |
|
|
11076 | ac_status=$? |
|
|
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11078 | (exit $ac_status); }; }; then |
|
|
11079 | rxvt_cv_struct_utmpx_session=yes |
|
|
11080 | else |
|
|
11081 | echo "$as_me: failed program was:" >&5 |
|
|
11082 | sed 's/^/| /' conftest.$ac_ext >&5 |
15305 | |
11083 | |
|
|
11084 | rxvt_cv_struct_utmpx_session=no |
|
|
11085 | fi |
|
|
11086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11087 | fi |
|
|
11088 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 |
|
|
11089 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 |
|
|
11090 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
11091 | |
|
|
11092 | cat >>confdefs.h <<\_ACEOF |
|
|
11093 | #define HAVE_UTMPX_SESSION 1 |
|
|
11094 | _ACEOF |
|
|
11095 | |
|
|
11096 | fi |
|
|
11097 | |
|
|
11098 | fi |
15306 | |
11099 | |
15307 | |
11100 | |
15308 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
11101 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
15309 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
11102 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
15310 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
11103 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
… | |
… | |
15913 | _ACEOF |
11706 | _ACEOF |
15914 | |
11707 | |
15915 | fi |
11708 | fi |
15916 | |
11709 | |
15917 | |
11710 | |
|
|
11711 | |
15918 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11712 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
15919 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11713 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
15920 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
11714 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
15921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15922 | else |
11716 | else |
… | |
… | |
16187 | #define HAVE_NL_LANGINFO 1 |
11981 | #define HAVE_NL_LANGINFO 1 |
16188 | _ACEOF |
11982 | _ACEOF |
16189 | |
11983 | |
16190 | fi |
11984 | fi |
16191 | |
11985 | |
16192 | echo "$as_me:$LINENO: checking for getpt" >&5 |
11986 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
16193 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
11987 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
16194 | if test "${rxvt_cv_func_getpt+set}" = set; then |
11988 | if test "${rxvt_can_pass_fds+set}" = set; then |
16195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16196 | else |
11990 | else |
16197 | cat >conftest.$ac_ext <<_ACEOF |
11991 | cat >conftest.$ac_ext <<_ACEOF |
16198 | /* confdefs.h. */ |
11992 | /* confdefs.h. */ |
16199 | _ACEOF |
11993 | _ACEOF |
16200 | cat confdefs.h >>conftest.$ac_ext |
11994 | cat confdefs.h >>conftest.$ac_ext |
16201 | cat >>conftest.$ac_ext <<_ACEOF |
11995 | cat >>conftest.$ac_ext <<_ACEOF |
16202 | /* end confdefs.h. */ |
11996 | /* end confdefs.h. */ |
16203 | #define _GNU_SOURCE |
11997 | |
16204 | #ifdef HAVE_STDLIB_H |
11998 | #include <cstddef> // broken bsds (is that redundant) need this |
16205 | # include <cstdlib> |
11999 | #include <sys/types.h> |
16206 | #endif |
12000 | #include <sys/socket.h> |
|
|
12001 | #include <sys/uio.h> |
|
|
12002 | |
16207 | int |
12003 | int |
16208 | main () |
12004 | main () |
16209 | { |
12005 | { |
16210 | (void)getpt(); |
12006 | |
|
|
12007 | { |
|
|
12008 | msghdr msg; |
|
|
12009 | iovec iov; |
|
|
12010 | char buf [100]; |
|
|
12011 | char data = 0; |
|
|
12012 | |
|
|
12013 | iov.iov_base = &data; |
|
|
12014 | iov.iov_len = 1; |
|
|
12015 | |
|
|
12016 | msg.msg_iov = &iov; |
|
|
12017 | msg.msg_iovlen = 1; |
|
|
12018 | msg.msg_control = buf; |
|
|
12019 | msg.msg_controllen = sizeof buf; |
|
|
12020 | |
|
|
12021 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
12022 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
12023 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
12024 | cmsg->cmsg_len = 100; |
|
|
12025 | |
|
|
12026 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
12027 | |
|
|
12028 | return sendmsg (3, &msg, 0); |
|
|
12029 | } |
|
|
12030 | |
16211 | ; |
12031 | ; |
16212 | return 0; |
12032 | return 0; |
16213 | } |
12033 | } |
16214 | _ACEOF |
12034 | _ACEOF |
16215 | rm -f conftest.$ac_objext conftest$ac_exeext |
12035 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
16231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16232 | (eval $ac_try) 2>&5 |
12052 | (eval $ac_try) 2>&5 |
16233 | ac_status=$? |
12053 | ac_status=$? |
16234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16235 | (exit $ac_status); }; }; then |
12055 | (exit $ac_status); }; }; then |
16236 | rxvt_cv_func_getpt=yes |
12056 | rxvt_can_pass_fds=yes |
16237 | else |
12057 | else |
16238 | echo "$as_me: failed program was:" >&5 |
12058 | echo "$as_me: failed program was:" >&5 |
16239 | sed 's/^/| /' conftest.$ac_ext >&5 |
12059 | sed 's/^/| /' conftest.$ac_ext >&5 |
16240 | |
12060 | |
16241 | rxvt_cv_func_getpt=no |
12061 | rxvt_can_pass_fds=no |
16242 | fi |
12062 | fi |
16243 | rm -f conftest.err conftest.$ac_objext \ |
12063 | rm -f conftest.err conftest.$ac_objext \ |
16244 | conftest$ac_exeext conftest.$ac_ext |
12064 | conftest$ac_exeext conftest.$ac_ext |
16245 | fi |
12065 | fi |
16246 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
12066 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
16247 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
12067 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
16248 | if test x$rxvt_cv_func_getpt = xyes; then |
12068 | if test x$rxvt_can_pass_fds = xyes; then |
16249 | |
12069 | |
16250 | cat >>confdefs.h <<\_ACEOF |
12070 | cat >>confdefs.h <<\_ACEOF |
16251 | #define HAVE_GETPT 1 |
12071 | #define HAVE_UNIX_FDPASS 1 |
16252 | _ACEOF |
12072 | _ACEOF |
16253 | |
12073 | |
|
|
12074 | else |
|
|
12075 | { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5 |
|
|
12076 | echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;} |
|
|
12077 | { (exit 1); exit 1; }; } |
16254 | fi |
12078 | fi |
16255 | |
12079 | |
16256 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
12080 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
16257 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
12081 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
16258 | if test "${rxvt_cv_ptys+set}" = set; then |
12082 | if test "${rxvt_broken_ximcb+set}" = set; then |
16259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16260 | else |
12084 | else |
16261 | if test x$ac_cv_func_openpty = xyes; then |
12085 | cat >conftest.$ac_ext <<_ACEOF |
16262 | rxvt_cv_ptys=OPENPTY |
12086 | |
16263 | else if test x$ac_cv_func__getpty = xyes; then |
12087 | #include <X11/Xlib.h> |
16264 | rxvt_cv_ptys=SGI4 |
12088 | |
16265 | else if test -c /dev/ttyp20; then |
12089 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
16266 | rxvt_cv_ptys=SCO |
12090 | |
16267 | else if test -c /dev/ptym/clone; then |
12091 | void f() { |
16268 | rxvt_cv_ptys=HPUX |
12092 | XIMCallback cb; |
16269 | else if test x$rxvt_cv_func_getpt = xyes; then |
12093 | cb.callback = im_destroy_cb; |
16270 | rxvt_cv_ptys=GLIBC |
12094 | } |
16271 | else if test -c /dev/ptc -a -c /dev/pts; then |
12095 | |
16272 | rxvt_cv_ptys=PTC |
12096 | _ACEOF |
16273 | else if test -c /dev/ptc -a -d /dev/pts; then |
12097 | rm -f conftest.$ac_objext |
16274 | rxvt_cv_ptys=PTC |
12098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16275 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
12099 | (eval $ac_compile) 2>conftest.er1 |
16276 | rxvt_cv_ptys=STREAMS |
12100 | ac_status=$? |
16277 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
12101 | grep -v '^ *+' conftest.er1 >conftest.err |
16278 | rxvt_cv_ptys=STREAMS |
12102 | rm -f conftest.er1 |
|
|
12103 | cat conftest.err >&5 |
|
|
12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12105 | (exit $ac_status); } && |
|
|
12106 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12108 | (eval $ac_try) 2>&5 |
|
|
12109 | ac_status=$? |
|
|
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12111 | (exit $ac_status); }; } && |
|
|
12112 | { ac_try='test -s conftest.$ac_objext' |
|
|
12113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12114 | (eval $ac_try) 2>&5 |
|
|
12115 | ac_status=$? |
|
|
12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12117 | (exit $ac_status); }; }; then |
|
|
12118 | rxvt_broken_ximcb=yes |
16279 | else |
12119 | else |
16280 | rxvt_cv_ptys=BSD |
12120 | echo "$as_me: failed program was:" >&5 |
16281 | fi |
12121 | sed 's/^/| /' conftest.$ac_ext >&5 |
16282 | fi |
|
|
16283 | fi |
|
|
16284 | fi |
|
|
16285 | fi |
|
|
16286 | fi |
|
|
16287 | fi |
|
|
16288 | fi |
|
|
16289 | fi |
|
|
16290 | |
12122 | |
|
|
12123 | rxvt_broken_ximcb=no |
16291 | fi |
12124 | fi |
|
|
12125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12126 | fi |
16292 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
12127 | echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
16293 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
12128 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6 |
16294 | |
12129 | |
16295 | if test x$rxvt_cv_ptys = xOPENPTY; then |
12130 | if test x$rxvt_broken_ximcb = xyes; then |
16296 | |
12131 | |
16297 | cat >>confdefs.h <<\_ACEOF |
12132 | cat >>confdefs.h <<\_ACEOF |
16298 | #define PTYS_ARE_OPENPTY 1 |
12133 | #define XIMCB_PROTO_BROKEN 1 |
16299 | _ACEOF |
12134 | _ACEOF |
16300 | |
12135 | |
16301 | fi |
12136 | fi |
16302 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
16303 | |
12137 | |
16304 | cat >>confdefs.h <<\_ACEOF |
|
|
16305 | #define PTYS_ARE_NUMERIC 1 |
|
|
16306 | _ACEOF |
|
|
16307 | |
12138 | |
16308 | fi |
|
|
16309 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
16310 | |
12139 | |
16311 | cat >>confdefs.h <<\_ACEOF |
|
|
16312 | #define PTYS_ARE_PTMX 1 |
|
|
16313 | _ACEOF |
|
|
16314 | |
12140 | |
16315 | fi |
|
|
16316 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
16317 | |
12141 | |
16318 | cat >>confdefs.h <<\_ACEOF |
|
|
16319 | #define PTYS_ARE_PTC 1 |
|
|
16320 | _ACEOF |
|
|
16321 | |
12142 | |
16322 | fi |
|
|
16323 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
16324 | |
12143 | |
16325 | cat >>confdefs.h <<\_ACEOF |
12144 | for ac_header in \ |
16326 | #define PTYS_ARE__GETPTY 1 |
12145 | pty.h \ |
16327 | _ACEOF |
12146 | util.h \ |
|
|
12147 | libutil.h \ |
|
|
12148 | sys/ioctl.h \ |
|
|
12149 | sys/stropts.h \ |
16328 | |
12150 | |
16329 | fi |
|
|
16330 | if test x$rxvt_cv_ptys = xCONVEX; then |
|
|
16331 | |
|
|
16332 | cat >>confdefs.h <<\_ACEOF |
|
|
16333 | #define PTYS_ARE_GETPTY 1 |
|
|
16334 | _ACEOF |
|
|
16335 | |
|
|
16336 | fi |
|
|
16337 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
16338 | |
|
|
16339 | cat >>confdefs.h <<\_ACEOF |
|
|
16340 | #define PTYS_ARE_GETPT 1 |
|
|
16341 | _ACEOF |
|
|
16342 | |
|
|
16343 | fi |
|
|
16344 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
16345 | |
|
|
16346 | cat >>confdefs.h <<\_ACEOF |
|
|
16347 | #define PTYS_ARE_CLONE 1 |
|
|
16348 | _ACEOF |
|
|
16349 | |
|
|
16350 | fi |
|
|
16351 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
|
|
16352 | |
|
|
16353 | cat >>confdefs.h <<\_ACEOF |
|
|
16354 | #define PTYS_ARE_SEARCHED 1 |
|
|
16355 | _ACEOF |
|
|
16356 | |
|
|
16357 | fi |
|
|
16358 | |
|
|
16359 | |
|
|
16360 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
16361 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
16362 | ptys=`echo /dev/pty??` |
|
|
16363 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
16364 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
16365 | if test x$pch1 != x; then |
|
|
16366 | |
|
|
16367 | cat >>confdefs.h <<_ACEOF |
|
|
16368 | #define PTYCHAR1 "$pch1" |
|
|
16369 | _ACEOF |
|
|
16370 | |
|
|
16371 | fi |
|
|
16372 | if test x$pch2 != x; then |
|
|
16373 | |
|
|
16374 | cat >>confdefs.h <<_ACEOF |
|
|
16375 | #define PTYCHAR2 "$pch2" |
|
|
16376 | _ACEOF |
|
|
16377 | |
|
|
16378 | fi |
|
|
16379 | |
|
|
16380 | if test x$support_8bitctrls = xyes; then |
|
|
16381 | |
|
|
16382 | cat >>confdefs.h <<\_ACEOF |
|
|
16383 | #define EIGHT_BIT_CONTROLS 1 |
|
|
16384 | _ACEOF |
|
|
16385 | |
|
|
16386 | fi |
|
|
16387 | if test x$support_tinting = xyes; then |
|
|
16388 | |
|
|
16389 | cat >>confdefs.h <<\_ACEOF |
|
|
16390 | #define TINTING 1 |
|
|
16391 | _ACEOF |
|
|
16392 | |
|
|
16393 | fi |
|
|
16394 | if test x$support_inheritpixmap = xyes; then |
|
|
16395 | |
|
|
16396 | cat >>confdefs.h <<\_ACEOF |
|
|
16397 | #define TRANSPARENT 1 |
|
|
16398 | _ACEOF |
|
|
16399 | |
|
|
16400 | fi |
|
|
16401 | if test x$support_keepscrolling = xno; then |
|
|
16402 | |
|
|
16403 | cat >>confdefs.h <<\_ACEOF |
|
|
16404 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
16405 | _ACEOF |
|
|
16406 | |
|
|
16407 | fi |
|
|
16408 | if test x$support_selectionscrolling = xyes; then |
|
|
16409 | |
|
|
16410 | cat >>confdefs.h <<\_ACEOF |
|
|
16411 | #define SELECTION_SCROLLING 1 |
|
|
16412 | _ACEOF |
|
|
16413 | |
|
|
16414 | fi |
|
|
16415 | if test x$support_menubar = xyes; then |
|
|
16416 | |
|
|
16417 | cat >>confdefs.h <<\_ACEOF |
|
|
16418 | #define MENUBAR 1 |
|
|
16419 | _ACEOF |
|
|
16420 | |
|
|
16421 | fi |
|
|
16422 | if test x$support_frills = xno; then |
|
|
16423 | |
|
|
16424 | cat >>confdefs.h <<\_ACEOF |
|
|
16425 | #define NO_FRILLS 1 |
|
|
16426 | _ACEOF |
|
|
16427 | |
|
|
16428 | fi |
|
|
16429 | if test x$support_linespace = xno; then |
|
|
16430 | |
|
|
16431 | cat >>confdefs.h <<\_ACEOF |
|
|
16432 | #define NO_LINESPACE 1 |
|
|
16433 | _ACEOF |
|
|
16434 | |
|
|
16435 | fi |
|
|
16436 | if test x$support_24bit = xyes; then |
|
|
16437 | |
|
|
16438 | cat >>confdefs.h <<\_ACEOF |
|
|
16439 | #define PREFER_24BIT 1 |
|
|
16440 | _ACEOF |
|
|
16441 | |
|
|
16442 | fi |
|
|
16443 | if test x$support_mousewheel = xyes; then |
|
|
16444 | |
|
|
16445 | cat >>confdefs.h <<\_ACEOF |
|
|
16446 | #define MOUSE_WHEEL 1 |
|
|
16447 | _ACEOF |
|
|
16448 | |
|
|
16449 | fi |
|
|
16450 | if test x$support_mouseslipwheel = xyes; then |
|
|
16451 | |
|
|
16452 | cat >>confdefs.h <<\_ACEOF |
|
|
16453 | #define MOUSE_SLIP_WHEELING 1 |
|
|
16454 | _ACEOF |
|
|
16455 | |
|
|
16456 | fi |
|
|
16457 | if test x$support_utmp = xyes; then |
|
|
16458 | |
|
|
16459 | cat >>confdefs.h <<\_ACEOF |
|
|
16460 | #define UTMP_SUPPORT 1 |
|
|
16461 | _ACEOF |
|
|
16462 | |
|
|
16463 | fi |
|
|
16464 | if test x$support_wtmp = xyes; then |
|
|
16465 | |
|
|
16466 | cat >>confdefs.h <<\_ACEOF |
|
|
16467 | #define WTMP_SUPPORT 1 |
|
|
16468 | _ACEOF |
|
|
16469 | |
|
|
16470 | fi |
|
|
16471 | if test x$support_lastlog = xyes; then |
|
|
16472 | |
|
|
16473 | cat >>confdefs.h <<\_ACEOF |
|
|
16474 | #define LASTLOG_SUPPORT 1 |
|
|
16475 | _ACEOF |
|
|
16476 | |
|
|
16477 | fi |
|
|
16478 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
16479 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
16480 | |
|
|
16481 | cat >>confdefs.h <<\_ACEOF |
|
|
16482 | #define USE_XIM 1 |
|
|
16483 | _ACEOF |
|
|
16484 | |
|
|
16485 | fi |
|
|
16486 | fi |
|
|
16487 | if test x$support_xpm = xyes; then |
|
|
16488 | |
|
|
16489 | cat >>confdefs.h <<\_ACEOF |
|
|
16490 | #define XPM_BACKGROUND 1 |
|
|
16491 | _ACEOF |
|
|
16492 | |
|
|
16493 | fi |
|
|
16494 | if test x$support_scroll_rxvt = xyes; then |
|
|
16495 | |
|
|
16496 | cat >>confdefs.h <<\_ACEOF |
|
|
16497 | #define RXVT_SCROLLBAR 1 |
|
|
16498 | _ACEOF |
|
|
16499 | |
|
|
16500 | scrolltypes="rxvt" |
|
|
16501 | fi |
|
|
16502 | if test x$support_scroll_next = xyes; then |
|
|
16503 | |
|
|
16504 | cat >>confdefs.h <<\_ACEOF |
|
|
16505 | #define NEXT_SCROLLBAR 1 |
|
|
16506 | _ACEOF |
|
|
16507 | |
|
|
16508 | scrolltypes="$scrolltypes next" |
|
|
16509 | fi |
|
|
16510 | if test x$support_scroll_xterm = xyes; then |
|
|
16511 | |
|
|
16512 | cat >>confdefs.h <<\_ACEOF |
|
|
16513 | #define XTERM_SCROLLBAR 1 |
|
|
16514 | _ACEOF |
|
|
16515 | |
|
|
16516 | scrolltypes="$scrolltypes xterm" |
|
|
16517 | fi |
|
|
16518 | if test x$support_scroll_plain = xyes; then |
|
|
16519 | |
|
|
16520 | cat >>confdefs.h <<\_ACEOF |
|
|
16521 | #define PLAIN_SCROLLBAR 1 |
|
|
16522 | _ACEOF |
|
|
16523 | |
|
|
16524 | scrolltypes="$scrolltypes plain" |
|
|
16525 | fi |
|
|
16526 | if test x$support_pointer_blank = xyes; then |
|
|
16527 | |
|
|
16528 | cat >>confdefs.h <<\_ACEOF |
|
|
16529 | #define POINTER_BLANK 1 |
|
|
16530 | _ACEOF |
|
|
16531 | |
|
|
16532 | fi |
|
|
16533 | if test x$support_cursor_blink = xyes; then |
|
|
16534 | |
|
|
16535 | cat >>confdefs.h <<\_ACEOF |
|
|
16536 | #define CURSOR_BLINK 1 |
|
|
16537 | _ACEOF |
|
|
16538 | |
|
|
16539 | fi |
|
|
16540 | if test x$support_text_blink = xyes; then |
|
|
16541 | |
|
|
16542 | cat >>confdefs.h <<\_ACEOF |
|
|
16543 | #define TEXT_BLINK 1 |
|
|
16544 | _ACEOF |
|
|
16545 | |
|
|
16546 | fi |
|
|
16547 | if test x$support_unicode3 = xyes; then |
|
|
16548 | |
|
|
16549 | cat >>confdefs.h <<\_ACEOF |
|
|
16550 | #define UNICODE_3 1 |
|
|
16551 | _ACEOF |
|
|
16552 | |
|
|
16553 | fi |
|
|
16554 | if test x$support_combining = xyes; then |
|
|
16555 | |
|
|
16556 | cat >>confdefs.h <<\_ACEOF |
|
|
16557 | #define ENABLE_COMBINING 1 |
|
|
16558 | _ACEOF |
|
|
16559 | |
|
|
16560 | fi |
|
|
16561 | if test x$codesets = xall; then |
|
|
16562 | codesets=jp,jp-ext,kr,cn,cn-ext |
|
|
16563 | fi |
|
|
16564 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
16565 | |
|
|
16566 | cat >>confdefs.h <<\_ACEOF |
|
|
16567 | #define ENCODING_EU 1 |
|
|
16568 | _ACEOF |
|
|
16569 | |
|
|
16570 | |
|
|
16571 | cat >>confdefs.h <<\_ACEOF |
|
|
16572 | #define ENCODING_VN 1 |
|
|
16573 | _ACEOF |
|
|
16574 | |
|
|
16575 | case "$codeset" in |
|
|
16576 | JP ) |
|
|
16577 | cat >>confdefs.h <<\_ACEOF |
|
|
16578 | #define ENCODING_JP 1 |
|
|
16579 | _ACEOF |
|
|
16580 | ;; |
|
|
16581 | JP_EXT ) |
|
|
16582 | cat >>confdefs.h <<\_ACEOF |
|
|
16583 | #define ENCODING_JP_EXT 1 |
|
|
16584 | _ACEOF |
|
|
16585 | ;; |
|
|
16586 | KR ) |
|
|
16587 | cat >>confdefs.h <<\_ACEOF |
|
|
16588 | #define ENCODING_KR 1 |
|
|
16589 | _ACEOF |
|
|
16590 | ;; |
|
|
16591 | CN ) |
|
|
16592 | cat >>confdefs.h <<\_ACEOF |
|
|
16593 | #define ENCODING_CN 1 |
|
|
16594 | _ACEOF |
|
|
16595 | ;; |
|
|
16596 | CN_EXT ) |
|
|
16597 | cat >>confdefs.h <<\_ACEOF |
|
|
16598 | #define ENCODING_CN_EXT 1 |
|
|
16599 | _ACEOF |
|
|
16600 | ;; |
|
|
16601 | esac |
|
|
16602 | done |
|
|
16603 | |
|
|
16604 | |
|
|
16605 | CFLAGS=${CFLAGS--O} |
|
|
16606 | LDFLAGS=${LDFLAGS--O} |
|
|
16607 | |
|
|
16608 | CPPFLAGS="$CPPFLAGS" |
|
|
16609 | |
|
|
16610 | |
|
|
16611 | |
|
|
16612 | |
|
|
16613 | |
|
|
16614 | |
|
|
16615 | |
|
|
16616 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
16617 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
16618 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
16619 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
16620 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
16621 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
16622 | fi |
|
|
16623 | |
|
|
16624 | |
|
|
16625 | |
|
|
16626 | |
|
|
16627 | |
|
|
16628 | if test x$support_addstrings = xno; then |
|
|
16629 | |
|
|
16630 | cat >>confdefs.h <<\_ACEOF |
|
|
16631 | #define NO_STRINGS 1 |
|
|
16632 | _ACEOF |
|
|
16633 | |
|
|
16634 | fi |
|
|
16635 | |
|
|
16636 | MCOMMON=./autoconf/Make.common |
|
|
16637 | |
|
|
16638 | |
|
|
16639 | test "$program_prefix" != NONE && |
|
|
16640 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
16641 | # Use a double $ so make ignores it. |
|
|
16642 | test "$program_suffix" != NONE && |
|
|
16643 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
16644 | # Double any \ or $. echo might interpret backslashes. |
|
|
16645 | # By default was `s,x,x', remove it if useless. |
|
|
16646 | cat <<\_ACEOF >conftest.sed |
|
|
16647 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
16648 | _ACEOF |
|
|
16649 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
16650 | rm conftest.sed |
|
|
16651 | |
|
|
16652 | |
|
|
16653 | |
|
|
16654 | |
|
|
16655 | |
|
|
16656 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16657 | include_stdint_h="#include <stdint.h>" |
|
|
16658 | else |
|
|
16659 | include_stdint_h="/* #include <stdint.h> */" |
|
|
16660 | fi |
|
|
16661 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16662 | include_stdarg_h="#include <cstdarg>" |
|
|
16663 | else |
|
|
16664 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
16665 | fi |
|
|
16666 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16667 | include_stdlib_h="#include <cstdlib>" |
|
|
16668 | else |
|
|
16669 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
16670 | fi |
|
|
16671 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16672 | include_unistd_h="#include <unistd.h>" |
|
|
16673 | else |
|
|
16674 | include_unistd_h="/* #include <unistd.h> */" |
|
|
16675 | fi |
|
|
16676 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16677 | include_string_h="#include <cstring>" |
|
|
16678 | else |
|
|
16679 | include_string_h="/* #include <cstring> */" |
|
|
16680 | fi |
|
|
16681 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16682 | include_fcntl_h="#include <fcntl.h>" |
|
|
16683 | else |
|
|
16684 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
16685 | fi |
|
|
16686 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16687 | include_util_h="#include <util.h>" |
|
|
16688 | else |
|
|
16689 | include_util_h="/* #include <util.h> */" |
|
|
16690 | fi |
|
|
16691 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16692 | include_assert_h="#include <assert.h>" |
|
|
16693 | else |
|
|
16694 | include_assert_h="/* #include <assert.h> */" |
|
|
16695 | fi |
|
|
16696 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16697 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
16698 | else |
|
|
16699 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
16700 | fi |
|
|
16701 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16702 | include_sys_select_h="#include <sys/select.h>" |
|
|
16703 | else |
|
|
16704 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
16705 | fi |
|
|
16706 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16707 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
16708 | else |
|
|
16709 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
16710 | fi |
|
|
16711 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16712 | include_sys_time_h="#include <sys/time.h>" |
|
|
16713 | else |
|
|
16714 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
16715 | fi |
|
|
16716 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
16717 | include_time_h="#include <time.h>" |
|
|
16718 | else |
|
|
16719 | include_time_h="/* #include <time.h> */" |
|
|
16720 | fi |
|
|
16721 | |
|
|
16722 | if test x$support_xft = xyes; then |
|
|
16723 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
16724 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
16725 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
16726 | |
|
|
16727 | |
|
|
16728 | for ac_header in X11/Xft/Xft.h |
|
|
16729 | do |
12151 | do |
16730 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12152 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12153 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16732 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12154 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
… | |
… | |
16867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12289 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
16868 | cat >>confdefs.h <<_ACEOF |
12290 | cat >>confdefs.h <<_ACEOF |
16869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12291 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
16870 | _ACEOF |
12292 | _ACEOF |
16871 | |
12293 | |
|
|
12294 | fi |
|
|
12295 | |
|
|
12296 | done |
|
|
12297 | |
|
|
12298 | |
|
|
12299 | |
|
|
12300 | |
|
|
12301 | |
|
|
12302 | |
|
|
12303 | |
|
|
12304 | for ac_func in \ |
|
|
12305 | revoke \ |
|
|
12306 | _getpty \ |
|
|
12307 | getpt \ |
|
|
12308 | posix_openpt \ |
|
|
12309 | isastream \ |
|
|
12310 | |
|
|
12311 | do |
|
|
12312 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12313 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12314 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12315 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12317 | else |
|
|
12318 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12319 | /* confdefs.h. */ |
|
|
12320 | _ACEOF |
|
|
12321 | cat confdefs.h >>conftest.$ac_ext |
|
|
12322 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12323 | /* end confdefs.h. */ |
|
|
12324 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12325 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12326 | #define $ac_func innocuous_$ac_func |
|
|
12327 | |
|
|
12328 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12329 | which can conflict with char $ac_func (); below. |
|
|
12330 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12331 | <limits.h> exists even on freestanding compilers. */ |
|
|
12332 | |
|
|
12333 | #ifdef __STDC__ |
|
|
12334 | # include <limits.h> |
|
|
12335 | #else |
|
|
12336 | # include <assert.h> |
|
|
12337 | #endif |
|
|
12338 | |
|
|
12339 | #undef $ac_func |
|
|
12340 | |
|
|
12341 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12342 | #ifdef __cplusplus |
|
|
12343 | extern "C" |
|
|
12344 | { |
|
|
12345 | #endif |
|
|
12346 | /* We use char because int might match the return type of a gcc2 |
|
|
12347 | builtin and then its argument prototype would still apply. */ |
|
|
12348 | char $ac_func (); |
|
|
12349 | /* The GNU C library defines this for functions which it implements |
|
|
12350 | to always fail with ENOSYS. Some functions are actually named |
|
|
12351 | something starting with __ and the normal name is an alias. */ |
|
|
12352 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12353 | choke me |
|
|
12354 | #else |
|
|
12355 | char (*f) () = $ac_func; |
|
|
12356 | #endif |
|
|
12357 | #ifdef __cplusplus |
|
|
12358 | } |
|
|
12359 | #endif |
|
|
12360 | |
|
|
12361 | int |
|
|
12362 | main () |
|
|
12363 | { |
|
|
12364 | return f != $ac_func; |
|
|
12365 | ; |
|
|
12366 | return 0; |
|
|
12367 | } |
|
|
12368 | _ACEOF |
|
|
12369 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12371 | (eval $ac_link) 2>conftest.er1 |
|
|
12372 | ac_status=$? |
|
|
12373 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12374 | rm -f conftest.er1 |
|
|
12375 | cat conftest.err >&5 |
|
|
12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12377 | (exit $ac_status); } && |
|
|
12378 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12380 | (eval $ac_try) 2>&5 |
|
|
12381 | ac_status=$? |
|
|
12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12383 | (exit $ac_status); }; } && |
|
|
12384 | { ac_try='test -s conftest$ac_exeext' |
|
|
12385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12386 | (eval $ac_try) 2>&5 |
|
|
12387 | ac_status=$? |
|
|
12388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12389 | (exit $ac_status); }; }; then |
|
|
12390 | eval "$as_ac_var=yes" |
|
|
12391 | else |
|
|
12392 | echo "$as_me: failed program was:" >&5 |
|
|
12393 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12394 | |
|
|
12395 | eval "$as_ac_var=no" |
|
|
12396 | fi |
|
|
12397 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12398 | conftest$ac_exeext conftest.$ac_ext |
|
|
12399 | fi |
|
|
12400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12401 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12402 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12403 | cat >>confdefs.h <<_ACEOF |
|
|
12404 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12405 | _ACEOF |
|
|
12406 | |
|
|
12407 | fi |
|
|
12408 | done |
|
|
12409 | |
|
|
12410 | |
|
|
12411 | have_clone=no |
|
|
12412 | |
|
|
12413 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12414 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12415 | if test -e /dev/ptym/clone; then |
|
|
12416 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12417 | echo "${ECHO_T}yes" >&6 |
|
|
12418 | |
|
|
12419 | cat >>confdefs.h <<\_ACEOF |
|
|
12420 | #define HAVE_DEV_CLONE 1 |
|
|
12421 | _ACEOF |
|
|
12422 | |
|
|
12423 | |
|
|
12424 | cat >>confdefs.h <<\_ACEOF |
|
|
12425 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12426 | _ACEOF |
|
|
12427 | |
|
|
12428 | have_clone=yes |
|
|
12429 | else |
|
|
12430 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12431 | echo "${ECHO_T}no" >&6 |
|
|
12432 | fi |
|
|
12433 | |
|
|
12434 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12435 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12436 | if test -e /dev/ptc; then |
|
|
12437 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12438 | echo "${ECHO_T}yes" >&6 |
|
|
12439 | |
|
|
12440 | cat >>confdefs.h <<\_ACEOF |
|
|
12441 | #define HAVE_DEV_PTC 1 |
|
|
12442 | _ACEOF |
|
|
12443 | |
|
|
12444 | |
|
|
12445 | cat >>confdefs.h <<\_ACEOF |
|
|
12446 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12447 | _ACEOF |
|
|
12448 | |
|
|
12449 | have_clone=yes |
|
|
12450 | else |
|
|
12451 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12452 | echo "${ECHO_T}no" >&6 |
|
|
12453 | fi |
|
|
12454 | |
|
|
12455 | case $host in |
|
|
12456 | *-*-cygwin*) |
|
|
12457 | have_clone=yes |
|
|
12458 | |
|
|
12459 | cat >>confdefs.h <<\_ACEOF |
|
|
12460 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12461 | _ACEOF |
|
|
12462 | |
|
|
12463 | ;; |
|
|
12464 | *) |
|
|
12465 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12466 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12467 | if test -e /dev/ptmx; then |
|
|
12468 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12469 | echo "${ECHO_T}yes" >&6 |
|
|
12470 | |
|
|
12471 | cat >>confdefs.h <<\_ACEOF |
|
|
12472 | #define HAVE_DEV_PTMX 1 |
|
|
12473 | _ACEOF |
|
|
12474 | |
|
|
12475 | |
|
|
12476 | cat >>confdefs.h <<\_ACEOF |
|
|
12477 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12478 | _ACEOF |
|
|
12479 | |
|
|
12480 | have_clone=yes |
|
|
12481 | else |
|
|
12482 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12483 | echo "${ECHO_T}no" >&6 |
|
|
12484 | fi |
|
|
12485 | ;; |
|
|
12486 | esac |
|
|
12487 | |
|
|
12488 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12489 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12490 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12491 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12492 | /* confdefs.h. */ |
|
|
12493 | _ACEOF |
|
|
12494 | cat confdefs.h >>conftest.$ac_ext |
|
|
12495 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12496 | /* end confdefs.h. */ |
|
|
12497 | #include <stdlib.h> |
|
|
12498 | int |
|
|
12499 | main () |
|
|
12500 | { |
|
|
12501 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12502 | ; |
|
|
12503 | return 0; |
|
|
12504 | } |
|
|
12505 | _ACEOF |
|
|
12506 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12508 | (eval $ac_link) 2>conftest.er1 |
|
|
12509 | ac_status=$? |
|
|
12510 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12511 | rm -f conftest.er1 |
|
|
12512 | cat conftest.err >&5 |
|
|
12513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12514 | (exit $ac_status); } && |
|
|
12515 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12517 | (eval $ac_try) 2>&5 |
|
|
12518 | ac_status=$? |
|
|
12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12520 | (exit $ac_status); }; } && |
|
|
12521 | { ac_try='test -s conftest$ac_exeext' |
|
|
12522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12523 | (eval $ac_try) 2>&5 |
|
|
12524 | ac_status=$? |
|
|
12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12526 | (exit $ac_status); }; }; then |
|
|
12527 | unix98_pty=yes |
|
|
12528 | |
|
|
12529 | cat >>confdefs.h <<\_ACEOF |
|
|
12530 | #define UNIX98_PTY 1 |
|
|
12531 | _ACEOF |
|
|
12532 | |
|
|
12533 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12534 | echo "${ECHO_T}yes" >&6 |
|
|
12535 | else |
|
|
12536 | echo "$as_me: failed program was:" >&5 |
|
|
12537 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12538 | |
|
|
12539 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12540 | echo "${ECHO_T}no" >&6 |
|
|
12541 | fi |
|
|
12542 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12543 | conftest$ac_exeext conftest.$ac_ext |
|
|
12544 | fi |
|
|
12545 | |
|
|
12546 | if test -z "$unix98_pty"; then |
|
|
12547 | |
|
|
12548 | for ac_func in openpty |
|
|
12549 | do |
|
|
12550 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12551 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12552 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12553 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12555 | else |
|
|
12556 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12557 | /* confdefs.h. */ |
|
|
12558 | _ACEOF |
|
|
12559 | cat confdefs.h >>conftest.$ac_ext |
|
|
12560 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12561 | /* end confdefs.h. */ |
|
|
12562 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12563 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12564 | #define $ac_func innocuous_$ac_func |
|
|
12565 | |
|
|
12566 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12567 | which can conflict with char $ac_func (); below. |
|
|
12568 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12569 | <limits.h> exists even on freestanding compilers. */ |
|
|
12570 | |
|
|
12571 | #ifdef __STDC__ |
|
|
12572 | # include <limits.h> |
|
|
12573 | #else |
|
|
12574 | # include <assert.h> |
|
|
12575 | #endif |
|
|
12576 | |
|
|
12577 | #undef $ac_func |
|
|
12578 | |
|
|
12579 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12580 | #ifdef __cplusplus |
|
|
12581 | extern "C" |
|
|
12582 | { |
|
|
12583 | #endif |
|
|
12584 | /* We use char because int might match the return type of a gcc2 |
|
|
12585 | builtin and then its argument prototype would still apply. */ |
|
|
12586 | char $ac_func (); |
|
|
12587 | /* The GNU C library defines this for functions which it implements |
|
|
12588 | to always fail with ENOSYS. Some functions are actually named |
|
|
12589 | something starting with __ and the normal name is an alias. */ |
|
|
12590 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12591 | choke me |
|
|
12592 | #else |
|
|
12593 | char (*f) () = $ac_func; |
|
|
12594 | #endif |
|
|
12595 | #ifdef __cplusplus |
|
|
12596 | } |
|
|
12597 | #endif |
|
|
12598 | |
|
|
12599 | int |
|
|
12600 | main () |
|
|
12601 | { |
|
|
12602 | return f != $ac_func; |
|
|
12603 | ; |
|
|
12604 | return 0; |
|
|
12605 | } |
|
|
12606 | _ACEOF |
|
|
12607 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12609 | (eval $ac_link) 2>conftest.er1 |
|
|
12610 | ac_status=$? |
|
|
12611 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12612 | rm -f conftest.er1 |
|
|
12613 | cat conftest.err >&5 |
|
|
12614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12615 | (exit $ac_status); } && |
|
|
12616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12618 | (eval $ac_try) 2>&5 |
|
|
12619 | ac_status=$? |
|
|
12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12621 | (exit $ac_status); }; } && |
|
|
12622 | { ac_try='test -s conftest$ac_exeext' |
|
|
12623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12624 | (eval $ac_try) 2>&5 |
|
|
12625 | ac_status=$? |
|
|
12626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12627 | (exit $ac_status); }; }; then |
|
|
12628 | eval "$as_ac_var=yes" |
|
|
12629 | else |
|
|
12630 | echo "$as_me: failed program was:" >&5 |
|
|
12631 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12632 | |
|
|
12633 | eval "$as_ac_var=no" |
|
|
12634 | fi |
|
|
12635 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12636 | conftest$ac_exeext conftest.$ac_ext |
|
|
12637 | fi |
|
|
12638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12639 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12640 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12641 | cat >>confdefs.h <<_ACEOF |
|
|
12642 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12643 | _ACEOF |
|
|
12644 | |
|
|
12645 | else |
|
|
12646 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12647 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12648 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12650 | else |
|
|
12651 | ac_check_lib_save_LIBS=$LIBS |
|
|
12652 | LIBS="-lutil $LIBS" |
|
|
12653 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12654 | /* confdefs.h. */ |
|
|
12655 | _ACEOF |
|
|
12656 | cat confdefs.h >>conftest.$ac_ext |
|
|
12657 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12658 | /* end confdefs.h. */ |
|
|
12659 | |
|
|
12660 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12661 | #ifdef __cplusplus |
|
|
12662 | extern "C" |
|
|
12663 | #endif |
|
|
12664 | /* We use char because int might match the return type of a gcc2 |
|
|
12665 | builtin and then its argument prototype would still apply. */ |
|
|
12666 | char openpty (); |
|
|
12667 | int |
|
|
12668 | main () |
|
|
12669 | { |
|
|
12670 | openpty (); |
|
|
12671 | ; |
|
|
12672 | return 0; |
|
|
12673 | } |
|
|
12674 | _ACEOF |
|
|
12675 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12677 | (eval $ac_link) 2>conftest.er1 |
|
|
12678 | ac_status=$? |
|
|
12679 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12680 | rm -f conftest.er1 |
|
|
12681 | cat conftest.err >&5 |
|
|
12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12683 | (exit $ac_status); } && |
|
|
12684 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12686 | (eval $ac_try) 2>&5 |
|
|
12687 | ac_status=$? |
|
|
12688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12689 | (exit $ac_status); }; } && |
|
|
12690 | { ac_try='test -s conftest$ac_exeext' |
|
|
12691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12692 | (eval $ac_try) 2>&5 |
|
|
12693 | ac_status=$? |
|
|
12694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12695 | (exit $ac_status); }; }; then |
|
|
12696 | ac_cv_lib_util_openpty=yes |
|
|
12697 | else |
|
|
12698 | echo "$as_me: failed program was:" >&5 |
|
|
12699 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12700 | |
|
|
12701 | ac_cv_lib_util_openpty=no |
|
|
12702 | fi |
|
|
12703 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12704 | conftest$ac_exeext conftest.$ac_ext |
|
|
12705 | LIBS=$ac_check_lib_save_LIBS |
|
|
12706 | fi |
|
|
12707 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12708 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12709 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12710 | cat >>confdefs.h <<\_ACEOF |
|
|
12711 | #define HAVE_OPENPTY 1 |
|
|
12712 | _ACEOF |
|
|
12713 | LIBS="$LIBS -lutil" |
|
|
12714 | fi |
|
|
12715 | |
|
|
12716 | fi |
|
|
12717 | done |
|
|
12718 | |
|
|
12719 | fi |
|
|
12720 | |
|
|
12721 | |
|
|
12722 | if test x$support_xft = xyes; then |
|
|
12723 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
12724 | set dummy pkg-config; ac_word=$2 |
|
|
12725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12727 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
|
|
12728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12729 | else |
|
|
12730 | case $PKG_CONFIG in |
|
|
12731 | [\\/]* | ?:[\\/]*) |
|
|
12732 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
|
12733 | ;; |
|
|
12734 | *) |
|
|
12735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12736 | for as_dir in $PATH |
|
|
12737 | do |
|
|
12738 | IFS=$as_save_IFS |
|
|
12739 | test -z "$as_dir" && as_dir=. |
|
|
12740 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12742 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12744 | break 2 |
|
|
12745 | fi |
|
|
12746 | done |
|
|
12747 | done |
|
|
12748 | |
|
|
12749 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
12750 | ;; |
|
|
12751 | esac |
|
|
12752 | fi |
|
|
12753 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
12754 | |
|
|
12755 | if test -n "$PKG_CONFIG"; then |
|
|
12756 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
12757 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
|
|
12758 | else |
|
|
12759 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12760 | echo "${ECHO_T}no" >&6 |
|
|
12761 | fi |
|
|
12762 | |
|
|
12763 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
12764 | set dummy xft-config; ac_word=$2 |
|
|
12765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12767 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
|
|
12768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12769 | else |
|
|
12770 | case $XFT_CONFIG in |
|
|
12771 | [\\/]* | ?:[\\/]*) |
|
|
12772 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
12773 | ;; |
|
|
12774 | *) |
|
|
12775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12776 | for as_dir in $PATH |
|
|
12777 | do |
|
|
12778 | IFS=$as_save_IFS |
|
|
12779 | test -z "$as_dir" && as_dir=. |
|
|
12780 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12782 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12784 | break 2 |
|
|
12785 | fi |
|
|
12786 | done |
|
|
12787 | done |
|
|
12788 | |
|
|
12789 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
12790 | ;; |
|
|
12791 | esac |
|
|
12792 | fi |
|
|
12793 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
12794 | |
|
|
12795 | if test -n "$XFT_CONFIG"; then |
|
|
12796 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
|
|
12797 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
|
|
12798 | else |
|
|
12799 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12800 | echo "${ECHO_T}no" >&6 |
|
|
12801 | fi |
|
|
12802 | |
|
|
12803 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
12804 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
|
|
12805 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
|
|
12806 | else |
|
|
12807 | if test $XFT_CONFIG != no; then |
|
|
12808 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
|
|
12809 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
12810 | fi |
|
|
12811 | fi |
|
|
12812 | |
|
|
12813 | |
|
|
12814 | for ac_header in X11/Xft/Xft.h |
|
|
12815 | do |
|
|
12816 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12817 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12818 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12819 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12820 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12822 | fi |
|
|
12823 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12824 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12825 | else |
|
|
12826 | # Is the header compilable? |
|
|
12827 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12828 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12829 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12830 | /* confdefs.h. */ |
|
|
12831 | _ACEOF |
|
|
12832 | cat confdefs.h >>conftest.$ac_ext |
|
|
12833 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12834 | /* end confdefs.h. */ |
|
|
12835 | $ac_includes_default |
|
|
12836 | #include <$ac_header> |
|
|
12837 | _ACEOF |
|
|
12838 | rm -f conftest.$ac_objext |
|
|
12839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12840 | (eval $ac_compile) 2>conftest.er1 |
|
|
12841 | ac_status=$? |
|
|
12842 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12843 | rm -f conftest.er1 |
|
|
12844 | cat conftest.err >&5 |
|
|
12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12846 | (exit $ac_status); } && |
|
|
12847 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12849 | (eval $ac_try) 2>&5 |
|
|
12850 | ac_status=$? |
|
|
12851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12852 | (exit $ac_status); }; } && |
|
|
12853 | { ac_try='test -s conftest.$ac_objext' |
|
|
12854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12855 | (eval $ac_try) 2>&5 |
|
|
12856 | ac_status=$? |
|
|
12857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12858 | (exit $ac_status); }; }; then |
|
|
12859 | ac_header_compiler=yes |
|
|
12860 | else |
|
|
12861 | echo "$as_me: failed program was:" >&5 |
|
|
12862 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12863 | |
|
|
12864 | ac_header_compiler=no |
|
|
12865 | fi |
|
|
12866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12867 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12868 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12869 | |
|
|
12870 | # Is the header present? |
|
|
12871 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12872 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12873 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12874 | /* confdefs.h. */ |
|
|
12875 | _ACEOF |
|
|
12876 | cat confdefs.h >>conftest.$ac_ext |
|
|
12877 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12878 | /* end confdefs.h. */ |
|
|
12879 | #include <$ac_header> |
|
|
12880 | _ACEOF |
|
|
12881 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12882 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12883 | ac_status=$? |
|
|
12884 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12885 | rm -f conftest.er1 |
|
|
12886 | cat conftest.err >&5 |
|
|
12887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12888 | (exit $ac_status); } >/dev/null; then |
|
|
12889 | if test -s conftest.err; then |
|
|
12890 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12891 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12892 | else |
|
|
12893 | ac_cpp_err= |
|
|
12894 | fi |
|
|
12895 | else |
|
|
12896 | ac_cpp_err=yes |
|
|
12897 | fi |
|
|
12898 | if test -z "$ac_cpp_err"; then |
|
|
12899 | ac_header_preproc=yes |
|
|
12900 | else |
|
|
12901 | echo "$as_me: failed program was:" >&5 |
|
|
12902 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12903 | |
|
|
12904 | ac_header_preproc=no |
|
|
12905 | fi |
|
|
12906 | rm -f conftest.err conftest.$ac_ext |
|
|
12907 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12908 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12909 | |
|
|
12910 | # So? What about this header? |
|
|
12911 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12912 | yes:no: ) |
|
|
12913 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12914 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12915 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12916 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12917 | ac_header_preproc=yes |
|
|
12918 | ;; |
|
|
12919 | no:yes:* ) |
|
|
12920 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12921 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12922 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12923 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12924 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12925 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12926 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12927 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12928 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12929 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12930 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12931 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12932 | ( |
|
|
12933 | cat <<\_ASBOX |
|
|
12934 | ## ------------------------------------------ ## |
|
|
12935 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12936 | ## ------------------------------------------ ## |
|
|
12937 | _ASBOX |
|
|
12938 | ) | |
|
|
12939 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12940 | ;; |
|
|
12941 | esac |
|
|
12942 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12943 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12944 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12946 | else |
|
|
12947 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12948 | fi |
|
|
12949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12951 | |
|
|
12952 | fi |
|
|
12953 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12954 | cat >>confdefs.h <<_ACEOF |
|
|
12955 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12956 | _ACEOF |
|
|
12957 | |
16872 | else |
12958 | else |
16873 | support_xft=no |
12959 | support_xft=no |
16874 | fi |
12960 | fi |
16875 | |
12961 | |
16876 | done |
12962 | done |
… | |
… | |
16957 | #define XFT 1 |
13043 | #define XFT 1 |
16958 | _ACEOF |
13044 | _ACEOF |
16959 | |
13045 | |
16960 | fi |
13046 | fi |
16961 | fi |
13047 | fi |
|
|
13048 | if test x$support_styles = xyes; then |
16962 | |
13049 | |
|
|
13050 | cat >>confdefs.h <<\_ACEOF |
|
|
13051 | #define ENABLE_STYLES 1 |
|
|
13052 | _ACEOF |
|
|
13053 | |
|
|
13054 | fi |
|
|
13055 | if test x$support_iso14755 = xyes; then |
|
|
13056 | |
|
|
13057 | cat >>confdefs.h <<\_ACEOF |
|
|
13058 | #define ISO_14755 1 |
|
|
13059 | _ACEOF |
|
|
13060 | |
|
|
13061 | fi |
|
|
13062 | if test x$support_8bitctrls = xyes; then |
|
|
13063 | |
|
|
13064 | cat >>confdefs.h <<\_ACEOF |
|
|
13065 | #define EIGHT_BIT_CONTROLS 1 |
|
|
13066 | _ACEOF |
|
|
13067 | |
|
|
13068 | fi |
|
|
13069 | if test x$support_fading = xyes; then |
|
|
13070 | |
|
|
13071 | cat >>confdefs.h <<\_ACEOF |
|
|
13072 | #define OFF_FOCUS_FADING 1 |
|
|
13073 | _ACEOF |
|
|
13074 | |
|
|
13075 | fi |
|
|
13076 | if test x$support_tinting = xyes; then |
|
|
13077 | |
|
|
13078 | cat >>confdefs.h <<\_ACEOF |
|
|
13079 | #define TINTING 1 |
|
|
13080 | _ACEOF |
|
|
13081 | |
|
|
13082 | fi |
|
|
13083 | if test x$support_inheritpixmap = xyes; then |
|
|
13084 | |
|
|
13085 | cat >>confdefs.h <<\_ACEOF |
|
|
13086 | #define TRANSPARENT 1 |
|
|
13087 | _ACEOF |
|
|
13088 | |
|
|
13089 | fi |
|
|
13090 | if test x$support_keepscrolling = xno; then |
|
|
13091 | |
|
|
13092 | cat >>confdefs.h <<\_ACEOF |
|
|
13093 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
13094 | _ACEOF |
|
|
13095 | |
|
|
13096 | fi |
|
|
13097 | if test x$support_selectionscrolling = xyes; then |
|
|
13098 | |
|
|
13099 | cat >>confdefs.h <<\_ACEOF |
|
|
13100 | #define SELECTION_SCROLLING 1 |
|
|
13101 | _ACEOF |
|
|
13102 | |
|
|
13103 | fi |
|
|
13104 | if test x$support_frills = xyes; then |
|
|
13105 | |
|
|
13106 | cat >>confdefs.h <<\_ACEOF |
|
|
13107 | #define ENABLE_FRILLS 1 |
|
|
13108 | _ACEOF |
|
|
13109 | |
|
|
13110 | fi |
|
|
13111 | if test x$support_24bit = xyes; then |
|
|
13112 | |
|
|
13113 | cat >>confdefs.h <<\_ACEOF |
|
|
13114 | #define PREFER_24BIT 1 |
|
|
13115 | _ACEOF |
|
|
13116 | |
|
|
13117 | fi |
|
|
13118 | if test x$support_mousewheel = xyes; then |
|
|
13119 | |
|
|
13120 | cat >>confdefs.h <<\_ACEOF |
|
|
13121 | #define MOUSE_WHEEL 1 |
|
|
13122 | _ACEOF |
|
|
13123 | |
|
|
13124 | fi |
|
|
13125 | if test x$support_mouseslipwheel = xyes; then |
|
|
13126 | |
|
|
13127 | cat >>confdefs.h <<\_ACEOF |
|
|
13128 | #define MOUSE_SLIP_WHEELING 1 |
|
|
13129 | _ACEOF |
|
|
13130 | |
|
|
13131 | fi |
|
|
13132 | if test x$support_utmp = xyes; then |
|
|
13133 | |
|
|
13134 | cat >>confdefs.h <<\_ACEOF |
|
|
13135 | #define UTMP_SUPPORT 1 |
|
|
13136 | _ACEOF |
|
|
13137 | |
|
|
13138 | fi |
|
|
13139 | if test x$support_wtmp = xyes; then |
|
|
13140 | |
|
|
13141 | cat >>confdefs.h <<\_ACEOF |
|
|
13142 | #define WTMP_SUPPORT 1 |
|
|
13143 | _ACEOF |
|
|
13144 | |
|
|
13145 | fi |
|
|
13146 | if test x$support_lastlog = xyes; then |
|
|
13147 | |
|
|
13148 | cat >>confdefs.h <<\_ACEOF |
|
|
13149 | #define LASTLOG_SUPPORT 1 |
|
|
13150 | _ACEOF |
|
|
13151 | |
|
|
13152 | fi |
|
|
13153 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
13154 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
13155 | |
|
|
13156 | cat >>confdefs.h <<\_ACEOF |
|
|
13157 | #define USE_XIM 1 |
|
|
13158 | _ACEOF |
|
|
13159 | |
|
|
13160 | fi |
|
|
13161 | fi |
|
|
13162 | if test x$support_xpm = xyes; then |
|
|
13163 | |
|
|
13164 | cat >>confdefs.h <<\_ACEOF |
|
|
13165 | #define XPM_BACKGROUND 1 |
|
|
13166 | _ACEOF |
|
|
13167 | |
|
|
13168 | fi |
|
|
13169 | if test x$support_scroll_rxvt = xyes; then |
|
|
13170 | |
|
|
13171 | cat >>confdefs.h <<\_ACEOF |
|
|
13172 | #define RXVT_SCROLLBAR 1 |
|
|
13173 | _ACEOF |
|
|
13174 | |
|
|
13175 | scrolltypes="rxvt" |
|
|
13176 | fi |
|
|
13177 | if test x$support_scroll_next = xyes; then |
|
|
13178 | |
|
|
13179 | cat >>confdefs.h <<\_ACEOF |
|
|
13180 | #define NEXT_SCROLLBAR 1 |
|
|
13181 | _ACEOF |
|
|
13182 | |
|
|
13183 | scrolltypes="$scrolltypes next" |
|
|
13184 | fi |
|
|
13185 | if test x$support_scroll_xterm = xyes; then |
|
|
13186 | |
|
|
13187 | cat >>confdefs.h <<\_ACEOF |
|
|
13188 | #define XTERM_SCROLLBAR 1 |
|
|
13189 | _ACEOF |
|
|
13190 | |
|
|
13191 | scrolltypes="$scrolltypes xterm" |
|
|
13192 | fi |
|
|
13193 | if test x$support_scroll_plain = xyes; then |
|
|
13194 | |
|
|
13195 | cat >>confdefs.h <<\_ACEOF |
|
|
13196 | #define PLAIN_SCROLLBAR 1 |
|
|
13197 | _ACEOF |
|
|
13198 | |
|
|
13199 | scrolltypes="$scrolltypes plain" |
|
|
13200 | fi |
|
|
13201 | if test x$support_pointer_blank = xyes; then |
|
|
13202 | |
|
|
13203 | cat >>confdefs.h <<\_ACEOF |
|
|
13204 | #define POINTER_BLANK 1 |
|
|
13205 | _ACEOF |
|
|
13206 | |
|
|
13207 | fi |
|
|
13208 | if test x$support_text_blink = xyes; then |
|
|
13209 | |
|
|
13210 | cat >>confdefs.h <<\_ACEOF |
|
|
13211 | #define TEXT_BLINK 1 |
|
|
13212 | _ACEOF |
|
|
13213 | |
|
|
13214 | fi |
|
|
13215 | if test x$support_unicode3 = xyes; then |
|
|
13216 | |
|
|
13217 | cat >>confdefs.h <<\_ACEOF |
|
|
13218 | #define UNICODE_3 1 |
|
|
13219 | _ACEOF |
|
|
13220 | |
|
|
13221 | fi |
|
|
13222 | if test x$support_combining = xyes; then |
|
|
13223 | |
|
|
13224 | cat >>confdefs.h <<\_ACEOF |
|
|
13225 | #define ENABLE_COMBINING 1 |
|
|
13226 | _ACEOF |
|
|
13227 | |
|
|
13228 | fi |
|
|
13229 | if test x$codesets = xall; then |
|
|
13230 | codesets=jp,jp-ext,kr,zh,zh-ext |
|
|
13231 | fi |
|
|
13232 | |
|
|
13233 | cat >>confdefs.h <<\_ACEOF |
|
|
13234 | #define ENCODING_EU 1 |
|
|
13235 | _ACEOF |
|
|
13236 | |
|
|
13237 | |
|
|
13238 | cat >>confdefs.h <<\_ACEOF |
|
|
13239 | #define ENCODING_VN 1 |
|
|
13240 | _ACEOF |
|
|
13241 | |
|
|
13242 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
13243 | case "$codeset" in |
|
|
13244 | JP ) |
|
|
13245 | cat >>confdefs.h <<\_ACEOF |
|
|
13246 | #define ENCODING_JP 1 |
|
|
13247 | _ACEOF |
|
|
13248 | ;; |
|
|
13249 | JP_EXT ) |
|
|
13250 | cat >>confdefs.h <<\_ACEOF |
|
|
13251 | #define ENCODING_JP_EXT 1 |
|
|
13252 | _ACEOF |
|
|
13253 | ;; |
|
|
13254 | KR ) |
|
|
13255 | cat >>confdefs.h <<\_ACEOF |
|
|
13256 | #define ENCODING_KR 1 |
|
|
13257 | _ACEOF |
|
|
13258 | ;; |
|
|
13259 | ZH ) |
|
|
13260 | cat >>confdefs.h <<\_ACEOF |
|
|
13261 | #define ENCODING_ZH 1 |
|
|
13262 | _ACEOF |
|
|
13263 | ;; |
|
|
13264 | ZH_EXT ) |
|
|
13265 | cat >>confdefs.h <<\_ACEOF |
|
|
13266 | #define ENCODING_ZH_EXT 1 |
|
|
13267 | _ACEOF |
|
|
13268 | ;; |
|
|
13269 | esac |
|
|
13270 | done |
|
|
13271 | |
|
|
13272 | IF_PERL=\# |
|
|
13273 | if test x$support_perl = xyes; then |
|
|
13274 | # Extract the first word of "perl5", so it can be a program name with args. |
|
|
13275 | set dummy perl5; ac_word=$2 |
|
|
13276 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13278 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13280 | else |
|
|
13281 | case $PERL in |
|
|
13282 | [\\/]* | ?:[\\/]*) |
|
|
13283 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13284 | ;; |
|
|
13285 | *) |
|
|
13286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13287 | for as_dir in $PATH |
|
|
13288 | do |
|
|
13289 | IFS=$as_save_IFS |
|
|
13290 | test -z "$as_dir" && as_dir=. |
|
|
13291 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13292 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13293 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13295 | break 2 |
|
|
13296 | fi |
|
|
13297 | done |
|
|
13298 | done |
|
|
13299 | |
|
|
13300 | ;; |
|
|
13301 | esac |
|
|
13302 | fi |
|
|
13303 | PERL=$ac_cv_path_PERL |
|
|
13304 | |
|
|
13305 | if test -n "$PERL"; then |
|
|
13306 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13307 | echo "${ECHO_T}$PERL" >&6 |
|
|
13308 | else |
|
|
13309 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13310 | echo "${ECHO_T}no" >&6 |
|
|
13311 | fi |
|
|
13312 | |
|
|
13313 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
13314 | set dummy perl; ac_word=$2 |
|
|
13315 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13317 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13319 | else |
|
|
13320 | case $PERL in |
|
|
13321 | [\\/]* | ?:[\\/]*) |
|
|
13322 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13323 | ;; |
|
|
13324 | *) |
|
|
13325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13326 | for as_dir in $PATH |
|
|
13327 | do |
|
|
13328 | IFS=$as_save_IFS |
|
|
13329 | test -z "$as_dir" && as_dir=. |
|
|
13330 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13331 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13332 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13333 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13334 | break 2 |
|
|
13335 | fi |
|
|
13336 | done |
|
|
13337 | done |
|
|
13338 | |
|
|
13339 | ;; |
|
|
13340 | esac |
|
|
13341 | fi |
|
|
13342 | PERL=$ac_cv_path_PERL |
|
|
13343 | |
|
|
13344 | if test -n "$PERL"; then |
|
|
13345 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13346 | echo "${ECHO_T}$PERL" >&6 |
|
|
13347 | else |
|
|
13348 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13349 | echo "${ECHO_T}no" >&6 |
|
|
13350 | fi |
|
|
13351 | |
|
|
13352 | |
|
|
13353 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
|
|
13354 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
|
|
13355 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
|
|
13356 | |
|
|
13357 | save_CXXFLAGS="$CXXFLAGS" |
|
|
13358 | save_LIBS="$LIBS" |
|
|
13359 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13360 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13362 | /* confdefs.h. */ |
|
|
13363 | _ACEOF |
|
|
13364 | cat confdefs.h >>conftest.$ac_ext |
|
|
13365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13366 | /* end confdefs.h. */ |
|
|
13367 | |
|
|
13368 | #include <EXTERN.h> |
|
|
13369 | #include <perl.h> |
|
|
13370 | #include <XSUB.h> |
|
|
13371 | |
|
|
13372 | int |
|
|
13373 | main () |
|
|
13374 | { |
|
|
13375 | |
|
|
13376 | PerlInterpreter *perl = perl_alloc (); |
|
|
13377 | |
|
|
13378 | ; |
|
|
13379 | return 0; |
|
|
13380 | } |
|
|
13381 | _ACEOF |
|
|
13382 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13384 | (eval $ac_link) 2>conftest.er1 |
|
|
13385 | ac_status=$? |
|
|
13386 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13387 | rm -f conftest.er1 |
|
|
13388 | cat conftest.err >&5 |
|
|
13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13390 | (exit $ac_status); } && |
|
|
13391 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13393 | (eval $ac_try) 2>&5 |
|
|
13394 | ac_status=$? |
|
|
13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13396 | (exit $ac_status); }; } && |
|
|
13397 | { ac_try='test -s conftest$ac_exeext' |
|
|
13398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13399 | (eval $ac_try) 2>&5 |
|
|
13400 | ac_status=$? |
|
|
13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13402 | (exit $ac_status); }; }; then |
|
|
13403 | rxvt_perl_link=yes |
|
|
13404 | else |
|
|
13405 | echo "$as_me: failed program was:" >&5 |
|
|
13406 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13407 | |
|
|
13408 | rxvt_perl_link=no |
|
|
13409 | fi |
|
|
13410 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13411 | conftest$ac_exeext conftest.$ac_ext |
|
|
13412 | CXXFLAGS="$save_CXXFLAGS" |
|
|
13413 | LIBS="$save_LIBS" |
|
|
13414 | |
|
|
13415 | if test x$rxvt_perl_link = xyes; then |
|
|
13416 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
13417 | echo "${ECHO_T}ok" >&6 |
|
|
13418 | |
|
|
13419 | cat >>confdefs.h <<\_ACEOF |
|
|
13420 | #define ENABLE_PERL 1 |
|
|
13421 | _ACEOF |
|
|
13422 | |
|
|
13423 | IF_PERL= |
|
|
13424 | PERL_O=rxvtperl.o |
|
|
13425 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13426 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13427 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
|
|
13428 | else |
|
|
13429 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
|
|
13430 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
13431 | { (exit 1); exit 1; }; } |
|
|
13432 | fi |
|
|
13433 | else |
|
|
13434 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
|
|
13435 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
|
|
13436 | { (exit 1); exit 1; }; } |
|
|
13437 | fi |
|
|
13438 | fi |
|
|
13439 | |
|
|
13440 | |
|
|
13441 | |
|
|
13442 | |
|
|
13443 | |
|
|
13444 | |
|
|
13445 | |
|
|
13446 | if test x$support_perl = xyes; then |
|
|
13447 | support_frills=yes |
|
|
13448 | fi |
|
|
13449 | |
|
|
13450 | |
|
|
13451 | CFLAGS=${CFLAGS--O} |
|
|
13452 | LDFLAGS=${LDFLAGS--O} |
|
|
13453 | |
|
|
13454 | CPPFLAGS="$CPPFLAGS" |
|
|
13455 | |
|
|
13456 | |
|
|
13457 | |
|
|
13458 | |
|
|
13459 | |
|
|
13460 | |
|
|
13461 | |
|
|
13462 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
13463 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
13464 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
13465 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
13466 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
13467 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
13468 | fi |
|
|
13469 | |
|
|
13470 | |
|
|
13471 | |
|
|
13472 | |
|
|
13473 | |
|
|
13474 | test "$program_prefix" != NONE && |
|
|
13475 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
13476 | # Use a double $ so make ignores it. |
|
|
13477 | test "$program_suffix" != NONE && |
|
|
13478 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
13479 | # Double any \ or $. echo might interpret backslashes. |
|
|
13480 | # By default was `s,x,x', remove it if useless. |
|
|
13481 | cat <<\_ACEOF >conftest.sed |
|
|
13482 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
13483 | _ACEOF |
|
|
13484 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
13485 | rm conftest.sed |
|
|
13486 | |
|
|
13487 | |
|
|
13488 | |
|
|
13489 | |
|
|
13490 | |
|
|
13491 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13492 | include_stdint_h="#include <stdint.h>" |
|
|
13493 | else |
|
|
13494 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13495 | fi |
|
|
13496 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13497 | include_stdarg_h="#include <cstdarg>" |
|
|
13498 | else |
|
|
13499 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13500 | fi |
|
|
13501 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13502 | include_stdlib_h="#include <cstdlib>" |
|
|
13503 | else |
|
|
13504 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13505 | fi |
|
|
13506 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13507 | include_unistd_h="#include <unistd.h>" |
|
|
13508 | else |
|
|
13509 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13510 | fi |
|
|
13511 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13512 | include_string_h="#include <cstring>" |
|
|
13513 | else |
|
|
13514 | include_string_h="/* #include <cstring> */" |
|
|
13515 | fi |
|
|
13516 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13517 | include_fcntl_h="#include <fcntl.h>" |
|
|
13518 | else |
|
|
13519 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13520 | fi |
|
|
13521 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13522 | include_util_h="#include <util.h>" |
|
|
13523 | else |
|
|
13524 | include_util_h="/* #include <util.h> */" |
|
|
13525 | fi |
|
|
13526 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13527 | include_assert_h="#include <assert.h>" |
|
|
13528 | else |
|
|
13529 | include_assert_h="/* #include <assert.h> */" |
|
|
13530 | fi |
|
|
13531 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13532 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13533 | else |
|
|
13534 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13535 | fi |
|
|
13536 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13537 | include_sys_select_h="#include <sys/select.h>" |
|
|
13538 | else |
|
|
13539 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13540 | fi |
|
|
13541 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13542 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13543 | else |
|
|
13544 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13545 | fi |
|
|
13546 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13547 | include_sys_time_h="#include <sys/time.h>" |
|
|
13548 | else |
|
|
13549 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13550 | fi |
|
|
13551 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13552 | include_time_h="#include <time.h>" |
|
|
13553 | else |
|
|
13554 | include_time_h="/* #include <time.h> */" |
|
|
13555 | fi |
|
|
13556 | |
16963 | ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" |
13557 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
|
|
13558 | |
16964 | cat >confcache <<\_ACEOF |
13559 | cat >confcache <<\_ACEOF |
16965 | # This file is a shell script that caches the results of configure |
13560 | # This file is a shell script that caches the results of configure |
16966 | # tests run on this system so they can be shared between configure |
13561 | # tests run on this system so they can be shared between configure |
16967 | # scripts and configure runs, see configure's option --config-cache. |
13562 | # scripts and configure runs, see configure's option --config-cache. |
16968 | # It is not useful on other systems. If it contains results you don't |
13563 | # It is not useful on other systems. If it contains results you don't |
… | |
… | |
17484 | cat >>$CONFIG_STATUS <<\_ACEOF |
14079 | cat >>$CONFIG_STATUS <<\_ACEOF |
17485 | for ac_config_target in $ac_config_targets |
14080 | for ac_config_target in $ac_config_targets |
17486 | do |
14081 | do |
17487 | case "$ac_config_target" in |
14082 | case "$ac_config_target" in |
17488 | # Handling of arguments. |
14083 | # Handling of arguments. |
17489 | "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; |
|
|
17490 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14084 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
17491 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14085 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
17492 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14086 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
17493 | "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;; |
|
|
17494 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
14087 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
17495 | "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;; |
|
|
17496 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; |
14088 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
17497 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14089 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
17498 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14090 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
17499 | { (exit 1); exit 1; }; };; |
14091 | { (exit 1); exit 1; }; };; |
17500 | esac |
14092 | esac |
17501 | done |
14093 | done |
… | |
… | |
17576 | s,@DEFS@,$DEFS,;t t |
14168 | s,@DEFS@,$DEFS,;t t |
17577 | s,@ECHO_C@,$ECHO_C,;t t |
14169 | s,@ECHO_C@,$ECHO_C,;t t |
17578 | s,@ECHO_N@,$ECHO_N,;t t |
14170 | s,@ECHO_N@,$ECHO_N,;t t |
17579 | s,@ECHO_T@,$ECHO_T,;t t |
14171 | s,@ECHO_T@,$ECHO_T,;t t |
17580 | s,@LIBS@,$LIBS,;t t |
14172 | s,@LIBS@,$LIBS,;t t |
|
|
14173 | s,@build@,$build,;t t |
|
|
14174 | s,@build_cpu@,$build_cpu,;t t |
|
|
14175 | s,@build_vendor@,$build_vendor,;t t |
|
|
14176 | s,@build_os@,$build_os,;t t |
|
|
14177 | s,@host@,$host,;t t |
|
|
14178 | s,@host_cpu@,$host_cpu,;t t |
|
|
14179 | s,@host_vendor@,$host_vendor,;t t |
|
|
14180 | s,@host_os@,$host_os,;t t |
17581 | s,@VERSION@,$VERSION,;t t |
14181 | s,@VERSION@,$VERSION,;t t |
17582 | s,@DATE@,$DATE,;t t |
14182 | s,@DATE@,$DATE,;t t |
17583 | s,@LSMDATE@,$LSMDATE,;t t |
14183 | s,@LSMDATE@,$LSMDATE,;t t |
17584 | s,@LIBVERSION@,$LIBVERSION,;t t |
14184 | s,@LIBVERSION@,$LIBVERSION,;t t |
17585 | s,@CC@,$CC,;t t |
14185 | s,@CC@,$CC,;t t |
… | |
… | |
17594 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
14194 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
17595 | s,@CPP@,$CPP,;t t |
14195 | s,@CPP@,$CPP,;t t |
17596 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
14196 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
17597 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
14197 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
17598 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
14198 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
17599 | s,@AWK@,$AWK,;t t |
14199 | s,@EGREP@,$EGREP,;t t |
17600 | s,@LINKER@,$LINKER,;t t |
14200 | s,@LINKER@,$LINKER,;t t |
17601 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
17602 | s,@EGREP@,$EGREP,;t t |
|
|
17603 | s,@build@,$build,;t t |
|
|
17604 | s,@build_cpu@,$build_cpu,;t t |
|
|
17605 | s,@build_vendor@,$build_vendor,;t t |
|
|
17606 | s,@build_os@,$build_os,;t t |
|
|
17607 | s,@host@,$host,;t t |
|
|
17608 | s,@host_cpu@,$host_cpu,;t t |
|
|
17609 | s,@host_vendor@,$host_vendor,;t t |
|
|
17610 | s,@host_os@,$host_os,;t t |
|
|
17611 | s,@LN_S@,$LN_S,;t t |
|
|
17612 | s,@ECHO@,$ECHO,;t t |
|
|
17613 | s,@RANLIB@,$RANLIB,;t t |
|
|
17614 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
17615 | s,@STRIP@,$STRIP,;t t |
|
|
17616 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
|
17617 | s,@LIBTOOL@,$LIBTOOL,;t t |
|
|
17618 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
14201 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
17619 | s,@RXVTNAME@,$RXVTNAME,;t t |
14202 | s,@RXVTNAME@,$RXVTNAME,;t t |
17620 | s,@MV@,$MV,;t t |
14203 | s,@MV@,$MV,;t t |
17621 | s,@RM@,$RM,;t t |
14204 | s,@RM@,$RM,;t t |
17622 | s,@CP@,$CP,;t t |
14205 | s,@CP@,$CP,;t t |
17623 | s,@LN@,$LN,;t t |
14206 | s,@LN@,$LN,;t t |
17624 | s,@SED@,$SED,;t t |
14207 | s,@SED@,$SED,;t t |
|
|
14208 | s,@ECHO@,$ECHO,;t t |
17625 | s,@CMP@,$CMP,;t t |
14209 | s,@CMP@,$CMP,;t t |
17626 | s,@TBL@,$TBL,;t t |
14210 | s,@TIC@,$TIC,;t t |
|
|
14211 | s,@CXXCPP@,$CXXCPP,;t t |
17627 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
14212 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
17628 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
14213 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
17629 | s,@X_LIBS@,$X_LIBS,;t t |
14214 | s,@X_LIBS@,$X_LIBS,;t t |
17630 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
14215 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
17631 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
14216 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
… | |
… | |
17635 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
14220 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
17636 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
14221 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
17637 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
14222 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
17638 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
14223 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
17639 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
14224 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
|
|
14225 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
|
|
14226 | s,@XFT_CONFIG@,$XFT_CONFIG,;t t |
|
|
14227 | s,@PERL@,$PERL,;t t |
|
|
14228 | s,@PERLLIB@,$PERLLIB,;t t |
|
|
14229 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
|
|
14230 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
|
|
14231 | s,@IF_PERL@,$IF_PERL,;t t |
|
|
14232 | s,@PERL_O@,$PERL_O,;t t |
17640 | s,@DEBUG@,$DEBUG,;t t |
14233 | s,@DEBUG@,$DEBUG,;t t |
17641 | s,@DINCLUDE@,$DINCLUDE,;t t |
14234 | s,@DINCLUDE@,$DINCLUDE,;t t |
17642 | s,@DLIB@,$DLIB,;t t |
14235 | s,@DLIB@,$DLIB,;t t |
17643 | s,@include_stdint_h@,$include_stdint_h,;t t |
14236 | s,@include_stdint_h@,$include_stdint_h,;t t |
17644 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
14237 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
… | |
… | |
17653 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
14246 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
17654 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
14247 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
17655 | s,@include_time_h@,$include_time_h,;t t |
14248 | s,@include_time_h@,$include_time_h,;t t |
17656 | s,@LIBOBJS@,$LIBOBJS,;t t |
14249 | s,@LIBOBJS@,$LIBOBJS,;t t |
17657 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
14250 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
17658 | /@MCOMMON@/r $MCOMMON |
|
|
17659 | s,@MCOMMON@,,;t t |
|
|
17660 | CEOF |
14251 | CEOF |
17661 | |
14252 | |
17662 | _ACEOF |
14253 | _ACEOF |
17663 | |
14254 | |
17664 | cat >>$CONFIG_STATUS <<\_ACEOF |
14255 | cat >>$CONFIG_STATUS <<\_ACEOF |
… | |
… | |
18174 | fi |
14765 | fi |
18175 | |
14766 | |
18176 | echo " |
14767 | echo " |
18177 | The following are set in config.h |
14768 | The following are set in config.h |
18178 | " |
14769 | " |
18179 | echo " pty/tty type: "$rxvt_cv_ptys |
|
|
18180 | if test x$support_utmp != xyes; then |
14770 | if test x$support_utmp != xyes; then |
18181 | echo " utmp support: disabled" |
14771 | echo " utmp support: disabled" |
18182 | echo |
14772 | echo |
18183 | else |
14773 | else |
18184 | echo " utmp support: enabled |
14774 | echo " utmp support: enabled |
18185 | utmp file: $rxvt_cv_path_utmp |
14775 | utmp file: $rxvt_cv_path_utmp |
18186 | utmpx file: $rxvt_cv_path_utmpx |
14776 | utmpx file: $rxvt_cv_path_utmpx |
18187 | wtmp file: $rxvt_cv_path_wtmp |
14777 | wtmp file: $rxvt_cv_path_wtmp |
18188 | wtmpx file: $rxvt_cv_path_wtmpx |
14778 | wtmpx file: $rxvt_cv_path_wtmpx |
18189 | lastlog file: $rxvt_cv_path_lastlog |
14779 | lastlog file: $rxvt_cv_path_lastlog |
18190 | ttys/ttytab file: $rxvt_cv_path_ttytab" |
14780 | ttys/ttytab file: $rxvt_cv_path_ttytab |
|
|
14781 | embedded perl: $support_perl" |
18191 | echo |
14782 | echo |
18192 | fi |
14783 | fi |
18193 | if test x$term != x; then |
14784 | if test x$term != x; then |
18194 | echo " set TERM to: $term" |
14785 | echo " set TERM to: $term" |
18195 | fi |
14786 | fi |
… | |
… | |
18200 | echo " resource class: $RESCLASS" |
14791 | echo " resource class: $RESCLASS" |
18201 | if test x$RESFALLBACK != x; then |
14792 | if test x$RESFALLBACK != x; then |
18202 | echo " resource class fallback: $RESFALLBACK" |
14793 | echo " resource class fallback: $RESFALLBACK" |
18203 | fi |
14794 | fi |
18204 | echo |
14795 | echo |
18205 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
|
|
18206 | echo ".----------------------------------------------------------------." |
|
|
18207 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
|
|
18208 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
18209 | echo ".----------------------------------------------------------------." |
|
|
18210 | fi |
|
|
18211 | if test x$support_xpm = xneedsmanualspecification; then |
14796 | if test x$support_xpm = xneedsmanualspecification; then |
18212 | echo ".----------------------------------------------------------------." |
14797 | echo ".----------------------------------------------------------------." |
18213 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14798 | echo ". WARNING: --enable-xpm-background was specified however the ." |
18214 | echo ". XPM includes files and libraries could not be found. ." |
14799 | echo ". XPM includes files and libraries could not be found. ." |
18215 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
14800 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
… | |
… | |
18224 | echo ". functions could not be found. ." |
14809 | echo ". functions could not be found. ." |
18225 | echo ". XIM is now being DISABLED! ." |
14810 | echo ". XIM is now being DISABLED! ." |
18226 | echo ".----------------------------------------------------------------." |
14811 | echo ".----------------------------------------------------------------." |
18227 | fi |
14812 | fi |
18228 | |
14813 | |
18229 | echo " *** Please check src/feature.h for further options ***" |
14814 | echo " *** Optionally check src/feature.h for further options ***" |
18230 | echo |
14815 | echo |
18231 | |
14816 | |
18232 | echo ".----------------------------------------------------------------." |
14817 | echo ".----------------------------------------------------------------." |
18233 | echo ". NOTE: most features are disabled by default, try ." |
14818 | echo ". NOTE: some features are disabled by default, try ." |
18234 | echo ". configure --help to get an idea of the optional features ." |
14819 | echo ". configure --help to get an idea of the optional features, ." |
|
|
14820 | echo ". or read ./README.configure ." |
|
|
14821 | echo ". ." |
|
|
14822 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
14823 | echo ". you do not want to read documentation and still want some ." |
|
|
14824 | echo ". useful features. ." |
18235 | echo ".----------------------------------------------------------------." |
14825 | echo ".----------------------------------------------------------------." |
18236 | echo |
14826 | echo |
18237 | |
14827 | |