… | |
… | |
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 TIC 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 |
… | |
… | |
1039 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
877 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1040 | --enable-xpm-background enable XPM background pixmaps |
878 | --enable-xpm-background enable XPM background pixmaps |
1041 | --enable-transparency enable transparent backgrounds |
879 | --enable-transparency enable transparent backgrounds |
1042 | --enable-tinting enable tinting of transparent bg |
880 | --enable-tinting enable tinting of transparent bg |
1043 | --enable-fading enable colors fading when off focus |
881 | --enable-fading enable colors fading when off focus |
1044 | --enable-menubar enable menubar |
|
|
1045 | --enable-rxvt-scroll enable rxvt style scrollbar |
882 | --enable-rxvt-scroll enable rxvt style scrollbar |
1046 | --enable-next-scroll enable NeXT style scrollbar |
883 | --enable-next-scroll enable NeXT style scrollbar |
1047 | --enable-xterm-scroll enable Xterm style scrollbar |
884 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
885 | --enable-perl enable embedded perl interpreter |
1048 | --enable-plain-scroll enable plain style scrollbar |
886 | --enable-plain-scroll enable plain style scrollbar |
1049 | --enable-half-shadow use half width/height shadow on rxvt scrollbar |
|
|
1050 | --enable-xim XIM (X Input Method) protocol support |
887 | --enable-xim XIM (X Input Method) protocol support |
1051 | --enable-ttygid enable tty setting to group named "tty" |
|
|
1052 | --disable-backspace-key disable handling of the backspace key |
888 | --disable-backspace-key disable handling of the backspace key |
1053 | --disable-delete-key disable handling of the delete key |
889 | --disable-delete-key disable handling of the delete key |
1054 | --disable-resources disable all resource checking |
890 | --disable-resources disable all resource checking |
1055 | --enable-xgetdefault enable resources via X instead of our small version |
|
|
1056 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
891 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1057 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
892 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1058 | --enable-strings enable some replacement system functions |
|
|
1059 | --disable-swapscreen disable swap screen support |
893 | --disable-swapscreen disable swap screen support |
1060 | --enable-iso14755 enable support for extended ISO 14755 modes |
894 | --enable-iso14755 enable support for extended ISO 14755 modes |
1061 | --enable-frills enable support for rarely used features |
895 | --enable-frills enable support for rarely used features |
1062 | --enable-linespace enable support for linespace |
|
|
1063 | --enable-24bit enable support for using 24bit visuals if available |
896 | --enable-24bit enable support for using 24bit visuals if available |
1064 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
897 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1065 | --enable-selectionscrolling enable scrolling during selections |
898 | --enable-selectionscrolling enable scrolling during selections |
1066 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
899 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1067 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
900 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1068 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
901 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
1069 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
902 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
1070 | NOTE: enable only one malloc package |
903 | NOTE: enable only one malloc package |
1071 | --enable-smart-resize enable smart growth/shrink behaviour |
904 | --enable-smart-resize enable smart growth/shrink behaviour |
1072 | --enable-cursor-blink enable blinking cursor |
|
|
1073 | --enable-text-blink enable blinking text |
905 | --enable-text-blink enable blinking text |
1074 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
906 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1075 | |
907 | |
1076 | Optional Packages: |
908 | Optional Packages: |
1077 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
909 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1078 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
910 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1079 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
|
|
1080 | --with-pic try to use only PIC/non-PIC objects default=use both |
|
|
1081 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) |
911 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1082 | --with-res-name=NAME use this as default resource name (default: urxvt) |
912 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1083 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
913 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1084 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
914 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1085 | --with-term=NAME set the terminal to NAME (default: rxvt) |
915 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1086 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
916 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
… | |
… | |
1538 | |
1368 | |
1539 | |
1369 | |
1540 | |
1370 | |
1541 | |
1371 | |
1542 | |
1372 | |
|
|
1373 | |
|
|
1374 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
|
|
1375 | |
|
|
1376 | |
1543 | ac_aux_dir= |
1377 | ac_aux_dir= |
1544 | for ac_dir in autoconf $srcdir/autoconf; do |
1378 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1545 | if test -f $ac_dir/install-sh; then |
1379 | if test -f $ac_dir/install-sh; then |
1546 | ac_aux_dir=$ac_dir |
1380 | ac_aux_dir=$ac_dir |
1547 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1381 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1548 | break |
1382 | break |
1549 | elif test -f $ac_dir/install.sh; then |
1383 | elif test -f $ac_dir/install.sh; then |
… | |
… | |
1555 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1389 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1556 | break |
1390 | break |
1557 | fi |
1391 | fi |
1558 | done |
1392 | done |
1559 | if test -z "$ac_aux_dir"; then |
1393 | if test -z "$ac_aux_dir"; then |
1560 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1394 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1561 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
1395 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1562 | { (exit 1); exit 1; }; } |
1396 | { (exit 1); exit 1; }; } |
1563 | fi |
1397 | fi |
1564 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1398 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1565 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1399 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1566 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1400 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1567 | |
1401 | |
1568 | ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" |
1402 | # Make sure we can run config.sub. |
|
|
1403 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
1404 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
1405 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
1406 | { (exit 1); exit 1; }; } |
|
|
1407 | |
|
|
1408 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
1409 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
1410 | if test "${ac_cv_build+set}" = set; then |
|
|
1411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1412 | else |
|
|
1413 | ac_cv_build_alias=$build_alias |
|
|
1414 | test -z "$ac_cv_build_alias" && |
|
|
1415 | ac_cv_build_alias=`$ac_config_guess` |
|
|
1416 | test -z "$ac_cv_build_alias" && |
|
|
1417 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
1418 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
1419 | { (exit 1); exit 1; }; } |
|
|
1420 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
1421 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
1422 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
1423 | { (exit 1); exit 1; }; } |
|
|
1424 | |
|
|
1425 | fi |
|
|
1426 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
1427 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
1428 | build=$ac_cv_build |
|
|
1429 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1430 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1431 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1432 | |
|
|
1433 | |
|
|
1434 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
1435 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
1436 | if test "${ac_cv_host+set}" = set; then |
|
|
1437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1438 | else |
|
|
1439 | ac_cv_host_alias=$host_alias |
|
|
1440 | test -z "$ac_cv_host_alias" && |
|
|
1441 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
1442 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
1443 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
1444 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
1445 | { (exit 1); exit 1; }; } |
|
|
1446 | |
|
|
1447 | fi |
|
|
1448 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
1449 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
1450 | host=$ac_cv_host |
|
|
1451 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1452 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1453 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1454 | |
1569 | |
1455 | |
1570 | |
1456 | |
1571 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1457 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1572 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1458 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1573 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1574 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1575 | echo "" |
1459 | echo "" |
1576 | echo "configuring for rxvt $VERSION" |
1460 | echo "configuring for rxvt $VERSION" |
1577 | echo "" |
1461 | echo "" |
|
|
1462 | |
|
|
1463 | orig_CXXFLAGS="$CXXFLAGS" |
1578 | |
1464 | |
1579 | |
1465 | |
1580 | ac_ext=c |
1466 | ac_ext=c |
1581 | ac_cpp='$CPP $CPPFLAGS' |
1467 | ac_cpp='$CPP $CPPFLAGS' |
1582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
… | |
… | |
3163 | |
3049 | |
3164 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3050 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3165 | |
3051 | |
3166 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3052 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3167 | |
3053 | |
3168 | for ac_prog in gawk mawk nawk awk |
|
|
3169 | do |
|
|
3170 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
3171 | set dummy $ac_prog; ac_word=$2 |
|
|
3172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3174 | if test "${ac_cv_prog_AWK+set}" = set; then |
|
|
3175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3176 | else |
|
|
3177 | if test -n "$AWK"; then |
|
|
3178 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
|
3179 | else |
|
|
3180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3181 | for as_dir in $PATH |
|
|
3182 | do |
|
|
3183 | IFS=$as_save_IFS |
|
|
3184 | test -z "$as_dir" && as_dir=. |
|
|
3185 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3186 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3187 | ac_cv_prog_AWK="$ac_prog" |
|
|
3188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3189 | break 2 |
|
|
3190 | fi |
|
|
3191 | done |
|
|
3192 | done |
|
|
3193 | |
3054 | |
3194 | fi |
|
|
3195 | fi |
|
|
3196 | AWK=$ac_cv_prog_AWK |
|
|
3197 | if test -n "$AWK"; then |
|
|
3198 | echo "$as_me:$LINENO: result: $AWK" >&5 |
|
|
3199 | echo "${ECHO_T}$AWK" >&6 |
|
|
3200 | else |
|
|
3201 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3202 | echo "${ECHO_T}no" >&6 |
|
|
3203 | fi |
|
|
3204 | |
|
|
3205 | test -n "$AWK" && break |
|
|
3206 | done |
|
|
3207 | |
|
|
3208 | |
|
|
3209 | ac_ext=c |
|
|
3210 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3214 | |
|
|
3215 | |
|
|
3216 | LINKER="$CXX" |
|
|
3217 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3218 | |
|
|
3219 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3220 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3221 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3223 | else |
|
|
3224 | ac_check_lib_save_LIBS=$LIBS |
|
|
3225 | LIBS="-lsupc++ $LIBS" |
|
|
3226 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3227 | /* confdefs.h. */ |
|
|
3228 | _ACEOF |
|
|
3229 | cat confdefs.h >>conftest.$ac_ext |
|
|
3230 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3231 | /* end confdefs.h. */ |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | int |
|
|
3235 | main () |
|
|
3236 | { |
|
|
3237 | main (); |
|
|
3238 | ; |
|
|
3239 | return 0; |
|
|
3240 | } |
|
|
3241 | _ACEOF |
|
|
3242 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3244 | (eval $ac_link) 2>conftest.er1 |
|
|
3245 | ac_status=$? |
|
|
3246 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3247 | rm -f conftest.er1 |
|
|
3248 | cat conftest.err >&5 |
|
|
3249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3250 | (exit $ac_status); } && |
|
|
3251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3253 | (eval $ac_try) 2>&5 |
|
|
3254 | ac_status=$? |
|
|
3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3256 | (exit $ac_status); }; } && |
|
|
3257 | { ac_try='test -s conftest$ac_exeext' |
|
|
3258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3259 | (eval $ac_try) 2>&5 |
|
|
3260 | ac_status=$? |
|
|
3261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3262 | (exit $ac_status); }; }; then |
|
|
3263 | ac_cv_lib_supcpp_main=yes |
|
|
3264 | else |
|
|
3265 | echo "$as_me: failed program was:" >&5 |
|
|
3266 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3267 | |
|
|
3268 | ac_cv_lib_supcpp_main=no |
|
|
3269 | fi |
|
|
3270 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3271 | conftest$ac_exeext conftest.$ac_ext |
|
|
3272 | LIBS=$ac_check_lib_save_LIBS |
|
|
3273 | fi |
|
|
3274 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3275 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3276 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3277 | |
|
|
3278 | LINKER="$CC" |
|
|
3279 | LIBS="$LIBS -lsupc++" |
|
|
3280 | |
|
|
3281 | fi |
|
|
3282 | |
|
|
3283 | fi |
|
|
3284 | LINKER=$LINKER |
|
|
3285 | |
|
|
3286 | |
|
|
3287 | CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" |
|
|
3288 | |
|
|
3289 | |
|
|
3290 | ac_ext=cc |
|
|
3291 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3292 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3293 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3294 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3295 | |
|
|
3296 | |
|
|
3297 | |
|
|
3298 | ac_ext=cc |
|
|
3299 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3300 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3301 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3302 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3303 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
3304 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
3305 | if test -z "$CXXCPP"; then |
|
|
3306 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
3307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3308 | else |
|
|
3309 | # Double quotes because CXXCPP needs to be expanded |
|
|
3310 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
3311 | do |
|
|
3312 | ac_preproc_ok=false |
|
|
3313 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3314 | do |
|
|
3315 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3316 | # with a fresh cross-compiler works. |
|
|
3317 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3318 | # <limits.h> exists even on freestanding compilers. |
|
|
3319 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3320 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3321 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3322 | /* confdefs.h. */ |
|
|
3323 | _ACEOF |
|
|
3324 | cat confdefs.h >>conftest.$ac_ext |
|
|
3325 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3326 | /* end confdefs.h. */ |
|
|
3327 | #ifdef __STDC__ |
|
|
3328 | # include <limits.h> |
|
|
3329 | #else |
|
|
3330 | # include <assert.h> |
|
|
3331 | #endif |
|
|
3332 | Syntax error |
|
|
3333 | _ACEOF |
|
|
3334 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3335 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3336 | ac_status=$? |
|
|
3337 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3338 | rm -f conftest.er1 |
|
|
3339 | cat conftest.err >&5 |
|
|
3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3341 | (exit $ac_status); } >/dev/null; then |
|
|
3342 | if test -s conftest.err; then |
|
|
3343 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3344 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3345 | else |
|
|
3346 | ac_cpp_err= |
|
|
3347 | fi |
|
|
3348 | else |
|
|
3349 | ac_cpp_err=yes |
|
|
3350 | fi |
|
|
3351 | if test -z "$ac_cpp_err"; then |
|
|
3352 | : |
|
|
3353 | else |
|
|
3354 | echo "$as_me: failed program was:" >&5 |
|
|
3355 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3356 | |
|
|
3357 | # Broken: fails on valid input. |
|
|
3358 | continue |
|
|
3359 | fi |
|
|
3360 | rm -f conftest.err conftest.$ac_ext |
|
|
3361 | |
|
|
3362 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3363 | # can be detected and how. |
|
|
3364 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3365 | /* confdefs.h. */ |
|
|
3366 | _ACEOF |
|
|
3367 | cat confdefs.h >>conftest.$ac_ext |
|
|
3368 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3369 | /* end confdefs.h. */ |
|
|
3370 | #include <ac_nonexistent.h> |
|
|
3371 | _ACEOF |
|
|
3372 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3373 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3374 | ac_status=$? |
|
|
3375 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3376 | rm -f conftest.er1 |
|
|
3377 | cat conftest.err >&5 |
|
|
3378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3379 | (exit $ac_status); } >/dev/null; then |
|
|
3380 | if test -s conftest.err; then |
|
|
3381 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3382 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3383 | else |
|
|
3384 | ac_cpp_err= |
|
|
3385 | fi |
|
|
3386 | else |
|
|
3387 | ac_cpp_err=yes |
|
|
3388 | fi |
|
|
3389 | if test -z "$ac_cpp_err"; then |
|
|
3390 | # Broken: success on invalid input. |
|
|
3391 | continue |
|
|
3392 | else |
|
|
3393 | echo "$as_me: failed program was:" >&5 |
|
|
3394 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3395 | |
|
|
3396 | # Passes both tests. |
|
|
3397 | ac_preproc_ok=: |
|
|
3398 | break |
|
|
3399 | fi |
|
|
3400 | rm -f conftest.err conftest.$ac_ext |
|
|
3401 | |
|
|
3402 | done |
|
|
3403 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3404 | rm -f conftest.err conftest.$ac_ext |
|
|
3405 | if $ac_preproc_ok; then |
|
|
3406 | break |
|
|
3407 | fi |
|
|
3408 | |
|
|
3409 | done |
|
|
3410 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3411 | |
|
|
3412 | fi |
|
|
3413 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
3414 | else |
|
|
3415 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3416 | fi |
|
|
3417 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
3418 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
3419 | ac_preproc_ok=false |
|
|
3420 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3421 | do |
|
|
3422 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3423 | # with a fresh cross-compiler works. |
|
|
3424 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3425 | # <limits.h> exists even on freestanding compilers. |
|
|
3426 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3427 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3428 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3429 | /* confdefs.h. */ |
|
|
3430 | _ACEOF |
|
|
3431 | cat confdefs.h >>conftest.$ac_ext |
|
|
3432 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3433 | /* end confdefs.h. */ |
|
|
3434 | #ifdef __STDC__ |
|
|
3435 | # include <limits.h> |
|
|
3436 | #else |
|
|
3437 | # include <assert.h> |
|
|
3438 | #endif |
|
|
3439 | Syntax error |
|
|
3440 | _ACEOF |
|
|
3441 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3442 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3443 | ac_status=$? |
|
|
3444 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3445 | rm -f conftest.er1 |
|
|
3446 | cat conftest.err >&5 |
|
|
3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3448 | (exit $ac_status); } >/dev/null; then |
|
|
3449 | if test -s conftest.err; then |
|
|
3450 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3451 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3452 | else |
|
|
3453 | ac_cpp_err= |
|
|
3454 | fi |
|
|
3455 | else |
|
|
3456 | ac_cpp_err=yes |
|
|
3457 | fi |
|
|
3458 | if test -z "$ac_cpp_err"; then |
|
|
3459 | : |
|
|
3460 | else |
|
|
3461 | echo "$as_me: failed program was:" >&5 |
|
|
3462 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3463 | |
|
|
3464 | # Broken: fails on valid input. |
|
|
3465 | continue |
|
|
3466 | fi |
|
|
3467 | rm -f conftest.err conftest.$ac_ext |
|
|
3468 | |
|
|
3469 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3470 | # can be detected and how. |
|
|
3471 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3472 | /* confdefs.h. */ |
|
|
3473 | _ACEOF |
|
|
3474 | cat confdefs.h >>conftest.$ac_ext |
|
|
3475 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3476 | /* end confdefs.h. */ |
|
|
3477 | #include <ac_nonexistent.h> |
|
|
3478 | _ACEOF |
|
|
3479 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3480 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3481 | ac_status=$? |
|
|
3482 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3483 | rm -f conftest.er1 |
|
|
3484 | cat conftest.err >&5 |
|
|
3485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3486 | (exit $ac_status); } >/dev/null; then |
|
|
3487 | if test -s conftest.err; then |
|
|
3488 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3489 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3490 | else |
|
|
3491 | ac_cpp_err= |
|
|
3492 | fi |
|
|
3493 | else |
|
|
3494 | ac_cpp_err=yes |
|
|
3495 | fi |
|
|
3496 | if test -z "$ac_cpp_err"; then |
|
|
3497 | # Broken: success on invalid input. |
|
|
3498 | continue |
|
|
3499 | else |
|
|
3500 | echo "$as_me: failed program was:" >&5 |
|
|
3501 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3502 | |
|
|
3503 | # Passes both tests. |
|
|
3504 | ac_preproc_ok=: |
|
|
3505 | break |
|
|
3506 | fi |
|
|
3507 | rm -f conftest.err conftest.$ac_ext |
|
|
3508 | |
|
|
3509 | done |
|
|
3510 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3511 | rm -f conftest.err conftest.$ac_ext |
|
|
3512 | if $ac_preproc_ok; then |
|
|
3513 | : |
|
|
3514 | else |
|
|
3515 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3516 | See \`config.log' for more details." >&5 |
|
|
3517 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3518 | See \`config.log' for more details." >&2;} |
|
|
3519 | { (exit 1); exit 1; }; } |
|
|
3520 | fi |
|
|
3521 | |
|
|
3522 | ac_ext=cc |
|
|
3523 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3524 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3525 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3526 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3527 | |
3055 | |
3528 | |
3056 | |
3529 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3057 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3530 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3058 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3531 | if test "${ac_cv_prog_egrep+set}" = set; then |
3059 | if test "${ac_cv_prog_egrep+set}" = set; then |
… | |
… | |
3606 | grep -v '^ *+' conftest.er1 >conftest.err |
3134 | grep -v '^ *+' conftest.er1 >conftest.err |
3607 | rm -f conftest.er1 |
3135 | rm -f conftest.er1 |
3608 | cat conftest.err >&5 |
3136 | cat conftest.err >&5 |
3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3610 | (exit $ac_status); } && |
3138 | (exit $ac_status); } && |
3611 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3613 | (eval $ac_try) 2>&5 |
3141 | (eval $ac_try) 2>&5 |
3614 | ac_status=$? |
3142 | ac_status=$? |
3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3616 | (exit $ac_status); }; } && |
3144 | (exit $ac_status); }; } && |
… | |
… | |
3660 | grep -v '^ *+' conftest.er1 >conftest.err |
3188 | grep -v '^ *+' conftest.er1 >conftest.err |
3661 | rm -f conftest.er1 |
3189 | rm -f conftest.er1 |
3662 | cat conftest.err >&5 |
3190 | cat conftest.err >&5 |
3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3664 | (exit $ac_status); } && |
3192 | (exit $ac_status); } && |
3665 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3667 | (eval $ac_try) 2>&5 |
3195 | (eval $ac_try) 2>&5 |
3668 | ac_status=$? |
3196 | ac_status=$? |
3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3670 | (exit $ac_status); }; } && |
3198 | (exit $ac_status); }; } && |
… | |
… | |
3692 | if test "$ac_cv_search_strerror" != no; then |
3220 | if test "$ac_cv_search_strerror" != no; then |
3693 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3221 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3694 | |
3222 | |
3695 | fi |
3223 | fi |
3696 | |
3224 | |
|
|
3225 | ac_ext=cc |
|
|
3226 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3227 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3228 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3229 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3697 | |
3230 | |
|
|
3231 | |
|
|
3232 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3233 | echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
|
|
3234 | echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6 |
|
|
3235 | save_CXX="$CXX" |
|
|
3236 | save_LIBS="$LIBS" |
|
|
3237 | CXX="$CC" |
|
|
3238 | LIBS="$LIBS -lsupc++" |
|
|
3239 | LINKER="$CC" |
|
|
3240 | |
|
|
3241 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3242 | /* confdefs.h. */ |
|
|
3243 | _ACEOF |
|
|
3244 | cat confdefs.h >>conftest.$ac_ext |
|
|
3245 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3246 | /* end confdefs.h. */ |
|
|
3247 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
3248 | int |
|
|
3249 | main () |
|
|
3250 | { |
|
|
3251 | |
|
|
3252 | ; |
|
|
3253 | return 0; |
|
|
3254 | } |
|
|
3255 | _ACEOF |
|
|
3256 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3258 | (eval $ac_link) 2>conftest.er1 |
|
|
3259 | ac_status=$? |
|
|
3260 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3261 | rm -f conftest.er1 |
|
|
3262 | cat conftest.err >&5 |
|
|
3263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3264 | (exit $ac_status); } && |
|
|
3265 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3267 | (eval $ac_try) 2>&5 |
|
|
3268 | ac_status=$? |
|
|
3269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3270 | (exit $ac_status); }; } && |
|
|
3271 | { ac_try='test -s conftest$ac_exeext' |
|
|
3272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3273 | (eval $ac_try) 2>&5 |
|
|
3274 | ac_status=$? |
|
|
3275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3276 | (exit $ac_status); }; }; then |
|
|
3277 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
3278 | echo "${ECHO_T}ok" >&6 |
|
|
3279 | else |
|
|
3280 | echo "$as_me: failed program was:" >&5 |
|
|
3281 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3282 | |
|
|
3283 | |
|
|
3284 | echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
|
|
3285 | echo "${ECHO_T}no, making everything bigger and slower" >&6 |
|
|
3286 | LIBS="$save_LIBS" |
|
|
3287 | LINKER="$save_CXX" |
|
|
3288 | |
|
|
3289 | |
|
|
3290 | fi |
|
|
3291 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3292 | conftest$ac_exeext conftest.$ac_ext |
|
|
3293 | CXX="$save_CXX" |
|
|
3294 | fi |
|
|
3295 | LINKER=$LINKER |
|
|
3296 | |
|
|
3297 | |
|
|
3298 | ac_ext=cc |
|
|
3299 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3300 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3301 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3302 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3303 | |
|
|
3304 | if test -z "$orig_CXXFLAGS"; then |
|
|
3305 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3306 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3307 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3308 | /* confdefs.h. */ |
|
|
3309 | _ACEOF |
|
|
3310 | cat confdefs.h >>conftest.$ac_ext |
|
|
3311 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3312 | /* end confdefs.h. */ |
|
|
3313 | |
|
|
3314 | int |
|
|
3315 | main () |
|
|
3316 | { |
|
|
3317 | |
|
|
3318 | ; |
|
|
3319 | return 0; |
|
|
3320 | } |
|
|
3321 | _ACEOF |
|
|
3322 | rm -f conftest.$ac_objext |
|
|
3323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3324 | (eval $ac_compile) 2>conftest.er1 |
|
|
3325 | ac_status=$? |
|
|
3326 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3327 | rm -f conftest.er1 |
|
|
3328 | cat conftest.err >&5 |
|
|
3329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3330 | (exit $ac_status); } && |
|
|
3331 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3333 | (eval $ac_try) 2>&5 |
|
|
3334 | ac_status=$? |
|
|
3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3336 | (exit $ac_status); }; } && |
|
|
3337 | { ac_try='test -s conftest.$ac_objext' |
|
|
3338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3339 | (eval $ac_try) 2>&5 |
|
|
3340 | ac_status=$? |
|
|
3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3342 | (exit $ac_status); }; }; then |
|
|
3343 | : |
|
|
3344 | else |
|
|
3345 | echo "$as_me: failed program was:" >&5 |
|
|
3346 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3347 | |
|
|
3348 | CXXFLAGS="-g -O3" |
|
|
3349 | fi |
|
|
3350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3351 | else |
|
|
3352 | CXXFLAGS="-O" |
|
|
3353 | fi |
|
|
3354 | CFLAGS="$CXXFLAGS" |
|
|
3355 | fi |
|
|
3356 | |
|
|
3357 | |
|
|
3358 | cat >>confdefs.h <<\_ACEOF |
|
|
3359 | #define _GNU_SOURCE 1 |
|
|
3360 | _ACEOF |
|
|
3361 | |
|
|
3362 | |
|
|
3363 | case $host in |
|
|
3364 | *-*-solaris* ) |
|
|
3365 | |
|
|
3366 | cat >>confdefs.h <<\_ACEOF |
|
|
3367 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3368 | _ACEOF |
|
|
3369 | |
|
|
3370 | |
|
|
3371 | cat >>confdefs.h <<\_ACEOF |
|
|
3372 | #define _XOPEN_SOURCE 2 |
|
|
3373 | _ACEOF |
|
|
3374 | |
|
|
3375 | |
|
|
3376 | cat >>confdefs.h <<\_ACEOF |
|
|
3377 | #define __EXTENSIONS__ 1 |
|
|
3378 | _ACEOF |
|
|
3379 | |
|
|
3380 | ;; |
|
|
3381 | esac |
|
|
3382 | |
|
|
3383 | |
|
|
3384 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3385 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
|
|
3386 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3388 | else |
|
|
3389 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3390 | /* confdefs.h. */ |
|
|
3391 | _ACEOF |
|
|
3392 | cat confdefs.h >>conftest.$ac_ext |
|
|
3393 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3394 | /* end confdefs.h. */ |
|
|
3395 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3397 | #define setlocale innocuous_setlocale |
|
|
3398 | |
|
|
3399 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3400 | which can conflict with char setlocale (); below. |
|
|
3401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3402 | <limits.h> exists even on freestanding compilers. */ |
|
|
3403 | |
|
|
3404 | #ifdef __STDC__ |
|
|
3405 | # include <limits.h> |
|
|
3406 | #else |
|
|
3407 | # include <assert.h> |
|
|
3408 | #endif |
|
|
3409 | |
|
|
3410 | #undef setlocale |
|
|
3411 | |
|
|
3412 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3413 | #ifdef __cplusplus |
|
|
3414 | extern "C" |
|
|
3415 | { |
|
|
3416 | #endif |
|
|
3417 | /* We use char because int might match the return type of a gcc2 |
|
|
3418 | builtin and then its argument prototype would still apply. */ |
|
|
3419 | char setlocale (); |
|
|
3420 | /* The GNU C library defines this for functions which it implements |
|
|
3421 | to always fail with ENOSYS. Some functions are actually named |
|
|
3422 | something starting with __ and the normal name is an alias. */ |
|
|
3423 | #if defined (__stub_setlocale) || defined (__stub___setlocale) |
|
|
3424 | choke me |
|
|
3425 | #else |
|
|
3426 | char (*f) () = setlocale; |
|
|
3427 | #endif |
|
|
3428 | #ifdef __cplusplus |
|
|
3429 | } |
|
|
3430 | #endif |
|
|
3431 | |
|
|
3432 | int |
|
|
3433 | main () |
|
|
3434 | { |
|
|
3435 | return f != setlocale; |
|
|
3436 | ; |
|
|
3437 | return 0; |
|
|
3438 | } |
|
|
3439 | _ACEOF |
|
|
3440 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3442 | (eval $ac_link) 2>conftest.er1 |
|
|
3443 | ac_status=$? |
|
|
3444 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3445 | rm -f conftest.er1 |
|
|
3446 | cat conftest.err >&5 |
|
|
3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3448 | (exit $ac_status); } && |
|
|
3449 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3451 | (eval $ac_try) 2>&5 |
|
|
3452 | ac_status=$? |
|
|
3453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3454 | (exit $ac_status); }; } && |
|
|
3455 | { ac_try='test -s conftest$ac_exeext' |
|
|
3456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3457 | (eval $ac_try) 2>&5 |
|
|
3458 | ac_status=$? |
|
|
3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3460 | (exit $ac_status); }; }; then |
|
|
3461 | ac_cv_func_setlocale=yes |
|
|
3462 | else |
|
|
3463 | echo "$as_me: failed program was:" >&5 |
|
|
3464 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3465 | |
|
|
3466 | ac_cv_func_setlocale=no |
|
|
3467 | fi |
|
|
3468 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3469 | conftest$ac_exeext conftest.$ac_ext |
|
|
3470 | fi |
|
|
3471 | echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
|
|
3472 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6 |
|
|
3473 | if test $ac_cv_func_setlocale = yes; then |
|
|
3474 | : |
|
|
3475 | else |
3698 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3476 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3699 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3477 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3700 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3478 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3702 | else |
3480 | else |
3703 | ac_check_lib_save_LIBS=$LIBS |
3481 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3760 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3538 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3761 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3539 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3762 | LIBS="$LIBS -lxpg4" |
3540 | LIBS="$LIBS -lxpg4" |
3763 | fi |
3541 | fi |
3764 | |
3542 | |
|
|
3543 | fi |
3765 | |
3544 | |
|
|
3545 | |
|
|
3546 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
3547 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
3548 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
3549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3550 | else |
|
|
3551 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3552 | /* confdefs.h. */ |
|
|
3553 | _ACEOF |
|
|
3554 | cat confdefs.h >>conftest.$ac_ext |
|
|
3555 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3556 | /* end confdefs.h. */ |
|
|
3557 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
3558 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3559 | #define gethostbyname innocuous_gethostbyname |
|
|
3560 | |
|
|
3561 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3562 | which can conflict with char gethostbyname (); below. |
|
|
3563 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3564 | <limits.h> exists even on freestanding compilers. */ |
|
|
3565 | |
|
|
3566 | #ifdef __STDC__ |
|
|
3567 | # include <limits.h> |
|
|
3568 | #else |
|
|
3569 | # include <assert.h> |
|
|
3570 | #endif |
|
|
3571 | |
|
|
3572 | #undef gethostbyname |
|
|
3573 | |
|
|
3574 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3575 | #ifdef __cplusplus |
|
|
3576 | extern "C" |
|
|
3577 | { |
|
|
3578 | #endif |
|
|
3579 | /* We use char because int might match the return type of a gcc2 |
|
|
3580 | builtin and then its argument prototype would still apply. */ |
|
|
3581 | char gethostbyname (); |
|
|
3582 | /* The GNU C library defines this for functions which it implements |
|
|
3583 | to always fail with ENOSYS. Some functions are actually named |
|
|
3584 | something starting with __ and the normal name is an alias. */ |
|
|
3585 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
|
|
3586 | choke me |
|
|
3587 | #else |
|
|
3588 | char (*f) () = gethostbyname; |
|
|
3589 | #endif |
|
|
3590 | #ifdef __cplusplus |
|
|
3591 | } |
|
|
3592 | #endif |
|
|
3593 | |
|
|
3594 | int |
|
|
3595 | main () |
|
|
3596 | { |
|
|
3597 | return f != gethostbyname; |
|
|
3598 | ; |
|
|
3599 | return 0; |
|
|
3600 | } |
|
|
3601 | _ACEOF |
|
|
3602 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3604 | (eval $ac_link) 2>conftest.er1 |
|
|
3605 | ac_status=$? |
|
|
3606 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3607 | rm -f conftest.er1 |
|
|
3608 | cat conftest.err >&5 |
|
|
3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3610 | (exit $ac_status); } && |
|
|
3611 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3613 | (eval $ac_try) 2>&5 |
|
|
3614 | ac_status=$? |
|
|
3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3616 | (exit $ac_status); }; } && |
|
|
3617 | { ac_try='test -s conftest$ac_exeext' |
|
|
3618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3619 | (eval $ac_try) 2>&5 |
|
|
3620 | ac_status=$? |
|
|
3621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3622 | (exit $ac_status); }; }; then |
|
|
3623 | ac_cv_func_gethostbyname=yes |
|
|
3624 | else |
|
|
3625 | echo "$as_me: failed program was:" >&5 |
|
|
3626 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3627 | |
|
|
3628 | ac_cv_func_gethostbyname=no |
|
|
3629 | fi |
|
|
3630 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3631 | conftest$ac_exeext conftest.$ac_ext |
|
|
3632 | fi |
|
|
3633 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
3634 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
|
3635 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
3636 | : |
|
|
3637 | else |
3766 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3638 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3767 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3639 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3768 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3640 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3770 | else |
3642 | else |
3771 | ac_check_lib_save_LIBS=$LIBS |
3643 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3828 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3700 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3829 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3701 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3830 | LIBS="$LIBS -lnsl" |
3702 | LIBS="$LIBS -lnsl" |
3831 | fi |
3703 | fi |
3832 | |
3704 | |
|
|
3705 | fi |
|
|
3706 | |
|
|
3707 | echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
3708 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
|
|
3709 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
3710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3711 | else |
|
|
3712 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3713 | /* confdefs.h. */ |
|
|
3714 | _ACEOF |
|
|
3715 | cat confdefs.h >>conftest.$ac_ext |
|
|
3716 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3717 | /* end confdefs.h. */ |
|
|
3718 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
3719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3720 | #define socket innocuous_socket |
|
|
3721 | |
|
|
3722 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3723 | which can conflict with char socket (); below. |
|
|
3724 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3725 | <limits.h> exists even on freestanding compilers. */ |
|
|
3726 | |
|
|
3727 | #ifdef __STDC__ |
|
|
3728 | # include <limits.h> |
|
|
3729 | #else |
|
|
3730 | # include <assert.h> |
|
|
3731 | #endif |
|
|
3732 | |
|
|
3733 | #undef socket |
|
|
3734 | |
|
|
3735 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3736 | #ifdef __cplusplus |
|
|
3737 | extern "C" |
|
|
3738 | { |
|
|
3739 | #endif |
|
|
3740 | /* We use char because int might match the return type of a gcc2 |
|
|
3741 | builtin and then its argument prototype would still apply. */ |
|
|
3742 | char socket (); |
|
|
3743 | /* The GNU C library defines this for functions which it implements |
|
|
3744 | to always fail with ENOSYS. Some functions are actually named |
|
|
3745 | something starting with __ and the normal name is an alias. */ |
|
|
3746 | #if defined (__stub_socket) || defined (__stub___socket) |
|
|
3747 | choke me |
|
|
3748 | #else |
|
|
3749 | char (*f) () = socket; |
|
|
3750 | #endif |
|
|
3751 | #ifdef __cplusplus |
|
|
3752 | } |
|
|
3753 | #endif |
|
|
3754 | |
|
|
3755 | int |
|
|
3756 | main () |
|
|
3757 | { |
|
|
3758 | return f != socket; |
|
|
3759 | ; |
|
|
3760 | return 0; |
|
|
3761 | } |
|
|
3762 | _ACEOF |
|
|
3763 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3765 | (eval $ac_link) 2>conftest.er1 |
|
|
3766 | ac_status=$? |
|
|
3767 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3768 | rm -f conftest.er1 |
|
|
3769 | cat conftest.err >&5 |
|
|
3770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3771 | (exit $ac_status); } && |
|
|
3772 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3774 | (eval $ac_try) 2>&5 |
|
|
3775 | ac_status=$? |
|
|
3776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3777 | (exit $ac_status); }; } && |
|
|
3778 | { ac_try='test -s conftest$ac_exeext' |
|
|
3779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3780 | (eval $ac_try) 2>&5 |
|
|
3781 | ac_status=$? |
|
|
3782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3783 | (exit $ac_status); }; }; then |
|
|
3784 | ac_cv_func_socket=yes |
|
|
3785 | else |
|
|
3786 | echo "$as_me: failed program was:" >&5 |
|
|
3787 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3788 | |
|
|
3789 | ac_cv_func_socket=no |
|
|
3790 | fi |
|
|
3791 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3792 | conftest$ac_exeext conftest.$ac_ext |
|
|
3793 | fi |
|
|
3794 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
3795 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
|
|
3796 | if test $ac_cv_func_socket = yes; then |
|
|
3797 | : |
|
|
3798 | else |
3833 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3799 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3834 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
3800 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
3835 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3801 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3837 | else |
3803 | else |
3838 | ac_check_lib_save_LIBS=$LIBS |
3804 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3895 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
3861 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
3896 | if test $ac_cv_lib_socket_socket = yes; then |
3862 | if test $ac_cv_lib_socket_socket = yes; then |
3897 | LIBS="$LIBS -lsocket" |
3863 | LIBS="$LIBS -lsocket" |
3898 | fi |
3864 | fi |
3899 | |
3865 | |
3900 | |
|
|
3901 | # Check whether --enable-shared or --disable-shared was given. |
|
|
3902 | if test "${enable_shared+set}" = set; then |
|
|
3903 | enableval="$enable_shared" |
|
|
3904 | p=${PACKAGE-default} |
|
|
3905 | case "$enableval" in |
|
|
3906 | yes) enable_shared=yes ;; |
|
|
3907 | no) enable_shared=no ;; |
|
|
3908 | *) |
|
|
3909 | enable_shared=no |
|
|
3910 | # Look at the argument we got. We use all the common list separators. |
|
|
3911 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3912 | for pkg in $enableval; do |
|
|
3913 | if test "X$pkg" = "X$p"; then |
|
|
3914 | enable_shared=yes |
|
|
3915 | fi |
|
|
3916 | done |
|
|
3917 | IFS="$ac_save_ifs" |
|
|
3918 | ;; |
|
|
3919 | esac |
|
|
3920 | else |
|
|
3921 | enable_shared=no |
|
|
3922 | fi; # Check whether --enable-static or --disable-static was given. |
|
|
3923 | if test "${enable_static+set}" = set; then |
|
|
3924 | enableval="$enable_static" |
|
|
3925 | p=${PACKAGE-default} |
|
|
3926 | case "$enableval" in |
|
|
3927 | yes) enable_static=yes ;; |
|
|
3928 | no) enable_static=no ;; |
|
|
3929 | *) |
|
|
3930 | enable_static=no |
|
|
3931 | # Look at the argument we got. We use all the common list separators. |
|
|
3932 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3933 | for pkg in $enableval; do |
|
|
3934 | if test "X$pkg" = "X$p"; then |
|
|
3935 | enable_static=yes |
|
|
3936 | fi |
|
|
3937 | done |
|
|
3938 | IFS="$ac_save_ifs" |
|
|
3939 | ;; |
|
|
3940 | esac |
|
|
3941 | else |
|
|
3942 | enable_static=yes |
|
|
3943 | fi; # Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
3944 | if test "${enable_fast_install+set}" = set; then |
|
|
3945 | enableval="$enable_fast_install" |
|
|
3946 | p=${PACKAGE-default} |
|
|
3947 | case "$enableval" in |
|
|
3948 | yes) enable_fast_install=yes ;; |
|
|
3949 | no) enable_fast_install=no ;; |
|
|
3950 | *) |
|
|
3951 | enable_fast_install=no |
|
|
3952 | # Look at the argument we got. We use all the common list separators. |
|
|
3953 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3954 | for pkg in $enableval; do |
|
|
3955 | if test "X$pkg" = "X$p"; then |
|
|
3956 | enable_fast_install=yes |
|
|
3957 | fi |
|
|
3958 | done |
|
|
3959 | IFS="$ac_save_ifs" |
|
|
3960 | ;; |
|
|
3961 | esac |
|
|
3962 | else |
|
|
3963 | enable_fast_install=yes |
|
|
3964 | fi; |
3866 | fi |
3965 | # Make sure we can run config.sub. |
|
|
3966 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
3967 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
3968 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
3969 | { (exit 1); exit 1; }; } |
|
|
3970 | |
3867 | |
3971 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
3972 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
3973 | if test "${ac_cv_build+set}" = set; then |
|
|
3974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3975 | else |
|
|
3976 | ac_cv_build_alias=$build_alias |
|
|
3977 | test -z "$ac_cv_build_alias" && |
|
|
3978 | ac_cv_build_alias=`$ac_config_guess` |
|
|
3979 | test -z "$ac_cv_build_alias" && |
|
|
3980 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
3981 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
3982 | { (exit 1); exit 1; }; } |
|
|
3983 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
3984 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
3985 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
3986 | { (exit 1); exit 1; }; } |
|
|
3987 | |
3868 | |
3988 | fi |
|
|
3989 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
3990 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
3991 | build=$ac_cv_build |
|
|
3992 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
3993 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
3994 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
3995 | |
|
|
3996 | |
|
|
3997 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
3998 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
3999 | if test "${ac_cv_host+set}" = set; then |
|
|
4000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4001 | else |
|
|
4002 | ac_cv_host_alias=$host_alias |
|
|
4003 | test -z "$ac_cv_host_alias" && |
|
|
4004 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
4005 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
4006 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
4007 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
4008 | { (exit 1); exit 1; }; } |
|
|
4009 | |
|
|
4010 | fi |
|
|
4011 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
4012 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
4013 | host=$ac_cv_host |
|
|
4014 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
4015 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
4016 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
4017 | |
|
|
4018 | |
|
|
4019 | |
|
|
4020 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
4021 | if test "${with_gnu_ld+set}" = set; then |
|
|
4022 | withval="$with_gnu_ld" |
|
|
4023 | test "$withval" = no || with_gnu_ld=yes |
|
|
4024 | else |
|
|
4025 | with_gnu_ld=no |
|
|
4026 | fi; |
|
|
4027 | ac_prog=ld |
|
|
4028 | if test "$GCC" = yes; then |
|
|
4029 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
4030 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
|
|
4031 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
|
|
4032 | case $host in |
|
|
4033 | *-*-mingw*) |
|
|
4034 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
4035 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
4036 | *) |
|
|
4037 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
4038 | esac |
|
|
4039 | case "$ac_prog" in |
|
|
4040 | # Accept absolute paths. |
|
|
4041 | [\\/]* | [A-Za-z]:[\\/]*) |
|
|
4042 | re_direlt='/[^/][^/]*/\.\./' |
|
|
4043 | # Canonicalize the path of ld |
|
|
4044 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
|
|
4045 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
4046 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
|
|
4047 | done |
|
|
4048 | test -z "$LD" && LD="$ac_prog" |
|
|
4049 | ;; |
|
|
4050 | "") |
|
|
4051 | # If it fails, then pretend we aren't using GCC. |
|
|
4052 | ac_prog=ld |
|
|
4053 | ;; |
|
|
4054 | *) |
|
|
4055 | # If it is relative, then search for the first ld in PATH. |
|
|
4056 | with_gnu_ld=unknown |
|
|
4057 | ;; |
|
|
4058 | esac |
|
|
4059 | elif test "$with_gnu_ld" = yes; then |
|
|
4060 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3869 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
4061 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3870 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 |
4062 | else |
|
|
4063 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
4064 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
4065 | fi |
|
|
4066 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
4067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4068 | else |
|
|
4069 | if test -z "$LD"; then |
|
|
4070 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4071 | for ac_dir in $PATH; do |
|
|
4072 | test -z "$ac_dir" && ac_dir=. |
|
|
4073 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
4074 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
4075 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
4076 | # but apparently some GNU ld's only accept -v. |
|
|
4077 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
4078 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4079 | test "$with_gnu_ld" != no && break |
|
|
4080 | else |
|
|
4081 | test "$with_gnu_ld" != yes && break |
|
|
4082 | fi |
|
|
4083 | fi |
|
|
4084 | done |
|
|
4085 | IFS="$ac_save_ifs" |
|
|
4086 | else |
|
|
4087 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
4088 | fi |
|
|
4089 | fi |
|
|
4090 | |
|
|
4091 | LD="$lt_cv_path_LD" |
|
|
4092 | if test -n "$LD"; then |
|
|
4093 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
4094 | echo "${ECHO_T}$LD" >&6 |
|
|
4095 | else |
|
|
4096 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4097 | echo "${ECHO_T}no" >&6 |
|
|
4098 | fi |
|
|
4099 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
4100 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
4101 | { (exit 1); exit 1; }; } |
|
|
4102 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
4103 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
4104 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4106 | else |
|
|
4107 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
4108 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
|
|
4109 | lt_cv_prog_gnu_ld=yes |
|
|
4110 | else |
|
|
4111 | lt_cv_prog_gnu_ld=no |
|
|
4112 | fi |
|
|
4113 | fi |
|
|
4114 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
4115 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
4116 | with_gnu_ld=$lt_cv_prog_gnu_ld |
|
|
4117 | |
|
|
4118 | |
|
|
4119 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
|
4120 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
|
4121 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
|
4122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4123 | else |
|
|
4124 | lt_cv_ld_reload_flag='-r' |
|
|
4125 | fi |
|
|
4126 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
|
4127 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
|
4128 | reload_flag=$lt_cv_ld_reload_flag |
|
|
4129 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
|
|
4130 | |
|
|
4131 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
|
4132 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
|
4133 | if test "${lt_cv_path_NM+set}" = set; then |
|
|
4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4135 | else |
|
|
4136 | if test -n "$NM"; then |
|
|
4137 | # Let the user override the test. |
|
|
4138 | lt_cv_path_NM="$NM" |
|
|
4139 | else |
|
|
4140 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4141 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
|
|
4142 | test -z "$ac_dir" && ac_dir=. |
|
|
4143 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
|
|
4144 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
|
|
4145 | # Check to see if the nm accepts a BSD-compat flag. |
|
|
4146 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
|
4147 | # nm: unknown option "B" ignored |
|
|
4148 | # Tru64's nm complains that /dev/null is an invalid object file |
|
|
4149 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
|
|
4150 | lt_cv_path_NM="$tmp_nm -B" |
|
|
4151 | break |
|
|
4152 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
|
|
4153 | lt_cv_path_NM="$tmp_nm -p" |
|
|
4154 | break |
|
|
4155 | else |
|
|
4156 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
|
4157 | continue # so that we can try to find one that supports BSD flags |
|
|
4158 | fi |
|
|
4159 | fi |
|
|
4160 | done |
|
|
4161 | IFS="$ac_save_ifs" |
|
|
4162 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
|
4163 | fi |
|
|
4164 | fi |
|
|
4165 | |
|
|
4166 | NM="$lt_cv_path_NM" |
|
|
4167 | echo "$as_me:$LINENO: result: $NM" >&5 |
|
|
4168 | echo "${ECHO_T}$NM" >&6 |
|
|
4169 | |
|
|
4170 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
|
4171 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
|
4172 | LN_S=$as_ln_s |
|
|
4173 | if test "$LN_S" = "ln -s"; then |
|
|
4174 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4175 | echo "${ECHO_T}yes" >&6 |
|
|
4176 | else |
|
|
4177 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
|
4178 | echo "${ECHO_T}no, using $LN_S" >&6 |
|
|
4179 | fi |
|
|
4180 | |
|
|
4181 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
|
|
4182 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
|
|
4183 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
|
4184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4185 | else |
|
|
4186 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
|
4187 | lt_cv_file_magic_test_file= |
|
|
4188 | lt_cv_deplibs_check_method='unknown' |
|
|
4189 | # Need to set the preceding variable on all platforms that support |
|
|
4190 | # interlibrary dependencies. |
|
|
4191 | # 'none' -- dependencies not supported. |
|
|
4192 | # `unknown' -- same as none, but documents that we really don't know. |
|
|
4193 | # 'pass_all' -- all dependencies passed with no checks. |
|
|
4194 | # 'test_compile' -- check by making test program. |
|
|
4195 | # ['file_magic [regex]'] -- check by looking for files in library path |
|
|
4196 | # which responds to the $file_magic_cmd with a given egrep regex. |
|
|
4197 | # If you have `file' or equivalent on your system and you're not sure |
|
|
4198 | # whether `pass_all' will *always* work, you probably want this one. |
|
|
4199 | |
|
|
4200 | case "$host_os" in |
|
|
4201 | aix4*) |
|
|
4202 | lt_cv_deplibs_check_method=pass_all |
|
|
4203 | ;; |
|
|
4204 | |
|
|
4205 | beos*) |
|
|
4206 | lt_cv_deplibs_check_method=pass_all |
|
|
4207 | ;; |
|
|
4208 | |
|
|
4209 | bsdi4*) |
|
|
4210 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
|
4211 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4212 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4213 | ;; |
|
|
4214 | |
|
|
4215 | cygwin* | mingw* | pw32*) |
|
|
4216 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
4217 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
|
4218 | ;; |
|
|
4219 | |
|
|
4220 | darwin*|rhapsody*) |
|
|
4221 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
|
4222 | lt_cv_file_magiic_cmd=/usr/bin/file |
|
|
4223 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
|
|
4224 | ;; |
|
|
4225 | |
|
|
4226 | freebsd*) |
|
|
4227 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4228 | case "$host_cpu" in |
|
|
4229 | i*86 ) |
|
|
4230 | # Not sure whether the presence of OpenBSD here was a mistake. |
|
|
4231 | # Let's accept both of them until this is cleared up. |
|
|
4232 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
|
|
4233 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4234 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
|
4235 | ;; |
|
|
4236 | esac |
|
|
4237 | else |
|
|
4238 | lt_cv_deplibs_check_method=pass_all |
|
|
4239 | fi |
|
|
4240 | ;; |
|
|
4241 | |
|
|
4242 | gnu*) |
|
|
4243 | lt_cv_deplibs_check_method=pass_all |
|
|
4244 | ;; |
|
|
4245 | |
|
|
4246 | hpux10.20*|hpux11*) |
|
|
4247 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
|
4248 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4249 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
|
4250 | ;; |
|
|
4251 | |
|
|
4252 | irix5* | irix6*) |
|
|
4253 | case "$host_os" in |
|
|
4254 | irix5*) |
|
|
4255 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4256 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
|
|
4257 | ;; |
|
|
4258 | *) |
|
|
4259 | case "$LD" in |
|
|
4260 | *-32|*"-32 ") libmagic=32-bit;; |
|
|
4261 | *-n32|*"-n32 ") libmagic=N32;; |
|
|
4262 | *-64|*"-64 ") libmagic=64-bit;; |
|
|
4263 | *) libmagic=never-match;; |
|
|
4264 | esac |
|
|
4265 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4266 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
|
|
4267 | ;; |
|
|
4268 | esac |
|
|
4269 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
|
4270 | lt_cv_deplibs_check_method=pass_all |
|
|
4271 | ;; |
|
|
4272 | |
|
|
4273 | # This must be Linux ELF. |
|
|
4274 | linux-gnu*) |
|
|
4275 | case "$host_cpu" in |
|
|
4276 | alpha* | i*86 | powerpc* | sparc* | ia64* ) |
|
|
4277 | lt_cv_deplibs_check_method=pass_all ;; |
|
|
4278 | *) |
|
|
4279 | # glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
4280 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
4281 | esac |
|
|
4282 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
|
4283 | ;; |
|
|
4284 | |
|
|
4285 | netbsd*) |
|
|
4286 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4287 | lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library' |
|
|
4288 | else |
|
|
4289 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
|
|
4290 | fi |
|
|
4291 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4292 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4293 | ;; |
|
|
4294 | |
|
|
4295 | newos6*) |
|
|
4296 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
|
4297 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4298 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
|
4299 | ;; |
|
|
4300 | |
|
|
4301 | osf3* | osf4* | osf5*) |
|
|
4302 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4303 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
|
4304 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4305 | lt_cv_deplibs_check_method=pass_all |
|
|
4306 | ;; |
|
|
4307 | |
|
|
4308 | sco3.2v5*) |
|
|
4309 | lt_cv_deplibs_check_method=pass_all |
|
|
4310 | ;; |
|
|
4311 | |
|
|
4312 | solaris*) |
|
|
4313 | lt_cv_deplibs_check_method=pass_all |
|
|
4314 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4315 | ;; |
|
|
4316 | |
|
|
4317 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
4318 | case "$host_vendor" in |
|
|
4319 | motorola) |
|
|
4320 | 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]' |
|
|
4321 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4322 | ;; |
|
|
4323 | ncr) |
|
|
4324 | lt_cv_deplibs_check_method=pass_all |
|
|
4325 | ;; |
|
|
4326 | sequent) |
|
|
4327 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4328 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
|
4329 | ;; |
|
|
4330 | sni) |
|
|
4331 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4332 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
|
4333 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4334 | ;; |
|
|
4335 | esac |
|
|
4336 | ;; |
|
|
4337 | esac |
|
|
4338 | |
|
|
4339 | fi |
|
|
4340 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
|
4341 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
|
4342 | file_magic_cmd=$lt_cv_file_magic_cmd |
|
|
4343 | deplibs_check_method=$lt_cv_deplibs_check_method |
|
|
4344 | |
|
|
4345 | |
|
|
4346 | |
|
|
4347 | |
|
|
4348 | |
|
|
4349 | |
|
|
4350 | |
|
|
4351 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
4352 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
|
|
4353 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
|
|
4354 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4356 | else |
|
|
4357 | |
|
|
4358 | # These are sane defaults that work on at least a few old systems. |
|
|
4359 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
4360 | |
|
|
4361 | # Character class describing NM global symbol codes. |
|
|
4362 | symcode='[BCDEGRST]' |
|
|
4363 | |
|
|
4364 | # Regexp to match symbols that can be accessed directly from C. |
|
|
4365 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
4366 | |
|
|
4367 | # Transform the above into a raw symbol and a C symbol. |
|
|
4368 | symxfrm='\1 \2\3 \3' |
|
|
4369 | |
|
|
4370 | # Transform an extracted symbol line into a proper C declaration |
|
|
4371 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4372 | |
|
|
4373 | # Define system-specific variables. |
|
|
4374 | case "$host_os" in |
|
|
4375 | aix*) |
|
|
4376 | symcode='[BCDT]' |
|
|
4377 | ;; |
|
|
4378 | cygwin* | mingw* | pw32*) |
|
|
4379 | symcode='[ABCDGISTW]' |
|
|
4380 | ;; |
|
|
4381 | hpux*) # Its linker distinguishes data from code symbols |
|
|
4382 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4383 | ;; |
|
|
4384 | irix*) |
|
|
4385 | symcode='[BCDEGRST]' |
|
|
4386 | ;; |
|
|
4387 | solaris* | sysv5*) |
|
|
4388 | symcode='[BDT]' |
|
|
4389 | ;; |
|
|
4390 | sysv4) |
|
|
4391 | symcode='[DFNSTU]' |
|
|
4392 | ;; |
|
|
4393 | esac |
|
|
4394 | |
|
|
4395 | # Handle CRLF in mingw tool chain |
|
|
4396 | opt_cr= |
|
|
4397 | case "$host_os" in |
|
|
4398 | mingw*) |
|
|
4399 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
4400 | ;; |
|
|
4401 | esac |
|
|
4402 | |
|
|
4403 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
4404 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4405 | symcode='[ABCDGISTW]' |
|
|
4406 | fi |
|
|
4407 | |
|
|
4408 | # Try without a prefix undercore, then with it. |
|
|
4409 | for ac_symprfx in "" "_"; do |
|
|
4410 | |
|
|
4411 | # Write the raw and C identifiers. |
|
|
4412 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
|
4413 | |
|
|
4414 | # Check to see that the pipe works correctly. |
|
|
4415 | pipe_works=no |
|
|
4416 | rm -f conftest* |
|
|
4417 | cat > conftest.$ac_ext <<EOF |
|
|
4418 | #ifdef __cplusplus |
|
|
4419 | extern "C" { |
|
|
4420 | #endif |
|
|
4421 | char nm_test_var; |
|
|
4422 | void nm_test_func(){} |
|
|
4423 | #ifdef __cplusplus |
|
|
4424 | } |
|
|
4425 | #endif |
|
|
4426 | main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
4427 | EOF |
|
|
4428 | |
|
|
4429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4430 | (eval $ac_compile) 2>&5 |
|
|
4431 | ac_status=$? |
|
|
4432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4433 | (exit $ac_status); }; then |
|
|
4434 | # Now try to grab the symbols. |
|
|
4435 | nlist=conftest.nm |
|
|
4436 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
4437 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
4438 | ac_status=$? |
|
|
4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4440 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
4441 | # Try sorting and uniquifying the output. |
|
|
4442 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
4443 | mv -f "$nlist"T "$nlist" |
|
|
4444 | else |
|
|
4445 | rm -f "$nlist"T |
|
|
4446 | fi |
|
|
4447 | |
|
|
4448 | # Make sure that we snagged all the symbols we need. |
|
|
4449 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
4450 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
4451 | cat <<EOF > conftest.$ac_ext |
|
|
4452 | #ifdef __cplusplus |
|
|
4453 | extern "C" { |
|
|
4454 | #endif |
|
|
4455 | |
|
|
4456 | EOF |
|
|
4457 | # Now generate the symbol file. |
|
|
4458 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
|
|
4459 | |
|
|
4460 | cat <<EOF >> conftest.$ac_ext |
|
|
4461 | #if defined (__STDC__) && __STDC__ |
|
|
4462 | # define lt_ptr_t void * |
|
|
4463 | #else |
|
|
4464 | # define lt_ptr_t char * |
|
|
4465 | # define const |
|
|
4466 | #endif |
|
|
4467 | |
|
|
4468 | /* The mapping between symbol names and symbols. */ |
|
|
4469 | const struct { |
|
|
4470 | const char *name; |
|
|
4471 | lt_ptr_t address; |
|
|
4472 | } |
|
|
4473 | lt_preloaded_symbols[] = |
|
|
4474 | { |
|
|
4475 | EOF |
|
|
4476 | sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext |
|
|
4477 | cat <<\EOF >> conftest.$ac_ext |
|
|
4478 | {0, (lt_ptr_t) 0} |
|
|
4479 | }; |
|
|
4480 | |
|
|
4481 | #ifdef __cplusplus |
|
|
4482 | } |
|
|
4483 | #endif |
|
|
4484 | EOF |
|
|
4485 | # Now try linking the two files. |
|
|
4486 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
4487 | save_LIBS="$LIBS" |
|
|
4488 | save_CFLAGS="$CFLAGS" |
|
|
4489 | LIBS="conftstm.$ac_objext" |
|
|
4490 | CFLAGS="$CFLAGS$no_builtin_flag" |
|
|
4491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4492 | (eval $ac_link) 2>&5 |
|
|
4493 | ac_status=$? |
|
|
4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4495 | (exit $ac_status); } && test -s conftest; then |
|
|
4496 | pipe_works=yes |
|
|
4497 | fi |
|
|
4498 | LIBS="$save_LIBS" |
|
|
4499 | CFLAGS="$save_CFLAGS" |
|
|
4500 | else |
|
|
4501 | echo "cannot find nm_test_func in $nlist" >&5 |
|
|
4502 | fi |
|
|
4503 | else |
|
|
4504 | echo "cannot find nm_test_var in $nlist" >&5 |
|
|
4505 | fi |
|
|
4506 | else |
|
|
4507 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
4508 | fi |
|
|
4509 | else |
|
|
4510 | echo "$progname: failed program was:" >&5 |
|
|
4511 | cat conftest.$ac_ext >&5 |
|
|
4512 | fi |
|
|
4513 | rm -f conftest* conftst* |
|
|
4514 | |
|
|
4515 | # Do not use the global_symbol_pipe unless it works. |
|
|
4516 | if test "$pipe_works" = yes; then |
|
|
4517 | break |
|
|
4518 | else |
|
|
4519 | lt_cv_sys_global_symbol_pipe= |
|
|
4520 | fi |
|
|
4521 | done |
|
|
4522 | |
|
|
4523 | fi |
|
|
4524 | |
|
|
4525 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
|
|
4526 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
4527 | global_symbol_to_cdecl= |
|
|
4528 | else |
|
|
4529 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
|
|
4530 | fi |
|
|
4531 | if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
|
|
4532 | echo "$as_me:$LINENO: result: failed" >&5 |
|
|
4533 | echo "${ECHO_T}failed" >&6 |
|
|
4534 | else |
|
|
4535 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
4536 | echo "${ECHO_T}ok" >&6 |
|
|
4537 | fi |
|
|
4538 | |
|
|
4539 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
4540 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
4541 | if test "${ac_cv_header_stdc+set}" = set; then |
3871 | if test "${ac_cv_func_sched_yield+set}" = set; then |
4542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4543 | else |
3873 | else |
4544 | cat >conftest.$ac_ext <<_ACEOF |
3874 | cat >conftest.$ac_ext <<_ACEOF |
4545 | /* confdefs.h. */ |
3875 | /* confdefs.h. */ |
4546 | _ACEOF |
3876 | _ACEOF |
4547 | cat confdefs.h >>conftest.$ac_ext |
3877 | cat confdefs.h >>conftest.$ac_ext |
4548 | cat >>conftest.$ac_ext <<_ACEOF |
3878 | cat >>conftest.$ac_ext <<_ACEOF |
4549 | /* end confdefs.h. */ |
3879 | /* end confdefs.h. */ |
4550 | #include <stdlib.h> |
|
|
4551 | #include <stdarg.h> |
|
|
4552 | #include <string.h> |
|
|
4553 | #include <float.h> |
|
|
4554 | |
|
|
4555 | int |
|
|
4556 | main () |
|
|
4557 | { |
|
|
4558 | |
|
|
4559 | ; |
|
|
4560 | return 0; |
|
|
4561 | } |
|
|
4562 | _ACEOF |
|
|
4563 | rm -f conftest.$ac_objext |
|
|
4564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4565 | (eval $ac_compile) 2>conftest.er1 |
|
|
4566 | ac_status=$? |
|
|
4567 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4568 | rm -f conftest.er1 |
|
|
4569 | cat conftest.err >&5 |
|
|
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4571 | (exit $ac_status); } && |
|
|
4572 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4574 | (eval $ac_try) 2>&5 |
|
|
4575 | ac_status=$? |
|
|
4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4577 | (exit $ac_status); }; } && |
|
|
4578 | { ac_try='test -s conftest.$ac_objext' |
|
|
4579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4580 | (eval $ac_try) 2>&5 |
|
|
4581 | ac_status=$? |
|
|
4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4583 | (exit $ac_status); }; }; then |
|
|
4584 | ac_cv_header_stdc=yes |
|
|
4585 | else |
|
|
4586 | echo "$as_me: failed program was:" >&5 |
|
|
4587 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4588 | |
|
|
4589 | ac_cv_header_stdc=no |
|
|
4590 | fi |
|
|
4591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4592 | |
|
|
4593 | if test $ac_cv_header_stdc = yes; then |
|
|
4594 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
4595 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4596 | /* confdefs.h. */ |
|
|
4597 | _ACEOF |
|
|
4598 | cat confdefs.h >>conftest.$ac_ext |
|
|
4599 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4600 | /* end confdefs.h. */ |
|
|
4601 | #include <string.h> |
|
|
4602 | |
|
|
4603 | _ACEOF |
|
|
4604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4605 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
4606 | : |
|
|
4607 | else |
|
|
4608 | ac_cv_header_stdc=no |
|
|
4609 | fi |
|
|
4610 | rm -f conftest* |
|
|
4611 | |
|
|
4612 | fi |
|
|
4613 | |
|
|
4614 | if test $ac_cv_header_stdc = yes; then |
|
|
4615 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
4616 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4617 | /* confdefs.h. */ |
|
|
4618 | _ACEOF |
|
|
4619 | cat confdefs.h >>conftest.$ac_ext |
|
|
4620 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4621 | /* end confdefs.h. */ |
|
|
4622 | #include <stdlib.h> |
|
|
4623 | |
|
|
4624 | _ACEOF |
|
|
4625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4626 | $EGREP "free" >/dev/null 2>&1; then |
|
|
4627 | : |
|
|
4628 | else |
|
|
4629 | ac_cv_header_stdc=no |
|
|
4630 | fi |
|
|
4631 | rm -f conftest* |
|
|
4632 | |
|
|
4633 | fi |
|
|
4634 | |
|
|
4635 | if test $ac_cv_header_stdc = yes; then |
|
|
4636 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
4637 | if test "$cross_compiling" = yes; then |
|
|
4638 | : |
|
|
4639 | else |
|
|
4640 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4641 | /* confdefs.h. */ |
|
|
4642 | _ACEOF |
|
|
4643 | cat confdefs.h >>conftest.$ac_ext |
|
|
4644 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4645 | /* end confdefs.h. */ |
|
|
4646 | #include <ctype.h> |
|
|
4647 | #if ((' ' & 0x0FF) == 0x020) |
|
|
4648 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
4649 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
4650 | #else |
|
|
4651 | # define ISLOWER(c) \ |
|
|
4652 | (('a' <= (c) && (c) <= 'i') \ |
|
|
4653 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
4654 | || ('s' <= (c) && (c) <= 'z')) |
|
|
4655 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
4656 | #endif |
|
|
4657 | |
|
|
4658 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
4659 | int |
|
|
4660 | main () |
|
|
4661 | { |
|
|
4662 | int i; |
|
|
4663 | for (i = 0; i < 256; i++) |
|
|
4664 | if (XOR (islower (i), ISLOWER (i)) |
|
|
4665 | || toupper (i) != TOUPPER (i)) |
|
|
4666 | exit(2); |
|
|
4667 | exit (0); |
|
|
4668 | } |
|
|
4669 | _ACEOF |
|
|
4670 | rm -f conftest$ac_exeext |
|
|
4671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4672 | (eval $ac_link) 2>&5 |
|
|
4673 | ac_status=$? |
|
|
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4677 | (eval $ac_try) 2>&5 |
|
|
4678 | ac_status=$? |
|
|
4679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4680 | (exit $ac_status); }; }; then |
|
|
4681 | : |
|
|
4682 | else |
|
|
4683 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4684 | echo "$as_me: failed program was:" >&5 |
|
|
4685 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4686 | |
|
|
4687 | ( exit $ac_status ) |
|
|
4688 | ac_cv_header_stdc=no |
|
|
4689 | fi |
|
|
4690 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4691 | fi |
|
|
4692 | fi |
|
|
4693 | fi |
|
|
4694 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
4695 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
4696 | if test $ac_cv_header_stdc = yes; then |
|
|
4697 | |
|
|
4698 | cat >>confdefs.h <<\_ACEOF |
|
|
4699 | #define STDC_HEADERS 1 |
|
|
4700 | _ACEOF |
|
|
4701 | |
|
|
4702 | fi |
|
|
4703 | |
|
|
4704 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
4705 | |
|
|
4706 | |
|
|
4707 | |
|
|
4708 | |
|
|
4709 | |
|
|
4710 | |
|
|
4711 | |
|
|
4712 | |
|
|
4713 | |
|
|
4714 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
4715 | inttypes.h stdint.h unistd.h |
|
|
4716 | do |
|
|
4717 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4718 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4719 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4720 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4722 | else |
|
|
4723 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4724 | /* confdefs.h. */ |
|
|
4725 | _ACEOF |
|
|
4726 | cat confdefs.h >>conftest.$ac_ext |
|
|
4727 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4728 | /* end confdefs.h. */ |
|
|
4729 | $ac_includes_default |
|
|
4730 | |
|
|
4731 | #include <$ac_header> |
|
|
4732 | _ACEOF |
|
|
4733 | rm -f conftest.$ac_objext |
|
|
4734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4735 | (eval $ac_compile) 2>conftest.er1 |
|
|
4736 | ac_status=$? |
|
|
4737 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4738 | rm -f conftest.er1 |
|
|
4739 | cat conftest.err >&5 |
|
|
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4741 | (exit $ac_status); } && |
|
|
4742 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4744 | (eval $ac_try) 2>&5 |
|
|
4745 | ac_status=$? |
|
|
4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4747 | (exit $ac_status); }; } && |
|
|
4748 | { ac_try='test -s conftest.$ac_objext' |
|
|
4749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4750 | (eval $ac_try) 2>&5 |
|
|
4751 | ac_status=$? |
|
|
4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4753 | (exit $ac_status); }; }; then |
|
|
4754 | eval "$as_ac_Header=yes" |
|
|
4755 | else |
|
|
4756 | echo "$as_me: failed program was:" >&5 |
|
|
4757 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4758 | |
|
|
4759 | eval "$as_ac_Header=no" |
|
|
4760 | fi |
|
|
4761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4762 | fi |
|
|
4763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4764 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4766 | cat >>confdefs.h <<_ACEOF |
|
|
4767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4768 | _ACEOF |
|
|
4769 | |
|
|
4770 | fi |
|
|
4771 | |
|
|
4772 | done |
|
|
4773 | |
|
|
4774 | |
|
|
4775 | |
|
|
4776 | for ac_header in dlfcn.h |
|
|
4777 | do |
|
|
4778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4779 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4780 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4784 | fi |
|
|
4785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4786 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4787 | else |
|
|
4788 | # Is the header compilable? |
|
|
4789 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
4790 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
4791 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4792 | /* confdefs.h. */ |
|
|
4793 | _ACEOF |
|
|
4794 | cat confdefs.h >>conftest.$ac_ext |
|
|
4795 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4796 | /* end confdefs.h. */ |
|
|
4797 | $ac_includes_default |
|
|
4798 | #include <$ac_header> |
|
|
4799 | _ACEOF |
|
|
4800 | rm -f conftest.$ac_objext |
|
|
4801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4802 | (eval $ac_compile) 2>conftest.er1 |
|
|
4803 | ac_status=$? |
|
|
4804 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4805 | rm -f conftest.er1 |
|
|
4806 | cat conftest.err >&5 |
|
|
4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4808 | (exit $ac_status); } && |
|
|
4809 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4811 | (eval $ac_try) 2>&5 |
|
|
4812 | ac_status=$? |
|
|
4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4814 | (exit $ac_status); }; } && |
|
|
4815 | { ac_try='test -s conftest.$ac_objext' |
|
|
4816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4817 | (eval $ac_try) 2>&5 |
|
|
4818 | ac_status=$? |
|
|
4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4820 | (exit $ac_status); }; }; then |
|
|
4821 | ac_header_compiler=yes |
|
|
4822 | else |
|
|
4823 | echo "$as_me: failed program was:" >&5 |
|
|
4824 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4825 | |
|
|
4826 | ac_header_compiler=no |
|
|
4827 | fi |
|
|
4828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4829 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
4830 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
4831 | |
|
|
4832 | # Is the header present? |
|
|
4833 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
4834 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
4835 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4836 | /* confdefs.h. */ |
|
|
4837 | _ACEOF |
|
|
4838 | cat confdefs.h >>conftest.$ac_ext |
|
|
4839 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4840 | /* end confdefs.h. */ |
|
|
4841 | #include <$ac_header> |
|
|
4842 | _ACEOF |
|
|
4843 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4844 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4845 | ac_status=$? |
|
|
4846 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4847 | rm -f conftest.er1 |
|
|
4848 | cat conftest.err >&5 |
|
|
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4850 | (exit $ac_status); } >/dev/null; then |
|
|
4851 | if test -s conftest.err; then |
|
|
4852 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4853 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4854 | else |
|
|
4855 | ac_cpp_err= |
|
|
4856 | fi |
|
|
4857 | else |
|
|
4858 | ac_cpp_err=yes |
|
|
4859 | fi |
|
|
4860 | if test -z "$ac_cpp_err"; then |
|
|
4861 | ac_header_preproc=yes |
|
|
4862 | else |
|
|
4863 | echo "$as_me: failed program was:" >&5 |
|
|
4864 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4865 | |
|
|
4866 | ac_header_preproc=no |
|
|
4867 | fi |
|
|
4868 | rm -f conftest.err conftest.$ac_ext |
|
|
4869 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
4870 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
4871 | |
|
|
4872 | # So? What about this header? |
|
|
4873 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
4874 | yes:no: ) |
|
|
4875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
4876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
4877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
4878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
4879 | ac_header_preproc=yes |
|
|
4880 | ;; |
|
|
4881 | no:yes:* ) |
|
|
4882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
4883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
4884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
4885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
4886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
4887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
4888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
4889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
4890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
4891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
4892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
4893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
4894 | ( |
|
|
4895 | cat <<\_ASBOX |
|
|
4896 | ## ------------------------------------------ ## |
|
|
4897 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
4898 | ## ------------------------------------------ ## |
|
|
4899 | _ASBOX |
|
|
4900 | ) | |
|
|
4901 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
4902 | ;; |
|
|
4903 | esac |
|
|
4904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4908 | else |
|
|
4909 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
4910 | fi |
|
|
4911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4913 | |
|
|
4914 | fi |
|
|
4915 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4916 | cat >>confdefs.h <<_ACEOF |
|
|
4917 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4918 | _ACEOF |
|
|
4919 | |
|
|
4920 | fi |
|
|
4921 | |
|
|
4922 | done |
|
|
4923 | |
|
|
4924 | |
|
|
4925 | |
|
|
4926 | |
|
|
4927 | |
|
|
4928 | # Only perform the check for file, if the check method requires it |
|
|
4929 | case "$deplibs_check_method" in |
|
|
4930 | file_magic*) |
|
|
4931 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
|
4932 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
4933 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
4934 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4936 | else |
|
|
4937 | case "$MAGIC_CMD" in |
|
|
4938 | /*) |
|
|
4939 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
4940 | ;; |
|
|
4941 | ?:/*) |
|
|
4942 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
4943 | ;; |
|
|
4944 | *) |
|
|
4945 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
4946 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
4947 | ac_dummy="/usr/bin:$PATH" |
|
|
4948 | for ac_dir in $ac_dummy; do |
|
|
4949 | test -z "$ac_dir" && ac_dir=. |
|
|
4950 | if test -f $ac_dir/${ac_tool_prefix}file; then |
|
|
4951 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
|
4952 | if test -n "$file_magic_test_file"; then |
|
|
4953 | case "$deplibs_check_method" in |
|
|
4954 | "file_magic "*) |
|
|
4955 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
4956 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4957 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
4958 | egrep "$file_magic_regex" > /dev/null; then |
|
|
4959 | : |
|
|
4960 | else |
|
|
4961 | cat <<EOF 1>&2 |
|
|
4962 | |
|
|
4963 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
4964 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
4965 | *** The result is that libtool may fail to recognize shared libraries |
|
|
4966 | *** as such. This will affect the creation of libtool libraries that |
|
|
4967 | *** depend on shared libraries, but programs linked with such libtool |
|
|
4968 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
4969 | *** may want to report the problem to your system manager and/or to |
|
|
4970 | *** bug-libtool@gnu.org |
|
|
4971 | |
|
|
4972 | EOF |
|
|
4973 | fi ;; |
|
|
4974 | esac |
|
|
4975 | fi |
|
|
4976 | break |
|
|
4977 | fi |
|
|
4978 | done |
|
|
4979 | IFS="$ac_save_ifs" |
|
|
4980 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
4981 | ;; |
|
|
4982 | esac |
|
|
4983 | fi |
|
|
4984 | |
|
|
4985 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4986 | if test -n "$MAGIC_CMD"; then |
|
|
4987 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
4988 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
4989 | else |
|
|
4990 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4991 | echo "${ECHO_T}no" >&6 |
|
|
4992 | fi |
|
|
4993 | |
|
|
4994 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
|
4995 | if test -n "$ac_tool_prefix"; then |
|
|
4996 | echo "$as_me:$LINENO: checking for file" >&5 |
|
|
4997 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
4998 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5000 | else |
|
|
5001 | case "$MAGIC_CMD" in |
|
|
5002 | /*) |
|
|
5003 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
5004 | ;; |
|
|
5005 | ?:/*) |
|
|
5006 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
5007 | ;; |
|
|
5008 | *) |
|
|
5009 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
5010 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
5011 | ac_dummy="/usr/bin:$PATH" |
|
|
5012 | for ac_dir in $ac_dummy; do |
|
|
5013 | test -z "$ac_dir" && ac_dir=. |
|
|
5014 | if test -f $ac_dir/file; then |
|
|
5015 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
5016 | if test -n "$file_magic_test_file"; then |
|
|
5017 | case "$deplibs_check_method" in |
|
|
5018 | "file_magic "*) |
|
|
5019 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
5020 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5021 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
5022 | egrep "$file_magic_regex" > /dev/null; then |
|
|
5023 | : |
|
|
5024 | else |
|
|
5025 | cat <<EOF 1>&2 |
|
|
5026 | |
|
|
5027 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
5028 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
5029 | *** The result is that libtool may fail to recognize shared libraries |
|
|
5030 | *** as such. This will affect the creation of libtool libraries that |
|
|
5031 | *** depend on shared libraries, but programs linked with such libtool |
|
|
5032 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
5033 | *** may want to report the problem to your system manager and/or to |
|
|
5034 | *** bug-libtool@gnu.org |
|
|
5035 | |
|
|
5036 | EOF |
|
|
5037 | fi ;; |
|
|
5038 | esac |
|
|
5039 | fi |
|
|
5040 | break |
|
|
5041 | fi |
|
|
5042 | done |
|
|
5043 | IFS="$ac_save_ifs" |
|
|
5044 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
5045 | ;; |
|
|
5046 | esac |
|
|
5047 | fi |
|
|
5048 | |
|
|
5049 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5050 | if test -n "$MAGIC_CMD"; then |
|
|
5051 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
5052 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
5053 | else |
|
|
5054 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5055 | echo "${ECHO_T}no" >&6 |
|
|
5056 | fi |
|
|
5057 | |
|
|
5058 | else |
|
|
5059 | MAGIC_CMD=: |
|
|
5060 | fi |
|
|
5061 | fi |
|
|
5062 | |
|
|
5063 | fi |
|
|
5064 | ;; |
|
|
5065 | esac |
|
|
5066 | |
|
|
5067 | if test -n "$ac_tool_prefix"; then |
|
|
5068 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
5069 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
5070 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5072 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
5073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5074 | else |
|
|
5075 | if test -n "$RANLIB"; then |
|
|
5076 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
5077 | else |
|
|
5078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5079 | for as_dir in $PATH |
|
|
5080 | do |
|
|
5081 | IFS=$as_save_IFS |
|
|
5082 | test -z "$as_dir" && as_dir=. |
|
|
5083 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5084 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5085 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
5086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5087 | break 2 |
|
|
5088 | fi |
|
|
5089 | done |
|
|
5090 | done |
|
|
5091 | |
|
|
5092 | fi |
|
|
5093 | fi |
|
|
5094 | RANLIB=$ac_cv_prog_RANLIB |
|
|
5095 | if test -n "$RANLIB"; then |
|
|
5096 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
5097 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
5098 | else |
|
|
5099 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5100 | echo "${ECHO_T}no" >&6 |
|
|
5101 | fi |
|
|
5102 | |
|
|
5103 | fi |
|
|
5104 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
5105 | ac_ct_RANLIB=$RANLIB |
|
|
5106 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
5107 | set dummy ranlib; ac_word=$2 |
|
|
5108 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5109 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5110 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
5111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5112 | else |
|
|
5113 | if test -n "$ac_ct_RANLIB"; then |
|
|
5114 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
5115 | else |
|
|
5116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5117 | for as_dir in $PATH |
|
|
5118 | do |
|
|
5119 | IFS=$as_save_IFS |
|
|
5120 | test -z "$as_dir" && as_dir=. |
|
|
5121 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5122 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5123 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
5124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5125 | break 2 |
|
|
5126 | fi |
|
|
5127 | done |
|
|
5128 | done |
|
|
5129 | |
|
|
5130 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
5131 | fi |
|
|
5132 | fi |
|
|
5133 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
5134 | if test -n "$ac_ct_RANLIB"; then |
|
|
5135 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
5136 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
5137 | else |
|
|
5138 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5139 | echo "${ECHO_T}no" >&6 |
|
|
5140 | fi |
|
|
5141 | |
|
|
5142 | RANLIB=$ac_ct_RANLIB |
|
|
5143 | else |
|
|
5144 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
5145 | fi |
|
|
5146 | |
|
|
5147 | if test -n "$ac_tool_prefix"; then |
|
|
5148 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
5149 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
5150 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5151 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5152 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
5153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5154 | else |
|
|
5155 | if test -n "$STRIP"; then |
|
|
5156 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
5157 | else |
|
|
5158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5159 | for as_dir in $PATH |
|
|
5160 | do |
|
|
5161 | IFS=$as_save_IFS |
|
|
5162 | test -z "$as_dir" && as_dir=. |
|
|
5163 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5164 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5165 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
5166 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5167 | break 2 |
|
|
5168 | fi |
|
|
5169 | done |
|
|
5170 | done |
|
|
5171 | |
|
|
5172 | fi |
|
|
5173 | fi |
|
|
5174 | STRIP=$ac_cv_prog_STRIP |
|
|
5175 | if test -n "$STRIP"; then |
|
|
5176 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
5177 | echo "${ECHO_T}$STRIP" >&6 |
|
|
5178 | else |
|
|
5179 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5180 | echo "${ECHO_T}no" >&6 |
|
|
5181 | fi |
|
|
5182 | |
|
|
5183 | fi |
|
|
5184 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
5185 | ac_ct_STRIP=$STRIP |
|
|
5186 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
5187 | set dummy strip; ac_word=$2 |
|
|
5188 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5190 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
5191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5192 | else |
|
|
5193 | if test -n "$ac_ct_STRIP"; then |
|
|
5194 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
5195 | else |
|
|
5196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5197 | for as_dir in $PATH |
|
|
5198 | do |
|
|
5199 | IFS=$as_save_IFS |
|
|
5200 | test -z "$as_dir" && as_dir=. |
|
|
5201 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5202 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5203 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
5204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5205 | break 2 |
|
|
5206 | fi |
|
|
5207 | done |
|
|
5208 | done |
|
|
5209 | |
|
|
5210 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
5211 | fi |
|
|
5212 | fi |
|
|
5213 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
5214 | if test -n "$ac_ct_STRIP"; then |
|
|
5215 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
5216 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
5217 | else |
|
|
5218 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5219 | echo "${ECHO_T}no" >&6 |
|
|
5220 | fi |
|
|
5221 | |
|
|
5222 | STRIP=$ac_ct_STRIP |
|
|
5223 | else |
|
|
5224 | STRIP="$ac_cv_prog_STRIP" |
|
|
5225 | fi |
|
|
5226 | |
|
|
5227 | |
|
|
5228 | enable_dlopen=no |
|
|
5229 | enable_win32_dll=no |
|
|
5230 | |
|
|
5231 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
5232 | if test "${enable_libtool_lock+set}" = set; then |
|
|
5233 | enableval="$enable_libtool_lock" |
|
|
5234 | |
|
|
5235 | fi; |
|
|
5236 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
|
5237 | |
|
|
5238 | # Some flags need to be propagated to the compiler or linker for good |
|
|
5239 | # libtool support. |
|
|
5240 | case "$host" in |
|
|
5241 | *-*-irix6*) |
|
|
5242 | # Find out which ABI we are using. |
|
|
5243 | echo '#line 5243 "configure"' > conftest.$ac_ext |
|
|
5244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5245 | (eval $ac_compile) 2>&5 |
|
|
5246 | ac_status=$? |
|
|
5247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5248 | (exit $ac_status); }; then |
|
|
5249 | case "`/usr/bin/file conftest.$ac_objext`" in |
|
|
5250 | *32-bit*) |
|
|
5251 | LD="${LD-ld} -32" |
|
|
5252 | ;; |
|
|
5253 | *N32*) |
|
|
5254 | LD="${LD-ld} -n32" |
|
|
5255 | ;; |
|
|
5256 | *64-bit*) |
|
|
5257 | LD="${LD-ld} -64" |
|
|
5258 | ;; |
|
|
5259 | esac |
|
|
5260 | fi |
|
|
5261 | rm -rf conftest* |
|
|
5262 | ;; |
|
|
5263 | |
|
|
5264 | *-*-sco3.2v5*) |
|
|
5265 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
|
5266 | SAVE_CFLAGS="$CFLAGS" |
|
|
5267 | CFLAGS="$CFLAGS -belf" |
|
|
5268 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
5269 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
5270 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
|
5271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5272 | else |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | ac_ext=c |
|
|
5276 | ac_cpp='$CPP $CPPFLAGS' |
|
|
5277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
5280 | |
|
|
5281 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5282 | /* confdefs.h. */ |
|
|
5283 | _ACEOF |
|
|
5284 | cat confdefs.h >>conftest.$ac_ext |
|
|
5285 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5286 | /* end confdefs.h. */ |
|
|
5287 | |
|
|
5288 | int |
|
|
5289 | main () |
|
|
5290 | { |
|
|
5291 | |
|
|
5292 | ; |
|
|
5293 | return 0; |
|
|
5294 | } |
|
|
5295 | _ACEOF |
|
|
5296 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5298 | (eval $ac_link) 2>conftest.er1 |
|
|
5299 | ac_status=$? |
|
|
5300 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5301 | rm -f conftest.er1 |
|
|
5302 | cat conftest.err >&5 |
|
|
5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5304 | (exit $ac_status); } && |
|
|
5305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
5306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5307 | (eval $ac_try) 2>&5 |
|
|
5308 | ac_status=$? |
|
|
5309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5310 | (exit $ac_status); }; } && |
|
|
5311 | { ac_try='test -s conftest$ac_exeext' |
|
|
5312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5313 | (eval $ac_try) 2>&5 |
|
|
5314 | ac_status=$? |
|
|
5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5316 | (exit $ac_status); }; }; then |
|
|
5317 | lt_cv_cc_needs_belf=yes |
|
|
5318 | else |
|
|
5319 | echo "$as_me: failed program was:" >&5 |
|
|
5320 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5321 | |
|
|
5322 | lt_cv_cc_needs_belf=no |
|
|
5323 | fi |
|
|
5324 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5325 | conftest$ac_exeext conftest.$ac_ext |
|
|
5326 | ac_ext=cc |
|
|
5327 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5328 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5329 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5330 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5331 | |
|
|
5332 | fi |
|
|
5333 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
5334 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
5335 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
5336 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
5337 | CFLAGS="$SAVE_CFLAGS" |
|
|
5338 | fi |
|
|
5339 | ;; |
|
|
5340 | |
|
|
5341 | |
|
|
5342 | esac |
|
|
5343 | |
|
|
5344 | # Sed substitution that helps us do robust quoting. It backslashifies |
|
|
5345 | # metacharacters that are still active within double-quoted strings. |
|
|
5346 | Xsed='sed -e s/^X//' |
|
|
5347 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
|
5348 | |
|
|
5349 | # Same as above, but do not quote variable references. |
|
|
5350 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
|
5351 | |
|
|
5352 | # Sed substitution to delay expansion of an escaped shell variable in a |
|
|
5353 | # double_quote_subst'ed string. |
|
|
5354 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
|
5355 | |
|
|
5356 | # Constants: |
|
|
5357 | rm="rm -f" |
|
|
5358 | |
|
|
5359 | # Global variables: |
|
|
5360 | default_ofile=libtool |
|
|
5361 | can_build_shared=yes |
|
|
5362 | |
|
|
5363 | # All known linkers require a `.a' archive for static linking (except M$VC, |
|
|
5364 | # which needs '.lib'). |
|
|
5365 | libext=a |
|
|
5366 | ltmain="$ac_aux_dir/ltmain.sh" |
|
|
5367 | ofile="$default_ofile" |
|
|
5368 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
5369 | need_locks="$enable_libtool_lock" |
|
|
5370 | |
|
|
5371 | old_CC="$CC" |
|
|
5372 | old_CFLAGS="$CFLAGS" |
|
|
5373 | |
|
|
5374 | # Set sane defaults for various variables |
|
|
5375 | test -z "$AR" && AR=ar |
|
|
5376 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
5377 | test -z "$AS" && AS=as |
|
|
5378 | test -z "$CC" && CC=cc |
|
|
5379 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
5380 | test -z "$LD" && LD=ld |
|
|
5381 | test -z "$LN_S" && LN_S="ln -s" |
|
|
5382 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
5383 | test -z "$NM" && NM=nm |
|
|
5384 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
5385 | test -z "$RANLIB" && RANLIB=: |
|
|
5386 | test -z "$STRIP" && STRIP=: |
|
|
5387 | test -z "$ac_objext" && ac_objext=o |
|
|
5388 | |
|
|
5389 | if test x"$host" != x"$build"; then |
|
|
5390 | ac_tool_prefix=${host_alias}- |
|
|
5391 | else |
|
|
5392 | ac_tool_prefix= |
|
|
5393 | fi |
|
|
5394 | |
|
|
5395 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
|
|
5396 | case "$host_os" in |
|
|
5397 | linux-gnu*) ;; |
|
|
5398 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
|
|
5399 | esac |
|
|
5400 | |
|
|
5401 | case "$host_os" in |
|
|
5402 | aix3*) |
|
|
5403 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
5404 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
5405 | # vanish in a puff of smoke. |
|
|
5406 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
5407 | COLLECT_NAMES= |
|
|
5408 | export COLLECT_NAMES |
|
|
5409 | fi |
|
|
5410 | ;; |
|
|
5411 | esac |
|
|
5412 | |
|
|
5413 | # Determine commands to create old-style static archives. |
|
|
5414 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
5415 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
5416 | old_postuninstall_cmds= |
|
|
5417 | |
|
|
5418 | if test -n "$RANLIB"; then |
|
|
5419 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
5420 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
5421 | fi |
|
|
5422 | |
|
|
5423 | # Allow CC to be a program name with arguments. |
|
|
5424 | set dummy $CC |
|
|
5425 | compiler="$2" |
|
|
5426 | |
|
|
5427 | ## FIXME: this should be a separate macro |
|
|
5428 | ## |
|
|
5429 | echo "$as_me:$LINENO: checking for objdir" >&5 |
|
|
5430 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
|
5431 | rm -f .libs 2>/dev/null |
|
|
5432 | mkdir .libs 2>/dev/null |
|
|
5433 | if test -d .libs; then |
|
|
5434 | objdir=.libs |
|
|
5435 | else |
|
|
5436 | # MS-DOS does not allow filenames that begin with a dot. |
|
|
5437 | objdir=_libs |
|
|
5438 | fi |
|
|
5439 | rmdir .libs 2>/dev/null |
|
|
5440 | echo "$as_me:$LINENO: result: $objdir" >&5 |
|
|
5441 | echo "${ECHO_T}$objdir" >&6 |
|
|
5442 | ## |
|
|
5443 | ## END FIXME |
|
|
5444 | |
|
|
5445 | |
|
|
5446 | ## FIXME: this should be a separate macro |
|
|
5447 | ## |
|
|
5448 | |
|
|
5449 | # Check whether --with-pic or --without-pic was given. |
|
|
5450 | if test "${with_pic+set}" = set; then |
|
|
5451 | withval="$with_pic" |
|
|
5452 | pic_mode="$withval" |
|
|
5453 | else |
|
|
5454 | pic_mode=default |
|
|
5455 | fi; |
|
|
5456 | test -z "$pic_mode" && pic_mode=default |
|
|
5457 | |
|
|
5458 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
|
|
5459 | # in isolation, and that seeing it set (from the cache) indicates that |
|
|
5460 | # the associated values are set (in the cache) correctly too. |
|
|
5461 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
5462 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
5463 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
|
|
5464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5465 | else |
|
|
5466 | lt_cv_prog_cc_pic= |
|
|
5467 | lt_cv_prog_cc_shlib= |
|
|
5468 | lt_cv_prog_cc_wl= |
|
|
5469 | lt_cv_prog_cc_static= |
|
|
5470 | lt_cv_prog_cc_no_builtin= |
|
|
5471 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
|
|
5472 | |
|
|
5473 | if test "$GCC" = yes; then |
|
|
5474 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5475 | lt_cv_prog_cc_static='-static' |
|
|
5476 | |
|
|
5477 | case "$host_os" in |
|
|
5478 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
|
|
5479 | # PIC is the default for these OSes. |
|
|
5480 | ;; |
|
|
5481 | aix*) |
|
|
5482 | # Below there is a dirty hack to force normal static linking with -ldl |
|
|
5483 | # The problem is because libdl dynamically linked with both libc and |
|
|
5484 | # libC (AIX C++ library), which obviously doesn't included in libraries |
|
|
5485 | # list by gcc. This cause undefined symbols with -static flags. |
|
|
5486 | # This hack allows C programs to be linked with "-static -ldl", but |
|
|
5487 | # we not sure about C++ programs. |
|
|
5488 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
|
|
5489 | ;; |
|
|
5490 | cygwin* | mingw* | pw32* | os2*) |
|
|
5491 | # This hack is so that the source file can tell whether it is being |
|
|
5492 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5493 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5494 | ;; |
|
|
5495 | amigaos*) |
|
|
5496 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
5497 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
5498 | # like `-m68040'. |
|
|
5499 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
5500 | ;; |
|
|
5501 | sysv4*MP*) |
|
|
5502 | if test -d /usr/nec; then |
|
|
5503 | lt_cv_prog_cc_pic=-Kconform_pic |
|
|
5504 | fi |
|
|
5505 | ;; |
|
|
5506 | *) |
|
|
5507 | lt_cv_prog_cc_pic='-fPIC' |
|
|
5508 | ;; |
|
|
5509 | esac |
|
|
5510 | else |
|
|
5511 | # PORTME Check for PIC flags for the system compiler. |
|
|
5512 | case "$host_os" in |
|
|
5513 | aix3* | aix4*) |
|
|
5514 | # All AIX code is PIC. |
|
|
5515 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
|
|
5516 | ;; |
|
|
5517 | |
|
|
5518 | hpux9* | hpux10* | hpux11*) |
|
|
5519 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
|
|
5520 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5521 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
|
|
5522 | lt_cv_prog_cc_pic='+Z' |
|
|
5523 | ;; |
|
|
5524 | |
|
|
5525 | irix5* | irix6*) |
|
|
5526 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5527 | lt_cv_prog_cc_static='-non_shared' |
|
|
5528 | # PIC (with -KPIC) is the default. |
|
|
5529 | ;; |
|
|
5530 | |
|
|
5531 | cygwin* | mingw* | pw32* | os2*) |
|
|
5532 | # This hack is so that the source file can tell whether it is being |
|
|
5533 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5534 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5535 | ;; |
|
|
5536 | |
|
|
5537 | newsos6) |
|
|
5538 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5539 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5540 | ;; |
|
|
5541 | |
|
|
5542 | osf3* | osf4* | osf5*) |
|
|
5543 | # All OSF/1 code is PIC. |
|
|
5544 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5545 | lt_cv_prog_cc_static='-non_shared' |
|
|
5546 | ;; |
|
|
5547 | |
|
|
5548 | sco3.2v5*) |
|
|
5549 | lt_cv_prog_cc_pic='-Kpic' |
|
|
5550 | lt_cv_prog_cc_static='-dn' |
|
|
5551 | lt_cv_prog_cc_shlib='-belf' |
|
|
5552 | ;; |
|
|
5553 | |
|
|
5554 | solaris*) |
|
|
5555 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5556 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5557 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5558 | ;; |
|
|
5559 | |
|
|
5560 | sunos4*) |
|
|
5561 | lt_cv_prog_cc_pic='-PIC' |
|
|
5562 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5563 | lt_cv_prog_cc_wl='-Qoption ld ' |
|
|
5564 | ;; |
|
|
5565 | |
|
|
5566 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
5567 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5568 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5569 | if test "x$host_vendor" = xsni; then |
|
|
5570 | lt_cv_prog_cc_wl='-LD' |
|
|
5571 | else |
|
|
5572 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5573 | fi |
|
|
5574 | ;; |
|
|
5575 | |
|
|
5576 | uts4*) |
|
|
5577 | lt_cv_prog_cc_pic='-pic' |
|
|
5578 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5579 | ;; |
|
|
5580 | |
|
|
5581 | sysv4*MP*) |
|
|
5582 | if test -d /usr/nec ;then |
|
|
5583 | lt_cv_prog_cc_pic='-Kconform_pic' |
|
|
5584 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5585 | fi |
|
|
5586 | ;; |
|
|
5587 | |
|
|
5588 | *) |
|
|
5589 | lt_cv_prog_cc_can_build_shared=no |
|
|
5590 | ;; |
|
|
5591 | esac |
|
|
5592 | fi |
|
|
5593 | |
|
|
5594 | fi |
|
|
5595 | |
|
|
5596 | if test -z "$lt_cv_prog_cc_pic"; then |
|
|
5597 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
5598 | echo "${ECHO_T}none" >&6 |
|
|
5599 | else |
|
|
5600 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
|
|
5601 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
|
|
5602 | |
|
|
5603 | # Check to make sure the pic_flag actually works. |
|
|
5604 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
|
|
5605 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
|
|
5606 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
|
|
5607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5608 | else |
|
|
5609 | save_CFLAGS="$CFLAGS" |
|
|
5610 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
|
|
5611 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5612 | /* confdefs.h. */ |
|
|
5613 | _ACEOF |
|
|
5614 | cat confdefs.h >>conftest.$ac_ext |
|
|
5615 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5616 | /* end confdefs.h. */ |
|
|
5617 | |
|
|
5618 | int |
|
|
5619 | main () |
|
|
5620 | { |
|
|
5621 | |
|
|
5622 | ; |
|
|
5623 | return 0; |
|
|
5624 | } |
|
|
5625 | _ACEOF |
|
|
5626 | rm -f conftest.$ac_objext |
|
|
5627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5628 | (eval $ac_compile) 2>conftest.er1 |
|
|
5629 | ac_status=$? |
|
|
5630 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5631 | rm -f conftest.er1 |
|
|
5632 | cat conftest.err >&5 |
|
|
5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5634 | (exit $ac_status); } && |
|
|
5635 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5637 | (eval $ac_try) 2>&5 |
|
|
5638 | ac_status=$? |
|
|
5639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5640 | (exit $ac_status); }; } && |
|
|
5641 | { ac_try='test -s conftest.$ac_objext' |
|
|
5642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5643 | (eval $ac_try) 2>&5 |
|
|
5644 | ac_status=$? |
|
|
5645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5646 | (exit $ac_status); }; }; then |
|
|
5647 | case "$host_os" in |
|
|
5648 | hpux9* | hpux10* | hpux11*) |
|
|
5649 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
|
|
5650 | # they create non-PIC objects. So, if there were any warnings, we |
|
|
5651 | # assume that PIC is not supported. |
|
|
5652 | if test -s conftest.err; then |
|
|
5653 | lt_cv_prog_cc_pic_works=no |
|
|
5654 | else |
|
|
5655 | lt_cv_prog_cc_pic_works=yes |
|
|
5656 | fi |
|
|
5657 | ;; |
|
|
5658 | *) |
|
|
5659 | lt_cv_prog_cc_pic_works=yes |
|
|
5660 | ;; |
|
|
5661 | esac |
|
|
5662 | |
|
|
5663 | else |
|
|
5664 | echo "$as_me: failed program was:" >&5 |
|
|
5665 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5666 | |
|
|
5667 | lt_cv_prog_cc_pic_works=no |
|
|
5668 | |
|
|
5669 | fi |
|
|
5670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5671 | CFLAGS="$save_CFLAGS" |
|
|
5672 | |
|
|
5673 | fi |
|
|
5674 | |
|
|
5675 | |
|
|
5676 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
|
|
5677 | lt_cv_prog_cc_pic= |
|
|
5678 | lt_cv_prog_cc_can_build_shared=no |
|
|
5679 | else |
|
|
5680 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
|
|
5681 | fi |
|
|
5682 | |
|
|
5683 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
|
|
5684 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
|
|
5685 | fi |
|
|
5686 | ## |
|
|
5687 | ## END FIXME |
|
|
5688 | |
|
|
5689 | # Check for any special shared library compilation flags. |
|
|
5690 | if test -n "$lt_cv_prog_cc_shlib"; then |
|
|
5691 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
|
|
5692 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
5693 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
5694 | else |
|
|
5695 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
5696 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
5697 | lt_cv_prog_cc_can_build_shared=no |
|
|
5698 | fi |
|
|
5699 | fi |
|
|
5700 | |
|
|
5701 | ## FIXME: this should be a separate macro |
|
|
5702 | ## |
|
|
5703 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
|
|
5704 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
|
|
5705 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
|
|
5706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5707 | else |
|
|
5708 | lt_cv_prog_cc_static_works=no |
|
|
5709 | save_LDFLAGS="$LDFLAGS" |
|
|
5710 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
|
|
5711 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5712 | /* confdefs.h. */ |
|
|
5713 | _ACEOF |
|
|
5714 | cat confdefs.h >>conftest.$ac_ext |
|
|
5715 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5716 | /* end confdefs.h. */ |
|
|
5717 | |
|
|
5718 | int |
|
|
5719 | main () |
|
|
5720 | { |
|
|
5721 | |
|
|
5722 | ; |
|
|
5723 | return 0; |
|
|
5724 | } |
|
|
5725 | _ACEOF |
|
|
5726 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5728 | (eval $ac_link) 2>conftest.er1 |
|
|
5729 | ac_status=$? |
|
|
5730 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5731 | rm -f conftest.er1 |
|
|
5732 | cat conftest.err >&5 |
|
|
5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5734 | (exit $ac_status); } && |
|
|
5735 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5737 | (eval $ac_try) 2>&5 |
|
|
5738 | ac_status=$? |
|
|
5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5740 | (exit $ac_status); }; } && |
|
|
5741 | { ac_try='test -s conftest$ac_exeext' |
|
|
5742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5743 | (eval $ac_try) 2>&5 |
|
|
5744 | ac_status=$? |
|
|
5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5746 | (exit $ac_status); }; }; then |
|
|
5747 | lt_cv_prog_cc_static_works=yes |
|
|
5748 | else |
|
|
5749 | echo "$as_me: failed program was:" >&5 |
|
|
5750 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5751 | |
|
|
5752 | fi |
|
|
5753 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5754 | conftest$ac_exeext conftest.$ac_ext |
|
|
5755 | LDFLAGS="$save_LDFLAGS" |
|
|
5756 | |
|
|
5757 | fi |
|
|
5758 | |
|
|
5759 | |
|
|
5760 | # Belt *and* braces to stop my trousers falling down: |
|
|
5761 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
|
|
5762 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
|
|
5763 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
|
|
5764 | |
|
|
5765 | pic_flag="$lt_cv_prog_cc_pic" |
|
|
5766 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
|
|
5767 | wl="$lt_cv_prog_cc_wl" |
|
|
5768 | link_static_flag="$lt_cv_prog_cc_static" |
|
|
5769 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
5770 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
5771 | ## |
|
|
5772 | ## END FIXME |
|
|
5773 | |
|
|
5774 | |
|
|
5775 | ## FIXME: this should be a separate macro |
|
|
5776 | ## |
|
|
5777 | # Check to see if options -o and -c are simultaneously supported by compiler |
|
|
5778 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
5779 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
5780 | $rm -r conftest 2>/dev/null |
|
|
5781 | mkdir conftest |
|
|
5782 | cd conftest |
|
|
5783 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5784 | mkdir out |
|
|
5785 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
5786 | # that will create temporary files in the current directory regardless of |
|
|
5787 | # the output directory. Thus, making CWD read-only will cause this test |
|
|
5788 | # to fail, enabling locking or at least warning the user not to do parallel |
|
|
5789 | # builds. |
|
|
5790 | chmod -w . |
|
|
5791 | save_CFLAGS="$CFLAGS" |
|
|
5792 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
|
|
5793 | compiler_c_o=no |
|
|
5794 | if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
|
5795 | # The compiler can only warn and ignore the option if not recognized |
|
|
5796 | # So say no if there are warnings |
|
|
5797 | if test -s out/conftest.err; then |
|
|
5798 | compiler_c_o=no |
|
|
5799 | else |
|
|
5800 | compiler_c_o=yes |
|
|
5801 | fi |
|
|
5802 | else |
|
|
5803 | # Append any errors to the config.log. |
|
|
5804 | cat out/conftest.err 1>&5 |
|
|
5805 | compiler_c_o=no |
|
|
5806 | fi |
|
|
5807 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5808 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5809 | CFLAGS="$save_CFLAGS" |
|
|
5810 | chmod u+w . |
|
|
5811 | $rm conftest* out/* |
|
|
5812 | rmdir out |
|
|
5813 | cd .. |
|
|
5814 | rmdir conftest |
|
|
5815 | $rm -r conftest 2>/dev/null |
|
|
5816 | |
|
|
5817 | if test x"$compiler_c_o" = x"yes"; then |
|
|
5818 | # Check to see if we can write to a .lo |
|
|
5819 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
|
|
5820 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
|
|
5821 | compiler_o_lo=no |
|
|
5822 | save_CFLAGS="$CFLAGS" |
|
|
5823 | CFLAGS="$CFLAGS -c -o conftest.lo" |
|
|
5824 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5825 | /* confdefs.h. */ |
|
|
5826 | _ACEOF |
|
|
5827 | cat confdefs.h >>conftest.$ac_ext |
|
|
5828 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5829 | /* end confdefs.h. */ |
|
|
5830 | |
|
|
5831 | int |
|
|
5832 | main () |
|
|
5833 | { |
|
|
5834 | int some_variable = 0; |
|
|
5835 | ; |
|
|
5836 | return 0; |
|
|
5837 | } |
|
|
5838 | _ACEOF |
|
|
5839 | rm -f conftest.$ac_objext |
|
|
5840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5841 | (eval $ac_compile) 2>conftest.er1 |
|
|
5842 | ac_status=$? |
|
|
5843 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5844 | rm -f conftest.er1 |
|
|
5845 | cat conftest.err >&5 |
|
|
5846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5847 | (exit $ac_status); } && |
|
|
5848 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5850 | (eval $ac_try) 2>&5 |
|
|
5851 | ac_status=$? |
|
|
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5853 | (exit $ac_status); }; } && |
|
|
5854 | { ac_try='test -s conftest.$ac_objext' |
|
|
5855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5856 | (eval $ac_try) 2>&5 |
|
|
5857 | ac_status=$? |
|
|
5858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5859 | (exit $ac_status); }; }; then |
|
|
5860 | # The compiler can only warn and ignore the option if not recognized |
|
|
5861 | # So say no if there are warnings |
|
|
5862 | if test -s conftest.err; then |
|
|
5863 | compiler_o_lo=no |
|
|
5864 | else |
|
|
5865 | compiler_o_lo=yes |
|
|
5866 | fi |
|
|
5867 | |
|
|
5868 | else |
|
|
5869 | echo "$as_me: failed program was:" >&5 |
|
|
5870 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5871 | |
|
|
5872 | fi |
|
|
5873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5874 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5875 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5876 | CFLAGS="$save_CFLAGS" |
|
|
5877 | else |
|
|
5878 | compiler_o_lo=no |
|
|
5879 | fi |
|
|
5880 | ## |
|
|
5881 | ## END FIXME |
|
|
5882 | |
|
|
5883 | ## FIXME: this should be a separate macro |
|
|
5884 | ## |
|
|
5885 | # Check to see if we can do hard links to lock some files if needed |
|
|
5886 | hard_links="nottested" |
|
|
5887 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
5888 | # do not overwrite the value of need_locks provided by the user |
|
|
5889 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
5890 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
5891 | hard_links=yes |
|
|
5892 | $rm conftest* |
|
|
5893 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5894 | touch conftest.a |
|
|
5895 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
5896 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5897 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
5898 | echo "${ECHO_T}$hard_links" >&6 |
|
|
5899 | if test "$hard_links" = no; then |
|
|
5900 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
5901 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
5902 | need_locks=warn |
|
|
5903 | fi |
|
|
5904 | else |
|
|
5905 | need_locks=no |
|
|
5906 | fi |
|
|
5907 | ## |
|
|
5908 | ## END FIXME |
|
|
5909 | |
|
|
5910 | ## FIXME: this should be a separate macro |
|
|
5911 | ## |
|
|
5912 | if test "$GCC" = yes; then |
|
|
5913 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
|
|
5914 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
5915 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
5916 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5917 | save_CFLAGS="$CFLAGS" |
|
|
5918 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
|
|
5919 | compiler_rtti_exceptions=no |
|
|
5920 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5921 | /* confdefs.h. */ |
|
|
5922 | _ACEOF |
|
|
5923 | cat confdefs.h >>conftest.$ac_ext |
|
|
5924 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5925 | /* end confdefs.h. */ |
|
|
5926 | |
|
|
5927 | int |
|
|
5928 | main () |
|
|
5929 | { |
|
|
5930 | int some_variable = 0; |
|
|
5931 | ; |
|
|
5932 | return 0; |
|
|
5933 | } |
|
|
5934 | _ACEOF |
|
|
5935 | rm -f conftest.$ac_objext |
|
|
5936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5937 | (eval $ac_compile) 2>conftest.er1 |
|
|
5938 | ac_status=$? |
|
|
5939 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5940 | rm -f conftest.er1 |
|
|
5941 | cat conftest.err >&5 |
|
|
5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5943 | (exit $ac_status); } && |
|
|
5944 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5946 | (eval $ac_try) 2>&5 |
|
|
5947 | ac_status=$? |
|
|
5948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5949 | (exit $ac_status); }; } && |
|
|
5950 | { ac_try='test -s conftest.$ac_objext' |
|
|
5951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5952 | (eval $ac_try) 2>&5 |
|
|
5953 | ac_status=$? |
|
|
5954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5955 | (exit $ac_status); }; }; then |
|
|
5956 | # The compiler can only warn and ignore the option if not recognized |
|
|
5957 | # So say no if there are warnings |
|
|
5958 | if test -s conftest.err; then |
|
|
5959 | compiler_rtti_exceptions=no |
|
|
5960 | else |
|
|
5961 | compiler_rtti_exceptions=yes |
|
|
5962 | fi |
|
|
5963 | |
|
|
5964 | else |
|
|
5965 | echo "$as_me: failed program was:" >&5 |
|
|
5966 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5967 | |
|
|
5968 | fi |
|
|
5969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5970 | CFLAGS="$save_CFLAGS" |
|
|
5971 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
|
|
5972 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
|
|
5973 | |
|
|
5974 | if test "$compiler_rtti_exceptions" = "yes"; then |
|
|
5975 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
|
|
5976 | else |
|
|
5977 | no_builtin_flag=' -fno-builtin' |
|
|
5978 | fi |
|
|
5979 | fi |
|
|
5980 | ## |
|
|
5981 | ## END FIXME |
|
|
5982 | |
|
|
5983 | ## FIXME: this should be a separate macro |
|
|
5984 | ## |
|
|
5985 | # See if the linker supports building shared libraries. |
|
|
5986 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
|
|
5987 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
5988 | |
|
|
5989 | allow_undefined_flag= |
|
|
5990 | no_undefined_flag= |
|
|
5991 | need_lib_prefix=unknown |
|
|
5992 | need_version=unknown |
|
|
5993 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
5994 | # flags to be left without arguments |
|
|
5995 | archive_cmds= |
|
|
5996 | archive_expsym_cmds= |
|
|
5997 | old_archive_from_new_cmds= |
|
|
5998 | old_archive_from_expsyms_cmds= |
|
|
5999 | export_dynamic_flag_spec= |
|
|
6000 | whole_archive_flag_spec= |
|
|
6001 | thread_safe_flag_spec= |
|
|
6002 | hardcode_into_libs=no |
|
|
6003 | hardcode_libdir_flag_spec= |
|
|
6004 | hardcode_libdir_separator= |
|
|
6005 | hardcode_direct=no |
|
|
6006 | hardcode_minus_L=no |
|
|
6007 | hardcode_shlibpath_var=unsupported |
|
|
6008 | runpath_var= |
|
|
6009 | link_all_deplibs=unknown |
|
|
6010 | always_export_symbols=no |
|
|
6011 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
6012 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
6013 | # included in the symbol list |
|
|
6014 | include_expsyms= |
|
|
6015 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
|
|
6016 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
6017 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
6018 | # as well as any symbol that contains `d'. |
|
|
6019 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
6020 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
6021 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
6022 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
6023 | # rely on this symbol name, it's probably fine to never include it in |
|
|
6024 | # preloaded symbol tables. |
|
|
6025 | extract_expsyms_cmds= |
|
|
6026 | |
|
|
6027 | case "$host_os" in |
|
|
6028 | cygwin* | mingw* | pw32* ) |
|
|
6029 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
6030 | # When not using gcc, we currently assume that we are using |
|
|
6031 | # Microsoft Visual C++. |
|
|
6032 | if test "$GCC" != yes; then |
|
|
6033 | with_gnu_ld=no |
|
|
6034 | fi |
|
|
6035 | ;; |
|
|
6036 | |
|
|
6037 | esac |
|
|
6038 | |
|
|
6039 | ld_shlibs=yes |
|
|
6040 | if test "$with_gnu_ld" = yes; then |
|
|
6041 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
6042 | wlarc='${wl}' |
|
|
6043 | |
|
|
6044 | # See if GNU ld supports shared libraries. |
|
|
6045 | case "$host_os" in |
|
|
6046 | aix3* | aix4*) |
|
|
6047 | # On AIX, the GNU linker is very broken |
|
|
6048 | ld_shlibs=no |
|
|
6049 | cat <<EOF 1>&2 |
|
|
6050 | |
|
|
6051 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
6052 | *** to be unable to reliably create shared libraries on AIX. |
|
|
6053 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
6054 | *** really care for shared libraries, you may want to modify your PATH |
|
|
6055 | *** so that a non-GNU linker is found, and then restart. |
|
|
6056 | |
|
|
6057 | EOF |
|
|
6058 | ;; |
|
|
6059 | |
|
|
6060 | amigaos*) |
|
|
6061 | 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)' |
|
|
6062 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6063 | hardcode_minus_L=yes |
|
|
6064 | |
|
|
6065 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
6066 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
6067 | # to version 4, is to share data among multiple programs linked |
|
|
6068 | # with the same dynamic library. Since this doesn't match the |
|
|
6069 | # behavior of shared libraries on other platforms, we can use |
|
|
6070 | # them. |
|
|
6071 | ld_shlibs=no |
|
|
6072 | ;; |
|
|
6073 | |
|
|
6074 | beos*) |
|
|
6075 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6076 | allow_undefined_flag=unsupported |
|
|
6077 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
6078 | # support --undefined. This deserves some investigation. FIXME |
|
|
6079 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6080 | else |
|
|
6081 | ld_shlibs=no |
|
|
6082 | fi |
|
|
6083 | ;; |
|
|
6084 | |
|
|
6085 | cygwin* | mingw* | pw32*) |
|
|
6086 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6087 | # no search path for DLLs. |
|
|
6088 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6089 | allow_undefined_flag=unsupported |
|
|
6090 | always_export_symbols=yes |
|
|
6091 | |
|
|
6092 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
|
|
6093 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
|
|
6094 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
|
|
6095 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
|
|
6096 | else $CC -o impgen impgen.c ; fi)~ |
|
|
6097 | $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def' |
|
|
6098 | |
|
|
6099 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
|
|
6100 | |
|
|
6101 | # cygwin and mingw dlls have different entry points and sets of symbols |
|
|
6102 | # to exclude. |
|
|
6103 | # FIXME: what about values for MSVC? |
|
|
6104 | dll_entry=__cygwin_dll_entry@12 |
|
|
6105 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
|
|
6106 | case "$host_os" in |
|
|
6107 | mingw*) |
|
|
6108 | # mingw values |
|
|
6109 | dll_entry=_DllMainCRTStartup@12 |
|
|
6110 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
|
|
6111 | ;; |
|
|
6112 | esac |
|
|
6113 | |
|
|
6114 | # mingw and cygwin differ, and it's simplest to just exclude the union |
|
|
6115 | # of the two symbol sets. |
|
|
6116 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
|
|
6117 | |
|
|
6118 | # recent cygwin and mingw systems supply a stub DllMain which the user |
|
|
6119 | # can override, but on older systems we have to supply one (in ltdll.c) |
|
|
6120 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
|
|
6121 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
|
|
6122 | 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~ |
|
|
6123 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
|
|
6124 | else |
|
|
6125 | ltdll_obj= |
|
|
6126 | ltdll_cmds= |
|
|
6127 | fi |
|
|
6128 | |
|
|
6129 | # Extract the symbol export list from an `--export-all' def file, |
|
|
6130 | # then regenerate the def file from the symbol export list, so that |
|
|
6131 | # the compiled dll only exports the symbol export list. |
|
|
6132 | # Be careful not to strip the DATA tag left be newer dlltools. |
|
|
6133 | export_symbols_cmds="$ltdll_cmds"' |
|
|
6134 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
|
|
6135 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
|
|
6136 | |
|
|
6137 | # If DATA tags from a recent dlltool are present, honour them! |
|
|
6138 | archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~ |
|
|
6139 | _lt_hint=1; |
|
|
6140 | cat $export_symbols | while read symbol; do |
|
|
6141 | set dummy \$symbol; |
|
|
6142 | case \$# in |
|
|
6143 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
6144 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
|
|
6145 | esac; |
|
|
6146 | _lt_hint=`expr 1 + \$_lt_hint`; |
|
|
6147 | done~ |
|
|
6148 | '"$ltdll_cmds"' |
|
|
6149 | $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~ |
|
|
6150 | $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~ |
|
|
6151 | $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~ |
|
|
6152 | $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~ |
|
|
6153 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
|
|
6154 | ;; |
|
|
6155 | |
|
|
6156 | netbsd*) |
|
|
6157 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6158 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
6159 | wlarc= |
|
|
6160 | else |
|
|
6161 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6162 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6163 | fi |
|
|
6164 | ;; |
|
|
6165 | |
|
|
6166 | solaris* | sysv5*) |
|
|
6167 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
|
|
6168 | ld_shlibs=no |
|
|
6169 | cat <<EOF 1>&2 |
|
|
6170 | |
|
|
6171 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
6172 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
6173 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
6174 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
6175 | *** your PATH or compiler configuration so that the native linker is |
|
|
6176 | *** used, and then restart. |
|
|
6177 | |
|
|
6178 | EOF |
|
|
6179 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6180 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6181 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6182 | else |
|
|
6183 | ld_shlibs=no |
|
|
6184 | fi |
|
|
6185 | ;; |
|
|
6186 | |
|
|
6187 | sunos4*) |
|
|
6188 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6189 | wlarc= |
|
|
6190 | hardcode_direct=yes |
|
|
6191 | hardcode_shlibpath_var=no |
|
|
6192 | ;; |
|
|
6193 | |
|
|
6194 | *) |
|
|
6195 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6196 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6197 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6198 | else |
|
|
6199 | ld_shlibs=no |
|
|
6200 | fi |
|
|
6201 | ;; |
|
|
6202 | esac |
|
|
6203 | |
|
|
6204 | if test "$ld_shlibs" = yes; then |
|
|
6205 | runpath_var=LD_RUN_PATH |
|
|
6206 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
6207 | export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
6208 | case $host_os in |
|
|
6209 | cygwin* | mingw* | pw32*) |
|
|
6210 | # dlltool doesn't understand --whole-archive et. al. |
|
|
6211 | whole_archive_flag_spec= |
|
|
6212 | ;; |
|
|
6213 | *) |
|
|
6214 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
6215 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
|
|
6216 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
6217 | else |
|
|
6218 | whole_archive_flag_spec= |
|
|
6219 | fi |
|
|
6220 | ;; |
|
|
6221 | esac |
|
|
6222 | fi |
|
|
6223 | else |
|
|
6224 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
6225 | case "$host_os" in |
|
|
6226 | aix3*) |
|
|
6227 | allow_undefined_flag=unsupported |
|
|
6228 | always_export_symbols=yes |
|
|
6229 | 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' |
|
|
6230 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
6231 | # are no directories specified by -L. |
|
|
6232 | hardcode_minus_L=yes |
|
|
6233 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
6234 | # Neither direct hardcoding nor static linking is supported with a |
|
|
6235 | # broken collect2. |
|
|
6236 | hardcode_direct=unsupported |
|
|
6237 | fi |
|
|
6238 | ;; |
|
|
6239 | |
|
|
6240 | aix4*) |
|
|
6241 | hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib' |
|
|
6242 | hardcode_libdir_separator=':' |
|
|
6243 | if test "$GCC" = yes; then |
|
|
6244 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
6245 | if test -f "$collect2name" && \ |
|
|
6246 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
6247 | then |
|
|
6248 | # We have reworked collect2 |
|
|
6249 | hardcode_direct=yes |
|
|
6250 | else |
|
|
6251 | # We have old collect2 |
|
|
6252 | hardcode_direct=unsupported |
|
|
6253 | # It fails to find uninstalled libraries when the uninstalled |
|
|
6254 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
6255 | # to unsupported forces relinking |
|
|
6256 | hardcode_minus_L=yes |
|
|
6257 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6258 | hardcode_libdir_separator= |
|
|
6259 | fi |
|
|
6260 | shared_flag='-shared' |
|
|
6261 | else |
|
|
6262 | shared_flag='${wl}-bM:SRE' |
|
|
6263 | hardcode_direct=yes |
|
|
6264 | fi |
|
|
6265 | allow_undefined_flag=' ${wl}-berok' |
|
|
6266 | archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6267 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6268 | case "$host_os" in aix4.[01]|aix4.[01].*) |
|
|
6269 | # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on |
|
|
6270 | always_export_symbols=yes ;; |
|
|
6271 | esac |
|
|
6272 | |
|
|
6273 | # We don't want to build shared libraries on unknown CPU types. |
|
|
6274 | case $host_cpu in |
|
|
6275 | powerpc | rs6000) ;; |
|
|
6276 | *) ld_shlibs=no ;; |
|
|
6277 | esac |
|
|
6278 | ;; |
|
|
6279 | |
|
|
6280 | amigaos*) |
|
|
6281 | 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)' |
|
|
6282 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6283 | hardcode_minus_L=yes |
|
|
6284 | # see comment about different semantics on the GNU ld section |
|
|
6285 | ld_shlibs=no |
|
|
6286 | ;; |
|
|
6287 | |
|
|
6288 | cygwin* | mingw* | pw32*) |
|
|
6289 | # When not using gcc, we currently assume that we are using |
|
|
6290 | # Microsoft Visual C++. |
|
|
6291 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6292 | # no search path for DLLs. |
|
|
6293 | hardcode_libdir_flag_spec=' ' |
|
|
6294 | allow_undefined_flag=unsupported |
|
|
6295 | # Tell ltmain to make .lib files, not .a files. |
|
|
6296 | libext=lib |
|
|
6297 | # FIXME: Setting linknames here is a bad hack. |
|
|
6298 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
6299 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
6300 | old_archive_from_new_cmds='true' |
|
|
6301 | # FIXME: Should let the user specify the lib program. |
|
|
6302 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
6303 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
6304 | ;; |
|
|
6305 | |
|
|
6306 | darwin* | rhapsody*) |
|
|
6307 | allow_undefined_flag='-undefined warning' |
|
|
6308 | archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else |
|
|
6309 | echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts' |
|
|
6310 | archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
|
|
6311 | ## What we need is to hardcode the path to the library, not the search path |
|
|
6312 | #hardcode_direct=yes |
|
|
6313 | #hardcode_libdir_flag_spec='-install_name $libdir/$lib' |
|
|
6314 | hardcode_shlibpath_var=no |
|
|
6315 | whole_archive_flag_spec='-all_load' |
|
|
6316 | ;; |
|
|
6317 | |
|
|
6318 | freebsd1*) |
|
|
6319 | ld_shlibs=no |
|
|
6320 | ;; |
|
|
6321 | |
|
|
6322 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
6323 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
6324 | # does not break anything, and helps significantly (at the cost of a little |
|
|
6325 | # extra space). |
|
|
6326 | freebsd2.2*) |
|
|
6327 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
6328 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6329 | hardcode_direct=yes |
|
|
6330 | hardcode_shlibpath_var=no |
|
|
6331 | ;; |
|
|
6332 | |
|
|
6333 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
6334 | freebsd2*) |
|
|
6335 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6336 | hardcode_direct=yes |
|
|
6337 | hardcode_minus_L=yes |
|
|
6338 | hardcode_shlibpath_var=no |
|
|
6339 | ;; |
|
|
6340 | |
|
|
6341 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
6342 | freebsd*) |
|
|
6343 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6344 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6345 | hardcode_direct=yes |
|
|
6346 | hardcode_shlibpath_var=no |
|
|
6347 | ;; |
|
|
6348 | |
|
|
6349 | hpux9* | hpux10* | hpux11*) |
|
|
6350 | case "$host_os" in |
|
|
6351 | 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' ;; |
|
|
6352 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
|
|
6353 | esac |
|
|
6354 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6355 | hardcode_libdir_separator=: |
|
|
6356 | hardcode_direct=yes |
|
|
6357 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
|
|
6358 | # location of the library. |
|
|
6359 | export_dynamic_flag_spec='${wl}-E' |
|
|
6360 | ;; |
|
|
6361 | |
|
|
6362 | irix5* | irix6*) |
|
|
6363 | if test "$GCC" = yes; then |
|
|
6364 | 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' |
|
|
6365 | else |
|
|
6366 | 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' |
|
|
6367 | fi |
|
|
6368 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6369 | hardcode_libdir_separator=: |
|
|
6370 | link_all_deplibs=yes |
|
|
6371 | ;; |
|
|
6372 | |
|
|
6373 | netbsd*) |
|
|
6374 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6375 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
6376 | else |
|
|
6377 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
6378 | fi |
|
|
6379 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6380 | hardcode_direct=yes |
|
|
6381 | hardcode_shlibpath_var=no |
|
|
6382 | ;; |
|
|
6383 | |
|
|
6384 | newsos6) |
|
|
6385 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6386 | hardcode_direct=yes |
|
|
6387 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6388 | hardcode_libdir_separator=: |
|
|
6389 | hardcode_shlibpath_var=no |
|
|
6390 | ;; |
|
|
6391 | |
|
|
6392 | openbsd*) |
|
|
6393 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6394 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6395 | hardcode_direct=yes |
|
|
6396 | hardcode_shlibpath_var=no |
|
|
6397 | ;; |
|
|
6398 | |
|
|
6399 | os2*) |
|
|
6400 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6401 | hardcode_minus_L=yes |
|
|
6402 | allow_undefined_flag=unsupported |
|
|
6403 | 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' |
|
|
6404 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
6405 | ;; |
|
|
6406 | |
|
|
6407 | osf3*) |
|
|
6408 | if test "$GCC" = yes; then |
|
|
6409 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6410 | 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' |
|
|
6411 | else |
|
|
6412 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6413 | 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' |
|
|
6414 | fi |
|
|
6415 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6416 | hardcode_libdir_separator=: |
|
|
6417 | ;; |
|
|
6418 | |
|
|
6419 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
6420 | if test "$GCC" = yes; then |
|
|
6421 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6422 | 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' |
|
|
6423 | else |
|
|
6424 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6425 | 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' |
|
|
6426 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
6427 | $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' |
|
|
6428 | fi |
|
|
6429 | #Both c and cxx compiler support -rpath directly |
|
|
6430 | hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
6431 | hardcode_libdir_separator=: |
|
|
6432 | ;; |
|
|
6433 | |
|
|
6434 | sco3.2v5*) |
|
|
6435 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6436 | hardcode_shlibpath_var=no |
|
|
6437 | runpath_var=LD_RUN_PATH |
|
|
6438 | hardcode_runpath_var=yes |
|
|
6439 | ;; |
|
|
6440 | |
|
|
6441 | solaris*) |
|
|
6442 | no_undefined_flag=' -z text' |
|
|
6443 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6444 | # object files and a static libstdc++, better avoid it by now |
|
|
6445 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6446 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6447 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6448 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6449 | hardcode_shlibpath_var=no |
|
|
6450 | case "$host_os" in |
|
|
6451 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
6452 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
6453 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
|
6454 | esac |
|
|
6455 | link_all_deplibs=yes |
|
|
6456 | ;; |
|
|
6457 | |
|
|
6458 | sunos4*) |
|
|
6459 | if test "x$host_vendor" = xsequent; then |
|
|
6460 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
6461 | # files that make .init and .fini sections work. |
|
|
6462 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6463 | else |
|
|
6464 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
6465 | fi |
|
|
6466 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6467 | hardcode_direct=yes |
|
|
6468 | hardcode_minus_L=yes |
|
|
6469 | hardcode_shlibpath_var=no |
|
|
6470 | ;; |
|
|
6471 | |
|
|
6472 | sysv4) |
|
|
6473 | if test "x$host_vendor" = xsno; then |
|
|
6474 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6475 | hardcode_direct=yes # is this really true??? |
|
|
6476 | else |
|
|
6477 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6478 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
6479 | fi |
|
|
6480 | runpath_var='LD_RUN_PATH' |
|
|
6481 | hardcode_shlibpath_var=no |
|
|
6482 | ;; |
|
|
6483 | |
|
|
6484 | sysv4.3*) |
|
|
6485 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6486 | hardcode_shlibpath_var=no |
|
|
6487 | export_dynamic_flag_spec='-Bexport' |
|
|
6488 | ;; |
|
|
6489 | |
|
|
6490 | sysv5*) |
|
|
6491 | no_undefined_flag=' -z text' |
|
|
6492 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6493 | # object files and a static libstdc++, better avoid it by now |
|
|
6494 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6495 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6496 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6497 | hardcode_libdir_flag_spec= |
|
|
6498 | hardcode_shlibpath_var=no |
|
|
6499 | runpath_var='LD_RUN_PATH' |
|
|
6500 | ;; |
|
|
6501 | |
|
|
6502 | uts4*) |
|
|
6503 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6504 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6505 | hardcode_shlibpath_var=no |
|
|
6506 | ;; |
|
|
6507 | |
|
|
6508 | dgux*) |
|
|
6509 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6510 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6511 | hardcode_shlibpath_var=no |
|
|
6512 | ;; |
|
|
6513 | |
|
|
6514 | sysv4*MP*) |
|
|
6515 | if test -d /usr/nec; then |
|
|
6516 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6517 | hardcode_shlibpath_var=no |
|
|
6518 | runpath_var=LD_RUN_PATH |
|
|
6519 | hardcode_runpath_var=yes |
|
|
6520 | ld_shlibs=yes |
|
|
6521 | fi |
|
|
6522 | ;; |
|
|
6523 | |
|
|
6524 | sysv4.2uw2*) |
|
|
6525 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
6526 | hardcode_direct=yes |
|
|
6527 | hardcode_minus_L=no |
|
|
6528 | hardcode_shlibpath_var=no |
|
|
6529 | hardcode_runpath_var=yes |
|
|
6530 | runpath_var=LD_RUN_PATH |
|
|
6531 | ;; |
|
|
6532 | |
|
|
6533 | unixware7*) |
|
|
6534 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6535 | runpath_var='LD_RUN_PATH' |
|
|
6536 | hardcode_shlibpath_var=no |
|
|
6537 | ;; |
|
|
6538 | |
|
|
6539 | *) |
|
|
6540 | ld_shlibs=no |
|
|
6541 | ;; |
|
|
6542 | esac |
|
|
6543 | fi |
|
|
6544 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
|
6545 | echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
6546 | test "$ld_shlibs" = no && can_build_shared=no |
|
|
6547 | ## |
|
|
6548 | ## END FIXME |
|
|
6549 | |
|
|
6550 | ## FIXME: this should be a separate macro |
|
|
6551 | ## |
|
|
6552 | # Check hardcoding attributes. |
|
|
6553 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
6554 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
6555 | hardcode_action= |
|
|
6556 | if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
6557 | test -n "$runpath_var"; then |
|
|
6558 | |
|
|
6559 | # We can hardcode non-existant directories. |
|
|
6560 | if test "$hardcode_direct" != no && |
|
|
6561 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
6562 | # have to relink, otherwise we might link with an installed library |
|
|
6563 | # when we should be linking with a yet-to-be-installed one |
|
|
6564 | ## test "$hardcode_shlibpath_var" != no && |
|
|
6565 | test "$hardcode_minus_L" != no; then |
|
|
6566 | # Linking always hardcodes the temporary library directory. |
|
|
6567 | hardcode_action=relink |
|
|
6568 | else |
|
|
6569 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
6570 | hardcode_action=immediate |
|
|
6571 | fi |
|
|
6572 | else |
|
|
6573 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
6574 | # directories. |
|
|
6575 | hardcode_action=unsupported |
|
|
6576 | fi |
|
|
6577 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
6578 | echo "${ECHO_T}$hardcode_action" >&6 |
|
|
6579 | ## |
|
|
6580 | ## END FIXME |
|
|
6581 | |
|
|
6582 | ## FIXME: this should be a separate macro |
|
|
6583 | ## |
|
|
6584 | striplib= |
|
|
6585 | old_striplib= |
|
|
6586 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
6587 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
6588 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
6589 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
6590 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
6591 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
6592 | echo "${ECHO_T}yes" >&6 |
|
|
6593 | else |
|
|
6594 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6595 | echo "${ECHO_T}no" >&6 |
|
|
6596 | fi |
|
|
6597 | ## |
|
|
6598 | ## END FIXME |
|
|
6599 | |
|
|
6600 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
6601 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
6602 | |
|
|
6603 | ## FIXME: this should be a separate macro |
|
|
6604 | ## |
|
|
6605 | # PORTME Fill in your ld.so characteristics |
|
|
6606 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
6607 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
6608 | library_names_spec= |
|
|
6609 | libname_spec='lib$name' |
|
|
6610 | soname_spec= |
|
|
6611 | postinstall_cmds= |
|
|
6612 | postuninstall_cmds= |
|
|
6613 | finish_cmds= |
|
|
6614 | finish_eval= |
|
|
6615 | shlibpath_var= |
|
|
6616 | shlibpath_overrides_runpath=unknown |
|
|
6617 | version_type=none |
|
|
6618 | dynamic_linker="$host_os ld.so" |
|
|
6619 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
6620 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
6621 | |
|
|
6622 | case "$host_os" in |
|
|
6623 | aix3*) |
|
|
6624 | version_type=linux |
|
|
6625 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
|
|
6626 | shlibpath_var=LIBPATH |
|
|
6627 | |
|
|
6628 | # AIX has no versioning support, so we append a major version to the name. |
|
|
6629 | soname_spec='${libname}${release}.so$major' |
|
|
6630 | ;; |
|
|
6631 | |
|
|
6632 | aix4*) |
|
|
6633 | version_type=linux |
|
|
6634 | # AIX has no versioning support, so currently we can not hardcode correct |
|
|
6635 | # soname into executable. Probably we can add versioning support to |
|
|
6636 | # collect2, so additional links can be useful in future. |
|
|
6637 | # We preserve .a as extension for shared libraries though AIX4.2 |
|
|
6638 | # and later linker supports .so |
|
|
6639 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' |
|
|
6640 | shlibpath_var=LIBPATH |
|
|
6641 | ;; |
|
|
6642 | |
|
|
6643 | amigaos*) |
|
|
6644 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
6645 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
6646 | 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' |
|
|
6647 | ;; |
|
|
6648 | |
|
|
6649 | beos*) |
|
|
6650 | library_names_spec='${libname}.so' |
|
|
6651 | dynamic_linker="$host_os ld.so" |
|
|
6652 | shlibpath_var=LIBRARY_PATH |
|
|
6653 | ;; |
|
|
6654 | |
|
|
6655 | bsdi4*) |
|
|
6656 | version_type=linux |
|
|
6657 | need_version=no |
|
|
6658 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6659 | soname_spec='${libname}${release}.so$major' |
|
|
6660 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
6661 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6662 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
6663 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
6664 | export_dynamic_flag_spec=-rdynamic |
|
|
6665 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
6666 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
6667 | # libtool to hard-code these into programs |
|
|
6668 | ;; |
|
|
6669 | |
|
|
6670 | cygwin* | mingw* | pw32*) |
|
|
6671 | version_type=windows |
|
|
6672 | need_version=no |
|
|
6673 | need_lib_prefix=no |
|
|
6674 | if test "$GCC" = yes; then |
|
|
6675 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
|
|
6676 | else |
|
|
6677 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
|
|
6678 | fi |
|
|
6679 | dynamic_linker='Win32 ld.exe' |
|
|
6680 | # FIXME: first we should search . and the directory the executable is in |
|
|
6681 | shlibpath_var=PATH |
|
|
6682 | ;; |
|
|
6683 | |
|
|
6684 | darwin* | rhapsody*) |
|
|
6685 | need_lib_prefix=no |
|
|
6686 | need_version=no |
|
|
6687 | library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`' |
|
|
6688 | shlibpath_overrides_runpath=yes |
|
|
6689 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
6690 | postinstall_cmds='chmod +x $lib' |
|
|
6691 | ;; |
|
|
6692 | |
|
|
6693 | freebsd1*) |
|
|
6694 | dynamic_linker=no |
|
|
6695 | ;; |
|
|
6696 | |
|
|
6697 | freebsd*) |
|
|
6698 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
6699 | version_type=freebsd-$objformat |
|
|
6700 | case "$version_type" in |
|
|
6701 | freebsd-elf*) |
|
|
6702 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6703 | need_version=no |
|
|
6704 | need_lib_prefix=no |
|
|
6705 | ;; |
|
|
6706 | freebsd-*) |
|
|
6707 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
|
|
6708 | need_version=yes |
|
|
6709 | ;; |
|
|
6710 | esac |
|
|
6711 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6712 | case "$host_os" in |
|
|
6713 | freebsd2*) |
|
|
6714 | shlibpath_overrides_runpath=yes |
|
|
6715 | ;; |
|
|
6716 | *) |
|
|
6717 | shlibpath_overrides_runpath=no |
|
|
6718 | hardcode_into_libs=yes |
|
|
6719 | ;; |
|
|
6720 | esac |
|
|
6721 | ;; |
|
|
6722 | |
|
|
6723 | gnu*) |
|
|
6724 | version_type=linux |
|
|
6725 | need_lib_prefix=no |
|
|
6726 | need_version=no |
|
|
6727 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
|
|
6728 | soname_spec='${libname}${release}.so$major' |
|
|
6729 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6730 | hardcode_into_libs=yes |
|
|
6731 | ;; |
|
|
6732 | |
|
|
6733 | hpux9* | hpux10* | hpux11*) |
|
|
6734 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
6735 | # link against other versions. |
|
|
6736 | dynamic_linker="$host_os dld.sl" |
|
|
6737 | version_type=sunos |
|
|
6738 | need_lib_prefix=no |
|
|
6739 | need_version=no |
|
|
6740 | shlibpath_var=SHLIB_PATH |
|
|
6741 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
6742 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
|
|
6743 | soname_spec='${libname}${release}.sl$major' |
|
|
6744 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
6745 | postinstall_cmds='chmod 555 $lib' |
|
|
6746 | ;; |
|
|
6747 | |
|
|
6748 | irix5* | irix6*) |
|
|
6749 | version_type=irix |
|
|
6750 | need_lib_prefix=no |
|
|
6751 | need_version=no |
|
|
6752 | soname_spec='${libname}${release}.so$major' |
|
|
6753 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
|
|
6754 | case "$host_os" in |
|
|
6755 | irix5*) |
|
|
6756 | libsuff= shlibsuff= |
|
|
6757 | ;; |
|
|
6758 | *) |
|
|
6759 | case "$LD" in # libtool.m4 will add one of these switches to LD |
|
|
6760 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
|
|
6761 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
6762 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
6763 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
6764 | esac |
|
|
6765 | ;; |
|
|
6766 | esac |
|
|
6767 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
6768 | shlibpath_overrides_runpath=no |
|
|
6769 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
6770 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
6771 | ;; |
|
|
6772 | |
|
|
6773 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
6774 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
|
|
6775 | dynamic_linker=no |
|
|
6776 | ;; |
|
|
6777 | |
|
|
6778 | # This must be Linux ELF. |
|
|
6779 | linux-gnu*) |
|
|
6780 | version_type=linux |
|
|
6781 | need_lib_prefix=no |
|
|
6782 | need_version=no |
|
|
6783 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6784 | soname_spec='${libname}${release}.so$major' |
|
|
6785 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
6786 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6787 | shlibpath_overrides_runpath=no |
|
|
6788 | # This implies no fast_install, which is unacceptable. |
|
|
6789 | # Some rework will be needed to allow for fast_install |
|
|
6790 | # before this can be enabled. |
|
|
6791 | hardcode_into_libs=yes |
|
|
6792 | |
|
|
6793 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
6794 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
6795 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
6796 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
6797 | # people can always --disable-shared, the test was removed, and we |
|
|
6798 | # assume the GNU/Linux dynamic linker is in use. |
|
|
6799 | dynamic_linker='GNU/Linux ld.so' |
|
|
6800 | ;; |
|
|
6801 | |
|
|
6802 | netbsd*) |
|
|
6803 | version_type=sunos |
|
|
6804 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6805 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6806 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6807 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
6808 | else |
|
|
6809 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
|
|
6810 | soname_spec='${libname}${release}.so$major' |
|
|
6811 | dynamic_linker='NetBSD ld.elf_so' |
|
|
6812 | fi |
|
|
6813 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6814 | shlibpath_overrides_runpath=yes |
|
|
6815 | hardcode_into_libs=yes |
|
|
6816 | ;; |
|
|
6817 | |
|
|
6818 | newsos6) |
|
|
6819 | version_type=linux |
|
|
6820 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6821 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6822 | shlibpath_overrides_runpath=yes |
|
|
6823 | ;; |
|
|
6824 | |
|
|
6825 | openbsd*) |
|
|
6826 | version_type=sunos |
|
|
6827 | if test "$with_gnu_ld" = yes; then |
|
|
6828 | need_lib_prefix=no |
|
|
6829 | need_version=no |
|
|
6830 | fi |
|
|
6831 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6832 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6833 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6834 | ;; |
|
|
6835 | |
|
|
6836 | os2*) |
|
|
6837 | libname_spec='$name' |
|
|
6838 | need_lib_prefix=no |
|
|
6839 | library_names_spec='$libname.dll $libname.a' |
|
|
6840 | dynamic_linker='OS/2 ld.exe' |
|
|
6841 | shlibpath_var=LIBPATH |
|
|
6842 | ;; |
|
|
6843 | |
|
|
6844 | osf3* | osf4* | osf5*) |
|
|
6845 | version_type=osf |
|
|
6846 | need_version=no |
|
|
6847 | soname_spec='${libname}${release}.so' |
|
|
6848 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6849 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6850 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
6851 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
6852 | ;; |
|
|
6853 | |
|
|
6854 | sco3.2v5*) |
|
|
6855 | version_type=osf |
|
|
6856 | soname_spec='${libname}${release}.so$major' |
|
|
6857 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6858 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6859 | ;; |
|
|
6860 | |
|
|
6861 | solaris*) |
|
|
6862 | version_type=linux |
|
|
6863 | need_lib_prefix=no |
|
|
6864 | need_version=no |
|
|
6865 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6866 | soname_spec='${libname}${release}.so$major' |
|
|
6867 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6868 | shlibpath_overrides_runpath=yes |
|
|
6869 | hardcode_into_libs=yes |
|
|
6870 | # ldd complains unless libraries are executable |
|
|
6871 | postinstall_cmds='chmod +x $lib' |
|
|
6872 | ;; |
|
|
6873 | |
|
|
6874 | sunos4*) |
|
|
6875 | version_type=sunos |
|
|
6876 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6877 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
6878 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6879 | shlibpath_overrides_runpath=yes |
|
|
6880 | if test "$with_gnu_ld" = yes; then |
|
|
6881 | need_lib_prefix=no |
|
|
6882 | fi |
|
|
6883 | need_version=yes |
|
|
6884 | ;; |
|
|
6885 | |
|
|
6886 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
6887 | version_type=linux |
|
|
6888 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6889 | soname_spec='${libname}${release}.so$major' |
|
|
6890 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6891 | case "$host_vendor" in |
|
|
6892 | sni) |
|
|
6893 | shlibpath_overrides_runpath=no |
|
|
6894 | ;; |
|
|
6895 | motorola) |
|
|
6896 | need_lib_prefix=no |
|
|
6897 | need_version=no |
|
|
6898 | shlibpath_overrides_runpath=no |
|
|
6899 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
6900 | ;; |
|
|
6901 | esac |
|
|
6902 | ;; |
|
|
6903 | |
|
|
6904 | uts4*) |
|
|
6905 | version_type=linux |
|
|
6906 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6907 | soname_spec='${libname}${release}.so$major' |
|
|
6908 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6909 | ;; |
|
|
6910 | |
|
|
6911 | dgux*) |
|
|
6912 | version_type=linux |
|
|
6913 | need_lib_prefix=no |
|
|
6914 | need_version=no |
|
|
6915 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6916 | soname_spec='${libname}${release}.so$major' |
|
|
6917 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6918 | ;; |
|
|
6919 | |
|
|
6920 | sysv4*MP*) |
|
|
6921 | if test -d /usr/nec ;then |
|
|
6922 | version_type=linux |
|
|
6923 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
|
|
6924 | soname_spec='$libname.so.$major' |
|
|
6925 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6926 | fi |
|
|
6927 | ;; |
|
|
6928 | |
|
|
6929 | *) |
|
|
6930 | dynamic_linker=no |
|
|
6931 | ;; |
|
|
6932 | esac |
|
|
6933 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
6934 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
6935 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
6936 | ## |
|
|
6937 | ## END FIXME |
|
|
6938 | |
|
|
6939 | ## FIXME: this should be a separate macro |
|
|
6940 | ## |
|
|
6941 | # Report the final consequences. |
|
|
6942 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
6943 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
6944 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
6945 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
6946 | ## |
|
|
6947 | ## END FIXME |
|
|
6948 | |
|
|
6949 | if test "$hardcode_action" = relink; then |
|
|
6950 | # Fast installation is not supported |
|
|
6951 | enable_fast_install=no |
|
|
6952 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
6953 | test "$enable_shared" = no; then |
|
|
6954 | # Fast installation is not necessary |
|
|
6955 | enable_fast_install=needless |
|
|
6956 | fi |
|
|
6957 | |
|
|
6958 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
6959 | if test "$GCC" = yes; then |
|
|
6960 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
6961 | fi |
|
|
6962 | |
|
|
6963 | if test "x$enable_dlopen" != xyes; then |
|
|
6964 | enable_dlopen=unknown |
|
|
6965 | enable_dlopen_self=unknown |
|
|
6966 | enable_dlopen_self_static=unknown |
|
|
6967 | else |
|
|
6968 | lt_cv_dlopen=no |
|
|
6969 | lt_cv_dlopen_libs= |
|
|
6970 | |
|
|
6971 | case "$host_os" in |
|
|
6972 | beos*) |
|
|
6973 | lt_cv_dlopen="load_add_on" |
|
|
6974 | lt_cv_dlopen_libs= |
|
|
6975 | lt_cv_dlopen_self=yes |
|
|
6976 | ;; |
|
|
6977 | |
|
|
6978 | cygwin* | mingw* | pw32*) |
|
|
6979 | lt_cv_dlopen="LoadLibrary" |
|
|
6980 | lt_cv_dlopen_libs= |
|
|
6981 | ;; |
|
|
6982 | |
|
|
6983 | *) |
|
|
6984 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
6985 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
6986 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
6987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6988 | else |
|
|
6989 | ac_check_lib_save_LIBS=$LIBS |
|
|
6990 | LIBS="-ldl $LIBS" |
|
|
6991 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6992 | /* confdefs.h. */ |
|
|
6993 | _ACEOF |
|
|
6994 | cat confdefs.h >>conftest.$ac_ext |
|
|
6995 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6996 | /* end confdefs.h. */ |
|
|
6997 | |
|
|
6998 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6999 | #ifdef __cplusplus |
|
|
7000 | extern "C" |
|
|
7001 | #endif |
|
|
7002 | /* We use char because int might match the return type of a gcc2 |
|
|
7003 | builtin and then its argument prototype would still apply. */ |
|
|
7004 | char dlopen (); |
|
|
7005 | int |
|
|
7006 | main () |
|
|
7007 | { |
|
|
7008 | dlopen (); |
|
|
7009 | ; |
|
|
7010 | return 0; |
|
|
7011 | } |
|
|
7012 | _ACEOF |
|
|
7013 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7015 | (eval $ac_link) 2>conftest.er1 |
|
|
7016 | ac_status=$? |
|
|
7017 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7018 | rm -f conftest.er1 |
|
|
7019 | cat conftest.err >&5 |
|
|
7020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7021 | (exit $ac_status); } && |
|
|
7022 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7024 | (eval $ac_try) 2>&5 |
|
|
7025 | ac_status=$? |
|
|
7026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7027 | (exit $ac_status); }; } && |
|
|
7028 | { ac_try='test -s conftest$ac_exeext' |
|
|
7029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7030 | (eval $ac_try) 2>&5 |
|
|
7031 | ac_status=$? |
|
|
7032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7033 | (exit $ac_status); }; }; then |
|
|
7034 | ac_cv_lib_dl_dlopen=yes |
|
|
7035 | else |
|
|
7036 | echo "$as_me: failed program was:" >&5 |
|
|
7037 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7038 | |
|
|
7039 | ac_cv_lib_dl_dlopen=no |
|
|
7040 | fi |
|
|
7041 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7042 | conftest$ac_exeext conftest.$ac_ext |
|
|
7043 | LIBS=$ac_check_lib_save_LIBS |
|
|
7044 | fi |
|
|
7045 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
7046 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
7047 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
7048 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
7049 | else |
|
|
7050 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
7051 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
7052 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
7053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7054 | else |
|
|
7055 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7056 | /* confdefs.h. */ |
|
|
7057 | _ACEOF |
|
|
7058 | cat confdefs.h >>conftest.$ac_ext |
|
|
7059 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7060 | /* end confdefs.h. */ |
|
|
7061 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
3880 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
7062 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3881 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7063 | #define dlopen innocuous_dlopen |
3882 | #define sched_yield innocuous_sched_yield |
7064 | |
3883 | |
7065 | /* System header to define __stub macros and hopefully few prototypes, |
3884 | /* System header to define __stub macros and hopefully few prototypes, |
7066 | which can conflict with char dlopen (); below. |
3885 | which can conflict with char sched_yield (); below. |
7067 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3886 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7068 | <limits.h> exists even on freestanding compilers. */ |
3887 | <limits.h> exists even on freestanding compilers. */ |
7069 | |
3888 | |
7070 | #ifdef __STDC__ |
3889 | #ifdef __STDC__ |
7071 | # include <limits.h> |
3890 | # include <limits.h> |
7072 | #else |
3891 | #else |
7073 | # include <assert.h> |
3892 | # include <assert.h> |
7074 | #endif |
3893 | #endif |
7075 | |
3894 | |
7076 | #undef dlopen |
3895 | #undef sched_yield |
7077 | |
3896 | |
7078 | /* Override any gcc2 internal prototype to avoid an error. */ |
3897 | /* Override any gcc2 internal prototype to avoid an error. */ |
7079 | #ifdef __cplusplus |
3898 | #ifdef __cplusplus |
7080 | extern "C" |
3899 | extern "C" |
7081 | { |
3900 | { |
7082 | #endif |
3901 | #endif |
7083 | /* We use char because int might match the return type of a gcc2 |
3902 | /* We use char because int might match the return type of a gcc2 |
7084 | builtin and then its argument prototype would still apply. */ |
3903 | builtin and then its argument prototype would still apply. */ |
7085 | char dlopen (); |
3904 | char sched_yield (); |
7086 | /* The GNU C library defines this for functions which it implements |
3905 | /* The GNU C library defines this for functions which it implements |
7087 | to always fail with ENOSYS. Some functions are actually named |
3906 | to always fail with ENOSYS. Some functions are actually named |
7088 | something starting with __ and the normal name is an alias. */ |
3907 | something starting with __ and the normal name is an alias. */ |
7089 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
3908 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) |
7090 | choke me |
3909 | choke me |
7091 | #else |
3910 | #else |
7092 | char (*f) () = dlopen; |
3911 | char (*f) () = sched_yield; |
7093 | #endif |
3912 | #endif |
7094 | #ifdef __cplusplus |
3913 | #ifdef __cplusplus |
7095 | } |
3914 | } |
7096 | #endif |
3915 | #endif |
7097 | |
3916 | |
7098 | int |
3917 | int |
7099 | main () |
3918 | main () |
7100 | { |
3919 | { |
7101 | return f != dlopen; |
3920 | return f != sched_yield; |
7102 | ; |
3921 | ; |
7103 | return 0; |
3922 | return 0; |
7104 | } |
3923 | } |
7105 | _ACEOF |
3924 | _ACEOF |
7106 | rm -f conftest.$ac_objext conftest$ac_exeext |
3925 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7123 | (eval $ac_try) 2>&5 |
3942 | (eval $ac_try) 2>&5 |
7124 | ac_status=$? |
3943 | ac_status=$? |
7125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7126 | (exit $ac_status); }; }; then |
3945 | (exit $ac_status); }; }; then |
7127 | ac_cv_func_dlopen=yes |
3946 | ac_cv_func_sched_yield=yes |
7128 | else |
3947 | else |
7129 | echo "$as_me: failed program was:" >&5 |
3948 | echo "$as_me: failed program was:" >&5 |
7130 | sed 's/^/| /' conftest.$ac_ext >&5 |
3949 | sed 's/^/| /' conftest.$ac_ext >&5 |
7131 | |
3950 | |
7132 | ac_cv_func_dlopen=no |
3951 | ac_cv_func_sched_yield=no |
7133 | fi |
3952 | fi |
7134 | rm -f conftest.err conftest.$ac_objext \ |
3953 | rm -f conftest.err conftest.$ac_objext \ |
7135 | conftest$ac_exeext conftest.$ac_ext |
3954 | conftest$ac_exeext conftest.$ac_ext |
7136 | fi |
3955 | fi |
7137 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
3956 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
7138 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
3957 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 |
7139 | if test $ac_cv_func_dlopen = yes; then |
3958 | if test $ac_cv_func_sched_yield = yes; then |
7140 | lt_cv_dlopen="dlopen" |
3959 | : |
7141 | else |
3960 | else |
7142 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
3961 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
7143 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
3962 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 |
7144 | if test "${ac_cv_func_shl_load+set}" = set; then |
3963 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
7145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7146 | else |
3965 | 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 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
7154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
7155 | #define shl_load innocuous_shl_load |
|
|
7156 | |
|
|
7157 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7158 | which can conflict with char shl_load (); below. |
|
|
7159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7160 | <limits.h> exists even on freestanding compilers. */ |
|
|
7161 | |
|
|
7162 | #ifdef __STDC__ |
|
|
7163 | # include <limits.h> |
|
|
7164 | #else |
|
|
7165 | # include <assert.h> |
|
|
7166 | #endif |
|
|
7167 | |
|
|
7168 | #undef shl_load |
|
|
7169 | |
|
|
7170 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7171 | #ifdef __cplusplus |
|
|
7172 | extern "C" |
|
|
7173 | { |
|
|
7174 | #endif |
|
|
7175 | /* We use char because int might match the return type of a gcc2 |
|
|
7176 | builtin and then its argument prototype would still apply. */ |
|
|
7177 | char shl_load (); |
|
|
7178 | /* The GNU C library defines this for functions which it implements |
|
|
7179 | to always fail with ENOSYS. Some functions are actually named |
|
|
7180 | something starting with __ and the normal name is an alias. */ |
|
|
7181 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
7182 | choke me |
|
|
7183 | #else |
|
|
7184 | char (*f) () = shl_load; |
|
|
7185 | #endif |
|
|
7186 | #ifdef __cplusplus |
|
|
7187 | } |
|
|
7188 | #endif |
|
|
7189 | |
|
|
7190 | int |
|
|
7191 | main () |
|
|
7192 | { |
|
|
7193 | return f != shl_load; |
|
|
7194 | ; |
|
|
7195 | return 0; |
|
|
7196 | } |
|
|
7197 | _ACEOF |
|
|
7198 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7200 | (eval $ac_link) 2>conftest.er1 |
|
|
7201 | ac_status=$? |
|
|
7202 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7203 | rm -f conftest.er1 |
|
|
7204 | cat conftest.err >&5 |
|
|
7205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7206 | (exit $ac_status); } && |
|
|
7207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7209 | (eval $ac_try) 2>&5 |
|
|
7210 | ac_status=$? |
|
|
7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7212 | (exit $ac_status); }; } && |
|
|
7213 | { ac_try='test -s conftest$ac_exeext' |
|
|
7214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7215 | (eval $ac_try) 2>&5 |
|
|
7216 | ac_status=$? |
|
|
7217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7218 | (exit $ac_status); }; }; then |
|
|
7219 | ac_cv_func_shl_load=yes |
|
|
7220 | else |
|
|
7221 | echo "$as_me: failed program was:" >&5 |
|
|
7222 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7223 | |
|
|
7224 | ac_cv_func_shl_load=no |
|
|
7225 | fi |
|
|
7226 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7227 | conftest$ac_exeext conftest.$ac_ext |
|
|
7228 | fi |
|
|
7229 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
7230 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
7231 | if test $ac_cv_func_shl_load = yes; then |
|
|
7232 | lt_cv_dlopen="shl_load" |
|
|
7233 | else |
|
|
7234 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
7235 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
7236 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7238 | else |
|
|
7239 | ac_check_lib_save_LIBS=$LIBS |
3966 | ac_check_lib_save_LIBS=$LIBS |
7240 | LIBS="-lsvld $LIBS" |
3967 | LIBS="-lrt $LIBS" |
7241 | cat >conftest.$ac_ext <<_ACEOF |
3968 | cat >conftest.$ac_ext <<_ACEOF |
7242 | /* confdefs.h. */ |
3969 | /* confdefs.h. */ |
7243 | _ACEOF |
3970 | _ACEOF |
7244 | cat confdefs.h >>conftest.$ac_ext |
3971 | cat confdefs.h >>conftest.$ac_ext |
7245 | cat >>conftest.$ac_ext <<_ACEOF |
3972 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
7249 | #ifdef __cplusplus |
3976 | #ifdef __cplusplus |
7250 | extern "C" |
3977 | extern "C" |
7251 | #endif |
3978 | #endif |
7252 | /* We use char because int might match the return type of a gcc2 |
3979 | /* We use char because int might match the return type of a gcc2 |
7253 | builtin and then its argument prototype would still apply. */ |
3980 | builtin and then its argument prototype would still apply. */ |
7254 | char dlopen (); |
3981 | char sched_yield (); |
7255 | int |
3982 | int |
7256 | main () |
3983 | main () |
7257 | { |
3984 | { |
7258 | dlopen (); |
3985 | sched_yield (); |
7259 | ; |
3986 | ; |
7260 | return 0; |
3987 | return 0; |
7261 | } |
3988 | } |
7262 | _ACEOF |
3989 | _ACEOF |
7263 | rm -f conftest.$ac_objext conftest$ac_exeext |
3990 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7280 | (eval $ac_try) 2>&5 |
4007 | (eval $ac_try) 2>&5 |
7281 | ac_status=$? |
4008 | ac_status=$? |
7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7283 | (exit $ac_status); }; }; then |
4010 | (exit $ac_status); }; }; then |
7284 | ac_cv_lib_svld_dlopen=yes |
4011 | ac_cv_lib_rt_sched_yield=yes |
7285 | else |
4012 | else |
7286 | echo "$as_me: failed program was:" >&5 |
4013 | echo "$as_me: failed program was:" >&5 |
7287 | sed 's/^/| /' conftest.$ac_ext >&5 |
4014 | sed 's/^/| /' conftest.$ac_ext >&5 |
7288 | |
4015 | |
7289 | ac_cv_lib_svld_dlopen=no |
4016 | ac_cv_lib_rt_sched_yield=no |
7290 | fi |
4017 | fi |
7291 | rm -f conftest.err conftest.$ac_objext \ |
4018 | rm -f conftest.err conftest.$ac_objext \ |
7292 | conftest$ac_exeext conftest.$ac_ext |
4019 | conftest$ac_exeext conftest.$ac_ext |
7293 | LIBS=$ac_check_lib_save_LIBS |
4020 | LIBS=$ac_check_lib_save_LIBS |
7294 | fi |
4021 | fi |
7295 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
4022 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
7296 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
4023 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 |
7297 | if test $ac_cv_lib_svld_dlopen = yes; then |
4024 | if test $ac_cv_lib_rt_sched_yield = yes; then |
7298 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
4025 | LIBS="$LIBS -lrt" |
7299 | else |
4026 | fi |
|
|
4027 | |
|
|
4028 | fi |
|
|
4029 | |
|
|
4030 | |
7300 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
4031 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
7301 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
4032 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
7302 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
7303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7304 | else |
|
|
7305 | ac_check_lib_save_LIBS=$LIBS |
|
|
7306 | LIBS="-ldld $LIBS" |
|
|
7307 | cat >conftest.$ac_ext <<_ACEOF |
4033 | cat >conftest.$ac_ext <<_ACEOF |
7308 | /* confdefs.h. */ |
4034 | /* confdefs.h. */ |
7309 | _ACEOF |
4035 | _ACEOF |
7310 | cat confdefs.h >>conftest.$ac_ext |
4036 | cat confdefs.h >>conftest.$ac_ext |
7311 | cat >>conftest.$ac_ext <<_ACEOF |
4037 | cat >>conftest.$ac_ext <<_ACEOF |
7312 | /* end confdefs.h. */ |
4038 | /* end confdefs.h. */ |
7313 | |
4039 | #include <sched.h> |
7314 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7315 | #ifdef __cplusplus |
|
|
7316 | extern "C" |
|
|
7317 | #endif |
|
|
7318 | /* We use char because int might match the return type of a gcc2 |
|
|
7319 | builtin and then its argument prototype would still apply. */ |
|
|
7320 | char shl_load (); |
|
|
7321 | int |
4040 | int |
7322 | main () |
4041 | main () |
7323 | { |
4042 | { |
7324 | shl_load (); |
4043 | sched_yield () |
7325 | ; |
4044 | ; |
7326 | return 0; |
4045 | return 0; |
7327 | } |
4046 | } |
7328 | _ACEOF |
4047 | _ACEOF |
7329 | rm -f conftest.$ac_objext conftest$ac_exeext |
4048 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7346 | (eval $ac_try) 2>&5 |
4065 | (eval $ac_try) 2>&5 |
7347 | ac_status=$? |
4066 | ac_status=$? |
7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7349 | (exit $ac_status); }; }; then |
4068 | (exit $ac_status); }; }; then |
7350 | ac_cv_lib_dld_shl_load=yes |
4069 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4070 | echo "${ECHO_T}yes" >&6 |
|
|
4071 | |
|
|
4072 | cat >>confdefs.h <<\_ACEOF |
|
|
4073 | #define HAVE_SCHED_YIELD 1 |
|
|
4074 | _ACEOF |
|
|
4075 | |
7351 | else |
4076 | else |
7352 | echo "$as_me: failed program was:" >&5 |
4077 | echo "$as_me: failed program was:" >&5 |
7353 | sed 's/^/| /' conftest.$ac_ext >&5 |
4078 | sed 's/^/| /' conftest.$ac_ext >&5 |
7354 | |
4079 | |
7355 | ac_cv_lib_dld_shl_load=no |
4080 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4081 | echo "${ECHO_T}no" >&6 |
7356 | fi |
4082 | fi |
7357 | rm -f conftest.err conftest.$ac_objext \ |
4083 | rm -f conftest.err conftest.$ac_objext \ |
7358 | conftest$ac_exeext conftest.$ac_ext |
4084 | conftest$ac_exeext conftest.$ac_ext |
7359 | LIBS=$ac_check_lib_save_LIBS |
|
|
7360 | fi |
|
|
7361 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
7362 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
7363 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
7364 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
7365 | fi |
|
|
7366 | |
|
|
7367 | |
|
|
7368 | fi |
|
|
7369 | |
|
|
7370 | |
|
|
7371 | fi |
|
|
7372 | |
|
|
7373 | |
|
|
7374 | fi |
|
|
7375 | |
|
|
7376 | |
|
|
7377 | fi |
|
|
7378 | |
|
|
7379 | ;; |
|
|
7380 | esac |
|
|
7381 | |
|
|
7382 | if test "x$lt_cv_dlopen" != xno; then |
|
|
7383 | enable_dlopen=yes |
|
|
7384 | else |
|
|
7385 | enable_dlopen=no |
|
|
7386 | fi |
|
|
7387 | |
|
|
7388 | case "$lt_cv_dlopen" in |
|
|
7389 | dlopen) |
|
|
7390 | save_CPPFLAGS="$CPP_FLAGS" |
|
|
7391 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
7392 | |
|
|
7393 | save_LDFLAGS="$LDFLAGS" |
|
|
7394 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
7395 | |
|
|
7396 | save_LIBS="$LIBS" |
|
|
7397 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
7398 | |
|
|
7399 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
7400 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
7401 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
7402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7403 | else |
|
|
7404 | if test "$cross_compiling" = yes; then : |
|
|
7405 | lt_cv_dlopen_self=cross |
|
|
7406 | else |
|
|
7407 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7408 | lt_status=$lt_dlunknown |
|
|
7409 | cat > conftest.$ac_ext <<EOF |
|
|
7410 | #line 7410 "configure" |
|
|
7411 | #include "confdefs.h" |
|
|
7412 | |
|
|
7413 | #if HAVE_DLFCN_H |
|
|
7414 | #include <dlfcn.h> |
|
|
7415 | #endif |
|
|
7416 | |
|
|
7417 | #include <stdio.h> |
|
|
7418 | |
|
|
7419 | #ifdef RTLD_GLOBAL |
|
|
7420 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7421 | #else |
|
|
7422 | # ifdef DL_GLOBAL |
|
|
7423 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7424 | # else |
|
|
7425 | # define LT_DLGLOBAL 0 |
|
|
7426 | # endif |
|
|
7427 | #endif |
|
|
7428 | |
|
|
7429 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7430 | find out it does not work in some platform. */ |
|
|
7431 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7432 | # ifdef RTLD_LAZY |
|
|
7433 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7434 | # else |
|
|
7435 | # ifdef DL_LAZY |
|
|
7436 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7437 | # else |
|
|
7438 | # ifdef RTLD_NOW |
|
|
7439 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7440 | # else |
|
|
7441 | # ifdef DL_NOW |
|
|
7442 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7443 | # else |
|
|
7444 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7445 | # endif |
|
|
7446 | # endif |
|
|
7447 | # endif |
|
|
7448 | # endif |
|
|
7449 | #endif |
|
|
7450 | |
|
|
7451 | #ifdef __cplusplus |
|
|
7452 | extern "C" void exit (int); |
|
|
7453 | #endif |
|
|
7454 | |
|
|
7455 | fnord() { int i=42;} |
|
|
7456 | main () |
|
|
7457 | { |
|
|
7458 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7459 | int status = $lt_dlunknown; |
|
|
7460 | |
|
|
7461 | if (self) |
|
|
7462 | { |
|
|
7463 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7464 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7465 | /* dlclose (self); */ |
|
|
7466 | } |
|
|
7467 | |
|
|
7468 | exit (status); |
|
|
7469 | } |
|
|
7470 | EOF |
|
|
7471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7472 | (eval $ac_link) 2>&5 |
|
|
7473 | ac_status=$? |
|
|
7474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7475 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7476 | (./conftest; exit; ) 2>/dev/null |
|
|
7477 | lt_status=$? |
|
|
7478 | case x$lt_status in |
|
|
7479 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7480 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7481 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
7482 | esac |
|
|
7483 | else : |
|
|
7484 | # compilation failed |
|
|
7485 | lt_cv_dlopen_self=no |
|
|
7486 | fi |
|
|
7487 | fi |
|
|
7488 | rm -fr conftest* |
|
|
7489 | |
|
|
7490 | |
|
|
7491 | fi |
|
|
7492 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
7493 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
7494 | |
|
|
7495 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
7496 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
7497 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
7498 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
7499 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
7500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7501 | else |
|
|
7502 | if test "$cross_compiling" = yes; then : |
|
|
7503 | lt_cv_dlopen_self_static=cross |
|
|
7504 | else |
|
|
7505 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7506 | lt_status=$lt_dlunknown |
|
|
7507 | cat > conftest.$ac_ext <<EOF |
|
|
7508 | #line 7508 "configure" |
|
|
7509 | #include "confdefs.h" |
|
|
7510 | |
|
|
7511 | #if HAVE_DLFCN_H |
|
|
7512 | #include <dlfcn.h> |
|
|
7513 | #endif |
|
|
7514 | |
|
|
7515 | #include <stdio.h> |
|
|
7516 | |
|
|
7517 | #ifdef RTLD_GLOBAL |
|
|
7518 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7519 | #else |
|
|
7520 | # ifdef DL_GLOBAL |
|
|
7521 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7522 | # else |
|
|
7523 | # define LT_DLGLOBAL 0 |
|
|
7524 | # endif |
|
|
7525 | #endif |
|
|
7526 | |
|
|
7527 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7528 | find out it does not work in some platform. */ |
|
|
7529 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7530 | # ifdef RTLD_LAZY |
|
|
7531 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7532 | # else |
|
|
7533 | # ifdef DL_LAZY |
|
|
7534 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7535 | # else |
|
|
7536 | # ifdef RTLD_NOW |
|
|
7537 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7538 | # else |
|
|
7539 | # ifdef DL_NOW |
|
|
7540 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7541 | # else |
|
|
7542 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7543 | # endif |
|
|
7544 | # endif |
|
|
7545 | # endif |
|
|
7546 | # endif |
|
|
7547 | #endif |
|
|
7548 | |
|
|
7549 | #ifdef __cplusplus |
|
|
7550 | extern "C" void exit (int); |
|
|
7551 | #endif |
|
|
7552 | |
|
|
7553 | fnord() { int i=42;} |
|
|
7554 | main () |
|
|
7555 | { |
|
|
7556 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7557 | int status = $lt_dlunknown; |
|
|
7558 | |
|
|
7559 | if (self) |
|
|
7560 | { |
|
|
7561 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7562 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7563 | /* dlclose (self); */ |
|
|
7564 | } |
|
|
7565 | |
|
|
7566 | exit (status); |
|
|
7567 | } |
|
|
7568 | EOF |
|
|
7569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7570 | (eval $ac_link) 2>&5 |
|
|
7571 | ac_status=$? |
|
|
7572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7573 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7574 | (./conftest; exit; ) 2>/dev/null |
|
|
7575 | lt_status=$? |
|
|
7576 | case x$lt_status in |
|
|
7577 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7578 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7579 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
7580 | esac |
|
|
7581 | else : |
|
|
7582 | # compilation failed |
|
|
7583 | lt_cv_dlopen_self_static=no |
|
|
7584 | fi |
|
|
7585 | fi |
|
|
7586 | rm -fr conftest* |
|
|
7587 | |
|
|
7588 | |
|
|
7589 | fi |
|
|
7590 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
7591 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
7592 | fi |
|
|
7593 | |
|
|
7594 | CPPFLAGS="$save_CPPFLAGS" |
|
|
7595 | LDFLAGS="$save_LDFLAGS" |
|
|
7596 | LIBS="$save_LIBS" |
|
|
7597 | ;; |
|
|
7598 | esac |
|
|
7599 | |
|
|
7600 | case "$lt_cv_dlopen_self" in |
|
|
7601 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
7602 | *) enable_dlopen_self=unknown ;; |
|
|
7603 | esac |
|
|
7604 | |
|
|
7605 | case "$lt_cv_dlopen_self_static" in |
|
|
7606 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
7607 | *) enable_dlopen_self_static=unknown ;; |
|
|
7608 | esac |
|
|
7609 | fi |
|
|
7610 | |
|
|
7611 | |
|
|
7612 | ## FIXME: this should be a separate macro |
|
|
7613 | ## |
|
|
7614 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
7615 | case "$archive_cmds" in |
|
|
7616 | *'~'*) |
|
|
7617 | # FIXME: we may have to deal with multi-command sequences. |
|
|
7618 | ;; |
|
|
7619 | '$CC '*) |
|
|
7620 | # Test whether the compiler implicitly links with -lc since on some |
|
|
7621 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
7622 | # to ld, don't add -lc before -lgcc. |
|
|
7623 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
7624 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
7625 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
|
|
7626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7627 | else |
|
|
7628 | $rm conftest* |
|
|
7629 | echo 'static int dummy;' > conftest.$ac_ext |
|
|
7630 | |
|
|
7631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7632 | (eval $ac_compile) 2>&5 |
|
|
7633 | ac_status=$? |
|
|
7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7635 | (exit $ac_status); }; then |
|
|
7636 | soname=conftest |
|
|
7637 | lib=conftest |
|
|
7638 | libobjs=conftest.$ac_objext |
|
|
7639 | deplibs= |
|
|
7640 | wl=$lt_cv_prog_cc_wl |
|
|
7641 | compiler_flags=-v |
|
|
7642 | linker_flags=-v |
|
|
7643 | verstring= |
|
|
7644 | output_objdir=. |
|
|
7645 | libname=conftest |
|
|
7646 | save_allow_undefined_flag=$allow_undefined_flag |
|
|
7647 | allow_undefined_flag= |
|
|
7648 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
7649 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
7650 | ac_status=$? |
|
|
7651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7652 | (exit $ac_status); } |
|
|
7653 | then |
|
|
7654 | lt_cv_archive_cmds_need_lc=no |
|
|
7655 | else |
|
|
7656 | lt_cv_archive_cmds_need_lc=yes |
|
|
7657 | fi |
|
|
7658 | allow_undefined_flag=$save_allow_undefined_flag |
|
|
7659 | else |
|
|
7660 | cat conftest.err 1>&5 |
|
|
7661 | fi |
|
|
7662 | fi |
|
|
7663 | |
|
|
7664 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
|
|
7665 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
|
|
7666 | ;; |
|
|
7667 | esac |
|
|
7668 | fi |
|
|
7669 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
|
7670 | ## |
|
|
7671 | ## END FIXME |
|
|
7672 | |
|
|
7673 | ## FIXME: this should be a separate macro |
|
|
7674 | ## |
|
|
7675 | # The second clause should only fire when bootstrapping the |
|
|
7676 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
7677 | # with your package, and you will get complaints that there are |
|
|
7678 | # no rules to generate ltmain.sh. |
|
|
7679 | if test -f "$ltmain"; then |
|
|
7680 | : |
|
|
7681 | else |
|
|
7682 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
7683 | # `config.status --recheck' to rerun these tests and create the |
|
|
7684 | # libtool script then. |
|
|
7685 | test -f Makefile && make "$ltmain" |
|
|
7686 | fi |
|
|
7687 | |
|
|
7688 | if test -f "$ltmain"; then |
|
|
7689 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
|
|
7690 | $rm -f "${ofile}T" |
|
|
7691 | |
|
|
7692 | echo creating $ofile |
|
|
7693 | |
|
|
7694 | # Now quote all the things that may contain metacharacters while being |
|
|
7695 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
7696 | # variables and quote the copies for generation of the libtool script. |
|
|
7697 | for var in echo old_CC old_CFLAGS \ |
|
|
7698 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
|
|
7699 | reload_flag reload_cmds wl \ |
|
|
7700 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
|
|
7701 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
|
|
7702 | library_names_spec soname_spec \ |
|
|
7703 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
|
|
7704 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
|
|
7705 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
|
|
7706 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
|
|
7707 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
|
|
7708 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
|
|
7709 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
|
|
7710 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
7711 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
|
|
7712 | |
|
|
7713 | case "$var" in |
|
|
7714 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
|
|
7715 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
7716 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
|
|
7717 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
|
|
7718 | postinstall_cmds | postuninstall_cmds | \ |
|
|
7719 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
7720 | # Double-quote double-evaled strings. |
|
|
7721 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
7722 | ;; |
|
|
7723 | *) |
|
|
7724 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
7725 | ;; |
|
|
7726 | esac |
|
|
7727 | done |
|
|
7728 | |
|
|
7729 | cat <<__EOF__ > "${ofile}T" |
|
|
7730 | #! $SHELL |
|
|
7731 | |
|
|
7732 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
7733 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
7734 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
7735 | # |
|
|
7736 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
|
|
7737 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
7738 | # |
|
|
7739 | # This program is free software; you can redistribute it and/or modify |
|
|
7740 | # it under the terms of the GNU General Public License as published by |
|
|
7741 | # the Free Software Foundation; either version 2 of the License, or |
|
|
7742 | # (at your option) any later version. |
|
|
7743 | # |
|
|
7744 | # This program is distributed in the hope that it will be useful, but |
|
|
7745 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
7746 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
7747 | # General Public License for more details. |
|
|
7748 | # |
|
|
7749 | # You should have received a copy of the GNU General Public License |
|
|
7750 | # along with this program; if not, write to the Free Software |
|
|
7751 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
7752 | # |
|
|
7753 | # As a special exception to the GNU General Public License, if you |
|
|
7754 | # distribute this file as part of a program that contains a |
|
|
7755 | # configuration script generated by Autoconf, you may include it under |
|
|
7756 | # the same distribution terms that you use for the rest of that program. |
|
|
7757 | |
|
|
7758 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
7759 | Xsed="sed -e s/^X//" |
|
|
7760 | |
|
|
7761 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
7762 | # if CDPATH is set. |
|
|
7763 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
7764 | |
|
|
7765 | # ### BEGIN LIBTOOL CONFIG |
|
|
7766 | |
|
|
7767 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
7768 | |
|
|
7769 | # Shell to use when invoking shell scripts. |
|
|
7770 | SHELL=$lt_SHELL |
|
|
7771 | |
|
|
7772 | # Whether or not to build shared libraries. |
|
|
7773 | build_libtool_libs=$enable_shared |
|
|
7774 | |
|
|
7775 | # Whether or not to add -lc for building shared libraries. |
|
|
7776 | build_libtool_need_lc=$need_lc |
|
|
7777 | |
|
|
7778 | # Whether or not to build static libraries. |
|
|
7779 | build_old_libs=$enable_static |
|
|
7780 | |
|
|
7781 | # Whether or not to optimize for fast installation. |
|
|
7782 | fast_install=$enable_fast_install |
|
|
7783 | |
|
|
7784 | # The host system. |
|
|
7785 | host_alias=$host_alias |
|
|
7786 | host=$host |
|
|
7787 | |
|
|
7788 | # An echo program that does not interpret backslashes. |
|
|
7789 | echo=$lt_echo |
|
|
7790 | |
|
|
7791 | # The archiver. |
|
|
7792 | AR=$lt_AR |
|
|
7793 | AR_FLAGS=$lt_AR_FLAGS |
|
|
7794 | |
|
|
7795 | # The default C compiler. |
|
|
7796 | CC=$lt_CC |
|
|
7797 | |
|
|
7798 | # Is the compiler the GNU C compiler? |
|
|
7799 | with_gcc=$GCC |
|
|
7800 | |
|
|
7801 | # The linker used to build libraries. |
|
|
7802 | LD=$lt_LD |
|
|
7803 | |
|
|
7804 | # Whether we need hard or soft links. |
|
|
7805 | LN_S=$lt_LN_S |
|
|
7806 | |
|
|
7807 | # A BSD-compatible nm program. |
|
|
7808 | NM=$lt_NM |
|
|
7809 | |
|
|
7810 | # A symbol stripping program |
|
|
7811 | STRIP=$STRIP |
|
|
7812 | |
|
|
7813 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
7814 | MAGIC_CMD=$MAGIC_CMD |
|
|
7815 | |
|
|
7816 | # Used on cygwin: DLL creation program. |
|
|
7817 | DLLTOOL="$DLLTOOL" |
|
|
7818 | |
|
|
7819 | # Used on cygwin: object dumper. |
|
|
7820 | OBJDUMP="$OBJDUMP" |
|
|
7821 | |
|
|
7822 | # Used on cygwin: assembler. |
|
|
7823 | AS="$AS" |
|
|
7824 | |
|
|
7825 | # The name of the directory that contains temporary libtool files. |
|
|
7826 | objdir=$objdir |
|
|
7827 | |
|
|
7828 | # How to create reloadable object files. |
|
|
7829 | reload_flag=$lt_reload_flag |
|
|
7830 | reload_cmds=$lt_reload_cmds |
|
|
7831 | |
|
|
7832 | # How to pass a linker flag through the compiler. |
|
|
7833 | wl=$lt_wl |
|
|
7834 | |
|
|
7835 | # Object file suffix (normally "o"). |
|
|
7836 | objext="$ac_objext" |
|
|
7837 | |
|
|
7838 | # Old archive suffix (normally "a"). |
|
|
7839 | libext="$libext" |
|
|
7840 | |
|
|
7841 | # Executable file suffix (normally ""). |
|
|
7842 | exeext="$exeext" |
|
|
7843 | |
|
|
7844 | # Additional compiler flags for building library objects. |
|
|
7845 | pic_flag=$lt_pic_flag |
|
|
7846 | pic_mode=$pic_mode |
|
|
7847 | |
|
|
7848 | # Does compiler simultaneously support -c and -o options? |
|
|
7849 | compiler_c_o=$lt_compiler_c_o |
|
|
7850 | |
|
|
7851 | # Can we write directly to a .lo ? |
|
|
7852 | compiler_o_lo=$lt_compiler_o_lo |
|
|
7853 | |
|
|
7854 | # Must we lock files when doing compilation ? |
|
|
7855 | need_locks=$lt_need_locks |
|
|
7856 | |
|
|
7857 | # Do we need the lib prefix for modules? |
|
|
7858 | need_lib_prefix=$need_lib_prefix |
|
|
7859 | |
|
|
7860 | # Do we need a version for libraries? |
|
|
7861 | need_version=$need_version |
|
|
7862 | |
|
|
7863 | # Whether dlopen is supported. |
|
|
7864 | dlopen_support=$enable_dlopen |
|
|
7865 | |
|
|
7866 | # Whether dlopen of programs is supported. |
|
|
7867 | dlopen_self=$enable_dlopen_self |
|
|
7868 | |
|
|
7869 | # Whether dlopen of statically linked programs is supported. |
|
|
7870 | dlopen_self_static=$enable_dlopen_self_static |
|
|
7871 | |
|
|
7872 | # Compiler flag to prevent dynamic linking. |
|
|
7873 | link_static_flag=$lt_link_static_flag |
|
|
7874 | |
|
|
7875 | # Compiler flag to turn off builtin functions. |
|
|
7876 | no_builtin_flag=$lt_no_builtin_flag |
|
|
7877 | |
|
|
7878 | # Compiler flag to allow reflexive dlopens. |
|
|
7879 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
7880 | |
|
|
7881 | # Compiler flag to generate shared objects directly from archives. |
|
|
7882 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
7883 | |
|
|
7884 | # Compiler flag to generate thread-safe objects. |
|
|
7885 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
|
7886 | |
|
|
7887 | # Library versioning type. |
|
|
7888 | version_type=$version_type |
|
|
7889 | |
|
|
7890 | # Format of library name prefix. |
|
|
7891 | libname_spec=$lt_libname_spec |
|
|
7892 | |
|
|
7893 | # List of archive names. First name is the real one, the rest are links. |
|
|
7894 | # The last name is the one that the linker finds with -lNAME. |
|
|
7895 | library_names_spec=$lt_library_names_spec |
|
|
7896 | |
|
|
7897 | # The coded name of the library, if different from the real name. |
|
|
7898 | soname_spec=$lt_soname_spec |
|
|
7899 | |
|
|
7900 | # Commands used to build and install an old-style archive. |
|
|
7901 | RANLIB=$lt_RANLIB |
|
|
7902 | old_archive_cmds=$lt_old_archive_cmds |
|
|
7903 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
7904 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
7905 | |
|
|
7906 | # Create an old-style archive from a shared archive. |
|
|
7907 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
7908 | |
|
|
7909 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
7910 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
7911 | |
|
|
7912 | # Commands used to build and install a shared archive. |
|
|
7913 | archive_cmds=$lt_archive_cmds |
|
|
7914 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
7915 | postinstall_cmds=$lt_postinstall_cmds |
|
|
7916 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
7917 | |
|
|
7918 | # Commands to strip libraries. |
|
|
7919 | old_striplib=$lt_old_striplib |
|
|
7920 | striplib=$lt_striplib |
|
|
7921 | |
|
|
7922 | # Method to check whether dependent libraries are shared objects. |
|
|
7923 | deplibs_check_method=$lt_deplibs_check_method |
|
|
7924 | |
|
|
7925 | # Command to use when deplibs_check_method == file_magic. |
|
|
7926 | file_magic_cmd=$lt_file_magic_cmd |
|
|
7927 | |
|
|
7928 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
7929 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
7930 | |
|
|
7931 | # Flag that forces no undefined symbols. |
|
|
7932 | no_undefined_flag=$lt_no_undefined_flag |
|
|
7933 | |
|
|
7934 | # Commands used to finish a libtool library installation in a directory. |
|
|
7935 | finish_cmds=$lt_finish_cmds |
|
|
7936 | |
|
|
7937 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
7938 | finish_eval=$lt_finish_eval |
|
|
7939 | |
|
|
7940 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
7941 | global_symbol_pipe=$lt_global_symbol_pipe |
|
|
7942 | |
|
|
7943 | # Transform the output of nm in a proper C declaration |
|
|
7944 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
|
|
7945 | |
|
|
7946 | # This is the shared library runtime path variable. |
|
|
7947 | runpath_var=$runpath_var |
|
|
7948 | |
|
|
7949 | # This is the shared library path variable. |
|
|
7950 | shlibpath_var=$shlibpath_var |
|
|
7951 | |
|
|
7952 | # Is shlibpath searched before the hard-coded library search path? |
|
|
7953 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
7954 | |
|
|
7955 | # How to hardcode a shared library path into an executable. |
|
|
7956 | hardcode_action=$hardcode_action |
|
|
7957 | |
|
|
7958 | # Whether we should hardcode library paths into libraries. |
|
|
7959 | hardcode_into_libs=$hardcode_into_libs |
|
|
7960 | |
|
|
7961 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
7962 | # This must work even if \$libdir does not exist. |
|
|
7963 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
7964 | |
|
|
7965 | # Whether we need a single -rpath flag with a separated argument. |
|
|
7966 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
7967 | |
|
|
7968 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
|
|
7969 | # resulting binary. |
|
|
7970 | hardcode_direct=$hardcode_direct |
|
|
7971 | |
|
|
7972 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
7973 | # resulting binary. |
|
|
7974 | hardcode_minus_L=$hardcode_minus_L |
|
|
7975 | |
|
|
7976 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
7977 | # the resulting binary. |
|
|
7978 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
7979 | |
|
|
7980 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
7981 | # restored at relink time. |
|
|
7982 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
7983 | |
|
|
7984 | # Whether libtool must link a program against all its dependency libraries. |
|
|
7985 | link_all_deplibs=$link_all_deplibs |
|
|
7986 | |
|
|
7987 | # Compile-time system search path for libraries |
|
|
7988 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
7989 | |
|
|
7990 | # Run-time system search path for libraries |
|
|
7991 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
7992 | |
|
|
7993 | # Fix the shell variable \$srcfile for the compiler. |
|
|
7994 | fix_srcfile_path="$fix_srcfile_path" |
|
|
7995 | |
|
|
7996 | # Set to yes if exported symbols are required. |
|
|
7997 | always_export_symbols=$always_export_symbols |
|
|
7998 | |
|
|
7999 | # The commands to list exported symbols. |
|
|
8000 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
8001 | |
|
|
8002 | # The commands to extract the exported symbol list from a shared archive. |
|
|
8003 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
8004 | |
|
|
8005 | # Symbols that should not be listed in the preloaded symbols. |
|
|
8006 | exclude_expsyms=$lt_exclude_expsyms |
|
|
8007 | |
|
|
8008 | # Symbols that must always be exported. |
|
|
8009 | include_expsyms=$lt_include_expsyms |
|
|
8010 | |
|
|
8011 | # ### END LIBTOOL CONFIG |
|
|
8012 | |
|
|
8013 | __EOF__ |
|
|
8014 | |
|
|
8015 | case "$host_os" in |
|
|
8016 | aix3*) |
|
|
8017 | cat <<\EOF >> "${ofile}T" |
|
|
8018 | |
|
|
8019 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
8020 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
8021 | # vanish in a puff of smoke. |
|
|
8022 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
8023 | COLLECT_NAMES= |
|
|
8024 | export COLLECT_NAMES |
|
|
8025 | fi |
|
|
8026 | EOF |
|
|
8027 | ;; |
|
|
8028 | esac |
|
|
8029 | |
|
|
8030 | case "$host_os" in |
|
|
8031 | cygwin* | mingw* | pw32* | os2*) |
|
|
8032 | cat <<'EOF' >> "${ofile}T" |
|
|
8033 | # This is a source program that is used to create dlls on Windows |
|
|
8034 | # Don't remove nor modify the starting and closing comments |
|
|
8035 | # /* ltdll.c starts here */ |
|
|
8036 | # #define WIN32_LEAN_AND_MEAN |
|
|
8037 | # #include <windows.h> |
|
|
8038 | # #undef WIN32_LEAN_AND_MEAN |
|
|
8039 | # #include <stdio.h> |
|
|
8040 | # |
|
|
8041 | # #ifndef __CYGWIN__ |
|
|
8042 | # # ifdef __CYGWIN32__ |
|
|
8043 | # # define __CYGWIN__ __CYGWIN32__ |
|
|
8044 | # # endif |
|
|
8045 | # #endif |
|
|
8046 | # |
|
|
8047 | # #ifdef __cplusplus |
|
|
8048 | # extern "C" { |
|
|
8049 | # #endif |
|
|
8050 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
|
|
8051 | # #ifdef __cplusplus |
|
|
8052 | # } |
|
|
8053 | # #endif |
|
|
8054 | # |
|
|
8055 | # #ifdef __CYGWIN__ |
|
|
8056 | # #include <cygwin/cygwin_dll.h> |
|
|
8057 | # DECLARE_CYGWIN_DLL( DllMain ); |
|
|
8058 | # #endif |
|
|
8059 | # HINSTANCE __hDllInstance_base; |
|
|
8060 | # |
|
|
8061 | # BOOL APIENTRY |
|
|
8062 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
|
|
8063 | # { |
|
|
8064 | # __hDllInstance_base = hInst; |
|
|
8065 | # return TRUE; |
|
|
8066 | # } |
|
|
8067 | # /* ltdll.c ends here */ |
|
|
8068 | # This is a source program that is used to create import libraries |
|
|
8069 | # on Windows for dlls which lack them. Don't remove nor modify the |
|
|
8070 | # starting and closing comments |
|
|
8071 | # /* impgen.c starts here */ |
|
|
8072 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
|
|
8073 | # |
|
|
8074 | # This file is part of GNU libtool. |
|
|
8075 | # |
|
|
8076 | # This program is free software; you can redistribute it and/or modify |
|
|
8077 | # it under the terms of the GNU General Public License as published by |
|
|
8078 | # the Free Software Foundation; either version 2 of the License, or |
|
|
8079 | # (at your option) any later version. |
|
|
8080 | # |
|
|
8081 | # This program is distributed in the hope that it will be useful, |
|
|
8082 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
8083 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
8084 | # GNU General Public License for more details. |
|
|
8085 | # |
|
|
8086 | # You should have received a copy of the GNU General Public License |
|
|
8087 | # along with this program; if not, write to the Free Software |
|
|
8088 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
8089 | # */ |
|
|
8090 | # |
|
|
8091 | # #include <stdio.h> /* for printf() */ |
|
|
8092 | # #include <unistd.h> /* for open(), lseek(), read() */ |
|
|
8093 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
|
|
8094 | # #include <string.h> /* for strdup() */ |
|
|
8095 | # |
|
|
8096 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
|
|
8097 | # #ifndef O_BINARY |
|
|
8098 | # #define O_BINARY 0 |
|
|
8099 | # #endif |
|
|
8100 | # |
|
|
8101 | # static unsigned int |
|
|
8102 | # pe_get16 (fd, offset) |
|
|
8103 | # int fd; |
|
|
8104 | # int offset; |
|
|
8105 | # { |
|
|
8106 | # unsigned char b[2]; |
|
|
8107 | # lseek (fd, offset, SEEK_SET); |
|
|
8108 | # read (fd, b, 2); |
|
|
8109 | # return b[0] + (b[1]<<8); |
|
|
8110 | # } |
|
|
8111 | # |
|
|
8112 | # static unsigned int |
|
|
8113 | # pe_get32 (fd, offset) |
|
|
8114 | # int fd; |
|
|
8115 | # int offset; |
|
|
8116 | # { |
|
|
8117 | # unsigned char b[4]; |
|
|
8118 | # lseek (fd, offset, SEEK_SET); |
|
|
8119 | # read (fd, b, 4); |
|
|
8120 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8121 | # } |
|
|
8122 | # |
|
|
8123 | # static unsigned int |
|
|
8124 | # pe_as32 (ptr) |
|
|
8125 | # void *ptr; |
|
|
8126 | # { |
|
|
8127 | # unsigned char *b = ptr; |
|
|
8128 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8129 | # } |
|
|
8130 | # |
|
|
8131 | # int |
|
|
8132 | # main (argc, argv) |
|
|
8133 | # int argc; |
|
|
8134 | # char *argv[]; |
|
|
8135 | # { |
|
|
8136 | # int dll; |
|
|
8137 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
|
|
8138 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
|
|
8139 | # unsigned long name_rvas, nexp; |
|
|
8140 | # unsigned char *expdata, *erva; |
|
|
8141 | # char *filename, *dll_name; |
|
|
8142 | # |
|
|
8143 | # filename = argv[1]; |
|
|
8144 | # |
|
|
8145 | # dll = open(filename, O_RDONLY|O_BINARY); |
|
|
8146 | # if (!dll) |
|
|
8147 | # return 1; |
|
|
8148 | # |
|
|
8149 | # dll_name = filename; |
|
|
8150 | # |
|
|
8151 | # for (i=0; filename[i]; i++) |
|
|
8152 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
|
|
8153 | # dll_name = filename + i +1; |
|
|
8154 | # |
|
|
8155 | # pe_header_offset = pe_get32 (dll, 0x3c); |
|
|
8156 | # opthdr_ofs = pe_header_offset + 4 + 20; |
|
|
8157 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
|
|
8158 | # |
|
|
8159 | # if (num_entries < 1) /* no exports */ |
|
|
8160 | # return 1; |
|
|
8161 | # |
|
|
8162 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
|
|
8163 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
|
|
8164 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
|
|
8165 | # secptr = (pe_header_offset + 4 + 20 + |
|
|
8166 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
|
|
8167 | # |
|
|
8168 | # expptr = 0; |
|
|
8169 | # for (i = 0; i < nsections; i++) |
|
|
8170 | # { |
|
|
8171 | # char sname[8]; |
|
|
8172 | # unsigned long secptr1 = secptr + 40 * i; |
|
|
8173 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
|
|
8174 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
|
|
8175 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
|
|
8176 | # lseek(dll, secptr1, SEEK_SET); |
|
|
8177 | # read(dll, sname, 8); |
|
|
8178 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
|
|
8179 | # { |
|
|
8180 | # expptr = fptr + (export_rva - vaddr); |
|
|
8181 | # if (export_rva + export_size > vaddr + vsize) |
|
|
8182 | # export_size = vsize - (export_rva - vaddr); |
|
|
8183 | # break; |
|
|
8184 | # } |
|
|
8185 | # } |
|
|
8186 | # |
|
|
8187 | # expdata = (unsigned char*)malloc(export_size); |
|
|
8188 | # lseek (dll, expptr, SEEK_SET); |
|
|
8189 | # read (dll, expdata, export_size); |
|
|
8190 | # erva = expdata - export_rva; |
|
|
8191 | # |
|
|
8192 | # nexp = pe_as32 (expdata+24); |
|
|
8193 | # name_rvas = pe_as32 (expdata+32); |
|
|
8194 | # |
|
|
8195 | # printf ("EXPORTS\n"); |
|
|
8196 | # for (i = 0; i<nexp; i++) |
|
|
8197 | # { |
|
|
8198 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
|
|
8199 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
|
|
8200 | # } |
|
|
8201 | # |
|
|
8202 | # return 0; |
|
|
8203 | # } |
|
|
8204 | # /* impgen.c ends here */ |
|
|
8205 | |
|
|
8206 | EOF |
|
|
8207 | ;; |
|
|
8208 | esac |
|
|
8209 | |
|
|
8210 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
8211 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
8212 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
8213 | # is reportedly fixed, but why not run on old versions too? |
|
|
8214 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
|
|
8215 | |
|
|
8216 | mv -f "${ofile}T" "$ofile" || \ |
|
|
8217 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
|
8218 | chmod +x "$ofile" |
|
|
8219 | fi |
|
|
8220 | ## |
|
|
8221 | ## END FIXME |
|
|
8222 | |
|
|
8223 | |
|
|
8224 | |
|
|
8225 | |
|
|
8226 | |
|
|
8227 | # This can be used to rebuild libtool when needed |
|
|
8228 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
|
8229 | |
|
|
8230 | # Always use our own libtool. |
|
|
8231 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
8232 | |
|
|
8233 | # Prevent multiple expansion |
|
|
8234 | |
4085 | |
8235 | |
4086 | |
8236 | MALLOC_TYPE=S |
4087 | MALLOC_TYPE=S |
8237 | support_addstrings=no |
4088 | |
8238 | support_frills=no |
4089 | support_frills=yes |
8239 | support_linespace=no |
|
|
8240 | support_inheritpixmap=no |
4090 | support_inheritpixmap=yes |
8241 | support_tinting=no |
4091 | support_tinting=yes |
8242 | support_fading=no |
4092 | support_fading=yes |
8243 | support_keepscrolling=no |
4093 | support_keepscrolling=yes |
8244 | support_selectionscrolling=no |
4094 | support_selectionscrolling=yes |
8245 | support_menubar=no |
|
|
8246 | support_mousewheel=no |
4095 | support_mousewheel=yes |
8247 | support_mouseslipwheel=no |
4096 | support_mouseslipwheel=yes |
8248 | support_utmp=no |
4097 | support_utmp=yes |
8249 | support_wtmp=no |
4098 | support_wtmp=yes |
8250 | support_lastlog=no |
4099 | support_lastlog=yes |
8251 | support_cursor_blink=no |
|
|
8252 | support_text_blink=no |
4100 | support_text_blink=yes |
8253 | support_pointer_blank=no |
4101 | support_pointer_blank=yes |
8254 | support_scroll_rxvt=no |
4102 | support_scroll_rxvt=yes |
8255 | support_scroll_next=no |
4103 | support_scroll_next=yes |
8256 | support_scroll_xterm=no |
4104 | support_scroll_xterm=yes |
8257 | support_scroll_plain=no |
4105 | support_scroll_plain=yes |
8258 | support_xim=no |
4106 | support_xim=yes |
8259 | support_xpm=no |
4107 | support_xpm=yes |
8260 | support_xft=no |
4108 | support_xft=yes |
8261 | support_unicode3=no |
4109 | support_unicode3=no |
8262 | support_combining=no |
4110 | support_combining=yes |
8263 | support_8bitctrls=no |
4111 | support_8bitctrls=no |
8264 | support_iso14755=no |
4112 | support_iso14755=yes |
8265 | support_styles=no |
4113 | support_styles=yes |
|
|
4114 | support_perl=yes |
8266 | codesets= |
4115 | codesets=all |
8267 | |
4116 | |
8268 | |
4117 | |
8269 | if test "x$enable_shared" = xyes; then |
4118 | if test "x$enable_shared" = xyes; then |
8270 | |
4119 | |
8271 | cat >>confdefs.h <<\_ACEOF |
4120 | cat >>confdefs.h <<\_ACEOF |
… | |
… | |
8277 | |
4126 | |
8278 | |
4127 | |
8279 | # Check whether --enable-everything or --disable-everything was given. |
4128 | # Check whether --enable-everything or --disable-everything was given. |
8280 | if test "${enable_everything+set}" = set; then |
4129 | if test "${enable_everything+set}" = set; then |
8281 | enableval="$enable_everything" |
4130 | enableval="$enable_everything" |
|
|
4131 | |
|
|
4132 | if test x$enableval = xno; then |
|
|
4133 | support_24bit=no |
|
|
4134 | support_frills=no |
|
|
4135 | support_inheritpixmap=no |
|
|
4136 | support_tinting=no |
|
|
4137 | support_fading=no |
|
|
4138 | support_keepscrolling=no |
|
|
4139 | support_selectionscrolling=no |
|
|
4140 | support_lastlog=no |
|
|
4141 | support_mousewheel=no |
|
|
4142 | support_mouseslipwheel=no |
|
|
4143 | support_text_blink=no |
|
|
4144 | support_pointer_blank=no |
|
|
4145 | support_scroll_rxvt=no |
|
|
4146 | support_scroll_next=no |
|
|
4147 | support_scroll_xterm=no |
|
|
4148 | support_scroll_plain=no |
|
|
4149 | support_utmp=no |
|
|
4150 | support_wtmp=no |
|
|
4151 | support_xim=no |
|
|
4152 | support_xpm=no |
|
|
4153 | support_xft=no |
|
|
4154 | support_unicode3=no |
|
|
4155 | support_combining=no |
|
|
4156 | support_8bitctrls=no |
|
|
4157 | support_iso14755=no |
|
|
4158 | support_styles=no |
|
|
4159 | support_perl=no |
|
|
4160 | codesets= |
|
|
4161 | fi |
8282 | if test x$enableval = xyes; then |
4162 | if test x$enableval = xyes; then |
8283 | support_24bit=yes |
4163 | support_24bit=yes |
8284 | support_frills=yes |
4164 | support_frills=yes |
8285 | support_linespace=yes |
|
|
8286 | support_inheritpixmap=yes |
4165 | support_inheritpixmap=yes |
8287 | support_tinting=yes |
4166 | support_tinting=yes |
8288 | support_fading=yes |
4167 | support_fading=yes |
8289 | support_keepscrolling=yes |
4168 | support_keepscrolling=yes |
8290 | support_selectionscrolling=yes |
4169 | support_selectionscrolling=yes |
8291 | support_lastlog=yes |
4170 | support_lastlog=yes |
8292 | support_menubar=yes |
|
|
8293 | support_mousewheel=yes |
4171 | support_mousewheel=yes |
8294 | support_mouseslipwheel=yes |
4172 | support_mouseslipwheel=yes |
8295 | support_cursor_blink=yes |
|
|
8296 | support_text_blink=yes |
4173 | support_text_blink=yes |
8297 | support_pointer_blank=yes |
4174 | support_pointer_blank=yes |
8298 | support_scroll_rxvt=yes |
4175 | support_scroll_rxvt=yes |
8299 | support_scroll_next=yes |
4176 | support_scroll_next=yes |
8300 | support_scroll_xterm=yes |
4177 | support_scroll_xterm=yes |
8301 | support_scroll_plain=yes |
4178 | support_scroll_plain=yes |
8302 | support_utmp=yes |
4179 | support_utmp=yes |
8303 | support_wtmp=yes |
4180 | support_wtmp=yes |
8304 | support_xim=yes |
4181 | support_xim=yes |
8305 | support_xpm=yes |
4182 | support_xpm=yes |
8306 | support_xft=yes |
4183 | support_xft=yes |
8307 | support_unicode3=yes |
4184 | support_unicode3=yes |
8308 | support_combining=yes |
4185 | support_combining=yes |
8309 | #support_8bitctrls=yes |
4186 | #support_8bitctrls=yes |
8310 | support_iso14755=yes |
4187 | support_iso14755=yes |
8311 | support_styles=yes |
4188 | support_styles=yes |
|
|
4189 | support_perl=yes |
8312 | codesets=all |
4190 | codesets=all |
8313 | fi |
4191 | fi |
|
|
4192 | |
8314 | fi; |
4193 | fi; |
8315 | |
4194 | |
8316 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
4195 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
8317 | if test "${enable_unicode3+set}" = set; then |
4196 | if test "${enable_unicode3+set}" = set; then |
8318 | enableval="$enable_unicode3" |
4197 | enableval="$enable_unicode3" |
… | |
… | |
8399 | if test x$enableval = xyes -o x$enableval = xno; then |
4278 | if test x$enableval = xyes -o x$enableval = xno; then |
8400 | support_fading=$enableval |
4279 | support_fading=$enableval |
8401 | fi |
4280 | fi |
8402 | fi; |
4281 | fi; |
8403 | |
4282 | |
8404 | # Check whether --enable-menubar or --disable-menubar was given. |
|
|
8405 | if test "${enable_menubar+set}" = set; then |
|
|
8406 | enableval="$enable_menubar" |
|
|
8407 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8408 | support_menubar=$enableval |
|
|
8409 | fi |
|
|
8410 | fi; |
|
|
8411 | |
|
|
8412 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
4283 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
8413 | if test "${enable_rxvt_scroll+set}" = set; then |
4284 | if test "${enable_rxvt_scroll+set}" = set; then |
8414 | enableval="$enable_rxvt_scroll" |
4285 | enableval="$enable_rxvt_scroll" |
8415 | if test x$enableval = xyes -o x$enableval = xno; then |
4286 | if test x$enableval = xyes -o x$enableval = xno; then |
8416 | support_scroll_rxvt=$enableval |
4287 | support_scroll_rxvt=$enableval |
… | |
… | |
8431 | if test x$enableval = xyes -o x$enableval = xno; then |
4302 | if test x$enableval = xyes -o x$enableval = xno; then |
8432 | support_scroll_xterm=$enableval |
4303 | support_scroll_xterm=$enableval |
8433 | fi |
4304 | fi |
8434 | fi; |
4305 | fi; |
8435 | |
4306 | |
|
|
4307 | # Check whether --enable-perl or --disable-perl was given. |
|
|
4308 | if test "${enable_perl+set}" = set; then |
|
|
4309 | enableval="$enable_perl" |
|
|
4310 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4311 | support_perl=$enableval |
|
|
4312 | fi |
|
|
4313 | fi; |
|
|
4314 | |
8436 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
4315 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
8437 | if test "${enable_plain_scroll+set}" = set; then |
4316 | if test "${enable_plain_scroll+set}" = set; then |
8438 | enableval="$enable_plain_scroll" |
4317 | enableval="$enable_plain_scroll" |
8439 | if test x$enableval = xyes -o x$enableval = xno; then |
4318 | if test x$enableval = xyes -o x$enableval = xno; then |
8440 | support_scroll_plain=$enableval |
4319 | support_scroll_plain=$enableval |
8441 | fi |
4320 | fi |
8442 | fi; |
4321 | fi; |
8443 | |
4322 | |
8444 | # Check whether --enable-half-shadow or --disable-half-shadow was given. |
|
|
8445 | if test "${enable_half_shadow+set}" = set; then |
|
|
8446 | enableval="$enable_half_shadow" |
|
|
8447 | if test x$enableval = xyes; then |
|
|
8448 | |
|
|
8449 | cat >>confdefs.h <<\_ACEOF |
|
|
8450 | #define HALFSHADOW 1 |
|
|
8451 | _ACEOF |
|
|
8452 | |
|
|
8453 | fi |
|
|
8454 | fi; |
|
|
8455 | |
4323 | |
8456 | |
4324 | |
8457 | # Check whether --with-codesets or --without-codesets was given. |
4325 | # Check whether --with-codesets or --without-codesets was given. |
8458 | if test "${with_codesets+set}" = set; then |
4326 | if test "${with_codesets+set}" = set; then |
8459 | withval="$with_codesets" |
4327 | withval="$with_codesets" |
… | |
… | |
8466 | if test x$enableval = xyes -o x$enableval = xno; then |
4334 | if test x$enableval = xyes -o x$enableval = xno; then |
8467 | support_xim=$enableval |
4335 | support_xim=$enableval |
8468 | fi |
4336 | fi |
8469 | fi; |
4337 | fi; |
8470 | |
4338 | |
8471 | # Check whether --enable-ttygid or --disable-ttygid was given. |
|
|
8472 | if test "${enable_ttygid+set}" = set; then |
|
|
8473 | enableval="$enable_ttygid" |
|
|
8474 | if test x$enableval = xyes; then |
|
|
8475 | |
|
|
8476 | cat >>confdefs.h <<\_ACEOF |
|
|
8477 | #define TTY_GID_SUPPORT 1 |
|
|
8478 | _ACEOF |
|
|
8479 | |
|
|
8480 | fi |
|
|
8481 | fi; |
|
|
8482 | |
|
|
8483 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
4339 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
8484 | if test "${enable_backspace_key+set}" = set; then |
4340 | if test "${enable_backspace_key+set}" = set; then |
8485 | enableval="$enable_backspace_key" |
4341 | enableval="$enable_backspace_key" |
8486 | if test x$enableval = xno; then |
4342 | if test x$enableval = xno; then |
8487 | |
4343 | |
… | |
… | |
8509 | enableval="$enable_resources" |
4365 | enableval="$enable_resources" |
8510 | if test x$enableval = xno; then |
4366 | if test x$enableval = xno; then |
8511 | |
4367 | |
8512 | cat >>confdefs.h <<\_ACEOF |
4368 | cat >>confdefs.h <<\_ACEOF |
8513 | #define NO_RESOURCES 1 |
4369 | #define NO_RESOURCES 1 |
8514 | _ACEOF |
|
|
8515 | |
|
|
8516 | fi |
|
|
8517 | fi; |
|
|
8518 | |
|
|
8519 | # Check whether --enable-xgetdefault or --disable-xgetdefault was given. |
|
|
8520 | if test "${enable_xgetdefault+set}" = set; then |
|
|
8521 | enableval="$enable_xgetdefault" |
|
|
8522 | if test x$enableval = xyes; then |
|
|
8523 | |
|
|
8524 | cat >>confdefs.h <<\_ACEOF |
|
|
8525 | #define USE_XGETDEFAULT 1 |
|
|
8526 | _ACEOF |
4370 | _ACEOF |
8527 | |
4371 | |
8528 | fi |
4372 | fi |
8529 | fi; |
4373 | fi; |
8530 | |
4374 | |
… | |
… | |
8595 | |
4439 | |
8596 | |
4440 | |
8597 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4441 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
8598 | |
4442 | |
8599 | |
4443 | |
8600 | # Check whether --enable-strings or --disable-strings was given. |
|
|
8601 | if test "${enable_strings+set}" = set; then |
|
|
8602 | enableval="$enable_strings" |
|
|
8603 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8604 | support_addstrings=$enableval |
|
|
8605 | fi |
|
|
8606 | fi; |
|
|
8607 | |
|
|
8608 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4444 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
8609 | if test "${enable_swapscreen+set}" = set; then |
4445 | if test "${enable_swapscreen+set}" = set; then |
8610 | enableval="$enable_swapscreen" |
4446 | enableval="$enable_swapscreen" |
8611 | if test x$enableval = xno; then |
4447 | if test x$enableval = xno; then |
8612 | |
4448 | |
… | |
… | |
8628 | # Check whether --enable-frills or --disable-frills was given. |
4464 | # Check whether --enable-frills or --disable-frills was given. |
8629 | if test "${enable_frills+set}" = set; then |
4465 | if test "${enable_frills+set}" = set; then |
8630 | enableval="$enable_frills" |
4466 | enableval="$enable_frills" |
8631 | if test x$enableval = xyes -o x$enableval = xno; then |
4467 | if test x$enableval = xyes -o x$enableval = xno; then |
8632 | support_frills=$enableval |
4468 | support_frills=$enableval |
8633 | fi |
|
|
8634 | fi; |
|
|
8635 | |
|
|
8636 | # Check whether --enable-linespace or --disable-linespace was given. |
|
|
8637 | if test "${enable_linespace+set}" = set; then |
|
|
8638 | enableval="$enable_linespace" |
|
|
8639 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8640 | support_linespace=$enableval |
|
|
8641 | fi |
4469 | fi |
8642 | fi; |
4470 | fi; |
8643 | |
4471 | |
8644 | # Check whether --enable-24bit or --disable-24bit was given. |
4472 | # Check whether --enable-24bit or --disable-24bit was given. |
8645 | if test "${enable_24bit+set}" = set; then |
4473 | if test "${enable_24bit+set}" = set; then |
… | |
… | |
8713 | _ACEOF |
4541 | _ACEOF |
8714 | |
4542 | |
8715 | fi |
4543 | fi |
8716 | fi; |
4544 | fi; |
8717 | |
4545 | |
8718 | # Check whether --enable-cursor-blink or --disable-cursor-blink was given. |
|
|
8719 | if test "${enable_cursor_blink+set}" = set; then |
|
|
8720 | enableval="$enable_cursor_blink" |
|
|
8721 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8722 | support_cursor_blink=$enableval |
|
|
8723 | fi |
|
|
8724 | fi; |
|
|
8725 | |
|
|
8726 | # Check whether --enable-text-blink or --disable-text-blink was given. |
4546 | # Check whether --enable-text-blink or --disable-text-blink was given. |
8727 | if test "${enable_text_blink+set}" = set; then |
4547 | if test "${enable_text_blink+set}" = set; then |
8728 | enableval="$enable_text_blink" |
4548 | enableval="$enable_text_blink" |
8729 | if test x$enableval = xyes -o x$enableval = xno; then |
4549 | if test x$enableval = xyes -o x$enableval = xno; then |
8730 | support_text_blink=$enableval |
4550 | support_text_blink=$enableval |
… | |
… | |
8763 | _ACEOF |
4583 | _ACEOF |
8764 | terminfo="$withval" |
4584 | terminfo="$withval" |
8765 | fi |
4585 | fi |
8766 | fi; |
4586 | fi; |
8767 | |
4587 | |
8768 | |
|
|
8769 | |
|
|
8770 | cat >>confdefs.h <<\_ACEOF |
|
|
8771 | #define PROTOTYPES 1 |
|
|
8772 | _ACEOF |
|
|
8773 | |
|
|
8774 | |
|
|
8775 | if test -z "$CFLAGS"; then |
|
|
8776 | if test -z "$CCOPTS"; then |
|
|
8777 | CCOPTS='-O' |
|
|
8778 | fi |
|
|
8779 | CFLAGS="$CCOPTS" |
|
|
8780 | fi |
|
|
8781 | |
4588 | |
8782 | # Extract the first word of "mv", so it can be a program name with args. |
4589 | # Extract the first word of "mv", so it can be a program name with args. |
8783 | set dummy mv; ac_word=$2 |
4590 | set dummy mv; ac_word=$2 |
8784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
… | |
… | |
9057 | else |
4864 | else |
9058 | echo "$as_me:$LINENO: result: no" >&5 |
4865 | echo "$as_me:$LINENO: result: no" >&5 |
9059 | echo "${ECHO_T}no" >&6 |
4866 | echo "${ECHO_T}no" >&6 |
9060 | fi |
4867 | fi |
9061 | |
4868 | |
9062 | # Extract the first word of "tbl", so it can be a program name with args. |
|
|
9063 | set dummy tbl; ac_word=$2 |
|
|
9064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
9065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
9066 | if test "${ac_cv_path_TBL+set}" = set; then |
|
|
9067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9068 | else |
|
|
9069 | case $TBL in |
|
|
9070 | [\\/]* | ?:[\\/]*) |
|
|
9071 | ac_cv_path_TBL="$TBL" # Let the user override the test with a path. |
|
|
9072 | ;; |
|
|
9073 | *) |
|
|
9074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
9075 | for as_dir in $PATH |
|
|
9076 | do |
|
|
9077 | IFS=$as_save_IFS |
|
|
9078 | test -z "$as_dir" && as_dir=. |
|
|
9079 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
9080 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
9081 | ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" |
|
|
9082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
9083 | break 2 |
|
|
9084 | fi |
|
|
9085 | done |
|
|
9086 | done |
|
|
9087 | |
|
|
9088 | ;; |
|
|
9089 | esac |
|
|
9090 | fi |
|
|
9091 | TBL=$ac_cv_path_TBL |
|
|
9092 | |
|
|
9093 | if test -n "$TBL"; then |
|
|
9094 | echo "$as_me:$LINENO: result: $TBL" >&5 |
|
|
9095 | echo "${ECHO_T}$TBL" >&6 |
|
|
9096 | else |
|
|
9097 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
9098 | echo "${ECHO_T}no" >&6 |
|
|
9099 | fi |
|
|
9100 | |
|
|
9101 | # Extract the first word of "tic", so it can be a program name with args. |
4869 | # Extract the first word of "tic", so it can be a program name with args. |
9102 | set dummy tic; ac_word=$2 |
4870 | set dummy tic; ac_word=$2 |
9103 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4871 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
9105 | if test "${ac_cv_path_TIC+set}" = set; then |
4873 | if test "${ac_cv_path_TIC+set}" = set; then |
… | |
… | |
9136 | echo "$as_me:$LINENO: result: no" >&5 |
4904 | echo "$as_me:$LINENO: result: no" >&5 |
9137 | echo "${ECHO_T}no" >&6 |
4905 | echo "${ECHO_T}no" >&6 |
9138 | fi |
4906 | fi |
9139 | |
4907 | |
9140 | |
4908 | |
|
|
4909 | |
|
|
4910 | |
|
|
4911 | ac_ext=cc |
|
|
4912 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4913 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4914 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4915 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4916 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4917 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
4918 | if test -z "$CXXCPP"; then |
|
|
4919 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4921 | else |
|
|
4922 | # Double quotes because CXXCPP needs to be expanded |
|
|
4923 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4924 | do |
|
|
4925 | ac_preproc_ok=false |
|
|
4926 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4927 | do |
|
|
4928 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4929 | # with a fresh cross-compiler works. |
|
|
4930 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4931 | # <limits.h> exists even on freestanding compilers. |
|
|
4932 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4933 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4934 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4935 | /* confdefs.h. */ |
|
|
4936 | _ACEOF |
|
|
4937 | cat confdefs.h >>conftest.$ac_ext |
|
|
4938 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4939 | /* end confdefs.h. */ |
|
|
4940 | #ifdef __STDC__ |
|
|
4941 | # include <limits.h> |
|
|
4942 | #else |
|
|
4943 | # include <assert.h> |
|
|
4944 | #endif |
|
|
4945 | Syntax error |
|
|
4946 | _ACEOF |
|
|
4947 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4948 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4949 | ac_status=$? |
|
|
4950 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4951 | rm -f conftest.er1 |
|
|
4952 | cat conftest.err >&5 |
|
|
4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4954 | (exit $ac_status); } >/dev/null; then |
|
|
4955 | if test -s conftest.err; then |
|
|
4956 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4957 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4958 | else |
|
|
4959 | ac_cpp_err= |
|
|
4960 | fi |
|
|
4961 | else |
|
|
4962 | ac_cpp_err=yes |
|
|
4963 | fi |
|
|
4964 | if test -z "$ac_cpp_err"; then |
|
|
4965 | : |
|
|
4966 | else |
|
|
4967 | echo "$as_me: failed program was:" >&5 |
|
|
4968 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4969 | |
|
|
4970 | # Broken: fails on valid input. |
|
|
4971 | continue |
|
|
4972 | fi |
|
|
4973 | rm -f conftest.err conftest.$ac_ext |
|
|
4974 | |
|
|
4975 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4976 | # can be detected and how. |
|
|
4977 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4978 | /* confdefs.h. */ |
|
|
4979 | _ACEOF |
|
|
4980 | cat confdefs.h >>conftest.$ac_ext |
|
|
4981 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4982 | /* end confdefs.h. */ |
|
|
4983 | #include <ac_nonexistent.h> |
|
|
4984 | _ACEOF |
|
|
4985 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4987 | ac_status=$? |
|
|
4988 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4989 | rm -f conftest.er1 |
|
|
4990 | cat conftest.err >&5 |
|
|
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4992 | (exit $ac_status); } >/dev/null; then |
|
|
4993 | if test -s conftest.err; then |
|
|
4994 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4995 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4996 | else |
|
|
4997 | ac_cpp_err= |
|
|
4998 | fi |
|
|
4999 | else |
|
|
5000 | ac_cpp_err=yes |
|
|
5001 | fi |
|
|
5002 | if test -z "$ac_cpp_err"; then |
|
|
5003 | # Broken: success on invalid input. |
|
|
5004 | continue |
|
|
5005 | else |
|
|
5006 | echo "$as_me: failed program was:" >&5 |
|
|
5007 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5008 | |
|
|
5009 | # Passes both tests. |
|
|
5010 | ac_preproc_ok=: |
|
|
5011 | break |
|
|
5012 | fi |
|
|
5013 | rm -f conftest.err conftest.$ac_ext |
|
|
5014 | |
|
|
5015 | done |
|
|
5016 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5017 | rm -f conftest.err conftest.$ac_ext |
|
|
5018 | if $ac_preproc_ok; then |
|
|
5019 | break |
|
|
5020 | fi |
|
|
5021 | |
|
|
5022 | done |
|
|
5023 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5024 | |
|
|
5025 | fi |
|
|
5026 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5027 | else |
|
|
5028 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5029 | fi |
|
|
5030 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5031 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
5032 | ac_preproc_ok=false |
|
|
5033 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5034 | do |
|
|
5035 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5036 | # with a fresh cross-compiler works. |
|
|
5037 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5038 | # <limits.h> exists even on freestanding compilers. |
|
|
5039 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5040 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5041 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5042 | /* confdefs.h. */ |
|
|
5043 | _ACEOF |
|
|
5044 | cat confdefs.h >>conftest.$ac_ext |
|
|
5045 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5046 | /* end confdefs.h. */ |
|
|
5047 | #ifdef __STDC__ |
|
|
5048 | # include <limits.h> |
|
|
5049 | #else |
|
|
5050 | # include <assert.h> |
|
|
5051 | #endif |
|
|
5052 | Syntax error |
|
|
5053 | _ACEOF |
|
|
5054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5056 | ac_status=$? |
|
|
5057 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5058 | rm -f conftest.er1 |
|
|
5059 | cat conftest.err >&5 |
|
|
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5061 | (exit $ac_status); } >/dev/null; then |
|
|
5062 | if test -s conftest.err; then |
|
|
5063 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5064 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5065 | else |
|
|
5066 | ac_cpp_err= |
|
|
5067 | fi |
|
|
5068 | else |
|
|
5069 | ac_cpp_err=yes |
|
|
5070 | fi |
|
|
5071 | if test -z "$ac_cpp_err"; then |
|
|
5072 | : |
|
|
5073 | else |
|
|
5074 | echo "$as_me: failed program was:" >&5 |
|
|
5075 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5076 | |
|
|
5077 | # Broken: fails on valid input. |
|
|
5078 | continue |
|
|
5079 | fi |
|
|
5080 | rm -f conftest.err conftest.$ac_ext |
|
|
5081 | |
|
|
5082 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
5083 | # can be detected and how. |
|
|
5084 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5085 | /* confdefs.h. */ |
|
|
5086 | _ACEOF |
|
|
5087 | cat confdefs.h >>conftest.$ac_ext |
|
|
5088 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5089 | /* end confdefs.h. */ |
|
|
5090 | #include <ac_nonexistent.h> |
|
|
5091 | _ACEOF |
|
|
5092 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5093 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5094 | ac_status=$? |
|
|
5095 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5096 | rm -f conftest.er1 |
|
|
5097 | cat conftest.err >&5 |
|
|
5098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5099 | (exit $ac_status); } >/dev/null; then |
|
|
5100 | if test -s conftest.err; then |
|
|
5101 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5102 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5103 | else |
|
|
5104 | ac_cpp_err= |
|
|
5105 | fi |
|
|
5106 | else |
|
|
5107 | ac_cpp_err=yes |
|
|
5108 | fi |
|
|
5109 | if test -z "$ac_cpp_err"; then |
|
|
5110 | # Broken: success on invalid input. |
|
|
5111 | continue |
|
|
5112 | else |
|
|
5113 | echo "$as_me: failed program was:" >&5 |
|
|
5114 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5115 | |
|
|
5116 | # Passes both tests. |
|
|
5117 | ac_preproc_ok=: |
|
|
5118 | break |
|
|
5119 | fi |
|
|
5120 | rm -f conftest.err conftest.$ac_ext |
|
|
5121 | |
|
|
5122 | done |
|
|
5123 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5124 | rm -f conftest.err conftest.$ac_ext |
|
|
5125 | if $ac_preproc_ok; then |
|
|
5126 | : |
|
|
5127 | else |
|
|
5128 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5129 | See \`config.log' for more details." >&5 |
|
|
5130 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5131 | See \`config.log' for more details." >&2;} |
|
|
5132 | { (exit 1); exit 1; }; } |
|
|
5133 | fi |
|
|
5134 | |
|
|
5135 | ac_ext=cc |
|
|
5136 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5137 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5138 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5139 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9141 | |
5140 | |
9142 | |
5141 | |
9143 | |
5142 | |
9144 | if test "x$ac_path_x_has_been_run" != xyes; then |
5143 | if test "x$ac_path_x_has_been_run" != xyes; then |
9145 | echo "$as_me:$LINENO: checking for X" >&5 |
5144 | echo "$as_me:$LINENO: checking for X" >&5 |
… | |
… | |
9244 | /* confdefs.h. */ |
5243 | /* confdefs.h. */ |
9245 | _ACEOF |
5244 | _ACEOF |
9246 | cat confdefs.h >>conftest.$ac_ext |
5245 | cat confdefs.h >>conftest.$ac_ext |
9247 | cat >>conftest.$ac_ext <<_ACEOF |
5246 | cat >>conftest.$ac_ext <<_ACEOF |
9248 | /* end confdefs.h. */ |
5247 | /* end confdefs.h. */ |
9249 | #include <X11/Intrinsic.h> |
5248 | #include <X11/Xlib.h> |
9250 | _ACEOF |
5249 | _ACEOF |
9251 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5250 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9252 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5251 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9253 | ac_status=$? |
5252 | ac_status=$? |
9254 | grep -v '^ *+' conftest.er1 >conftest.err |
5253 | grep -v '^ *+' conftest.er1 >conftest.err |
… | |
… | |
9271 | else |
5270 | else |
9272 | echo "$as_me: failed program was:" >&5 |
5271 | echo "$as_me: failed program was:" >&5 |
9273 | sed 's/^/| /' conftest.$ac_ext >&5 |
5272 | sed 's/^/| /' conftest.$ac_ext >&5 |
9274 | |
5273 | |
9275 | for ac_dir in $ac_x_header_dirs; do |
5274 | for ac_dir in $ac_x_header_dirs; do |
9276 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
5275 | if test -r "$ac_dir/X11/Xlib.h"; then |
9277 | ac_x_includes=$ac_dir |
5276 | ac_x_includes=$ac_dir |
9278 | break |
5277 | break |
9279 | fi |
5278 | fi |
9280 | done |
5279 | done |
9281 | fi |
5280 | fi |
… | |
… | |
9285 | if test "$ac_x_libraries" = no; then |
5284 | if test "$ac_x_libraries" = no; then |
9286 | # Check for the libraries. |
5285 | # Check for the libraries. |
9287 | # See if we find them without any special options. |
5286 | # See if we find them without any special options. |
9288 | # Don't add to $LIBS permanently. |
5287 | # Don't add to $LIBS permanently. |
9289 | ac_save_LIBS=$LIBS |
5288 | ac_save_LIBS=$LIBS |
9290 | LIBS="-lXt $LIBS" |
5289 | LIBS="-lX11 $LIBS" |
9291 | cat >conftest.$ac_ext <<_ACEOF |
5290 | cat >conftest.$ac_ext <<_ACEOF |
9292 | /* confdefs.h. */ |
5291 | /* confdefs.h. */ |
9293 | _ACEOF |
5292 | _ACEOF |
9294 | cat confdefs.h >>conftest.$ac_ext |
5293 | cat confdefs.h >>conftest.$ac_ext |
9295 | cat >>conftest.$ac_ext <<_ACEOF |
5294 | cat >>conftest.$ac_ext <<_ACEOF |
9296 | /* end confdefs.h. */ |
5295 | /* end confdefs.h. */ |
9297 | #include <X11/Intrinsic.h> |
5296 | #include <X11/Xlib.h> |
9298 | int |
5297 | int |
9299 | main () |
5298 | main () |
9300 | { |
5299 | { |
9301 | XtMalloc (0) |
5300 | XrmInitialize () |
9302 | ; |
5301 | ; |
9303 | return 0; |
5302 | return 0; |
9304 | } |
5303 | } |
9305 | _ACEOF |
5304 | _ACEOF |
9306 | rm -f conftest.$ac_objext conftest$ac_exeext |
5305 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
9334 | LIBS=$ac_save_LIBS |
5333 | LIBS=$ac_save_LIBS |
9335 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
5334 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9336 | do |
5335 | do |
9337 | # Don't even attempt the hair of trying to link an X program! |
5336 | # Don't even attempt the hair of trying to link an X program! |
9338 | for ac_extension in a so sl; do |
5337 | for ac_extension in a so sl; do |
9339 | if test -r $ac_dir/libXt.$ac_extension; then |
5338 | if test -r $ac_dir/libX11.$ac_extension; then |
9340 | ac_x_libraries=$ac_dir |
5339 | ac_x_libraries=$ac_dir |
9341 | break 2 |
5340 | break 2 |
9342 | fi |
5341 | fi |
9343 | done |
5342 | done |
9344 | done |
5343 | done |
… | |
… | |
10946 | #define HAVE_SYS_WAIT_H 1 |
6945 | #define HAVE_SYS_WAIT_H 1 |
10947 | _ACEOF |
6946 | _ACEOF |
10948 | |
6947 | |
10949 | fi |
6948 | fi |
10950 | |
6949 | |
|
|
6950 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6951 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
6952 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6954 | else |
|
|
6955 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6956 | /* confdefs.h. */ |
|
|
6957 | _ACEOF |
|
|
6958 | cat confdefs.h >>conftest.$ac_ext |
|
|
6959 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6960 | /* end confdefs.h. */ |
|
|
6961 | #include <stdlib.h> |
|
|
6962 | #include <stdarg.h> |
|
|
6963 | #include <string.h> |
|
|
6964 | #include <float.h> |
10951 | |
6965 | |
|
|
6966 | int |
|
|
6967 | main () |
|
|
6968 | { |
|
|
6969 | |
|
|
6970 | ; |
|
|
6971 | return 0; |
|
|
6972 | } |
|
|
6973 | _ACEOF |
|
|
6974 | rm -f conftest.$ac_objext |
|
|
6975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
6976 | (eval $ac_compile) 2>conftest.er1 |
|
|
6977 | ac_status=$? |
|
|
6978 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6979 | rm -f conftest.er1 |
|
|
6980 | cat conftest.err >&5 |
|
|
6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6982 | (exit $ac_status); } && |
|
|
6983 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6985 | (eval $ac_try) 2>&5 |
|
|
6986 | ac_status=$? |
|
|
6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6988 | (exit $ac_status); }; } && |
|
|
6989 | { ac_try='test -s conftest.$ac_objext' |
|
|
6990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6991 | (eval $ac_try) 2>&5 |
|
|
6992 | ac_status=$? |
|
|
6993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6994 | (exit $ac_status); }; }; then |
|
|
6995 | ac_cv_header_stdc=yes |
|
|
6996 | else |
|
|
6997 | echo "$as_me: failed program was:" >&5 |
|
|
6998 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6999 | |
|
|
7000 | ac_cv_header_stdc=no |
|
|
7001 | fi |
|
|
7002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7003 | |
|
|
7004 | if test $ac_cv_header_stdc = yes; then |
|
|
7005 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7006 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7007 | /* confdefs.h. */ |
|
|
7008 | _ACEOF |
|
|
7009 | cat confdefs.h >>conftest.$ac_ext |
|
|
7010 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7011 | /* end confdefs.h. */ |
|
|
7012 | #include <string.h> |
|
|
7013 | |
|
|
7014 | _ACEOF |
|
|
7015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7016 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7017 | : |
|
|
7018 | else |
|
|
7019 | ac_cv_header_stdc=no |
|
|
7020 | fi |
|
|
7021 | rm -f conftest* |
|
|
7022 | |
|
|
7023 | fi |
|
|
7024 | |
|
|
7025 | if test $ac_cv_header_stdc = yes; then |
|
|
7026 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7027 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7028 | /* confdefs.h. */ |
|
|
7029 | _ACEOF |
|
|
7030 | cat confdefs.h >>conftest.$ac_ext |
|
|
7031 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7032 | /* end confdefs.h. */ |
|
|
7033 | #include <stdlib.h> |
|
|
7034 | |
|
|
7035 | _ACEOF |
|
|
7036 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7037 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7038 | : |
|
|
7039 | else |
|
|
7040 | ac_cv_header_stdc=no |
|
|
7041 | fi |
|
|
7042 | rm -f conftest* |
|
|
7043 | |
|
|
7044 | fi |
|
|
7045 | |
|
|
7046 | if test $ac_cv_header_stdc = yes; then |
|
|
7047 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7048 | if test "$cross_compiling" = yes; then |
|
|
7049 | : |
|
|
7050 | else |
|
|
7051 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7052 | /* confdefs.h. */ |
|
|
7053 | _ACEOF |
|
|
7054 | cat confdefs.h >>conftest.$ac_ext |
|
|
7055 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7056 | /* end confdefs.h. */ |
|
|
7057 | #include <ctype.h> |
|
|
7058 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7059 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7060 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7061 | #else |
|
|
7062 | # define ISLOWER(c) \ |
|
|
7063 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7064 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7065 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7066 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7067 | #endif |
|
|
7068 | |
|
|
7069 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7070 | int |
|
|
7071 | main () |
|
|
7072 | { |
|
|
7073 | int i; |
|
|
7074 | for (i = 0; i < 256; i++) |
|
|
7075 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7076 | || toupper (i) != TOUPPER (i)) |
|
|
7077 | exit(2); |
|
|
7078 | exit (0); |
|
|
7079 | } |
|
|
7080 | _ACEOF |
|
|
7081 | rm -f conftest$ac_exeext |
|
|
7082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7083 | (eval $ac_link) 2>&5 |
|
|
7084 | ac_status=$? |
|
|
7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7088 | (eval $ac_try) 2>&5 |
|
|
7089 | ac_status=$? |
|
|
7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7091 | (exit $ac_status); }; }; then |
|
|
7092 | : |
|
|
7093 | else |
|
|
7094 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7095 | echo "$as_me: failed program was:" >&5 |
|
|
7096 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7097 | |
|
|
7098 | ( exit $ac_status ) |
|
|
7099 | ac_cv_header_stdc=no |
|
|
7100 | fi |
|
|
7101 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7102 | fi |
|
|
7103 | fi |
|
|
7104 | fi |
|
|
7105 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7106 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
7107 | if test $ac_cv_header_stdc = yes; then |
|
|
7108 | |
|
|
7109 | cat >>confdefs.h <<\_ACEOF |
|
|
7110 | #define STDC_HEADERS 1 |
|
|
7111 | _ACEOF |
|
|
7112 | |
|
|
7113 | fi |
|
|
7114 | |
|
|
7115 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7116 | |
|
|
7117 | |
|
|
7118 | |
|
|
7119 | |
|
|
7120 | |
|
|
7121 | |
|
|
7122 | |
|
|
7123 | |
|
|
7124 | |
|
|
7125 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7126 | inttypes.h stdint.h unistd.h |
|
|
7127 | do |
|
|
7128 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7129 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
7131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
7132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7133 | else |
|
|
7134 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7135 | /* confdefs.h. */ |
|
|
7136 | _ACEOF |
|
|
7137 | cat confdefs.h >>conftest.$ac_ext |
|
|
7138 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7139 | /* end confdefs.h. */ |
|
|
7140 | $ac_includes_default |
|
|
7141 | |
|
|
7142 | #include <$ac_header> |
|
|
7143 | _ACEOF |
|
|
7144 | rm -f conftest.$ac_objext |
|
|
7145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7146 | (eval $ac_compile) 2>conftest.er1 |
|
|
7147 | ac_status=$? |
|
|
7148 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7149 | rm -f conftest.er1 |
|
|
7150 | cat conftest.err >&5 |
|
|
7151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7152 | (exit $ac_status); } && |
|
|
7153 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7155 | (eval $ac_try) 2>&5 |
|
|
7156 | ac_status=$? |
|
|
7157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7158 | (exit $ac_status); }; } && |
|
|
7159 | { ac_try='test -s conftest.$ac_objext' |
|
|
7160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7161 | (eval $ac_try) 2>&5 |
|
|
7162 | ac_status=$? |
|
|
7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7164 | (exit $ac_status); }; }; then |
|
|
7165 | eval "$as_ac_Header=yes" |
|
|
7166 | else |
|
|
7167 | echo "$as_me: failed program was:" >&5 |
|
|
7168 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7169 | |
|
|
7170 | eval "$as_ac_Header=no" |
|
|
7171 | fi |
|
|
7172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7173 | fi |
|
|
7174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
7175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
7176 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7177 | cat >>confdefs.h <<_ACEOF |
|
|
7178 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7179 | _ACEOF |
|
|
7180 | |
|
|
7181 | fi |
|
|
7182 | |
|
|
7183 | done |
10952 | |
7184 | |
10953 | |
7185 | |
10954 | |
7186 | |
10955 | |
7187 | |
10956 | |
7188 | |
… | |
… | |
10969 | |
7201 | |
10970 | |
7202 | |
10971 | for ac_header in \ |
7203 | for ac_header in \ |
10972 | assert.h \ |
7204 | assert.h \ |
10973 | fcntl.h \ |
7205 | fcntl.h \ |
10974 | grp.h \ |
|
|
10975 | libc.h \ |
|
|
10976 | lastlog.h \ |
|
|
10977 | stdarg.h \ |
7206 | stdarg.h \ |
10978 | stdlib.h \ |
7207 | stdlib.h \ |
10979 | string.h \ |
7208 | string.h \ |
10980 | termios.h \ |
7209 | termios.h \ |
10981 | unistd.h \ |
7210 | unistd.h \ |
10982 | sys/byteorder.h \ |
7211 | sys/byteorder.h \ |
10983 | sys/ioctl.h \ |
7212 | sys/ioctl.h \ |
10984 | sys/select.h \ |
7213 | sys/select.h \ |
10985 | sys/sockio.h \ |
7214 | sys/sockio.h \ |
10986 | sys/strredir.h \ |
7215 | sys/strredir.h \ |
10987 | sys/stropts.h \ |
|
|
10988 | sys/time.h \ |
7216 | sys/time.h \ |
10989 | utmp.h \ |
7217 | stdint.h \ |
10990 | utmpx.h \ |
7218 | wchar.h \ |
10991 | stdint.h \ |
7219 | cwchar \ |
|
|
7220 | clocale \ |
10992 | |
7221 | |
10993 | do |
7222 | do |
10994 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7223 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7225 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
11780 | _ACEOF |
8009 | _ACEOF |
11781 | |
8010 | |
11782 | fi |
8011 | fi |
11783 | |
8012 | |
11784 | |
8013 | |
11785 | echo "$as_me:$LINENO: checking for char" >&5 |
|
|
11786 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
|
|
11787 | if test "${ac_cv_type_char+set}" = set; then |
|
|
11788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11789 | else |
|
|
11790 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11791 | /* confdefs.h. */ |
|
|
11792 | _ACEOF |
|
|
11793 | cat confdefs.h >>conftest.$ac_ext |
|
|
11794 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11795 | /* end confdefs.h. */ |
|
|
11796 | $ac_includes_default |
|
|
11797 | int |
|
|
11798 | main () |
|
|
11799 | { |
|
|
11800 | if ((char *) 0) |
|
|
11801 | return 0; |
|
|
11802 | if (sizeof (char)) |
|
|
11803 | return 0; |
|
|
11804 | ; |
|
|
11805 | return 0; |
|
|
11806 | } |
|
|
11807 | _ACEOF |
|
|
11808 | rm -f conftest.$ac_objext |
|
|
11809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11810 | (eval $ac_compile) 2>conftest.er1 |
|
|
11811 | ac_status=$? |
|
|
11812 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11813 | rm -f conftest.er1 |
|
|
11814 | cat conftest.err >&5 |
|
|
11815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11816 | (exit $ac_status); } && |
|
|
11817 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11819 | (eval $ac_try) 2>&5 |
|
|
11820 | ac_status=$? |
|
|
11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11822 | (exit $ac_status); }; } && |
|
|
11823 | { ac_try='test -s conftest.$ac_objext' |
|
|
11824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11825 | (eval $ac_try) 2>&5 |
|
|
11826 | ac_status=$? |
|
|
11827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11828 | (exit $ac_status); }; }; then |
|
|
11829 | ac_cv_type_char=yes |
|
|
11830 | else |
|
|
11831 | echo "$as_me: failed program was:" >&5 |
|
|
11832 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11833 | |
|
|
11834 | ac_cv_type_char=no |
|
|
11835 | fi |
|
|
11836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11837 | fi |
|
|
11838 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
|
|
11839 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
|
|
11840 | |
|
|
11841 | echo "$as_me:$LINENO: checking size of char" >&5 |
|
|
11842 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
|
|
11843 | if test "${ac_cv_sizeof_char+set}" = set; then |
|
|
11844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11845 | else |
|
|
11846 | if test "$ac_cv_type_char" = yes; then |
|
|
11847 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
11848 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
11849 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
11850 | # This bug is HP SR number 8606223364. |
|
|
11851 | if test "$cross_compiling" = yes; then |
|
|
11852 | # Depending upon the size, compute the lo and hi bounds. |
|
|
11853 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11854 | /* confdefs.h. */ |
|
|
11855 | _ACEOF |
|
|
11856 | cat confdefs.h >>conftest.$ac_ext |
|
|
11857 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11858 | /* end confdefs.h. */ |
|
|
11859 | $ac_includes_default |
|
|
11860 | int |
|
|
11861 | main () |
|
|
11862 | { |
|
|
11863 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
|
|
11864 | test_array [0] = 0 |
|
|
11865 | |
|
|
11866 | ; |
|
|
11867 | return 0; |
|
|
11868 | } |
|
|
11869 | _ACEOF |
|
|
11870 | rm -f conftest.$ac_objext |
|
|
11871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11872 | (eval $ac_compile) 2>conftest.er1 |
|
|
11873 | ac_status=$? |
|
|
11874 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11875 | rm -f conftest.er1 |
|
|
11876 | cat conftest.err >&5 |
|
|
11877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11878 | (exit $ac_status); } && |
|
|
11879 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11881 | (eval $ac_try) 2>&5 |
|
|
11882 | ac_status=$? |
|
|
11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11884 | (exit $ac_status); }; } && |
|
|
11885 | { ac_try='test -s conftest.$ac_objext' |
|
|
11886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11887 | (eval $ac_try) 2>&5 |
|
|
11888 | ac_status=$? |
|
|
11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11890 | (exit $ac_status); }; }; then |
|
|
11891 | ac_lo=0 ac_mid=0 |
|
|
11892 | while :; do |
|
|
11893 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11894 | /* confdefs.h. */ |
|
|
11895 | _ACEOF |
|
|
11896 | cat confdefs.h >>conftest.$ac_ext |
|
|
11897 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11898 | /* end confdefs.h. */ |
|
|
11899 | $ac_includes_default |
|
|
11900 | int |
|
|
11901 | main () |
|
|
11902 | { |
|
|
11903 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
11904 | test_array [0] = 0 |
|
|
11905 | |
|
|
11906 | ; |
|
|
11907 | return 0; |
|
|
11908 | } |
|
|
11909 | _ACEOF |
|
|
11910 | rm -f conftest.$ac_objext |
|
|
11911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11912 | (eval $ac_compile) 2>conftest.er1 |
|
|
11913 | ac_status=$? |
|
|
11914 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11915 | rm -f conftest.er1 |
|
|
11916 | cat conftest.err >&5 |
|
|
11917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11918 | (exit $ac_status); } && |
|
|
11919 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11921 | (eval $ac_try) 2>&5 |
|
|
11922 | ac_status=$? |
|
|
11923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11924 | (exit $ac_status); }; } && |
|
|
11925 | { ac_try='test -s conftest.$ac_objext' |
|
|
11926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11927 | (eval $ac_try) 2>&5 |
|
|
11928 | ac_status=$? |
|
|
11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11930 | (exit $ac_status); }; }; then |
|
|
11931 | ac_hi=$ac_mid; break |
|
|
11932 | else |
|
|
11933 | echo "$as_me: failed program was:" >&5 |
|
|
11934 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11935 | |
|
|
11936 | ac_lo=`expr $ac_mid + 1` |
|
|
11937 | if test $ac_lo -le $ac_mid; then |
|
|
11938 | ac_lo= ac_hi= |
|
|
11939 | break |
|
|
11940 | fi |
|
|
11941 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
11942 | fi |
|
|
11943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11944 | done |
|
|
11945 | else |
|
|
11946 | echo "$as_me: failed program was:" >&5 |
|
|
11947 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11948 | |
|
|
11949 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11950 | /* confdefs.h. */ |
|
|
11951 | _ACEOF |
|
|
11952 | cat confdefs.h >>conftest.$ac_ext |
|
|
11953 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11954 | /* end confdefs.h. */ |
|
|
11955 | $ac_includes_default |
|
|
11956 | int |
|
|
11957 | main () |
|
|
11958 | { |
|
|
11959 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
|
|
11960 | test_array [0] = 0 |
|
|
11961 | |
|
|
11962 | ; |
|
|
11963 | return 0; |
|
|
11964 | } |
|
|
11965 | _ACEOF |
|
|
11966 | rm -f conftest.$ac_objext |
|
|
11967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11968 | (eval $ac_compile) 2>conftest.er1 |
|
|
11969 | ac_status=$? |
|
|
11970 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11971 | rm -f conftest.er1 |
|
|
11972 | cat conftest.err >&5 |
|
|
11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11974 | (exit $ac_status); } && |
|
|
11975 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11977 | (eval $ac_try) 2>&5 |
|
|
11978 | ac_status=$? |
|
|
11979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11980 | (exit $ac_status); }; } && |
|
|
11981 | { ac_try='test -s conftest.$ac_objext' |
|
|
11982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11983 | (eval $ac_try) 2>&5 |
|
|
11984 | ac_status=$? |
|
|
11985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11986 | (exit $ac_status); }; }; then |
|
|
11987 | ac_hi=-1 ac_mid=-1 |
|
|
11988 | while :; do |
|
|
11989 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11990 | /* confdefs.h. */ |
|
|
11991 | _ACEOF |
|
|
11992 | cat confdefs.h >>conftest.$ac_ext |
|
|
11993 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11994 | /* end confdefs.h. */ |
|
|
11995 | $ac_includes_default |
|
|
11996 | int |
|
|
11997 | main () |
|
|
11998 | { |
|
|
11999 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
|
|
12000 | test_array [0] = 0 |
|
|
12001 | |
|
|
12002 | ; |
|
|
12003 | return 0; |
|
|
12004 | } |
|
|
12005 | _ACEOF |
|
|
12006 | rm -f conftest.$ac_objext |
|
|
12007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12008 | (eval $ac_compile) 2>conftest.er1 |
|
|
12009 | ac_status=$? |
|
|
12010 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12011 | rm -f conftest.er1 |
|
|
12012 | cat conftest.err >&5 |
|
|
12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12014 | (exit $ac_status); } && |
|
|
12015 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12017 | (eval $ac_try) 2>&5 |
|
|
12018 | ac_status=$? |
|
|
12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12020 | (exit $ac_status); }; } && |
|
|
12021 | { ac_try='test -s conftest.$ac_objext' |
|
|
12022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12023 | (eval $ac_try) 2>&5 |
|
|
12024 | ac_status=$? |
|
|
12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12026 | (exit $ac_status); }; }; then |
|
|
12027 | ac_lo=$ac_mid; break |
|
|
12028 | else |
|
|
12029 | echo "$as_me: failed program was:" >&5 |
|
|
12030 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12031 | |
|
|
12032 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
12033 | if test $ac_mid -le $ac_hi; then |
|
|
12034 | ac_lo= ac_hi= |
|
|
12035 | break |
|
|
12036 | fi |
|
|
12037 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
12038 | fi |
|
|
12039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12040 | done |
|
|
12041 | else |
|
|
12042 | echo "$as_me: failed program was:" >&5 |
|
|
12043 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12044 | |
|
|
12045 | ac_lo= ac_hi= |
|
|
12046 | fi |
|
|
12047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12048 | fi |
|
|
12049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12050 | # Binary search between lo and hi bounds. |
|
|
12051 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
12052 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
12053 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12054 | /* confdefs.h. */ |
|
|
12055 | _ACEOF |
|
|
12056 | cat confdefs.h >>conftest.$ac_ext |
|
|
12057 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12058 | /* end confdefs.h. */ |
|
|
12059 | $ac_includes_default |
|
|
12060 | int |
|
|
12061 | main () |
|
|
12062 | { |
|
|
12063 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
12064 | test_array [0] = 0 |
|
|
12065 | |
|
|
12066 | ; |
|
|
12067 | return 0; |
|
|
12068 | } |
|
|
12069 | _ACEOF |
|
|
12070 | rm -f conftest.$ac_objext |
|
|
12071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12072 | (eval $ac_compile) 2>conftest.er1 |
|
|
12073 | ac_status=$? |
|
|
12074 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12075 | rm -f conftest.er1 |
|
|
12076 | cat conftest.err >&5 |
|
|
12077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12078 | (exit $ac_status); } && |
|
|
12079 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12081 | (eval $ac_try) 2>&5 |
|
|
12082 | ac_status=$? |
|
|
12083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12084 | (exit $ac_status); }; } && |
|
|
12085 | { ac_try='test -s conftest.$ac_objext' |
|
|
12086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12087 | (eval $ac_try) 2>&5 |
|
|
12088 | ac_status=$? |
|
|
12089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12090 | (exit $ac_status); }; }; then |
|
|
12091 | ac_hi=$ac_mid |
|
|
12092 | else |
|
|
12093 | echo "$as_me: failed program was:" >&5 |
|
|
12094 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12095 | |
|
|
12096 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
12097 | fi |
|
|
12098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12099 | done |
|
|
12100 | case $ac_lo in |
|
|
12101 | ?*) ac_cv_sizeof_char=$ac_lo;; |
|
|
12102 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12103 | See \`config.log' for more details." >&5 |
|
|
12104 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12105 | See \`config.log' for more details." >&2;} |
|
|
12106 | { (exit 1); exit 1; }; } ;; |
|
|
12107 | esac |
|
|
12108 | else |
|
|
12109 | if test "$cross_compiling" = yes; then |
|
|
12110 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
12111 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
12112 | { (exit 1); exit 1; }; } |
|
|
12113 | else |
|
|
12114 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12115 | /* confdefs.h. */ |
|
|
12116 | _ACEOF |
|
|
12117 | cat confdefs.h >>conftest.$ac_ext |
|
|
12118 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12119 | /* end confdefs.h. */ |
|
|
12120 | $ac_includes_default |
|
|
12121 | long longval () { return (long) (sizeof (char)); } |
|
|
12122 | unsigned long ulongval () { return (long) (sizeof (char)); } |
|
|
12123 | #include <stdio.h> |
|
|
12124 | #include <stdlib.h> |
|
|
12125 | int |
|
|
12126 | main () |
|
|
12127 | { |
|
|
12128 | |
|
|
12129 | FILE *f = fopen ("conftest.val", "w"); |
|
|
12130 | if (! f) |
|
|
12131 | exit (1); |
|
|
12132 | if (((long) (sizeof (char))) < 0) |
|
|
12133 | { |
|
|
12134 | long i = longval (); |
|
|
12135 | if (i != ((long) (sizeof (char)))) |
|
|
12136 | exit (1); |
|
|
12137 | fprintf (f, "%ld\n", i); |
|
|
12138 | } |
|
|
12139 | else |
|
|
12140 | { |
|
|
12141 | unsigned long i = ulongval (); |
|
|
12142 | if (i != ((long) (sizeof (char)))) |
|
|
12143 | exit (1); |
|
|
12144 | fprintf (f, "%lu\n", i); |
|
|
12145 | } |
|
|
12146 | exit (ferror (f) || fclose (f) != 0); |
|
|
12147 | |
|
|
12148 | ; |
|
|
12149 | return 0; |
|
|
12150 | } |
|
|
12151 | _ACEOF |
|
|
12152 | rm -f conftest$ac_exeext |
|
|
12153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12154 | (eval $ac_link) 2>&5 |
|
|
12155 | ac_status=$? |
|
|
12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12157 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12159 | (eval $ac_try) 2>&5 |
|
|
12160 | ac_status=$? |
|
|
12161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12162 | (exit $ac_status); }; }; then |
|
|
12163 | ac_cv_sizeof_char=`cat conftest.val` |
|
|
12164 | else |
|
|
12165 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12166 | echo "$as_me: failed program was:" >&5 |
|
|
12167 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12168 | |
|
|
12169 | ( exit $ac_status ) |
|
|
12170 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12171 | See \`config.log' for more details." >&5 |
|
|
12172 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12173 | See \`config.log' for more details." >&2;} |
|
|
12174 | { (exit 1); exit 1; }; } |
|
|
12175 | fi |
|
|
12176 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12177 | fi |
|
|
12178 | fi |
|
|
12179 | rm -f conftest.val |
|
|
12180 | else |
|
|
12181 | ac_cv_sizeof_char=0 |
|
|
12182 | fi |
|
|
12183 | fi |
|
|
12184 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
|
|
12185 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
|
|
12186 | cat >>confdefs.h <<_ACEOF |
|
|
12187 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
|
|
12188 | _ACEOF |
|
|
12189 | |
|
|
12190 | |
|
|
12191 | echo "$as_me:$LINENO: checking for short" >&5 |
8014 | echo "$as_me:$LINENO: checking for short" >&5 |
12192 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
8015 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
12193 | if test "${ac_cv_type_short+set}" = set; then |
8016 | if test "${ac_cv_type_short+set}" = set; then |
12194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12195 | else |
8018 | else |
… | |
… | |
12998 | cat >>confdefs.h <<_ACEOF |
8821 | cat >>confdefs.h <<_ACEOF |
12999 | #define SIZEOF_INT $ac_cv_sizeof_int |
8822 | #define SIZEOF_INT $ac_cv_sizeof_int |
13000 | _ACEOF |
8823 | _ACEOF |
13001 | |
8824 | |
13002 | |
8825 | |
13003 | echo "$as_me:$LINENO: checking for long" >&5 |
|
|
13004 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
|
|
13005 | if test "${ac_cv_type_long+set}" = set; then |
|
|
13006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13007 | else |
|
|
13008 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13009 | /* confdefs.h. */ |
|
|
13010 | _ACEOF |
|
|
13011 | cat confdefs.h >>conftest.$ac_ext |
|
|
13012 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13013 | /* end confdefs.h. */ |
|
|
13014 | $ac_includes_default |
|
|
13015 | int |
|
|
13016 | main () |
|
|
13017 | { |
|
|
13018 | if ((long *) 0) |
|
|
13019 | return 0; |
|
|
13020 | if (sizeof (long)) |
|
|
13021 | return 0; |
|
|
13022 | ; |
|
|
13023 | return 0; |
|
|
13024 | } |
|
|
13025 | _ACEOF |
|
|
13026 | rm -f conftest.$ac_objext |
|
|
13027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13028 | (eval $ac_compile) 2>conftest.er1 |
|
|
13029 | ac_status=$? |
|
|
13030 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13031 | rm -f conftest.er1 |
|
|
13032 | cat conftest.err >&5 |
|
|
13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13034 | (exit $ac_status); } && |
|
|
13035 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13037 | (eval $ac_try) 2>&5 |
|
|
13038 | ac_status=$? |
|
|
13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13040 | (exit $ac_status); }; } && |
|
|
13041 | { ac_try='test -s conftest.$ac_objext' |
|
|
13042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13043 | (eval $ac_try) 2>&5 |
|
|
13044 | ac_status=$? |
|
|
13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13046 | (exit $ac_status); }; }; then |
|
|
13047 | ac_cv_type_long=yes |
|
|
13048 | else |
|
|
13049 | echo "$as_me: failed program was:" >&5 |
|
|
13050 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13051 | |
|
|
13052 | ac_cv_type_long=no |
|
|
13053 | fi |
|
|
13054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13055 | fi |
|
|
13056 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
|
|
13057 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
|
|
13058 | |
|
|
13059 | echo "$as_me:$LINENO: checking size of long" >&5 |
|
|
13060 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
|
|
13061 | if test "${ac_cv_sizeof_long+set}" = set; then |
|
|
13062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13063 | else |
|
|
13064 | if test "$ac_cv_type_long" = yes; then |
|
|
13065 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
13066 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
13067 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
13068 | # This bug is HP SR number 8606223364. |
|
|
13069 | if test "$cross_compiling" = yes; then |
|
|
13070 | # Depending upon the size, compute the lo and hi bounds. |
|
|
13071 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13072 | /* confdefs.h. */ |
|
|
13073 | _ACEOF |
|
|
13074 | cat confdefs.h >>conftest.$ac_ext |
|
|
13075 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13076 | /* end confdefs.h. */ |
|
|
13077 | $ac_includes_default |
|
|
13078 | int |
|
|
13079 | main () |
|
|
13080 | { |
|
|
13081 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
|
|
13082 | test_array [0] = 0 |
|
|
13083 | |
|
|
13084 | ; |
|
|
13085 | return 0; |
|
|
13086 | } |
|
|
13087 | _ACEOF |
|
|
13088 | rm -f conftest.$ac_objext |
|
|
13089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13090 | (eval $ac_compile) 2>conftest.er1 |
|
|
13091 | ac_status=$? |
|
|
13092 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13093 | rm -f conftest.er1 |
|
|
13094 | cat conftest.err >&5 |
|
|
13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13096 | (exit $ac_status); } && |
|
|
13097 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13099 | (eval $ac_try) 2>&5 |
|
|
13100 | ac_status=$? |
|
|
13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13102 | (exit $ac_status); }; } && |
|
|
13103 | { ac_try='test -s conftest.$ac_objext' |
|
|
13104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13105 | (eval $ac_try) 2>&5 |
|
|
13106 | ac_status=$? |
|
|
13107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13108 | (exit $ac_status); }; }; then |
|
|
13109 | ac_lo=0 ac_mid=0 |
|
|
13110 | while :; do |
|
|
13111 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13112 | /* confdefs.h. */ |
|
|
13113 | _ACEOF |
|
|
13114 | cat confdefs.h >>conftest.$ac_ext |
|
|
13115 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13116 | /* end confdefs.h. */ |
|
|
13117 | $ac_includes_default |
|
|
13118 | int |
|
|
13119 | main () |
|
|
13120 | { |
|
|
13121 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13122 | test_array [0] = 0 |
|
|
13123 | |
|
|
13124 | ; |
|
|
13125 | return 0; |
|
|
13126 | } |
|
|
13127 | _ACEOF |
|
|
13128 | rm -f conftest.$ac_objext |
|
|
13129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13130 | (eval $ac_compile) 2>conftest.er1 |
|
|
13131 | ac_status=$? |
|
|
13132 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13133 | rm -f conftest.er1 |
|
|
13134 | cat conftest.err >&5 |
|
|
13135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13136 | (exit $ac_status); } && |
|
|
13137 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13139 | (eval $ac_try) 2>&5 |
|
|
13140 | ac_status=$? |
|
|
13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13142 | (exit $ac_status); }; } && |
|
|
13143 | { ac_try='test -s conftest.$ac_objext' |
|
|
13144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13145 | (eval $ac_try) 2>&5 |
|
|
13146 | ac_status=$? |
|
|
13147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13148 | (exit $ac_status); }; }; then |
|
|
13149 | ac_hi=$ac_mid; break |
|
|
13150 | else |
|
|
13151 | echo "$as_me: failed program was:" >&5 |
|
|
13152 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13153 | |
|
|
13154 | ac_lo=`expr $ac_mid + 1` |
|
|
13155 | if test $ac_lo -le $ac_mid; then |
|
|
13156 | ac_lo= ac_hi= |
|
|
13157 | break |
|
|
13158 | fi |
|
|
13159 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
13160 | fi |
|
|
13161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13162 | done |
|
|
13163 | else |
|
|
13164 | echo "$as_me: failed program was:" >&5 |
|
|
13165 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13166 | |
|
|
13167 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13168 | /* confdefs.h. */ |
|
|
13169 | _ACEOF |
|
|
13170 | cat confdefs.h >>conftest.$ac_ext |
|
|
13171 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13172 | /* end confdefs.h. */ |
|
|
13173 | $ac_includes_default |
|
|
13174 | int |
|
|
13175 | main () |
|
|
13176 | { |
|
|
13177 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
|
|
13178 | test_array [0] = 0 |
|
|
13179 | |
|
|
13180 | ; |
|
|
13181 | return 0; |
|
|
13182 | } |
|
|
13183 | _ACEOF |
|
|
13184 | rm -f conftest.$ac_objext |
|
|
13185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13186 | (eval $ac_compile) 2>conftest.er1 |
|
|
13187 | ac_status=$? |
|
|
13188 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13189 | rm -f conftest.er1 |
|
|
13190 | cat conftest.err >&5 |
|
|
13191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13192 | (exit $ac_status); } && |
|
|
13193 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13195 | (eval $ac_try) 2>&5 |
|
|
13196 | ac_status=$? |
|
|
13197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13198 | (exit $ac_status); }; } && |
|
|
13199 | { ac_try='test -s conftest.$ac_objext' |
|
|
13200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13201 | (eval $ac_try) 2>&5 |
|
|
13202 | ac_status=$? |
|
|
13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13204 | (exit $ac_status); }; }; then |
|
|
13205 | ac_hi=-1 ac_mid=-1 |
|
|
13206 | while :; do |
|
|
13207 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13208 | /* confdefs.h. */ |
|
|
13209 | _ACEOF |
|
|
13210 | cat confdefs.h >>conftest.$ac_ext |
|
|
13211 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13212 | /* end confdefs.h. */ |
|
|
13213 | $ac_includes_default |
|
|
13214 | int |
|
|
13215 | main () |
|
|
13216 | { |
|
|
13217 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
|
|
13218 | test_array [0] = 0 |
|
|
13219 | |
|
|
13220 | ; |
|
|
13221 | return 0; |
|
|
13222 | } |
|
|
13223 | _ACEOF |
|
|
13224 | rm -f conftest.$ac_objext |
|
|
13225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13226 | (eval $ac_compile) 2>conftest.er1 |
|
|
13227 | ac_status=$? |
|
|
13228 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13229 | rm -f conftest.er1 |
|
|
13230 | cat conftest.err >&5 |
|
|
13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13232 | (exit $ac_status); } && |
|
|
13233 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13235 | (eval $ac_try) 2>&5 |
|
|
13236 | ac_status=$? |
|
|
13237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13238 | (exit $ac_status); }; } && |
|
|
13239 | { ac_try='test -s conftest.$ac_objext' |
|
|
13240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13241 | (eval $ac_try) 2>&5 |
|
|
13242 | ac_status=$? |
|
|
13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13244 | (exit $ac_status); }; }; then |
|
|
13245 | ac_lo=$ac_mid; break |
|
|
13246 | else |
|
|
13247 | echo "$as_me: failed program was:" >&5 |
|
|
13248 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13249 | |
|
|
13250 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
13251 | if test $ac_mid -le $ac_hi; then |
|
|
13252 | ac_lo= ac_hi= |
|
|
13253 | break |
|
|
13254 | fi |
|
|
13255 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
13256 | fi |
|
|
13257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13258 | done |
|
|
13259 | else |
|
|
13260 | echo "$as_me: failed program was:" >&5 |
|
|
13261 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13262 | |
|
|
13263 | ac_lo= ac_hi= |
|
|
13264 | fi |
|
|
13265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13266 | fi |
|
|
13267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13268 | # Binary search between lo and hi bounds. |
|
|
13269 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
13270 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
13271 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13272 | /* confdefs.h. */ |
|
|
13273 | _ACEOF |
|
|
13274 | cat confdefs.h >>conftest.$ac_ext |
|
|
13275 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13276 | /* end confdefs.h. */ |
|
|
13277 | $ac_includes_default |
|
|
13278 | int |
|
|
13279 | main () |
|
|
13280 | { |
|
|
13281 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13282 | test_array [0] = 0 |
|
|
13283 | |
|
|
13284 | ; |
|
|
13285 | return 0; |
|
|
13286 | } |
|
|
13287 | _ACEOF |
|
|
13288 | rm -f conftest.$ac_objext |
|
|
13289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13290 | (eval $ac_compile) 2>conftest.er1 |
|
|
13291 | ac_status=$? |
|
|
13292 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13293 | rm -f conftest.er1 |
|
|
13294 | cat conftest.err >&5 |
|
|
13295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13296 | (exit $ac_status); } && |
|
|
13297 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13299 | (eval $ac_try) 2>&5 |
|
|
13300 | ac_status=$? |
|
|
13301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13302 | (exit $ac_status); }; } && |
|
|
13303 | { ac_try='test -s conftest.$ac_objext' |
|
|
13304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13305 | (eval $ac_try) 2>&5 |
|
|
13306 | ac_status=$? |
|
|
13307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13308 | (exit $ac_status); }; }; then |
|
|
13309 | ac_hi=$ac_mid |
|
|
13310 | else |
|
|
13311 | echo "$as_me: failed program was:" >&5 |
|
|
13312 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13313 | |
|
|
13314 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
13315 | fi |
|
|
13316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13317 | done |
|
|
13318 | case $ac_lo in |
|
|
13319 | ?*) ac_cv_sizeof_long=$ac_lo;; |
|
|
13320 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13321 | See \`config.log' for more details." >&5 |
|
|
13322 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13323 | See \`config.log' for more details." >&2;} |
|
|
13324 | { (exit 1); exit 1; }; } ;; |
|
|
13325 | esac |
|
|
13326 | else |
|
|
13327 | if test "$cross_compiling" = yes; then |
|
|
13328 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
13329 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
13330 | { (exit 1); exit 1; }; } |
|
|
13331 | else |
|
|
13332 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13333 | /* confdefs.h. */ |
|
|
13334 | _ACEOF |
|
|
13335 | cat confdefs.h >>conftest.$ac_ext |
|
|
13336 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13337 | /* end confdefs.h. */ |
|
|
13338 | $ac_includes_default |
|
|
13339 | long longval () { return (long) (sizeof (long)); } |
|
|
13340 | unsigned long ulongval () { return (long) (sizeof (long)); } |
|
|
13341 | #include <stdio.h> |
|
|
13342 | #include <stdlib.h> |
|
|
13343 | int |
|
|
13344 | main () |
|
|
13345 | { |
|
|
13346 | |
|
|
13347 | FILE *f = fopen ("conftest.val", "w"); |
|
|
13348 | if (! f) |
|
|
13349 | exit (1); |
|
|
13350 | if (((long) (sizeof (long))) < 0) |
|
|
13351 | { |
|
|
13352 | long i = longval (); |
|
|
13353 | if (i != ((long) (sizeof (long)))) |
|
|
13354 | exit (1); |
|
|
13355 | fprintf (f, "%ld\n", i); |
|
|
13356 | } |
|
|
13357 | else |
|
|
13358 | { |
|
|
13359 | unsigned long i = ulongval (); |
|
|
13360 | if (i != ((long) (sizeof (long)))) |
|
|
13361 | exit (1); |
|
|
13362 | fprintf (f, "%lu\n", i); |
|
|
13363 | } |
|
|
13364 | exit (ferror (f) || fclose (f) != 0); |
|
|
13365 | |
|
|
13366 | ; |
|
|
13367 | return 0; |
|
|
13368 | } |
|
|
13369 | _ACEOF |
|
|
13370 | rm -f conftest$ac_exeext |
|
|
13371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13372 | (eval $ac_link) 2>&5 |
|
|
13373 | ac_status=$? |
|
|
13374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13375 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
13376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13377 | (eval $ac_try) 2>&5 |
|
|
13378 | ac_status=$? |
|
|
13379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13380 | (exit $ac_status); }; }; then |
|
|
13381 | ac_cv_sizeof_long=`cat conftest.val` |
|
|
13382 | else |
|
|
13383 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
13384 | echo "$as_me: failed program was:" >&5 |
|
|
13385 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13386 | |
|
|
13387 | ( exit $ac_status ) |
|
|
13388 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13389 | See \`config.log' for more details." >&5 |
|
|
13390 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13391 | See \`config.log' for more details." >&2;} |
|
|
13392 | { (exit 1); exit 1; }; } |
|
|
13393 | fi |
|
|
13394 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
13395 | fi |
|
|
13396 | fi |
|
|
13397 | rm -f conftest.val |
|
|
13398 | else |
|
|
13399 | ac_cv_sizeof_long=0 |
|
|
13400 | fi |
|
|
13401 | fi |
|
|
13402 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
|
|
13403 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
|
|
13404 | cat >>confdefs.h <<_ACEOF |
|
|
13405 | #define SIZEOF_LONG $ac_cv_sizeof_long |
|
|
13406 | _ACEOF |
|
|
13407 | |
|
|
13408 | |
|
|
13409 | echo "$as_me:$LINENO: checking for long long" >&5 |
8826 | echo "$as_me:$LINENO: checking for long long" >&5 |
13410 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
8827 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
13411 | if test "${ac_cv_type_long_long+set}" = set; then |
8828 | if test "${ac_cv_type_long_long+set}" = set; then |
13412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13413 | else |
8830 | else |
… | |
… | |
14264 | rxvt_cv_int16_t=yes |
9681 | rxvt_cv_int16_t=yes |
14265 | else |
9682 | else |
14266 | echo "$as_me: failed program was:" >&5 |
9683 | echo "$as_me: failed program was:" >&5 |
14267 | sed 's/^/| /' conftest.$ac_ext >&5 |
9684 | sed 's/^/| /' conftest.$ac_ext >&5 |
14268 | |
9685 | |
14269 | if test $ac_cv_sizeof_char -ge 2; then |
9686 | if test "$ac_cv_sizeof_char" -ge 2; then |
14270 | rxvt_cv_int16_t=" char" |
9687 | rxvt_cv_int16_t=" char" |
14271 | else |
9688 | else |
14272 | if test $ac_cv_sizeof_short -ge 2; then |
9689 | if test "$ac_cv_sizeof_short" -ge 2; then |
14273 | rxvt_cv_int16_t=" short" |
9690 | rxvt_cv_int16_t=" short" |
14274 | else |
9691 | else |
14275 | if test $ac_cv_sizeof_int -ge 2; then |
9692 | if test "$ac_cv_sizeof_int" -ge 2; then |
14276 | rxvt_cv_int16_t=" int" |
9693 | rxvt_cv_int16_t=" int" |
14277 | else |
9694 | else |
14278 | if test $ac_cv_sizeof_long -ge 2; then |
9695 | if test "$ac_cv_sizeof_long" -ge 2; then |
14279 | rxvt_cv_int16_t=" long" |
9696 | rxvt_cv_int16_t=" long" |
14280 | else |
9697 | else |
14281 | if test $ac_cv_sizeof_long_long -ge 2; then |
9698 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14282 | rxvt_cv_int16_t=" long long" |
9699 | rxvt_cv_int16_t=" long long" |
14283 | else |
9700 | else |
14284 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
9701 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
14285 | fi |
9702 | fi |
14286 | fi |
9703 | fi |
… | |
… | |
14346 | rxvt_cv_uint16_t=yes |
9763 | rxvt_cv_uint16_t=yes |
14347 | else |
9764 | else |
14348 | echo "$as_me: failed program was:" >&5 |
9765 | echo "$as_me: failed program was:" >&5 |
14349 | sed 's/^/| /' conftest.$ac_ext >&5 |
9766 | sed 's/^/| /' conftest.$ac_ext >&5 |
14350 | |
9767 | |
14351 | if test $ac_cv_sizeof_char -ge 2; then |
9768 | if test "$ac_cv_sizeof_char" -ge 2; then |
14352 | rxvt_cv_uint16_t="unsigned char" |
9769 | rxvt_cv_uint16_t="unsigned char" |
14353 | else |
9770 | else |
14354 | if test $ac_cv_sizeof_short -ge 2; then |
9771 | if test "$ac_cv_sizeof_short" -ge 2; then |
14355 | rxvt_cv_uint16_t="unsigned short" |
9772 | rxvt_cv_uint16_t="unsigned short" |
14356 | else |
9773 | else |
14357 | if test $ac_cv_sizeof_int -ge 2; then |
9774 | if test "$ac_cv_sizeof_int" -ge 2; then |
14358 | rxvt_cv_uint16_t="unsigned int" |
9775 | rxvt_cv_uint16_t="unsigned int" |
14359 | else |
9776 | else |
14360 | if test $ac_cv_sizeof_long -ge 2; then |
9777 | if test "$ac_cv_sizeof_long" -ge 2; then |
14361 | rxvt_cv_uint16_t="unsigned long" |
9778 | rxvt_cv_uint16_t="unsigned long" |
14362 | else |
9779 | else |
14363 | if test $ac_cv_sizeof_long_long -ge 2; then |
9780 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14364 | rxvt_cv_uint16_t="unsigned long long" |
9781 | rxvt_cv_uint16_t="unsigned long long" |
14365 | else |
9782 | else |
14366 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
9783 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
14367 | fi |
9784 | fi |
14368 | fi |
9785 | fi |
… | |
… | |
14428 | rxvt_cv_int32_t=yes |
9845 | rxvt_cv_int32_t=yes |
14429 | else |
9846 | else |
14430 | echo "$as_me: failed program was:" >&5 |
9847 | echo "$as_me: failed program was:" >&5 |
14431 | sed 's/^/| /' conftest.$ac_ext >&5 |
9848 | sed 's/^/| /' conftest.$ac_ext >&5 |
14432 | |
9849 | |
14433 | if test $ac_cv_sizeof_char -ge 4; then |
9850 | if test "$ac_cv_sizeof_char" -ge 4; then |
14434 | rxvt_cv_int32_t=" char" |
9851 | rxvt_cv_int32_t=" char" |
14435 | else |
9852 | else |
14436 | if test $ac_cv_sizeof_short -ge 4; then |
9853 | if test "$ac_cv_sizeof_short" -ge 4; then |
14437 | rxvt_cv_int32_t=" short" |
9854 | rxvt_cv_int32_t=" short" |
14438 | else |
9855 | else |
14439 | if test $ac_cv_sizeof_int -ge 4; then |
9856 | if test "$ac_cv_sizeof_int" -ge 4; then |
14440 | rxvt_cv_int32_t=" int" |
9857 | rxvt_cv_int32_t=" int" |
14441 | else |
9858 | else |
14442 | if test $ac_cv_sizeof_long -ge 4; then |
9859 | if test "$ac_cv_sizeof_long" -ge 4; then |
14443 | rxvt_cv_int32_t=" long" |
9860 | rxvt_cv_int32_t=" long" |
14444 | else |
9861 | else |
14445 | if test $ac_cv_sizeof_long_long -ge 4; then |
9862 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14446 | rxvt_cv_int32_t=" long long" |
9863 | rxvt_cv_int32_t=" long long" |
14447 | else |
9864 | else |
14448 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
9865 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
14449 | fi |
9866 | fi |
14450 | fi |
9867 | fi |
… | |
… | |
14510 | rxvt_cv_uint32_t=yes |
9927 | rxvt_cv_uint32_t=yes |
14511 | else |
9928 | else |
14512 | echo "$as_me: failed program was:" >&5 |
9929 | echo "$as_me: failed program was:" >&5 |
14513 | sed 's/^/| /' conftest.$ac_ext >&5 |
9930 | sed 's/^/| /' conftest.$ac_ext >&5 |
14514 | |
9931 | |
14515 | if test $ac_cv_sizeof_char -ge 4; then |
9932 | if test "$ac_cv_sizeof_char" -ge 4; then |
14516 | rxvt_cv_uint32_t="unsigned char" |
9933 | rxvt_cv_uint32_t="unsigned char" |
14517 | else |
9934 | else |
14518 | if test $ac_cv_sizeof_short -ge 4; then |
9935 | if test "$ac_cv_sizeof_short" -ge 4; then |
14519 | rxvt_cv_uint32_t="unsigned short" |
9936 | rxvt_cv_uint32_t="unsigned short" |
14520 | else |
9937 | else |
14521 | if test $ac_cv_sizeof_int -ge 4; then |
9938 | if test "$ac_cv_sizeof_int" -ge 4; then |
14522 | rxvt_cv_uint32_t="unsigned int" |
9939 | rxvt_cv_uint32_t="unsigned int" |
14523 | else |
9940 | else |
14524 | if test $ac_cv_sizeof_long -ge 4; then |
9941 | if test "$ac_cv_sizeof_long" -ge 4; then |
14525 | rxvt_cv_uint32_t="unsigned long" |
9942 | rxvt_cv_uint32_t="unsigned long" |
14526 | else |
9943 | else |
14527 | if test $ac_cv_sizeof_long_long -ge 4; then |
9944 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14528 | rxvt_cv_uint32_t="unsigned long long" |
9945 | rxvt_cv_uint32_t="unsigned long long" |
14529 | else |
9946 | else |
14530 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
9947 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
14531 | fi |
9948 | fi |
14532 | fi |
9949 | fi |
… | |
… | |
14546 | else |
9963 | else |
14547 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
9964 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
14548 | fi |
9965 | fi |
14549 | fi |
9966 | fi |
14550 | |
9967 | |
14551 | if test $ac_cv_sizeof_int_p -eq 8; then |
9968 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
14552 | rxvt_intp_define="#define intp_t int64_t" |
9969 | rxvt_intp_define="#define intp_t int64_t" |
14553 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
9970 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
14554 | else |
9971 | else |
14555 | if test $ac_cv_sizeof_int_p -eq 4; then |
9972 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
14556 | rxvt_intp_define="#define intp_t int32_t" |
9973 | rxvt_intp_define="#define intp_t int32_t" |
14557 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
9974 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
14558 | else |
9975 | else |
14559 | if test $ac_cv_sizeof_int_p -eq 2; then |
9976 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
14560 | rxvt_intp_define="#define intp_t int16_t" |
9977 | rxvt_intp_define="#define intp_t int16_t" |
14561 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
9978 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
14562 | else |
9979 | else |
14563 | rxvt_intp_define="#error set intp_t" |
9980 | rxvt_intp_define="#error set intp_t" |
14564 | rxvt_u_intp_define="#error set u_intp_t" |
9981 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
14635 | #define RETSIGTYPE $ac_cv_type_signal |
10052 | #define RETSIGTYPE $ac_cv_type_signal |
14636 | _ACEOF |
10053 | _ACEOF |
14637 | |
10054 | |
14638 | |
10055 | |
14639 | |
10056 | |
14640 | case "$host_alias" in |
|
|
14641 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
14642 | *) break;; |
|
|
14643 | esac |
|
|
14644 | |
|
|
14645 | |
|
|
14646 | |
|
|
14647 | |
|
|
14648 | |
|
|
14649 | |
|
|
14650 | |
|
|
14651 | |
|
|
14652 | |
|
|
14653 | |
|
|
14654 | |
|
|
14655 | |
|
|
14656 | |
|
|
14657 | |
10057 | |
14658 | |
10058 | |
14659 | |
10059 | |
14660 | |
10060 | |
14661 | |
10061 | |
14662 | |
10062 | |
14663 | for ac_func in \ |
10063 | for ac_func in \ |
14664 | atexit \ |
|
|
14665 | revoke \ |
|
|
14666 | unsetenv \ |
10064 | unsetenv \ |
14667 | setutent \ |
10065 | setutent \ |
14668 | seteuid \ |
10066 | seteuid \ |
|
|
10067 | setresuid \ |
14669 | setreuid \ |
10068 | setreuid \ |
14670 | setsid \ |
|
|
14671 | setpgrp \ |
|
|
14672 | setpgid \ |
|
|
14673 | openpty \ |
|
|
14674 | _getpty \ |
|
|
14675 | grantpt \ |
|
|
14676 | unlockpt \ |
|
|
14677 | isastream \ |
|
|
14678 | on_exit \ |
10069 | on_exit \ |
14679 | nanosleep \ |
|
|
14680 | updwtmp \ |
|
|
14681 | ttyslot \ |
|
|
14682 | |
10070 | |
14683 | do |
10071 | do |
14684 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10072 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14685 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10073 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14686 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10074 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
14775 | cat >>confdefs.h <<_ACEOF |
10163 | cat >>confdefs.h <<_ACEOF |
14776 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10164 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
14777 | _ACEOF |
10165 | _ACEOF |
14778 | |
10166 | |
14779 | fi |
10167 | fi |
|
|
10168 | done |
|
|
10169 | |
|
|
10170 | |
|
|
10171 | |
|
|
10172 | |
|
|
10173 | |
|
|
10174 | |
|
|
10175 | for ac_func in \ |
|
|
10176 | ttyslot \ |
|
|
10177 | updwtmp \ |
|
|
10178 | updwtmpx \ |
|
|
10179 | |
|
|
10180 | do |
|
|
10181 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10182 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
10184 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
10185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10186 | else |
|
|
10187 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10188 | /* confdefs.h. */ |
|
|
10189 | _ACEOF |
|
|
10190 | cat confdefs.h >>conftest.$ac_ext |
|
|
10191 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10192 | /* end confdefs.h. */ |
|
|
10193 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10195 | #define $ac_func innocuous_$ac_func |
|
|
10196 | |
|
|
10197 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10198 | which can conflict with char $ac_func (); below. |
|
|
10199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10200 | <limits.h> exists even on freestanding compilers. */ |
|
|
10201 | |
|
|
10202 | #ifdef __STDC__ |
|
|
10203 | # include <limits.h> |
|
|
10204 | #else |
|
|
10205 | # include <assert.h> |
|
|
10206 | #endif |
|
|
10207 | |
|
|
10208 | #undef $ac_func |
|
|
10209 | |
|
|
10210 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
10211 | #ifdef __cplusplus |
|
|
10212 | extern "C" |
|
|
10213 | { |
|
|
10214 | #endif |
|
|
10215 | /* We use char because int might match the return type of a gcc2 |
|
|
10216 | builtin and then its argument prototype would still apply. */ |
|
|
10217 | char $ac_func (); |
|
|
10218 | /* The GNU C library defines this for functions which it implements |
|
|
10219 | to always fail with ENOSYS. Some functions are actually named |
|
|
10220 | something starting with __ and the normal name is an alias. */ |
|
|
10221 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
10222 | choke me |
|
|
10223 | #else |
|
|
10224 | char (*f) () = $ac_func; |
|
|
10225 | #endif |
|
|
10226 | #ifdef __cplusplus |
|
|
10227 | } |
|
|
10228 | #endif |
|
|
10229 | |
|
|
10230 | int |
|
|
10231 | main () |
|
|
10232 | { |
|
|
10233 | return f != $ac_func; |
|
|
10234 | ; |
|
|
10235 | return 0; |
|
|
10236 | } |
|
|
10237 | _ACEOF |
|
|
10238 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10240 | (eval $ac_link) 2>conftest.er1 |
|
|
10241 | ac_status=$? |
|
|
10242 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10243 | rm -f conftest.er1 |
|
|
10244 | cat conftest.err >&5 |
|
|
10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10246 | (exit $ac_status); } && |
|
|
10247 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10249 | (eval $ac_try) 2>&5 |
|
|
10250 | ac_status=$? |
|
|
10251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10252 | (exit $ac_status); }; } && |
|
|
10253 | { ac_try='test -s conftest$ac_exeext' |
|
|
10254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10255 | (eval $ac_try) 2>&5 |
|
|
10256 | ac_status=$? |
|
|
10257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10258 | (exit $ac_status); }; }; then |
|
|
10259 | eval "$as_ac_var=yes" |
|
|
10260 | else |
|
|
10261 | echo "$as_me: failed program was:" >&5 |
|
|
10262 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10263 | |
|
|
10264 | eval "$as_ac_var=no" |
|
|
10265 | fi |
|
|
10266 | rm -f conftest.err conftest.$ac_objext \ |
|
|
10267 | conftest$ac_exeext conftest.$ac_ext |
|
|
10268 | fi |
|
|
10269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
10270 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
10271 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10272 | cat >>confdefs.h <<_ACEOF |
|
|
10273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10274 | _ACEOF |
|
|
10275 | |
|
|
10276 | fi |
|
|
10277 | done |
|
|
10278 | |
|
|
10279 | |
|
|
10280 | |
|
|
10281 | |
|
|
10282 | |
|
|
10283 | for ac_header in \ |
|
|
10284 | utmp.h \ |
|
|
10285 | utmpx.h \ |
|
|
10286 | lastlog.h \ |
|
|
10287 | |
|
|
10288 | do |
|
|
10289 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10290 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10291 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10292 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10295 | fi |
|
|
10296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10298 | else |
|
|
10299 | # Is the header compilable? |
|
|
10300 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10301 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
10302 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10303 | /* confdefs.h. */ |
|
|
10304 | _ACEOF |
|
|
10305 | cat confdefs.h >>conftest.$ac_ext |
|
|
10306 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10307 | /* end confdefs.h. */ |
|
|
10308 | $ac_includes_default |
|
|
10309 | #include <$ac_header> |
|
|
10310 | _ACEOF |
|
|
10311 | rm -f conftest.$ac_objext |
|
|
10312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10313 | (eval $ac_compile) 2>conftest.er1 |
|
|
10314 | ac_status=$? |
|
|
10315 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10316 | rm -f conftest.er1 |
|
|
10317 | cat conftest.err >&5 |
|
|
10318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10319 | (exit $ac_status); } && |
|
|
10320 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10322 | (eval $ac_try) 2>&5 |
|
|
10323 | ac_status=$? |
|
|
10324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10325 | (exit $ac_status); }; } && |
|
|
10326 | { ac_try='test -s conftest.$ac_objext' |
|
|
10327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10328 | (eval $ac_try) 2>&5 |
|
|
10329 | ac_status=$? |
|
|
10330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10331 | (exit $ac_status); }; }; then |
|
|
10332 | ac_header_compiler=yes |
|
|
10333 | else |
|
|
10334 | echo "$as_me: failed program was:" >&5 |
|
|
10335 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10336 | |
|
|
10337 | ac_header_compiler=no |
|
|
10338 | fi |
|
|
10339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10340 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10341 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10342 | |
|
|
10343 | # Is the header present? |
|
|
10344 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10345 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
10346 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10347 | /* confdefs.h. */ |
|
|
10348 | _ACEOF |
|
|
10349 | cat confdefs.h >>conftest.$ac_ext |
|
|
10350 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10351 | /* end confdefs.h. */ |
|
|
10352 | #include <$ac_header> |
|
|
10353 | _ACEOF |
|
|
10354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10356 | ac_status=$? |
|
|
10357 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10358 | rm -f conftest.er1 |
|
|
10359 | cat conftest.err >&5 |
|
|
10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10361 | (exit $ac_status); } >/dev/null; then |
|
|
10362 | if test -s conftest.err; then |
|
|
10363 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10364 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10365 | else |
|
|
10366 | ac_cpp_err= |
|
|
10367 | fi |
|
|
10368 | else |
|
|
10369 | ac_cpp_err=yes |
|
|
10370 | fi |
|
|
10371 | if test -z "$ac_cpp_err"; then |
|
|
10372 | ac_header_preproc=yes |
|
|
10373 | else |
|
|
10374 | echo "$as_me: failed program was:" >&5 |
|
|
10375 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10376 | |
|
|
10377 | ac_header_preproc=no |
|
|
10378 | fi |
|
|
10379 | rm -f conftest.err conftest.$ac_ext |
|
|
10380 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10381 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10382 | |
|
|
10383 | # So? What about this header? |
|
|
10384 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10385 | yes:no: ) |
|
|
10386 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10387 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10389 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10390 | ac_header_preproc=yes |
|
|
10391 | ;; |
|
|
10392 | no:yes:* ) |
|
|
10393 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10394 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10395 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10396 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10397 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10398 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10399 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10400 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10401 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10402 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10403 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10404 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10405 | ( |
|
|
10406 | cat <<\_ASBOX |
|
|
10407 | ## ------------------------------------------ ## |
|
|
10408 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10409 | ## ------------------------------------------ ## |
|
|
10410 | _ASBOX |
|
|
10411 | ) | |
|
|
10412 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10413 | ;; |
|
|
10414 | esac |
|
|
10415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10419 | else |
|
|
10420 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10421 | fi |
|
|
10422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10423 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10424 | |
|
|
10425 | fi |
|
|
10426 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10427 | cat >>confdefs.h <<_ACEOF |
|
|
10428 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10429 | _ACEOF |
|
|
10430 | |
|
|
10431 | fi |
|
|
10432 | |
14780 | done |
10433 | done |
14781 | |
10434 | |
14782 | |
10435 | |
14783 | |
10436 | |
14784 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10437 | if test "${ac_cv_header_utmp_h+set}" = set; then |
… | |
… | |
14918 | |
10571 | |
14919 | fi |
10572 | fi |
14920 | if test $ac_cv_header_utmp_h = yes; then |
10573 | if test $ac_cv_header_utmp_h = yes; then |
14921 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10574 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
14922 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
10575 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
14923 | if test "${rxvt_cv_struct_utmp+set}" = set; then |
10576 | if test "${struct_utmp+set}" = set; then |
14924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14925 | else |
10578 | else |
14926 | cat >conftest.$ac_ext <<_ACEOF |
10579 | cat >conftest.$ac_ext <<_ACEOF |
14927 | /* confdefs.h. */ |
10580 | /* confdefs.h. */ |
14928 | _ACEOF |
10581 | _ACEOF |
14929 | cat confdefs.h >>conftest.$ac_ext |
10582 | cat confdefs.h >>conftest.$ac_ext |
14930 | cat >>conftest.$ac_ext <<_ACEOF |
10583 | cat >>conftest.$ac_ext <<_ACEOF |
14931 | /* end confdefs.h. */ |
10584 | /* end confdefs.h. */ |
14932 | #include <sys/types.h> |
10585 | #include <sys/types.h> |
14933 | #include <stdint.h> |
|
|
14934 | #include <utmp.h> |
10586 | #include <utmp.h> |
14935 | int |
10587 | int |
14936 | main () |
10588 | main () |
14937 | { |
10589 | { |
14938 | struct utmp ut; |
10590 | struct utmp ut; |
… | |
… | |
14959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14960 | (eval $ac_try) 2>&5 |
10612 | (eval $ac_try) 2>&5 |
14961 | ac_status=$? |
10613 | ac_status=$? |
14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14963 | (exit $ac_status); }; }; then |
10615 | (exit $ac_status); }; }; then |
14964 | rxvt_cv_struct_utmp=yes |
10616 | struct_utmp=yes |
14965 | else |
10617 | else |
14966 | echo "$as_me: failed program was:" >&5 |
10618 | echo "$as_me: failed program was:" >&5 |
14967 | sed 's/^/| /' conftest.$ac_ext >&5 |
10619 | sed 's/^/| /' conftest.$ac_ext >&5 |
14968 | |
10620 | |
14969 | rxvt_cv_struct_utmp=no |
10621 | struct_utmp=no |
14970 | fi |
10622 | fi |
14971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14972 | fi |
10624 | fi |
14973 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 |
10625 | echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
14974 | echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 |
10626 | echo "${ECHO_T}$struct_utmp" >&6 |
14975 | if test x$rxvt_cv_struct_utmp = xyes; then |
10627 | if test x$struct_utmp = xyes; then |
14976 | |
10628 | |
14977 | cat >>confdefs.h <<\_ACEOF |
10629 | cat >>confdefs.h <<\_ACEOF |
14978 | #define HAVE_STRUCT_UTMP 1 |
10630 | #define HAVE_STRUCT_UTMP 1 |
14979 | _ACEOF |
10631 | _ACEOF |
14980 | |
10632 | |
14981 | fi |
10633 | fi |
14982 | |
10634 | |
14983 | |
10635 | |
14984 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
10636 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
14985 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
10637 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
14986 | if test "${rxvt_cv_struct_utmp_host+set}" = set; then |
10638 | if test "${struct_utmp_host+set}" = set; then |
14987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14988 | else |
10640 | else |
14989 | cat >conftest.$ac_ext <<_ACEOF |
10641 | cat >conftest.$ac_ext <<_ACEOF |
14990 | /* confdefs.h. */ |
10642 | /* confdefs.h. */ |
14991 | _ACEOF |
10643 | _ACEOF |
… | |
… | |
15021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15022 | (eval $ac_try) 2>&5 |
10674 | (eval $ac_try) 2>&5 |
15023 | ac_status=$? |
10675 | ac_status=$? |
15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15025 | (exit $ac_status); }; }; then |
10677 | (exit $ac_status); }; }; then |
15026 | rxvt_cv_struct_utmp_host=yes |
10678 | struct_utmp_host=yes |
15027 | else |
10679 | else |
15028 | echo "$as_me: failed program was:" >&5 |
10680 | echo "$as_me: failed program was:" >&5 |
15029 | sed 's/^/| /' conftest.$ac_ext >&5 |
10681 | sed 's/^/| /' conftest.$ac_ext >&5 |
15030 | |
10682 | |
15031 | rxvt_cv_struct_utmp_host=no |
10683 | struct_utmp_host=no |
15032 | fi |
10684 | fi |
15033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15034 | fi |
10686 | fi |
15035 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 |
10687 | echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
15036 | echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 |
10688 | echo "${ECHO_T}$struct_utmp_host" >&6 |
15037 | if test x$rxvt_cv_struct_utmp_host = xyes; then |
10689 | if test x$struct_utmp_host = xyes; then |
15038 | |
10690 | |
15039 | cat >>confdefs.h <<\_ACEOF |
10691 | cat >>confdefs.h <<\_ACEOF |
15040 | #define HAVE_UTMP_HOST 1 |
10692 | #define HAVE_UTMP_HOST 1 |
15041 | _ACEOF |
10693 | _ACEOF |
15042 | |
10694 | |
15043 | fi |
10695 | fi |
15044 | |
10696 | |
15045 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
10697 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
15046 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
10698 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
15047 | if test "${rxvt_cv_struct_utmp_pid+set}" = set; then |
10699 | if test "${struct_utmp_pid+set}" = set; then |
15048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15049 | else |
10701 | else |
15050 | cat >conftest.$ac_ext <<_ACEOF |
10702 | cat >conftest.$ac_ext <<_ACEOF |
15051 | /* confdefs.h. */ |
10703 | /* confdefs.h. */ |
15052 | _ACEOF |
10704 | _ACEOF |
… | |
… | |
15082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15083 | (eval $ac_try) 2>&5 |
10735 | (eval $ac_try) 2>&5 |
15084 | ac_status=$? |
10736 | ac_status=$? |
15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15086 | (exit $ac_status); }; }; then |
10738 | (exit $ac_status); }; }; then |
15087 | rxvt_cv_struct_utmp_pid=yes |
10739 | struct_utmp_pid=yes |
15088 | else |
10740 | else |
15089 | echo "$as_me: failed program was:" >&5 |
10741 | echo "$as_me: failed program was:" >&5 |
15090 | sed 's/^/| /' conftest.$ac_ext >&5 |
10742 | sed 's/^/| /' conftest.$ac_ext >&5 |
15091 | |
10743 | |
15092 | rxvt_cv_struct_utmp_pid=no |
10744 | struct_utmp_pid=no |
15093 | fi |
10745 | fi |
15094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15095 | fi |
10747 | fi |
15096 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 |
10748 | echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
15097 | echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 |
10749 | echo "${ECHO_T}$struct_utmp_pid" >&6 |
15098 | if test x$rxvt_cv_struct_utmp_pid = xyes; then |
10750 | if test x$struct_utmp_pid = xyes; then |
15099 | |
10751 | |
15100 | cat >>confdefs.h <<\_ACEOF |
10752 | cat >>confdefs.h <<\_ACEOF |
15101 | #define HAVE_UTMP_PID 1 |
10753 | #define HAVE_UTMP_PID 1 |
15102 | _ACEOF |
10754 | _ACEOF |
15103 | |
10755 | |
… | |
… | |
15244 | |
10896 | |
15245 | fi |
10897 | fi |
15246 | if test $ac_cv_header_utmpx_h = yes; then |
10898 | if test $ac_cv_header_utmpx_h = yes; then |
15247 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10899 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
15248 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
10900 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
15249 | if test "${rxvt_cv_struct_utmpx+set}" = set; then |
10901 | if test "${struct_utmpx+set}" = set; then |
15250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15251 | else |
10903 | else |
15252 | cat >conftest.$ac_ext <<_ACEOF |
10904 | cat >conftest.$ac_ext <<_ACEOF |
15253 | /* confdefs.h. */ |
10905 | /* confdefs.h. */ |
15254 | _ACEOF |
10906 | _ACEOF |
… | |
… | |
15284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15285 | (eval $ac_try) 2>&5 |
10937 | (eval $ac_try) 2>&5 |
15286 | ac_status=$? |
10938 | ac_status=$? |
15287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15288 | (exit $ac_status); }; }; then |
10940 | (exit $ac_status); }; }; then |
15289 | rxvt_cv_struct_utmpx=yes |
10941 | struct_utmpx=yes |
15290 | else |
10942 | else |
15291 | echo "$as_me: failed program was:" >&5 |
10943 | echo "$as_me: failed program was:" >&5 |
15292 | sed 's/^/| /' conftest.$ac_ext >&5 |
10944 | sed 's/^/| /' conftest.$ac_ext >&5 |
15293 | |
10945 | |
15294 | rxvt_cv_struct_utmpx=no |
10946 | struct_utmpx=no |
15295 | fi |
10947 | fi |
15296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15297 | fi |
10949 | fi |
15298 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 |
10950 | echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
15299 | echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 |
10951 | echo "${ECHO_T}$struct_utmpx" >&6 |
15300 | if test x$rxvt_cv_struct_utmpx = xyes; then |
10952 | if test x$struct_utmpx = xyes; then |
15301 | |
10953 | |
15302 | cat >>confdefs.h <<\_ACEOF |
10954 | cat >>confdefs.h <<\_ACEOF |
15303 | #define HAVE_STRUCT_UTMPX 1 |
10955 | #define HAVE_STRUCT_UTMPX 1 |
15304 | _ACEOF |
10956 | _ACEOF |
15305 | |
10957 | |
15306 | fi |
10958 | fi |
15307 | |
10959 | |
15308 | |
10960 | |
15309 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
10961 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
15310 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
10962 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
15311 | if test "${rxvt_cv_struct_utmpx_host+set}" = set; then |
10963 | if test "${struct_utmpx_host+set}" = set; then |
15312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15313 | else |
10965 | else |
15314 | cat >conftest.$ac_ext <<_ACEOF |
10966 | cat >conftest.$ac_ext <<_ACEOF |
15315 | /* confdefs.h. */ |
10967 | /* confdefs.h. */ |
15316 | _ACEOF |
10968 | _ACEOF |
… | |
… | |
15346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15347 | (eval $ac_try) 2>&5 |
10999 | (eval $ac_try) 2>&5 |
15348 | ac_status=$? |
11000 | ac_status=$? |
15349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15350 | (exit $ac_status); }; }; then |
11002 | (exit $ac_status); }; }; then |
15351 | rxvt_cv_struct_utmpx_host=yes |
11003 | struct_utmpx_host=yes |
15352 | else |
11004 | else |
15353 | echo "$as_me: failed program was:" >&5 |
11005 | echo "$as_me: failed program was:" >&5 |
15354 | sed 's/^/| /' conftest.$ac_ext >&5 |
11006 | sed 's/^/| /' conftest.$ac_ext >&5 |
15355 | |
11007 | |
15356 | rxvt_cv_struct_utmpx_host=no |
11008 | struct_utmpx_host=no |
15357 | fi |
11009 | fi |
15358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15359 | fi |
11011 | fi |
15360 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 |
11012 | echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
15361 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 |
11013 | echo "${ECHO_T}$struct_utmpx_host" >&6 |
15362 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
11014 | if test x$struct_utmpx_host = xyes; then |
15363 | |
11015 | |
15364 | cat >>confdefs.h <<\_ACEOF |
11016 | cat >>confdefs.h <<\_ACEOF |
15365 | #define HAVE_UTMPX_HOST 1 |
11017 | #define HAVE_UTMPX_HOST 1 |
15366 | _ACEOF |
11018 | _ACEOF |
15367 | |
11019 | |
15368 | fi |
11020 | fi |
15369 | |
11021 | |
15370 | fi |
11022 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
11023 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
11024 | if test "${struct_utmpx_session+set}" = set; then |
|
|
11025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11026 | else |
|
|
11027 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11028 | /* confdefs.h. */ |
|
|
11029 | _ACEOF |
|
|
11030 | cat confdefs.h >>conftest.$ac_ext |
|
|
11031 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11032 | /* end confdefs.h. */ |
|
|
11033 | #include <sys/types.h> |
|
|
11034 | #include <utmpx.h> |
|
|
11035 | int |
|
|
11036 | main () |
|
|
11037 | { |
|
|
11038 | struct utmpx utx; utx.ut_session; |
|
|
11039 | ; |
|
|
11040 | return 0; |
|
|
11041 | } |
|
|
11042 | _ACEOF |
|
|
11043 | rm -f conftest.$ac_objext |
|
|
11044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11045 | (eval $ac_compile) 2>conftest.er1 |
|
|
11046 | ac_status=$? |
|
|
11047 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11048 | rm -f conftest.er1 |
|
|
11049 | cat conftest.err >&5 |
|
|
11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11051 | (exit $ac_status); } && |
|
|
11052 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11054 | (eval $ac_try) 2>&5 |
|
|
11055 | ac_status=$? |
|
|
11056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11057 | (exit $ac_status); }; } && |
|
|
11058 | { ac_try='test -s conftest.$ac_objext' |
|
|
11059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11060 | (eval $ac_try) 2>&5 |
|
|
11061 | ac_status=$? |
|
|
11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11063 | (exit $ac_status); }; }; then |
|
|
11064 | struct_utmpx_session=yes |
|
|
11065 | else |
|
|
11066 | echo "$as_me: failed program was:" >&5 |
|
|
11067 | sed 's/^/| /' conftest.$ac_ext >&5 |
15371 | |
11068 | |
|
|
11069 | struct_utmpx_session=no |
|
|
11070 | fi |
|
|
11071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11072 | fi |
|
|
11073 | echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
|
|
11074 | echo "${ECHO_T}$struct_utmpx_session" >&6 |
|
|
11075 | if test x$struct_utmpx_session = xyes; then |
|
|
11076 | |
|
|
11077 | cat >>confdefs.h <<\_ACEOF |
|
|
11078 | #define HAVE_UTMPX_SESSION 1 |
|
|
11079 | _ACEOF |
|
|
11080 | |
|
|
11081 | fi |
|
|
11082 | |
|
|
11083 | fi |
15372 | |
11084 | |
15373 | |
11085 | |
15374 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
11086 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
15375 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
11087 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
15376 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
11088 | if test "${struct_lastlog+set}" = set; then |
15377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15378 | else |
11090 | else |
15379 | cat >conftest.$ac_ext <<_ACEOF |
11091 | cat >conftest.$ac_ext <<_ACEOF |
15380 | /* confdefs.h. */ |
11092 | /* confdefs.h. */ |
15381 | _ACEOF |
11093 | _ACEOF |
… | |
… | |
15415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15416 | (eval $ac_try) 2>&5 |
11128 | (eval $ac_try) 2>&5 |
15417 | ac_status=$? |
11129 | ac_status=$? |
15418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15419 | (exit $ac_status); }; }; then |
11131 | (exit $ac_status); }; }; then |
15420 | rxvt_cv_struct_lastlog=yes |
11132 | struct_lastlog=yes |
15421 | else |
11133 | else |
15422 | echo "$as_me: failed program was:" >&5 |
11134 | echo "$as_me: failed program was:" >&5 |
15423 | sed 's/^/| /' conftest.$ac_ext >&5 |
11135 | sed 's/^/| /' conftest.$ac_ext >&5 |
15424 | |
11136 | |
15425 | rxvt_cv_struct_lastlog=no |
11137 | struct_lastlog=no |
15426 | fi |
11138 | fi |
15427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15428 | fi |
11140 | fi |
15429 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 |
11141 | echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
15430 | echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 |
11142 | echo "${ECHO_T}$struct_lastlog" >&6 |
15431 | if test x$rxvt_cv_struct_lastlog = xyes; then |
11143 | if test x$struct_lastlog = xyes; then |
15432 | |
11144 | |
15433 | cat >>confdefs.h <<\_ACEOF |
11145 | cat >>confdefs.h <<\_ACEOF |
15434 | #define HAVE_STRUCT_LASTLOG 1 |
11146 | #define HAVE_STRUCT_LASTLOG 1 |
15435 | _ACEOF |
11147 | _ACEOF |
15436 | |
11148 | |
15437 | fi |
11149 | fi |
15438 | |
11150 | |
15439 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
11151 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
15440 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
11152 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
15441 | if test "${rxvt_cv_struct_lastlogx+set}" = set; then |
11153 | if test "${struct_lastlogx+set}" = set; then |
15442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15443 | else |
11155 | else |
15444 | cat >conftest.$ac_ext <<_ACEOF |
11156 | cat >conftest.$ac_ext <<_ACEOF |
15445 | /* confdefs.h. */ |
11157 | /* confdefs.h. */ |
15446 | _ACEOF |
11158 | _ACEOF |
… | |
… | |
15480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15481 | (eval $ac_try) 2>&5 |
11193 | (eval $ac_try) 2>&5 |
15482 | ac_status=$? |
11194 | ac_status=$? |
15483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15484 | (exit $ac_status); }; }; then |
11196 | (exit $ac_status); }; }; then |
15485 | rxvt_cv_struct_lastlogx=yes |
11197 | struct_lastlogx=yes |
15486 | else |
11198 | else |
15487 | echo "$as_me: failed program was:" >&5 |
11199 | echo "$as_me: failed program was:" >&5 |
15488 | sed 's/^/| /' conftest.$ac_ext >&5 |
11200 | sed 's/^/| /' conftest.$ac_ext >&5 |
15489 | |
11201 | |
15490 | rxvt_cv_struct_lastlogx=no |
11202 | struct_lastlogx=no |
15491 | fi |
11203 | fi |
15492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15493 | fi |
11205 | fi |
15494 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 |
11206 | echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
15495 | echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 |
11207 | echo "${ECHO_T}$struct_lastlogx" >&6 |
15496 | if test x$rxvt_cv_struct_lastlogx = xyes; then |
11208 | if test x$struct_lastlogx = xyes; then |
15497 | |
11209 | |
15498 | cat >>confdefs.h <<\_ACEOF |
11210 | cat >>confdefs.h <<\_ACEOF |
15499 | #define HAVE_STRUCT_LASTLOGX 1 |
11211 | #define HAVE_STRUCT_LASTLOGX 1 |
15500 | _ACEOF |
11212 | _ACEOF |
15501 | |
11213 | |
15502 | fi |
11214 | fi |
15503 | |
11215 | |
15504 | |
11216 | |
15505 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
11217 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
15506 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
11218 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
15507 | if test "${rxvt_cv_path_utmp+set}" = set; then |
11219 | if test "${path_utmp+set}" = set; then |
15508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15509 | else |
11221 | else |
15510 | if test "$cross_compiling" = yes; then |
11222 | if test "$cross_compiling" = yes; then |
15511 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 |
11223 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
15512 | echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} |
11224 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
15513 | else |
11225 | else |
15514 | cat >conftest.$ac_ext <<_ACEOF |
11226 | cat >conftest.$ac_ext <<_ACEOF |
15515 | /* confdefs.h. */ |
11227 | /* confdefs.h. */ |
15516 | _ACEOF |
11228 | _ACEOF |
15517 | cat confdefs.h >>conftest.$ac_ext |
11229 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
15553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15554 | (eval $ac_try) 2>&5 |
11266 | (eval $ac_try) 2>&5 |
15555 | ac_status=$? |
11267 | ac_status=$? |
15556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15557 | (exit $ac_status); }; }; then |
11269 | (exit $ac_status); }; }; then |
15558 | rxvt_cv_path_utmp=`cat conftestval` |
11270 | path_utmp=`cat conftestval` |
15559 | else |
11271 | else |
15560 | echo "$as_me: program exited with status $ac_status" >&5 |
11272 | echo "$as_me: program exited with status $ac_status" >&5 |
15561 | echo "$as_me: failed program was:" >&5 |
11273 | echo "$as_me: failed program was:" >&5 |
15562 | sed 's/^/| /' conftest.$ac_ext >&5 |
11274 | sed 's/^/| /' conftest.$ac_ext >&5 |
15563 | |
11275 | |
15564 | ( exit $ac_status ) |
11276 | ( exit $ac_status ) |
15565 | rxvt_cv_path_utmp= |
11277 | path_utmp= |
15566 | fi |
11278 | fi |
15567 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11279 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15568 | fi |
11280 | fi |
15569 | fi |
11281 | fi |
15570 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 |
11282 | echo "$as_me:$LINENO: result: $path_utmp" >&5 |
15571 | echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 |
11283 | echo "${ECHO_T}$path_utmp" >&6 |
15572 | if test x$rxvt_cv_path_utmp != x; then |
11284 | if test x$path_utmp != x; then |
15573 | |
11285 | |
15574 | cat >>confdefs.h <<_ACEOF |
11286 | cat >>confdefs.h <<_ACEOF |
15575 | #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" |
11287 | #define UTMP_FILE "$path_utmp" |
15576 | _ACEOF |
11288 | _ACEOF |
15577 | |
11289 | |
15578 | fi |
11290 | fi |
15579 | |
11291 | |
15580 | |
11292 | |
15581 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
11293 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
15582 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
11294 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
15583 | if test "${rxvt_cv_path_utmpx+set}" = set; then |
11295 | if test "${path_utmpx+set}" = set; then |
15584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15585 | else |
11297 | else |
15586 | if test "$cross_compiling" = yes; then |
11298 | if test "$cross_compiling" = yes; then |
15587 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 |
11299 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
15588 | echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} |
11300 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
15589 | else |
11301 | else |
15590 | cat >conftest.$ac_ext <<_ACEOF |
11302 | cat >conftest.$ac_ext <<_ACEOF |
15591 | /* confdefs.h. */ |
11303 | /* confdefs.h. */ |
15592 | _ACEOF |
11304 | _ACEOF |
15593 | cat confdefs.h >>conftest.$ac_ext |
11305 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
15639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15640 | (eval $ac_try) 2>&5 |
11352 | (eval $ac_try) 2>&5 |
15641 | ac_status=$? |
11353 | ac_status=$? |
15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15643 | (exit $ac_status); }; }; then |
11355 | (exit $ac_status); }; }; then |
15644 | rxvt_cv_path_utmpx=`cat conftestval` |
11356 | path_utmpx=`cat conftestval` |
15645 | else |
11357 | else |
15646 | echo "$as_me: program exited with status $ac_status" >&5 |
11358 | echo "$as_me: program exited with status $ac_status" >&5 |
15647 | echo "$as_me: failed program was:" >&5 |
11359 | echo "$as_me: failed program was:" >&5 |
15648 | sed 's/^/| /' conftest.$ac_ext >&5 |
11360 | sed 's/^/| /' conftest.$ac_ext >&5 |
15649 | |
11361 | |
15650 | ( exit $ac_status ) |
11362 | ( exit $ac_status ) |
15651 | rxvt_cv_path_utmpx= |
11363 | path_utmpx= |
15652 | fi |
11364 | fi |
15653 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11365 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15654 | fi |
11366 | fi |
15655 | fi |
11367 | fi |
15656 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 |
11368 | echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
15657 | echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 |
11369 | echo "${ECHO_T}$path_utmpx" >&6 |
15658 | if test x$rxvt_cv_path_utmpx != x; then |
11370 | if test x$path_utmpx != x; then |
15659 | |
11371 | |
15660 | cat >>confdefs.h <<_ACEOF |
11372 | cat >>confdefs.h <<_ACEOF |
15661 | #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" |
11373 | #define UTMPX_FILE "$path_utmpx" |
15662 | _ACEOF |
11374 | _ACEOF |
15663 | |
11375 | |
15664 | fi |
11376 | fi |
15665 | |
11377 | |
15666 | |
11378 | |
15667 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
11379 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
15668 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
11380 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
15669 | if test "${rxvt_cv_path_wtmp+set}" = set; then |
11381 | if test "${path_wtmp+set}" = set; then |
15670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15671 | else |
11383 | else |
15672 | if test "$cross_compiling" = yes; then |
11384 | if test "$cross_compiling" = yes; then |
15673 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 |
11385 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
15674 | echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} |
11386 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
15675 | else |
11387 | else |
15676 | cat >conftest.$ac_ext <<_ACEOF |
11388 | cat >conftest.$ac_ext <<_ACEOF |
15677 | /* confdefs.h. */ |
11389 | /* confdefs.h. */ |
15678 | _ACEOF |
11390 | _ACEOF |
15679 | cat confdefs.h >>conftest.$ac_ext |
11391 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
15717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15718 | (eval $ac_try) 2>&5 |
11430 | (eval $ac_try) 2>&5 |
15719 | ac_status=$? |
11431 | ac_status=$? |
15720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15721 | (exit $ac_status); }; }; then |
11433 | (exit $ac_status); }; }; then |
15722 | rxvt_cv_path_wtmp=`cat conftestval` |
11434 | path_wtmp=`cat conftestval` |
15723 | else |
11435 | else |
15724 | echo "$as_me: program exited with status $ac_status" >&5 |
11436 | echo "$as_me: program exited with status $ac_status" >&5 |
15725 | echo "$as_me: failed program was:" >&5 |
11437 | echo "$as_me: failed program was:" >&5 |
15726 | sed 's/^/| /' conftest.$ac_ext >&5 |
11438 | sed 's/^/| /' conftest.$ac_ext >&5 |
15727 | |
11439 | |
15728 | ( exit $ac_status ) |
11440 | ( exit $ac_status ) |
15729 | rxvt_cv_path_wtmp= |
11441 | path_wtmp= |
15730 | fi |
11442 | fi |
15731 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11443 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15732 | fi |
11444 | fi |
15733 | fi |
11445 | fi |
15734 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 |
11446 | echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
15735 | echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 |
11447 | echo "${ECHO_T}$path_wtmp" >&6 |
15736 | if test x$rxvt_cv_path_wtmp != x; then |
11448 | if test x$path_wtmp != x; then |
15737 | |
11449 | |
15738 | cat >>confdefs.h <<_ACEOF |
11450 | cat >>confdefs.h <<_ACEOF |
15739 | #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" |
11451 | #define WTMP_FILE "$path_wtmp" |
15740 | _ACEOF |
11452 | _ACEOF |
15741 | |
11453 | |
15742 | fi |
11454 | fi |
15743 | |
11455 | |
15744 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
11456 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
15745 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
11457 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
15746 | if test "${rxvt_cv_path_wtmpx+set}" = set; then |
11458 | if test "${path_wtmpx+set}" = set; then |
15747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15748 | else |
11460 | else |
15749 | if test "$cross_compiling" = yes; then |
11461 | if test "$cross_compiling" = yes; then |
15750 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 |
11462 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
15751 | echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} |
11463 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
15752 | else |
11464 | else |
15753 | cat >conftest.$ac_ext <<_ACEOF |
11465 | cat >conftest.$ac_ext <<_ACEOF |
15754 | /* confdefs.h. */ |
11466 | /* confdefs.h. */ |
15755 | _ACEOF |
11467 | _ACEOF |
15756 | cat confdefs.h >>conftest.$ac_ext |
11468 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
15793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15794 | (eval $ac_try) 2>&5 |
11506 | (eval $ac_try) 2>&5 |
15795 | ac_status=$? |
11507 | ac_status=$? |
15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15797 | (exit $ac_status); }; }; then |
11509 | (exit $ac_status); }; }; then |
15798 | rxvt_cv_path_wtmpx=`cat conftestval` |
11510 | path_wtmpx=`cat conftestval` |
15799 | else |
11511 | else |
15800 | echo "$as_me: program exited with status $ac_status" >&5 |
11512 | echo "$as_me: program exited with status $ac_status" >&5 |
15801 | echo "$as_me: failed program was:" >&5 |
11513 | echo "$as_me: failed program was:" >&5 |
15802 | sed 's/^/| /' conftest.$ac_ext >&5 |
11514 | sed 's/^/| /' conftest.$ac_ext >&5 |
15803 | |
11515 | |
15804 | ( exit $ac_status ) |
11516 | ( exit $ac_status ) |
15805 | rxvt_cv_path_wtmpx= |
11517 | path_wtmpx= |
15806 | fi |
11518 | fi |
15807 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11519 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15808 | fi |
11520 | fi |
15809 | fi |
11521 | fi |
15810 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 |
11522 | echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
15811 | echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 |
11523 | echo "${ECHO_T}$path_wtmpx" >&6 |
15812 | if test x$rxvt_cv_path_wtmpx != x; then |
11524 | if test x$path_wtmpx != x; then |
15813 | |
11525 | |
15814 | cat >>confdefs.h <<_ACEOF |
11526 | cat >>confdefs.h <<_ACEOF |
15815 | #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" |
11527 | #define WTMPX_FILE "$path_wtmpx" |
15816 | _ACEOF |
11528 | _ACEOF |
15817 | |
11529 | |
15818 | fi |
11530 | fi |
15819 | |
11531 | |
15820 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
11532 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
15821 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
11533 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
15822 | if test "${rxvt_cv_path_lastlog+set}" = set; then |
11534 | if test "${path_lastlog+set}" = set; then |
15823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15824 | else |
11536 | else |
15825 | if test "$cross_compiling" = yes; then |
11537 | if test "$cross_compiling" = yes; then |
15826 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 |
11538 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
15827 | echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} |
11539 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
15828 | else |
11540 | else |
15829 | cat >conftest.$ac_ext <<_ACEOF |
11541 | cat >conftest.$ac_ext <<_ACEOF |
15830 | /* confdefs.h. */ |
11542 | /* confdefs.h. */ |
15831 | _ACEOF |
11543 | _ACEOF |
15832 | cat confdefs.h >>conftest.$ac_ext |
11544 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
15874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15875 | (eval $ac_try) 2>&5 |
11587 | (eval $ac_try) 2>&5 |
15876 | ac_status=$? |
11588 | ac_status=$? |
15877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15878 | (exit $ac_status); }; }; then |
11590 | (exit $ac_status); }; }; then |
15879 | rxvt_cv_path_lastlog=`cat conftestval` |
11591 | path_lastlog=`cat conftestval` |
15880 | else |
11592 | else |
15881 | echo "$as_me: program exited with status $ac_status" >&5 |
11593 | echo "$as_me: program exited with status $ac_status" >&5 |
15882 | echo "$as_me: failed program was:" >&5 |
11594 | echo "$as_me: failed program was:" >&5 |
15883 | sed 's/^/| /' conftest.$ac_ext >&5 |
11595 | sed 's/^/| /' conftest.$ac_ext >&5 |
15884 | |
11596 | |
15885 | ( exit $ac_status ) |
11597 | ( exit $ac_status ) |
15886 | rxvt_cv_path_lastlog= |
11598 | path_lastlog= |
15887 | fi |
11599 | fi |
15888 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11600 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15889 | fi |
11601 | fi |
15890 | fi |
11602 | fi |
15891 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 |
11603 | echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
15892 | echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 |
11604 | echo "${ECHO_T}$path_lastlog" >&6 |
15893 | if test x$rxvt_cv_path_lastlog != x; then |
11605 | if test x$path_lastlog != x; then |
15894 | |
11606 | |
15895 | cat >>confdefs.h <<_ACEOF |
11607 | cat >>confdefs.h <<_ACEOF |
15896 | #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" |
11608 | #define LASTLOG_FILE "$path_lastlog" |
15897 | _ACEOF |
11609 | _ACEOF |
15898 | |
11610 | |
15899 | if test -d "$rxvt_cv_path_lastlog"; then |
11611 | if test -d "$path_lastlog"; then |
15900 | |
11612 | |
15901 | cat >>confdefs.h <<\_ACEOF |
11613 | cat >>confdefs.h <<\_ACEOF |
15902 | #define LASTLOG_IS_DIR 1 |
11614 | #define LASTLOG_IS_DIR 1 |
15903 | _ACEOF |
11615 | _ACEOF |
15904 | |
11616 | |
15905 | fi |
11617 | fi |
15906 | fi |
11618 | fi |
15907 | |
11619 | |
15908 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11620 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
15909 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
11621 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
15910 | if test "${rxvt_cv_path_lastlogx+set}" = set; then |
11622 | if test "${path_lastlogx+set}" = set; then |
15911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15912 | else |
11624 | else |
15913 | if test "$cross_compiling" = yes; then |
11625 | if test "$cross_compiling" = yes; then |
15914 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 |
11626 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
15915 | echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} |
11627 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
15916 | else |
11628 | else |
15917 | cat >conftest.$ac_ext <<_ACEOF |
11629 | cat >conftest.$ac_ext <<_ACEOF |
15918 | /* confdefs.h. */ |
11630 | /* confdefs.h. */ |
15919 | _ACEOF |
11631 | _ACEOF |
15920 | cat confdefs.h >>conftest.$ac_ext |
11632 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
15956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15957 | (eval $ac_try) 2>&5 |
11669 | (eval $ac_try) 2>&5 |
15958 | ac_status=$? |
11670 | ac_status=$? |
15959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15960 | (exit $ac_status); }; }; then |
11672 | (exit $ac_status); }; }; then |
15961 | rxvt_cv_path_lastlogx=`cat conftestval` |
11673 | path_lastlogx=`cat conftestval` |
15962 | else |
11674 | else |
15963 | echo "$as_me: program exited with status $ac_status" >&5 |
11675 | echo "$as_me: program exited with status $ac_status" >&5 |
15964 | echo "$as_me: failed program was:" >&5 |
11676 | echo "$as_me: failed program was:" >&5 |
15965 | sed 's/^/| /' conftest.$ac_ext >&5 |
11677 | sed 's/^/| /' conftest.$ac_ext >&5 |
15966 | |
11678 | |
15967 | ( exit $ac_status ) |
11679 | ( exit $ac_status ) |
15968 | rxvt_cv_path_lastlogx= |
11680 | path_lastlogx= |
15969 | fi |
11681 | fi |
15970 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11682 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15971 | fi |
11683 | fi |
15972 | fi |
11684 | fi |
15973 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 |
11685 | echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
15974 | echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 |
11686 | echo "${ECHO_T}$path_lastlogx" >&6 |
15975 | if test x$rxvt_cv_path_lastlogx != x; then |
11687 | if test x$path_lastlogx != x; then |
15976 | |
11688 | |
15977 | cat >>confdefs.h <<_ACEOF |
11689 | cat >>confdefs.h <<_ACEOF |
15978 | #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" |
11690 | #define LASTLOGX_FILE "$path_lastlogx" |
15979 | _ACEOF |
11691 | _ACEOF |
15980 | |
11692 | |
15981 | fi |
11693 | fi |
|
|
11694 | |
15982 | |
11695 | |
15983 | |
11696 | |
15984 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11697 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
15985 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11698 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
15986 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
11699 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
… | |
… | |
16253 | #define HAVE_NL_LANGINFO 1 |
11966 | #define HAVE_NL_LANGINFO 1 |
16254 | _ACEOF |
11967 | _ACEOF |
16255 | |
11968 | |
16256 | fi |
11969 | fi |
16257 | |
11970 | |
|
|
11971 | |
|
|
11972 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
11973 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11974 | if test "${can_pass_fds+set}" = set; then |
|
|
11975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11976 | else |
|
|
11977 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11978 | /* confdefs.h. */ |
|
|
11979 | _ACEOF |
|
|
11980 | cat confdefs.h >>conftest.$ac_ext |
|
|
11981 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11982 | /* end confdefs.h. */ |
|
|
11983 | |
|
|
11984 | #include <cstddef> // broken bsds (is that redundant) need this |
|
|
11985 | #include <sys/types.h> |
|
|
11986 | #include <sys/socket.h> |
|
|
11987 | #include <sys/uio.h> |
|
|
11988 | |
|
|
11989 | int |
|
|
11990 | main () |
|
|
11991 | { |
|
|
11992 | |
|
|
11993 | { |
|
|
11994 | msghdr msg; |
|
|
11995 | iovec iov; |
|
|
11996 | char buf [100]; |
|
|
11997 | char data = 0; |
|
|
11998 | |
|
|
11999 | iov.iov_base = &data; |
|
|
12000 | iov.iov_len = 1; |
|
|
12001 | |
|
|
12002 | msg.msg_iov = &iov; |
|
|
12003 | msg.msg_iovlen = 1; |
|
|
12004 | msg.msg_control = buf; |
|
|
12005 | msg.msg_controllen = sizeof buf; |
|
|
12006 | |
|
|
12007 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
12008 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
12009 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
12010 | cmsg->cmsg_len = 100; |
|
|
12011 | |
|
|
12012 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
12013 | |
|
|
12014 | return sendmsg (3, &msg, 0); |
|
|
12015 | } |
|
|
12016 | |
|
|
12017 | ; |
|
|
12018 | return 0; |
|
|
12019 | } |
|
|
12020 | _ACEOF |
|
|
12021 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12023 | (eval $ac_link) 2>conftest.er1 |
|
|
12024 | ac_status=$? |
|
|
12025 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12026 | rm -f conftest.er1 |
|
|
12027 | cat conftest.err >&5 |
|
|
12028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12029 | (exit $ac_status); } && |
|
|
12030 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12032 | (eval $ac_try) 2>&5 |
|
|
12033 | ac_status=$? |
|
|
12034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12035 | (exit $ac_status); }; } && |
|
|
12036 | { ac_try='test -s conftest$ac_exeext' |
|
|
12037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12038 | (eval $ac_try) 2>&5 |
|
|
12039 | ac_status=$? |
|
|
12040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12041 | (exit $ac_status); }; }; then |
|
|
12042 | can_pass_fds=yes |
|
|
12043 | else |
|
|
12044 | echo "$as_me: failed program was:" >&5 |
|
|
12045 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12046 | |
|
|
12047 | can_pass_fds=no |
|
|
12048 | fi |
|
|
12049 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12050 | conftest$ac_exeext conftest.$ac_ext |
|
|
12051 | fi |
|
|
12052 | echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
|
|
12053 | echo "${ECHO_T}$can_pass_fds" >&6 |
|
|
12054 | if test x$can_pass_fds = xyes; then |
|
|
12055 | |
|
|
12056 | cat >>confdefs.h <<\_ACEOF |
|
|
12057 | #define HAVE_UNIX_FDPASS 1 |
|
|
12058 | _ACEOF |
|
|
12059 | |
|
|
12060 | else |
|
|
12061 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
12062 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
12063 | { (exit 1); exit 1; }; } |
|
|
12064 | fi |
|
|
12065 | |
|
|
12066 | |
16258 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
12067 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
16259 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
12068 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
16260 | if test "${rxvt_broken_ximcb+set}" = set; then |
12069 | if test "${rxvt_broken_ximcb+set}" = set; then |
16261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16262 | else |
12071 | else |
… | |
… | |
16311 | #define XIMCB_PROTO_BROKEN 1 |
12120 | #define XIMCB_PROTO_BROKEN 1 |
16312 | _ACEOF |
12121 | _ACEOF |
16313 | |
12122 | |
16314 | fi |
12123 | fi |
16315 | |
12124 | |
16316 | echo "$as_me:$LINENO: checking for getpt" >&5 |
|
|
16317 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
|
|
16318 | if test "${rxvt_cv_func_getpt+set}" = set; then |
|
|
16319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
16320 | else |
|
|
16321 | cat >conftest.$ac_ext <<_ACEOF |
|
|
16322 | /* confdefs.h. */ |
|
|
16323 | _ACEOF |
|
|
16324 | cat confdefs.h >>conftest.$ac_ext |
|
|
16325 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
16326 | /* end confdefs.h. */ |
|
|
16327 | #define _GNU_SOURCE |
|
|
16328 | #ifdef HAVE_STDLIB_H |
|
|
16329 | # include <cstdlib> |
|
|
16330 | #endif |
|
|
16331 | int |
|
|
16332 | main () |
|
|
16333 | { |
|
|
16334 | (void)getpt(); |
|
|
16335 | ; |
|
|
16336 | return 0; |
|
|
16337 | } |
|
|
16338 | _ACEOF |
|
|
16339 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
16340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
16341 | (eval $ac_link) 2>conftest.er1 |
|
|
16342 | ac_status=$? |
|
|
16343 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
16344 | rm -f conftest.er1 |
|
|
16345 | cat conftest.err >&5 |
|
|
16346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16347 | (exit $ac_status); } && |
|
|
16348 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
16349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
16350 | (eval $ac_try) 2>&5 |
|
|
16351 | ac_status=$? |
|
|
16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16353 | (exit $ac_status); }; } && |
|
|
16354 | { ac_try='test -s conftest$ac_exeext' |
|
|
16355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
16356 | (eval $ac_try) 2>&5 |
|
|
16357 | ac_status=$? |
|
|
16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16359 | (exit $ac_status); }; }; then |
|
|
16360 | rxvt_cv_func_getpt=yes |
|
|
16361 | else |
|
|
16362 | echo "$as_me: failed program was:" >&5 |
|
|
16363 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
16364 | |
12125 | |
16365 | rxvt_cv_func_getpt=no |
|
|
16366 | fi |
|
|
16367 | rm -f conftest.err conftest.$ac_objext \ |
|
|
16368 | conftest$ac_exeext conftest.$ac_ext |
|
|
16369 | fi |
|
|
16370 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
|
|
16371 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
|
|
16372 | if test x$rxvt_cv_func_getpt = xyes; then |
|
|
16373 | |
12126 | |
16374 | cat >>confdefs.h <<\_ACEOF |
|
|
16375 | #define HAVE_GETPT 1 |
|
|
16376 | _ACEOF |
|
|
16377 | |
12127 | |
16378 | fi |
|
|
16379 | |
12128 | |
16380 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
|
|
16381 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
|
|
16382 | if test "${rxvt_cv_ptys+set}" = set; then |
|
|
16383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
16384 | else |
|
|
16385 | if test x$ac_cv_func_openpty = xyes; then |
|
|
16386 | rxvt_cv_ptys=OPENPTY |
|
|
16387 | else if test x$ac_cv_func__getpty = xyes; then |
|
|
16388 | rxvt_cv_ptys=SGI4 |
|
|
16389 | else if test -c /dev/ttyp20; then |
|
|
16390 | rxvt_cv_ptys=SCO |
|
|
16391 | else if test -c /dev/ptym/clone; then |
|
|
16392 | rxvt_cv_ptys=HPUX |
|
|
16393 | else if test x$rxvt_cv_func_getpt = xyes; then |
|
|
16394 | rxvt_cv_ptys=GLIBC |
|
|
16395 | else if test -c /dev/ptc -a -c /dev/pts; then |
|
|
16396 | rxvt_cv_ptys=PTC |
|
|
16397 | else if test -c /dev/ptc -a -d /dev/pts; then |
|
|
16398 | rxvt_cv_ptys=PTC |
|
|
16399 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
|
|
16400 | rxvt_cv_ptys=STREAMS |
|
|
16401 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
|
|
16402 | rxvt_cv_ptys=STREAMS |
|
|
16403 | else |
|
|
16404 | rxvt_cv_ptys=BSD |
|
|
16405 | fi |
|
|
16406 | fi |
|
|
16407 | fi |
|
|
16408 | fi |
|
|
16409 | fi |
|
|
16410 | fi |
|
|
16411 | fi |
|
|
16412 | fi |
|
|
16413 | fi |
|
|
16414 | |
12129 | |
16415 | fi |
|
|
16416 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
|
|
16417 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
|
|
16418 | |
12130 | |
16419 | if test x$rxvt_cv_ptys = xOPENPTY; then |
12131 | for ac_header in \ |
|
|
12132 | pty.h \ |
|
|
12133 | util.h \ |
|
|
12134 | libutil.h \ |
|
|
12135 | sys/ioctl.h \ |
|
|
12136 | sys/stropts.h \ |
16420 | |
12137 | |
16421 | cat >>confdefs.h <<\_ACEOF |
|
|
16422 | #define PTYS_ARE_OPENPTY 1 |
|
|
16423 | _ACEOF |
|
|
16424 | |
|
|
16425 | fi |
|
|
16426 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
16427 | |
|
|
16428 | cat >>confdefs.h <<\_ACEOF |
|
|
16429 | #define PTYS_ARE_NUMERIC 1 |
|
|
16430 | _ACEOF |
|
|
16431 | |
|
|
16432 | fi |
|
|
16433 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
16434 | |
|
|
16435 | cat >>confdefs.h <<\_ACEOF |
|
|
16436 | #define PTYS_ARE_PTMX 1 |
|
|
16437 | _ACEOF |
|
|
16438 | |
|
|
16439 | fi |
|
|
16440 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
16441 | |
|
|
16442 | cat >>confdefs.h <<\_ACEOF |
|
|
16443 | #define PTYS_ARE_PTC 1 |
|
|
16444 | _ACEOF |
|
|
16445 | |
|
|
16446 | fi |
|
|
16447 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
16448 | |
|
|
16449 | cat >>confdefs.h <<\_ACEOF |
|
|
16450 | #define PTYS_ARE__GETPTY 1 |
|
|
16451 | _ACEOF |
|
|
16452 | |
|
|
16453 | fi |
|
|
16454 | if test x$rxvt_cv_ptys = xCONVEX; then |
|
|
16455 | |
|
|
16456 | cat >>confdefs.h <<\_ACEOF |
|
|
16457 | #define PTYS_ARE_GETPTY 1 |
|
|
16458 | _ACEOF |
|
|
16459 | |
|
|
16460 | fi |
|
|
16461 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
16462 | |
|
|
16463 | cat >>confdefs.h <<\_ACEOF |
|
|
16464 | #define PTYS_ARE_GETPT 1 |
|
|
16465 | _ACEOF |
|
|
16466 | |
|
|
16467 | fi |
|
|
16468 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
16469 | |
|
|
16470 | cat >>confdefs.h <<\_ACEOF |
|
|
16471 | #define PTYS_ARE_CLONE 1 |
|
|
16472 | _ACEOF |
|
|
16473 | |
|
|
16474 | fi |
|
|
16475 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
|
|
16476 | |
|
|
16477 | cat >>confdefs.h <<\_ACEOF |
|
|
16478 | #define PTYS_ARE_SEARCHED 1 |
|
|
16479 | _ACEOF |
|
|
16480 | |
|
|
16481 | fi |
|
|
16482 | |
|
|
16483 | |
|
|
16484 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
16485 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
16486 | ptys=`echo /dev/pty??` |
|
|
16487 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
16488 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
16489 | if test x$pch1 != x; then |
|
|
16490 | |
|
|
16491 | cat >>confdefs.h <<_ACEOF |
|
|
16492 | #define PTYCHAR1 "$pch1" |
|
|
16493 | _ACEOF |
|
|
16494 | |
|
|
16495 | fi |
|
|
16496 | if test x$pch2 != x; then |
|
|
16497 | |
|
|
16498 | cat >>confdefs.h <<_ACEOF |
|
|
16499 | #define PTYCHAR2 "$pch2" |
|
|
16500 | _ACEOF |
|
|
16501 | |
|
|
16502 | fi |
|
|
16503 | |
|
|
16504 | if test x$support_xft = xyes; then |
|
|
16505 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
16506 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
16507 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
16508 | |
|
|
16509 | |
|
|
16510 | for ac_header in X11/Xft/Xft.h |
|
|
16511 | do |
12138 | do |
16512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12139 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12140 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16514 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12141 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16515 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12142 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
… | |
… | |
16649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
16650 | cat >>confdefs.h <<_ACEOF |
12277 | cat >>confdefs.h <<_ACEOF |
16651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12278 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
16652 | _ACEOF |
12279 | _ACEOF |
16653 | |
12280 | |
|
|
12281 | fi |
|
|
12282 | |
|
|
12283 | done |
|
|
12284 | |
|
|
12285 | |
|
|
12286 | |
|
|
12287 | |
|
|
12288 | |
|
|
12289 | |
|
|
12290 | |
|
|
12291 | for ac_func in \ |
|
|
12292 | revoke \ |
|
|
12293 | _getpty \ |
|
|
12294 | getpt \ |
|
|
12295 | posix_openpt \ |
|
|
12296 | isastream \ |
|
|
12297 | |
|
|
12298 | do |
|
|
12299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12300 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12302 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12304 | else |
|
|
12305 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12306 | /* confdefs.h. */ |
|
|
12307 | _ACEOF |
|
|
12308 | cat confdefs.h >>conftest.$ac_ext |
|
|
12309 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12310 | /* end confdefs.h. */ |
|
|
12311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12313 | #define $ac_func innocuous_$ac_func |
|
|
12314 | |
|
|
12315 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12316 | which can conflict with char $ac_func (); below. |
|
|
12317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12318 | <limits.h> exists even on freestanding compilers. */ |
|
|
12319 | |
|
|
12320 | #ifdef __STDC__ |
|
|
12321 | # include <limits.h> |
|
|
12322 | #else |
|
|
12323 | # include <assert.h> |
|
|
12324 | #endif |
|
|
12325 | |
|
|
12326 | #undef $ac_func |
|
|
12327 | |
|
|
12328 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12329 | #ifdef __cplusplus |
|
|
12330 | extern "C" |
|
|
12331 | { |
|
|
12332 | #endif |
|
|
12333 | /* We use char because int might match the return type of a gcc2 |
|
|
12334 | builtin and then its argument prototype would still apply. */ |
|
|
12335 | char $ac_func (); |
|
|
12336 | /* The GNU C library defines this for functions which it implements |
|
|
12337 | to always fail with ENOSYS. Some functions are actually named |
|
|
12338 | something starting with __ and the normal name is an alias. */ |
|
|
12339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12340 | choke me |
|
|
12341 | #else |
|
|
12342 | char (*f) () = $ac_func; |
|
|
12343 | #endif |
|
|
12344 | #ifdef __cplusplus |
|
|
12345 | } |
|
|
12346 | #endif |
|
|
12347 | |
|
|
12348 | int |
|
|
12349 | main () |
|
|
12350 | { |
|
|
12351 | return f != $ac_func; |
|
|
12352 | ; |
|
|
12353 | return 0; |
|
|
12354 | } |
|
|
12355 | _ACEOF |
|
|
12356 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12358 | (eval $ac_link) 2>conftest.er1 |
|
|
12359 | ac_status=$? |
|
|
12360 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12361 | rm -f conftest.er1 |
|
|
12362 | cat conftest.err >&5 |
|
|
12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12364 | (exit $ac_status); } && |
|
|
12365 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12367 | (eval $ac_try) 2>&5 |
|
|
12368 | ac_status=$? |
|
|
12369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12370 | (exit $ac_status); }; } && |
|
|
12371 | { ac_try='test -s conftest$ac_exeext' |
|
|
12372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12373 | (eval $ac_try) 2>&5 |
|
|
12374 | ac_status=$? |
|
|
12375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12376 | (exit $ac_status); }; }; then |
|
|
12377 | eval "$as_ac_var=yes" |
|
|
12378 | else |
|
|
12379 | echo "$as_me: failed program was:" >&5 |
|
|
12380 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12381 | |
|
|
12382 | eval "$as_ac_var=no" |
|
|
12383 | fi |
|
|
12384 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12385 | conftest$ac_exeext conftest.$ac_ext |
|
|
12386 | fi |
|
|
12387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12389 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12390 | cat >>confdefs.h <<_ACEOF |
|
|
12391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12392 | _ACEOF |
|
|
12393 | |
|
|
12394 | fi |
|
|
12395 | done |
|
|
12396 | |
|
|
12397 | |
|
|
12398 | have_clone=no |
|
|
12399 | |
|
|
12400 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12401 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12402 | if test -e /dev/ptym/clone; then |
|
|
12403 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12404 | echo "${ECHO_T}yes" >&6 |
|
|
12405 | |
|
|
12406 | cat >>confdefs.h <<\_ACEOF |
|
|
12407 | #define HAVE_DEV_CLONE 1 |
|
|
12408 | _ACEOF |
|
|
12409 | |
|
|
12410 | |
|
|
12411 | cat >>confdefs.h <<\_ACEOF |
|
|
12412 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12413 | _ACEOF |
|
|
12414 | |
|
|
12415 | have_clone=yes |
|
|
12416 | else |
|
|
12417 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12418 | echo "${ECHO_T}no" >&6 |
|
|
12419 | fi |
|
|
12420 | |
|
|
12421 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12422 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12423 | if test -e /dev/ptc; then |
|
|
12424 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12425 | echo "${ECHO_T}yes" >&6 |
|
|
12426 | |
|
|
12427 | cat >>confdefs.h <<\_ACEOF |
|
|
12428 | #define HAVE_DEV_PTC 1 |
|
|
12429 | _ACEOF |
|
|
12430 | |
|
|
12431 | |
|
|
12432 | cat >>confdefs.h <<\_ACEOF |
|
|
12433 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12434 | _ACEOF |
|
|
12435 | |
|
|
12436 | have_clone=yes |
|
|
12437 | else |
|
|
12438 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12439 | echo "${ECHO_T}no" >&6 |
|
|
12440 | fi |
|
|
12441 | |
|
|
12442 | case $host in |
|
|
12443 | *-*-cygwin*) |
|
|
12444 | have_clone=yes |
|
|
12445 | |
|
|
12446 | cat >>confdefs.h <<\_ACEOF |
|
|
12447 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12448 | _ACEOF |
|
|
12449 | |
|
|
12450 | ;; |
|
|
12451 | *) |
|
|
12452 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12453 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12454 | if test -e /dev/ptmx; then |
|
|
12455 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12456 | echo "${ECHO_T}yes" >&6 |
|
|
12457 | |
|
|
12458 | cat >>confdefs.h <<\_ACEOF |
|
|
12459 | #define HAVE_DEV_PTMX 1 |
|
|
12460 | _ACEOF |
|
|
12461 | |
|
|
12462 | |
|
|
12463 | cat >>confdefs.h <<\_ACEOF |
|
|
12464 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12465 | _ACEOF |
|
|
12466 | |
|
|
12467 | have_clone=yes |
|
|
12468 | else |
|
|
12469 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12470 | echo "${ECHO_T}no" >&6 |
|
|
12471 | fi |
|
|
12472 | ;; |
|
|
12473 | esac |
|
|
12474 | |
|
|
12475 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12476 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12477 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12478 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12479 | /* confdefs.h. */ |
|
|
12480 | _ACEOF |
|
|
12481 | cat confdefs.h >>conftest.$ac_ext |
|
|
12482 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12483 | /* end confdefs.h. */ |
|
|
12484 | #include <stdlib.h> |
|
|
12485 | int |
|
|
12486 | main () |
|
|
12487 | { |
|
|
12488 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12489 | ; |
|
|
12490 | return 0; |
|
|
12491 | } |
|
|
12492 | _ACEOF |
|
|
12493 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12495 | (eval $ac_link) 2>conftest.er1 |
|
|
12496 | ac_status=$? |
|
|
12497 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12498 | rm -f conftest.er1 |
|
|
12499 | cat conftest.err >&5 |
|
|
12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12501 | (exit $ac_status); } && |
|
|
12502 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12504 | (eval $ac_try) 2>&5 |
|
|
12505 | ac_status=$? |
|
|
12506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12507 | (exit $ac_status); }; } && |
|
|
12508 | { ac_try='test -s conftest$ac_exeext' |
|
|
12509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12510 | (eval $ac_try) 2>&5 |
|
|
12511 | ac_status=$? |
|
|
12512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12513 | (exit $ac_status); }; }; then |
|
|
12514 | unix98_pty=yes |
|
|
12515 | |
|
|
12516 | cat >>confdefs.h <<\_ACEOF |
|
|
12517 | #define UNIX98_PTY 1 |
|
|
12518 | _ACEOF |
|
|
12519 | |
|
|
12520 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12521 | echo "${ECHO_T}yes" >&6 |
|
|
12522 | else |
|
|
12523 | echo "$as_me: failed program was:" >&5 |
|
|
12524 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12525 | |
|
|
12526 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12527 | echo "${ECHO_T}no" >&6 |
|
|
12528 | fi |
|
|
12529 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12530 | conftest$ac_exeext conftest.$ac_ext |
|
|
12531 | fi |
|
|
12532 | |
|
|
12533 | if test -z "$unix98_pty"; then |
|
|
12534 | |
|
|
12535 | for ac_func in openpty |
|
|
12536 | do |
|
|
12537 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12538 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12539 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12540 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12542 | else |
|
|
12543 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12544 | /* confdefs.h. */ |
|
|
12545 | _ACEOF |
|
|
12546 | cat confdefs.h >>conftest.$ac_ext |
|
|
12547 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12548 | /* end confdefs.h. */ |
|
|
12549 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12551 | #define $ac_func innocuous_$ac_func |
|
|
12552 | |
|
|
12553 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12554 | which can conflict with char $ac_func (); below. |
|
|
12555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12556 | <limits.h> exists even on freestanding compilers. */ |
|
|
12557 | |
|
|
12558 | #ifdef __STDC__ |
|
|
12559 | # include <limits.h> |
|
|
12560 | #else |
|
|
12561 | # include <assert.h> |
|
|
12562 | #endif |
|
|
12563 | |
|
|
12564 | #undef $ac_func |
|
|
12565 | |
|
|
12566 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12567 | #ifdef __cplusplus |
|
|
12568 | extern "C" |
|
|
12569 | { |
|
|
12570 | #endif |
|
|
12571 | /* We use char because int might match the return type of a gcc2 |
|
|
12572 | builtin and then its argument prototype would still apply. */ |
|
|
12573 | char $ac_func (); |
|
|
12574 | /* The GNU C library defines this for functions which it implements |
|
|
12575 | to always fail with ENOSYS. Some functions are actually named |
|
|
12576 | something starting with __ and the normal name is an alias. */ |
|
|
12577 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12578 | choke me |
|
|
12579 | #else |
|
|
12580 | char (*f) () = $ac_func; |
|
|
12581 | #endif |
|
|
12582 | #ifdef __cplusplus |
|
|
12583 | } |
|
|
12584 | #endif |
|
|
12585 | |
|
|
12586 | int |
|
|
12587 | main () |
|
|
12588 | { |
|
|
12589 | return f != $ac_func; |
|
|
12590 | ; |
|
|
12591 | return 0; |
|
|
12592 | } |
|
|
12593 | _ACEOF |
|
|
12594 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12596 | (eval $ac_link) 2>conftest.er1 |
|
|
12597 | ac_status=$? |
|
|
12598 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12599 | rm -f conftest.er1 |
|
|
12600 | cat conftest.err >&5 |
|
|
12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12602 | (exit $ac_status); } && |
|
|
12603 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12605 | (eval $ac_try) 2>&5 |
|
|
12606 | ac_status=$? |
|
|
12607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12608 | (exit $ac_status); }; } && |
|
|
12609 | { ac_try='test -s conftest$ac_exeext' |
|
|
12610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12611 | (eval $ac_try) 2>&5 |
|
|
12612 | ac_status=$? |
|
|
12613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12614 | (exit $ac_status); }; }; then |
|
|
12615 | eval "$as_ac_var=yes" |
|
|
12616 | else |
|
|
12617 | echo "$as_me: failed program was:" >&5 |
|
|
12618 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12619 | |
|
|
12620 | eval "$as_ac_var=no" |
|
|
12621 | fi |
|
|
12622 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12623 | conftest$ac_exeext conftest.$ac_ext |
|
|
12624 | fi |
|
|
12625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12626 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12627 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12628 | cat >>confdefs.h <<_ACEOF |
|
|
12629 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12630 | _ACEOF |
|
|
12631 | |
|
|
12632 | else |
|
|
12633 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12634 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12635 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12637 | else |
|
|
12638 | ac_check_lib_save_LIBS=$LIBS |
|
|
12639 | LIBS="-lutil $LIBS" |
|
|
12640 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12641 | /* confdefs.h. */ |
|
|
12642 | _ACEOF |
|
|
12643 | cat confdefs.h >>conftest.$ac_ext |
|
|
12644 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12645 | /* end confdefs.h. */ |
|
|
12646 | |
|
|
12647 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12648 | #ifdef __cplusplus |
|
|
12649 | extern "C" |
|
|
12650 | #endif |
|
|
12651 | /* We use char because int might match the return type of a gcc2 |
|
|
12652 | builtin and then its argument prototype would still apply. */ |
|
|
12653 | char openpty (); |
|
|
12654 | int |
|
|
12655 | main () |
|
|
12656 | { |
|
|
12657 | openpty (); |
|
|
12658 | ; |
|
|
12659 | return 0; |
|
|
12660 | } |
|
|
12661 | _ACEOF |
|
|
12662 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12664 | (eval $ac_link) 2>conftest.er1 |
|
|
12665 | ac_status=$? |
|
|
12666 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12667 | rm -f conftest.er1 |
|
|
12668 | cat conftest.err >&5 |
|
|
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12670 | (exit $ac_status); } && |
|
|
12671 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12673 | (eval $ac_try) 2>&5 |
|
|
12674 | ac_status=$? |
|
|
12675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12676 | (exit $ac_status); }; } && |
|
|
12677 | { ac_try='test -s conftest$ac_exeext' |
|
|
12678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12679 | (eval $ac_try) 2>&5 |
|
|
12680 | ac_status=$? |
|
|
12681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12682 | (exit $ac_status); }; }; then |
|
|
12683 | ac_cv_lib_util_openpty=yes |
|
|
12684 | else |
|
|
12685 | echo "$as_me: failed program was:" >&5 |
|
|
12686 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12687 | |
|
|
12688 | ac_cv_lib_util_openpty=no |
|
|
12689 | fi |
|
|
12690 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12691 | conftest$ac_exeext conftest.$ac_ext |
|
|
12692 | LIBS=$ac_check_lib_save_LIBS |
|
|
12693 | fi |
|
|
12694 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12695 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12696 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12697 | cat >>confdefs.h <<\_ACEOF |
|
|
12698 | #define HAVE_OPENPTY 1 |
|
|
12699 | _ACEOF |
|
|
12700 | LIBS="$LIBS -lutil" |
|
|
12701 | fi |
|
|
12702 | |
|
|
12703 | fi |
|
|
12704 | done |
|
|
12705 | |
|
|
12706 | fi |
|
|
12707 | |
|
|
12708 | |
|
|
12709 | |
|
|
12710 | echo "$as_me:$LINENO: checking for tty group" >&5 |
|
|
12711 | echo $ECHO_N "checking for tty group... $ECHO_C" >&6 |
|
|
12712 | if test "${tty_group+set}" = set; then |
|
|
12713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12714 | else |
|
|
12715 | if test "$cross_compiling" = yes; then |
|
|
12716 | tty_group=no |
|
|
12717 | else |
|
|
12718 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12719 | /* confdefs.h. */ |
|
|
12720 | _ACEOF |
|
|
12721 | cat confdefs.h >>conftest.$ac_ext |
|
|
12722 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12723 | /* end confdefs.h. */ |
|
|
12724 | |
|
|
12725 | #include <sys/types.h> |
|
|
12726 | #include <sys/stat.h> |
|
|
12727 | #include <unistd.h> |
|
|
12728 | #include <grp.h> |
|
|
12729 | |
|
|
12730 | main() |
|
|
12731 | { |
|
|
12732 | struct stat st; |
|
|
12733 | struct group *gr; |
|
|
12734 | char *tty; |
|
|
12735 | gr = getgrnam("tty"); |
|
|
12736 | tty = ttyname(0); |
|
|
12737 | if (gr != 0 |
|
|
12738 | && tty != 0 |
|
|
12739 | && (stat(tty, &st)) == 0 |
|
|
12740 | && st.st_gid == gr->gr_gid) |
|
|
12741 | return 0; |
|
|
12742 | else |
|
|
12743 | return 1; |
|
|
12744 | } |
|
|
12745 | _ACEOF |
|
|
12746 | rm -f conftest$ac_exeext |
|
|
12747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12748 | (eval $ac_link) 2>&5 |
|
|
12749 | ac_status=$? |
|
|
12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12751 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12753 | (eval $ac_try) 2>&5 |
|
|
12754 | ac_status=$? |
|
|
12755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12756 | (exit $ac_status); }; }; then |
|
|
12757 | tty_group=yes |
|
|
12758 | else |
|
|
12759 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12760 | echo "$as_me: failed program was:" >&5 |
|
|
12761 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12762 | |
|
|
12763 | ( exit $ac_status ) |
|
|
12764 | tty_group=no |
|
|
12765 | fi |
|
|
12766 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12767 | fi |
|
|
12768 | fi |
|
|
12769 | echo "$as_me:$LINENO: result: $tty_group" >&5 |
|
|
12770 | echo "${ECHO_T}$tty_group" >&6 |
|
|
12771 | if test x$tty_group = xyes; then |
|
|
12772 | |
|
|
12773 | cat >>confdefs.h <<\_ACEOF |
|
|
12774 | #define TTY_GID_SUPPORT 1 |
|
|
12775 | _ACEOF |
|
|
12776 | |
|
|
12777 | fi |
|
|
12778 | |
|
|
12779 | if test x$support_xft = xyes; then |
|
|
12780 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
12781 | set dummy pkg-config; ac_word=$2 |
|
|
12782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12784 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
|
|
12785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12786 | else |
|
|
12787 | case $PKG_CONFIG in |
|
|
12788 | [\\/]* | ?:[\\/]*) |
|
|
12789 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
|
12790 | ;; |
|
|
12791 | *) |
|
|
12792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12793 | for as_dir in $PATH |
|
|
12794 | do |
|
|
12795 | IFS=$as_save_IFS |
|
|
12796 | test -z "$as_dir" && as_dir=. |
|
|
12797 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12799 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12801 | break 2 |
|
|
12802 | fi |
|
|
12803 | done |
|
|
12804 | done |
|
|
12805 | |
|
|
12806 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
12807 | ;; |
|
|
12808 | esac |
|
|
12809 | fi |
|
|
12810 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
12811 | |
|
|
12812 | if test -n "$PKG_CONFIG"; then |
|
|
12813 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
12814 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
|
|
12815 | else |
|
|
12816 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12817 | echo "${ECHO_T}no" >&6 |
|
|
12818 | fi |
|
|
12819 | |
|
|
12820 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
12821 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
|
|
12822 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
|
|
12823 | else |
|
|
12824 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
12825 | set dummy xft-config; ac_word=$2 |
|
|
12826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12828 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
|
|
12829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12830 | else |
|
|
12831 | case $XFT_CONFIG in |
|
|
12832 | [\\/]* | ?:[\\/]*) |
|
|
12833 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
12834 | ;; |
|
|
12835 | *) |
|
|
12836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12837 | for as_dir in $PATH |
|
|
12838 | do |
|
|
12839 | IFS=$as_save_IFS |
|
|
12840 | test -z "$as_dir" && as_dir=. |
|
|
12841 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12843 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12845 | break 2 |
|
|
12846 | fi |
|
|
12847 | done |
|
|
12848 | done |
|
|
12849 | |
|
|
12850 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
12851 | ;; |
|
|
12852 | esac |
|
|
12853 | fi |
|
|
12854 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
12855 | |
|
|
12856 | if test -n "$XFT_CONFIG"; then |
|
|
12857 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
|
|
12858 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
|
|
12859 | else |
|
|
12860 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12861 | echo "${ECHO_T}no" >&6 |
|
|
12862 | fi |
|
|
12863 | |
|
|
12864 | if test $XFT_CONFIG != no; then |
|
|
12865 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
|
|
12866 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
12867 | fi |
|
|
12868 | fi |
|
|
12869 | |
|
|
12870 | |
|
|
12871 | for ac_header in X11/Xft/Xft.h |
|
|
12872 | do |
|
|
12873 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12879 | fi |
|
|
12880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12882 | else |
|
|
12883 | # Is the header compilable? |
|
|
12884 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12885 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12886 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12887 | /* confdefs.h. */ |
|
|
12888 | _ACEOF |
|
|
12889 | cat confdefs.h >>conftest.$ac_ext |
|
|
12890 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12891 | /* end confdefs.h. */ |
|
|
12892 | $ac_includes_default |
|
|
12893 | #include <$ac_header> |
|
|
12894 | _ACEOF |
|
|
12895 | rm -f conftest.$ac_objext |
|
|
12896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12897 | (eval $ac_compile) 2>conftest.er1 |
|
|
12898 | ac_status=$? |
|
|
12899 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12900 | rm -f conftest.er1 |
|
|
12901 | cat conftest.err >&5 |
|
|
12902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12903 | (exit $ac_status); } && |
|
|
12904 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12906 | (eval $ac_try) 2>&5 |
|
|
12907 | ac_status=$? |
|
|
12908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12909 | (exit $ac_status); }; } && |
|
|
12910 | { ac_try='test -s conftest.$ac_objext' |
|
|
12911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12912 | (eval $ac_try) 2>&5 |
|
|
12913 | ac_status=$? |
|
|
12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12915 | (exit $ac_status); }; }; then |
|
|
12916 | ac_header_compiler=yes |
|
|
12917 | else |
|
|
12918 | echo "$as_me: failed program was:" >&5 |
|
|
12919 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12920 | |
|
|
12921 | ac_header_compiler=no |
|
|
12922 | fi |
|
|
12923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12924 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12925 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12926 | |
|
|
12927 | # Is the header present? |
|
|
12928 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12929 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12930 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12931 | /* confdefs.h. */ |
|
|
12932 | _ACEOF |
|
|
12933 | cat confdefs.h >>conftest.$ac_ext |
|
|
12934 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12935 | /* end confdefs.h. */ |
|
|
12936 | #include <$ac_header> |
|
|
12937 | _ACEOF |
|
|
12938 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12940 | ac_status=$? |
|
|
12941 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12942 | rm -f conftest.er1 |
|
|
12943 | cat conftest.err >&5 |
|
|
12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12945 | (exit $ac_status); } >/dev/null; then |
|
|
12946 | if test -s conftest.err; then |
|
|
12947 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12948 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12949 | else |
|
|
12950 | ac_cpp_err= |
|
|
12951 | fi |
|
|
12952 | else |
|
|
12953 | ac_cpp_err=yes |
|
|
12954 | fi |
|
|
12955 | if test -z "$ac_cpp_err"; then |
|
|
12956 | ac_header_preproc=yes |
|
|
12957 | else |
|
|
12958 | echo "$as_me: failed program was:" >&5 |
|
|
12959 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12960 | |
|
|
12961 | ac_header_preproc=no |
|
|
12962 | fi |
|
|
12963 | rm -f conftest.err conftest.$ac_ext |
|
|
12964 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12965 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12966 | |
|
|
12967 | # So? What about this header? |
|
|
12968 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12969 | yes:no: ) |
|
|
12970 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12971 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12973 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12974 | ac_header_preproc=yes |
|
|
12975 | ;; |
|
|
12976 | no:yes:* ) |
|
|
12977 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12978 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12979 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12980 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12981 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12982 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12983 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12984 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12986 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12987 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12988 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12989 | ( |
|
|
12990 | cat <<\_ASBOX |
|
|
12991 | ## ------------------------------------------ ## |
|
|
12992 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12993 | ## ------------------------------------------ ## |
|
|
12994 | _ASBOX |
|
|
12995 | ) | |
|
|
12996 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12997 | ;; |
|
|
12998 | esac |
|
|
12999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
13000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
13001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
13002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13003 | else |
|
|
13004 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
13005 | fi |
|
|
13006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
13007 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
13008 | |
|
|
13009 | fi |
|
|
13010 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
13011 | cat >>confdefs.h <<_ACEOF |
|
|
13012 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
13013 | _ACEOF |
|
|
13014 | |
16654 | else |
13015 | else |
16655 | support_xft=no |
13016 | support_xft=no |
16656 | fi |
13017 | fi |
16657 | |
13018 | |
16658 | done |
13019 | done |
… | |
… | |
16795 | cat >>confdefs.h <<\_ACEOF |
13156 | cat >>confdefs.h <<\_ACEOF |
16796 | #define SELECTION_SCROLLING 1 |
13157 | #define SELECTION_SCROLLING 1 |
16797 | _ACEOF |
13158 | _ACEOF |
16798 | |
13159 | |
16799 | fi |
13160 | fi |
16800 | if test x$support_menubar = xyes; then |
|
|
16801 | |
|
|
16802 | cat >>confdefs.h <<\_ACEOF |
|
|
16803 | #define MENUBAR 1 |
|
|
16804 | _ACEOF |
|
|
16805 | |
|
|
16806 | fi |
|
|
16807 | if test x$support_frills = xyes; then |
13161 | if test x$support_frills = xyes; then |
16808 | |
13162 | |
16809 | cat >>confdefs.h <<\_ACEOF |
13163 | cat >>confdefs.h <<\_ACEOF |
16810 | #define ENABLE_FRILLS 1 |
13164 | #define ENABLE_FRILLS 1 |
16811 | _ACEOF |
13165 | _ACEOF |
16812 | |
13166 | |
16813 | fi |
13167 | fi |
16814 | if test x$support_linespace = xno; then |
|
|
16815 | |
|
|
16816 | cat >>confdefs.h <<\_ACEOF |
|
|
16817 | #define NO_LINESPACE 1 |
|
|
16818 | _ACEOF |
|
|
16819 | |
|
|
16820 | fi |
|
|
16821 | if test x$support_24bit = xyes; then |
13168 | if test x$support_24bit = xyes; then |
16822 | |
13169 | |
16823 | cat >>confdefs.h <<\_ACEOF |
13170 | cat >>confdefs.h <<\_ACEOF |
16824 | #define PREFER_24BIT 1 |
13171 | #define PREFER_24BIT 1 |
16825 | _ACEOF |
13172 | _ACEOF |
… | |
… | |
16913 | cat >>confdefs.h <<\_ACEOF |
13260 | cat >>confdefs.h <<\_ACEOF |
16914 | #define POINTER_BLANK 1 |
13261 | #define POINTER_BLANK 1 |
16915 | _ACEOF |
13262 | _ACEOF |
16916 | |
13263 | |
16917 | fi |
13264 | fi |
16918 | if test x$support_cursor_blink = xyes; then |
|
|
16919 | |
|
|
16920 | cat >>confdefs.h <<\_ACEOF |
|
|
16921 | #define CURSOR_BLINK 1 |
|
|
16922 | _ACEOF |
|
|
16923 | |
|
|
16924 | fi |
|
|
16925 | if test x$support_text_blink = xyes; then |
13265 | if test x$support_text_blink = xyes; then |
16926 | |
13266 | |
16927 | cat >>confdefs.h <<\_ACEOF |
13267 | cat >>confdefs.h <<\_ACEOF |
16928 | #define TEXT_BLINK 1 |
13268 | #define TEXT_BLINK 1 |
16929 | _ACEOF |
13269 | _ACEOF |
… | |
… | |
16942 | #define ENABLE_COMBINING 1 |
13282 | #define ENABLE_COMBINING 1 |
16943 | _ACEOF |
13283 | _ACEOF |
16944 | |
13284 | |
16945 | fi |
13285 | fi |
16946 | if test x$codesets = xall; then |
13286 | if test x$codesets = xall; then |
16947 | codesets=jp,jp-ext,kr,cn,cn-ext |
13287 | codesets=jp,jp-ext,kr,zh,zh-ext |
16948 | fi |
13288 | fi |
16949 | |
13289 | |
16950 | cat >>confdefs.h <<\_ACEOF |
13290 | cat >>confdefs.h <<\_ACEOF |
16951 | #define ENCODING_EU 1 |
13291 | #define ENCODING_EU 1 |
16952 | _ACEOF |
13292 | _ACEOF |
… | |
… | |
16971 | KR ) |
13311 | KR ) |
16972 | cat >>confdefs.h <<\_ACEOF |
13312 | cat >>confdefs.h <<\_ACEOF |
16973 | #define ENCODING_KR 1 |
13313 | #define ENCODING_KR 1 |
16974 | _ACEOF |
13314 | _ACEOF |
16975 | ;; |
13315 | ;; |
16976 | CN ) |
13316 | ZH ) |
16977 | cat >>confdefs.h <<\_ACEOF |
13317 | cat >>confdefs.h <<\_ACEOF |
16978 | #define ENCODING_CN 1 |
13318 | #define ENCODING_ZH 1 |
16979 | _ACEOF |
13319 | _ACEOF |
16980 | ;; |
13320 | ;; |
16981 | CN_EXT ) |
13321 | ZH_EXT ) |
16982 | cat >>confdefs.h <<\_ACEOF |
13322 | cat >>confdefs.h <<\_ACEOF |
16983 | #define ENCODING_CN_EXT 1 |
13323 | #define ENCODING_ZH_EXT 1 |
16984 | _ACEOF |
13324 | _ACEOF |
16985 | ;; |
13325 | ;; |
16986 | esac |
13326 | esac |
16987 | done |
13327 | done |
|
|
13328 | |
|
|
13329 | IF_PERL=\# |
|
|
13330 | if test x$support_perl = xyes; then |
|
|
13331 | # Extract the first word of "perl5", so it can be a program name with args. |
|
|
13332 | set dummy perl5; ac_word=$2 |
|
|
13333 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13335 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13337 | else |
|
|
13338 | case $PERL in |
|
|
13339 | [\\/]* | ?:[\\/]*) |
|
|
13340 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13341 | ;; |
|
|
13342 | *) |
|
|
13343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13344 | for as_dir in $PATH |
|
|
13345 | do |
|
|
13346 | IFS=$as_save_IFS |
|
|
13347 | test -z "$as_dir" && as_dir=. |
|
|
13348 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13349 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13350 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13351 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13352 | break 2 |
|
|
13353 | fi |
|
|
13354 | done |
|
|
13355 | done |
|
|
13356 | |
|
|
13357 | ;; |
|
|
13358 | esac |
|
|
13359 | fi |
|
|
13360 | PERL=$ac_cv_path_PERL |
|
|
13361 | |
|
|
13362 | if test -n "$PERL"; then |
|
|
13363 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13364 | echo "${ECHO_T}$PERL" >&6 |
|
|
13365 | else |
|
|
13366 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13367 | echo "${ECHO_T}no" >&6 |
|
|
13368 | fi |
|
|
13369 | |
|
|
13370 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
13371 | set dummy perl; ac_word=$2 |
|
|
13372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13374 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13376 | else |
|
|
13377 | case $PERL in |
|
|
13378 | [\\/]* | ?:[\\/]*) |
|
|
13379 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13380 | ;; |
|
|
13381 | *) |
|
|
13382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13383 | for as_dir in $PATH |
|
|
13384 | do |
|
|
13385 | IFS=$as_save_IFS |
|
|
13386 | test -z "$as_dir" && as_dir=. |
|
|
13387 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13389 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13391 | break 2 |
|
|
13392 | fi |
|
|
13393 | done |
|
|
13394 | done |
|
|
13395 | |
|
|
13396 | ;; |
|
|
13397 | esac |
|
|
13398 | fi |
|
|
13399 | PERL=$ac_cv_path_PERL |
|
|
13400 | |
|
|
13401 | if test -n "$PERL"; then |
|
|
13402 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13403 | echo "${ECHO_T}$PERL" >&6 |
|
|
13404 | else |
|
|
13405 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13406 | echo "${ECHO_T}no" >&6 |
|
|
13407 | fi |
|
|
13408 | |
|
|
13409 | |
|
|
13410 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
|
|
13411 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
|
|
13412 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
|
|
13413 | |
|
|
13414 | save_CXXFLAGS="$CXXFLAGS" |
|
|
13415 | save_LIBS="$LIBS" |
|
|
13416 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13417 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13418 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13419 | /* confdefs.h. */ |
|
|
13420 | _ACEOF |
|
|
13421 | cat confdefs.h >>conftest.$ac_ext |
|
|
13422 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13423 | /* end confdefs.h. */ |
|
|
13424 | |
|
|
13425 | #include <EXTERN.h> |
|
|
13426 | #include <perl.h> |
|
|
13427 | #include <XSUB.h> |
|
|
13428 | |
|
|
13429 | int |
|
|
13430 | main () |
|
|
13431 | { |
|
|
13432 | |
|
|
13433 | PerlInterpreter *perl = perl_alloc (); |
|
|
13434 | |
|
|
13435 | ; |
|
|
13436 | return 0; |
|
|
13437 | } |
|
|
13438 | _ACEOF |
|
|
13439 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13441 | (eval $ac_link) 2>conftest.er1 |
|
|
13442 | ac_status=$? |
|
|
13443 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13444 | rm -f conftest.er1 |
|
|
13445 | cat conftest.err >&5 |
|
|
13446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13447 | (exit $ac_status); } && |
|
|
13448 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13450 | (eval $ac_try) 2>&5 |
|
|
13451 | ac_status=$? |
|
|
13452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13453 | (exit $ac_status); }; } && |
|
|
13454 | { ac_try='test -s conftest$ac_exeext' |
|
|
13455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13456 | (eval $ac_try) 2>&5 |
|
|
13457 | ac_status=$? |
|
|
13458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13459 | (exit $ac_status); }; }; then |
|
|
13460 | rxvt_perl_link=yes |
|
|
13461 | else |
|
|
13462 | echo "$as_me: failed program was:" >&5 |
|
|
13463 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13464 | |
|
|
13465 | rxvt_perl_link=no |
|
|
13466 | fi |
|
|
13467 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13468 | conftest$ac_exeext conftest.$ac_ext |
|
|
13469 | CXXFLAGS="$save_CXXFLAGS" |
|
|
13470 | LIBS="$save_LIBS" |
|
|
13471 | |
|
|
13472 | if test x$rxvt_perl_link = xyes; then |
|
|
13473 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
13474 | echo "${ECHO_T}ok" >&6 |
|
|
13475 | |
|
|
13476 | cat >>confdefs.h <<\_ACEOF |
|
|
13477 | #define ENABLE_PERL 1 |
|
|
13478 | _ACEOF |
|
|
13479 | |
|
|
13480 | IF_PERL= |
|
|
13481 | PERL_O=rxvtperl.o |
|
|
13482 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13483 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13484 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
|
|
13485 | else |
|
|
13486 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
|
|
13487 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
13488 | { (exit 1); exit 1; }; } |
|
|
13489 | fi |
|
|
13490 | else |
|
|
13491 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
|
|
13492 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
|
|
13493 | { (exit 1); exit 1; }; } |
|
|
13494 | fi |
|
|
13495 | fi |
|
|
13496 | |
|
|
13497 | |
|
|
13498 | |
|
|
13499 | |
|
|
13500 | |
|
|
13501 | |
|
|
13502 | |
|
|
13503 | if test x$support_perl = xyes; then |
|
|
13504 | support_frills=yes |
|
|
13505 | fi |
16988 | |
13506 | |
16989 | |
13507 | |
16990 | CFLAGS=${CFLAGS--O} |
13508 | CFLAGS=${CFLAGS--O} |
16991 | LDFLAGS=${LDFLAGS--O} |
13509 | LDFLAGS=${LDFLAGS--O} |
16992 | |
13510 | |
… | |
… | |
17006 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
13524 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
17007 | fi |
13525 | fi |
17008 | |
13526 | |
17009 | |
13527 | |
17010 | |
13528 | |
17011 | |
|
|
17012 | |
|
|
17013 | if test x$support_addstrings = xno; then |
|
|
17014 | |
|
|
17015 | cat >>confdefs.h <<\_ACEOF |
|
|
17016 | #define NO_STRINGS 1 |
|
|
17017 | _ACEOF |
|
|
17018 | |
|
|
17019 | fi |
|
|
17020 | |
|
|
17021 | MCOMMON=./autoconf/Make.common |
|
|
17022 | |
13529 | |
17023 | |
13530 | |
17024 | test "$program_prefix" != NONE && |
13531 | test "$program_prefix" != NONE && |
17025 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
13532 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
17026 | # Use a double $ so make ignores it. |
13533 | # Use a double $ so make ignores it. |
… | |
… | |
17102 | include_time_h="#include <time.h>" |
13609 | include_time_h="#include <time.h>" |
17103 | else |
13610 | else |
17104 | include_time_h="/* #include <time.h> */" |
13611 | include_time_h="/* #include <time.h> */" |
17105 | fi |
13612 | fi |
17106 | |
13613 | |
17107 | ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" |
13614 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
17108 | |
13615 | |
17109 | cat >confcache <<\_ACEOF |
13616 | cat >confcache <<\_ACEOF |
17110 | # This file is a shell script that caches the results of configure |
13617 | # This file is a shell script that caches the results of configure |
17111 | # tests run on this system so they can be shared between configure |
13618 | # tests run on this system so they can be shared between configure |
17112 | # scripts and configure runs, see configure's option --config-cache. |
13619 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
17629 | cat >>$CONFIG_STATUS <<\_ACEOF |
14136 | cat >>$CONFIG_STATUS <<\_ACEOF |
17630 | for ac_config_target in $ac_config_targets |
14137 | for ac_config_target in $ac_config_targets |
17631 | do |
14138 | do |
17632 | case "$ac_config_target" in |
14139 | case "$ac_config_target" in |
17633 | # Handling of arguments. |
14140 | # Handling of arguments. |
17634 | "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; |
|
|
17635 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14141 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
17636 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14142 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
17637 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14143 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
17638 | "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;; |
|
|
17639 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
14144 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
17640 | "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;; |
|
|
17641 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; |
14145 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
17642 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14146 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
17643 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14147 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
17644 | { (exit 1); exit 1; }; };; |
14148 | { (exit 1); exit 1; }; };; |
17645 | esac |
14149 | esac |
17646 | done |
14150 | done |
… | |
… | |
17721 | s,@DEFS@,$DEFS,;t t |
14225 | s,@DEFS@,$DEFS,;t t |
17722 | s,@ECHO_C@,$ECHO_C,;t t |
14226 | s,@ECHO_C@,$ECHO_C,;t t |
17723 | s,@ECHO_N@,$ECHO_N,;t t |
14227 | s,@ECHO_N@,$ECHO_N,;t t |
17724 | s,@ECHO_T@,$ECHO_T,;t t |
14228 | s,@ECHO_T@,$ECHO_T,;t t |
17725 | s,@LIBS@,$LIBS,;t t |
14229 | s,@LIBS@,$LIBS,;t t |
|
|
14230 | s,@build@,$build,;t t |
|
|
14231 | s,@build_cpu@,$build_cpu,;t t |
|
|
14232 | s,@build_vendor@,$build_vendor,;t t |
|
|
14233 | s,@build_os@,$build_os,;t t |
|
|
14234 | s,@host@,$host,;t t |
|
|
14235 | s,@host_cpu@,$host_cpu,;t t |
|
|
14236 | s,@host_vendor@,$host_vendor,;t t |
|
|
14237 | s,@host_os@,$host_os,;t t |
17726 | s,@VERSION@,$VERSION,;t t |
14238 | s,@VERSION@,$VERSION,;t t |
17727 | s,@DATE@,$DATE,;t t |
14239 | s,@DATE@,$DATE,;t t |
17728 | s,@LSMDATE@,$LSMDATE,;t t |
14240 | s,@LSMDATE@,$LSMDATE,;t t |
17729 | s,@LIBVERSION@,$LIBVERSION,;t t |
14241 | s,@LIBVERSION@,$LIBVERSION,;t t |
17730 | s,@CC@,$CC,;t t |
14242 | s,@CC@,$CC,;t t |
… | |
… | |
17739 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
14251 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
17740 | s,@CPP@,$CPP,;t t |
14252 | s,@CPP@,$CPP,;t t |
17741 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
14253 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
17742 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
14254 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
17743 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
14255 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
17744 | s,@AWK@,$AWK,;t t |
14256 | s,@EGREP@,$EGREP,;t t |
17745 | s,@LINKER@,$LINKER,;t t |
14257 | s,@LINKER@,$LINKER,;t t |
17746 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
17747 | s,@EGREP@,$EGREP,;t t |
|
|
17748 | s,@build@,$build,;t t |
|
|
17749 | s,@build_cpu@,$build_cpu,;t t |
|
|
17750 | s,@build_vendor@,$build_vendor,;t t |
|
|
17751 | s,@build_os@,$build_os,;t t |
|
|
17752 | s,@host@,$host,;t t |
|
|
17753 | s,@host_cpu@,$host_cpu,;t t |
|
|
17754 | s,@host_vendor@,$host_vendor,;t t |
|
|
17755 | s,@host_os@,$host_os,;t t |
|
|
17756 | s,@LN_S@,$LN_S,;t t |
|
|
17757 | s,@ECHO@,$ECHO,;t t |
|
|
17758 | s,@RANLIB@,$RANLIB,;t t |
|
|
17759 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
17760 | s,@STRIP@,$STRIP,;t t |
|
|
17761 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
|
17762 | s,@LIBTOOL@,$LIBTOOL,;t t |
|
|
17763 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
14258 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
17764 | s,@RXVTNAME@,$RXVTNAME,;t t |
14259 | s,@RXVTNAME@,$RXVTNAME,;t t |
17765 | s,@MV@,$MV,;t t |
14260 | s,@MV@,$MV,;t t |
17766 | s,@RM@,$RM,;t t |
14261 | s,@RM@,$RM,;t t |
17767 | s,@CP@,$CP,;t t |
14262 | s,@CP@,$CP,;t t |
17768 | s,@LN@,$LN,;t t |
14263 | s,@LN@,$LN,;t t |
17769 | s,@SED@,$SED,;t t |
14264 | s,@SED@,$SED,;t t |
|
|
14265 | s,@ECHO@,$ECHO,;t t |
17770 | s,@CMP@,$CMP,;t t |
14266 | s,@CMP@,$CMP,;t t |
17771 | s,@TBL@,$TBL,;t t |
|
|
17772 | s,@TIC@,$TIC,;t t |
14267 | s,@TIC@,$TIC,;t t |
|
|
14268 | s,@CXXCPP@,$CXXCPP,;t t |
17773 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
14269 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
17774 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
14270 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
17775 | s,@X_LIBS@,$X_LIBS,;t t |
14271 | s,@X_LIBS@,$X_LIBS,;t t |
17776 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
14272 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
17777 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
14273 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
… | |
… | |
17781 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
14277 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
17782 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
14278 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
17783 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
14279 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
17784 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
14280 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
17785 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
14281 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
|
|
14282 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
|
|
14283 | s,@XFT_CONFIG@,$XFT_CONFIG,;t t |
|
|
14284 | s,@PERL@,$PERL,;t t |
|
|
14285 | s,@PERLLIB@,$PERLLIB,;t t |
|
|
14286 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
|
|
14287 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
|
|
14288 | s,@IF_PERL@,$IF_PERL,;t t |
|
|
14289 | s,@PERL_O@,$PERL_O,;t t |
17786 | s,@DEBUG@,$DEBUG,;t t |
14290 | s,@DEBUG@,$DEBUG,;t t |
17787 | s,@DINCLUDE@,$DINCLUDE,;t t |
14291 | s,@DINCLUDE@,$DINCLUDE,;t t |
17788 | s,@DLIB@,$DLIB,;t t |
14292 | s,@DLIB@,$DLIB,;t t |
17789 | s,@include_stdint_h@,$include_stdint_h,;t t |
14293 | s,@include_stdint_h@,$include_stdint_h,;t t |
17790 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
14294 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
… | |
… | |
17799 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
14303 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
17800 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
14304 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
17801 | s,@include_time_h@,$include_time_h,;t t |
14305 | s,@include_time_h@,$include_time_h,;t t |
17802 | s,@LIBOBJS@,$LIBOBJS,;t t |
14306 | s,@LIBOBJS@,$LIBOBJS,;t t |
17803 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
14307 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
17804 | /@MCOMMON@/r $MCOMMON |
|
|
17805 | s,@MCOMMON@,,;t t |
|
|
17806 | CEOF |
14308 | CEOF |
17807 | |
14309 | |
17808 | _ACEOF |
14310 | _ACEOF |
17809 | |
14311 | |
17810 | cat >>$CONFIG_STATUS <<\_ACEOF |
14312 | cat >>$CONFIG_STATUS <<\_ACEOF |
… | |
… | |
18317 | |
14819 | |
18318 | if test x$support_xpm = xyes; then |
14820 | if test x$support_xpm = xyes; then |
18319 | echo " Xpm library: $XPM_LIBS" |
14821 | echo " Xpm library: $XPM_LIBS" |
18320 | fi |
14822 | fi |
18321 | |
14823 | |
18322 | echo " |
|
|
18323 | The following are set in config.h |
|
|
18324 | " |
|
|
18325 | echo " pty/tty type: "$rxvt_cv_ptys |
|
|
18326 | if test x$support_utmp != xyes; then |
14824 | if test x$support_utmp != xyes; then |
18327 | echo " utmp support: disabled" |
14825 | echo " utmp support: disabled" |
18328 | echo |
14826 | echo |
18329 | else |
14827 | else |
18330 | echo " utmp support: enabled |
14828 | echo " utmp support: enabled |
18331 | utmp file: $rxvt_cv_path_utmp |
14829 | utmp file: $path_utmp |
18332 | utmpx file: $rxvt_cv_path_utmpx |
14830 | utmpx file: $path_utmpx |
18333 | wtmp file: $rxvt_cv_path_wtmp |
14831 | wtmp file: $path_wtmp |
18334 | wtmpx file: $rxvt_cv_path_wtmpx |
14832 | wtmpx file: $path_wtmpx |
18335 | lastlog file: $rxvt_cv_path_lastlog |
14833 | lastlog file: $path_lastlog |
18336 | ttys/ttytab file: $rxvt_cv_path_ttytab" |
14834 | lastlogx file: $path_lastlogx" |
18337 | echo |
|
|
18338 | fi |
14835 | fi |
18339 | if test x$term != x; then |
14836 | if test x$term != x; then |
18340 | echo " set TERM to: $term" |
14837 | echo " set TERM to: $term" |
18341 | fi |
14838 | fi |
18342 | if test x$terminfo != x; then |
14839 | if test x$terminfo != x; then |
… | |
… | |
18346 | echo " resource class: $RESCLASS" |
14843 | echo " resource class: $RESCLASS" |
18347 | if test x$RESFALLBACK != x; then |
14844 | if test x$RESFALLBACK != x; then |
18348 | echo " resource class fallback: $RESFALLBACK" |
14845 | echo " resource class fallback: $RESFALLBACK" |
18349 | fi |
14846 | fi |
18350 | echo |
14847 | echo |
18351 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
14848 | echo " embedded perl: $support_perl" |
18352 | echo ".----------------------------------------------------------------." |
14849 | echo |
18353 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
|
|
18354 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
18355 | echo ".----------------------------------------------------------------." |
|
|
18356 | fi |
|
|
18357 | if test x$support_xpm = xneedsmanualspecification; then |
14850 | if test x$support_xpm = xneedsmanualspecification; then |
18358 | echo ".----------------------------------------------------------------." |
14851 | echo ".----------------------------------------------------------------." |
18359 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14852 | echo ". WARNING: --enable-xpm-background was specified however the ." |
18360 | echo ". XPM includes files and libraries could not be found. ." |
14853 | echo ". XPM includes files and libraries could not be found. ." |
18361 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
14854 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
… | |
… | |
18370 | echo ". functions could not be found. ." |
14863 | echo ". functions could not be found. ." |
18371 | echo ". XIM is now being DISABLED! ." |
14864 | echo ". XIM is now being DISABLED! ." |
18372 | echo ".----------------------------------------------------------------." |
14865 | echo ".----------------------------------------------------------------." |
18373 | fi |
14866 | fi |
18374 | |
14867 | |
18375 | echo " *** Please check src/feature.h for further options ***" |
14868 | echo " *** Optionally check src/feature.h for further options ***" |
18376 | echo |
14869 | echo |
18377 | |
14870 | |
18378 | echo ".----------------------------------------------------------------." |
14871 | echo ".----------------------------------------------------------------." |
18379 | echo ". NOTE: most features are disabled by default, try ." |
14872 | echo ". NOTE: some features are disabled by default, try ." |
18380 | echo ". configure --help to get an idea of the optional features ." |
14873 | echo ". configure --help to get an idea of the optional features, ." |
|
|
14874 | echo ". or read ./README.configure ." |
|
|
14875 | echo ". ." |
|
|
14876 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
14877 | echo ". you do not want to read documentation and still want some ." |
|
|
14878 | echo ". useful features. ." |
18381 | echo ".----------------------------------------------------------------." |
14879 | echo ".----------------------------------------------------------------." |
18382 | echo |
14880 | echo |
18383 | |
14881 | |