… | |
… | |
239 | |
239 | |
240 | # CDPATH. |
240 | # CDPATH. |
241 | $as_unset CDPATH |
241 | $as_unset CDPATH |
242 | |
242 | |
243 | |
243 | |
244 | # Find the correct PATH separator. Usually this is `:', but |
|
|
245 | # DJGPP uses `;' like DOS. |
|
|
246 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
|
|
247 | UNAME=${UNAME-`uname 2>/dev/null`} |
|
|
248 | case X$UNAME in |
|
|
249 | *-DOS) lt_cv_sys_path_separator=';' ;; |
|
|
250 | *) lt_cv_sys_path_separator=':' ;; |
|
|
251 | esac |
|
|
252 | fi |
|
|
253 | |
|
|
254 | |
|
|
255 | # Check that we are running under the correct shell. |
|
|
256 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
257 | |
|
|
258 | case "X$ECHO" in |
|
|
259 | X*--fallback-echo) |
|
|
260 | # Remove one level of quotation (which was required for Make). |
|
|
261 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
|
262 | ;; |
|
|
263 | esac |
|
|
264 | |
|
|
265 | echo=${ECHO-echo} |
|
|
266 | if test "X$1" = X--no-reexec; then |
|
|
267 | # Discard the --no-reexec flag, and continue. |
|
|
268 | shift |
|
|
269 | elif test "X$1" = X--fallback-echo; then |
|
|
270 | # Avoid inline document here, it may be left over |
|
|
271 | : |
|
|
272 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
|
|
273 | # Yippee, $echo works! |
|
|
274 | : |
|
|
275 | else |
|
|
276 | # Restart under the correct shell. |
|
|
277 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
|
278 | fi |
|
|
279 | |
|
|
280 | if test "X$1" = X--fallback-echo; then |
|
|
281 | # used as fallback echo |
|
|
282 | shift |
|
|
283 | cat <<EOF |
|
|
284 | |
|
|
285 | EOF |
|
|
286 | exit 0 |
|
|
287 | fi |
|
|
288 | |
|
|
289 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
290 | # if CDPATH is set. |
|
|
291 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
292 | |
|
|
293 | if test -z "$ECHO"; then |
|
|
294 | if test "X${echo_test_string+set}" != Xset; then |
|
|
295 | # find a string as large as possible, as long as the shell can cope with it |
|
|
296 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
|
297 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
|
298 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
|
|
299 | echo_test_string="`eval $cmd`" && |
|
|
300 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
|
|
301 | then |
|
|
302 | break |
|
|
303 | fi |
|
|
304 | done |
|
|
305 | fi |
|
|
306 | |
|
|
307 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
308 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
309 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
310 | : |
|
|
311 | else |
|
|
312 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
|
|
313 | # backslashes. This makes it impossible to quote backslashes using |
|
|
314 | # echo "$something" | sed 's/\\/\\\\/g' |
|
|
315 | # |
|
|
316 | # So, first we look for a working echo in the user's PATH. |
|
|
317 | |
|
|
318 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
|
|
319 | for dir in $PATH /usr/ucb; do |
|
|
320 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
|
321 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
322 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
|
323 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
324 | echo="$dir/echo" |
|
|
325 | break |
|
|
326 | fi |
|
|
327 | done |
|
|
328 | IFS="$save_ifs" |
|
|
329 | |
|
|
330 | if test "X$echo" = Xecho; then |
|
|
331 | # We didn't find a better echo, so look for alternatives. |
|
|
332 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
|
|
333 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
|
|
334 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
335 | # This shell has a builtin print -r that does the trick. |
|
|
336 | echo='print -r' |
|
|
337 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
|
|
338 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
|
339 | # If we have ksh, try running ltconfig again with it. |
|
|
340 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
341 | export ORIGINAL_CONFIG_SHELL |
|
|
342 | CONFIG_SHELL=/bin/ksh |
|
|
343 | export CONFIG_SHELL |
|
|
344 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
|
345 | else |
|
|
346 | # Try using printf. |
|
|
347 | echo='printf %s\n' |
|
|
348 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
349 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
350 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
351 | # Cool, printf works |
|
|
352 | : |
|
|
353 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
354 | test "X$echo_testing_string" = 'X\t' && |
|
|
355 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
357 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
|
358 | export CONFIG_SHELL |
|
|
359 | SHELL="$CONFIG_SHELL" |
|
|
360 | export SHELL |
|
|
361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
362 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
363 | test "X$echo_testing_string" = 'X\t' && |
|
|
364 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
365 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
366 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
367 | else |
|
|
368 | # maybe with a smaller string... |
|
|
369 | prev=: |
|
|
370 | |
|
|
371 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
|
372 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
|
|
373 | then |
|
|
374 | break |
|
|
375 | fi |
|
|
376 | prev="$cmd" |
|
|
377 | done |
|
|
378 | |
|
|
379 | if test "$prev" != 'sed 50q "$0"'; then |
|
|
380 | echo_test_string=`eval $prev` |
|
|
381 | export echo_test_string |
|
|
382 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
|
383 | else |
|
|
384 | # Oops. We lost completely, so just stick with echo. |
|
|
385 | echo=echo |
|
|
386 | fi |
|
|
387 | fi |
|
|
388 | fi |
|
|
389 | fi |
|
|
390 | fi |
|
|
391 | fi |
|
|
392 | |
|
|
393 | # Copy echo and quote the copy suitably for passing to libtool from |
|
|
394 | # the Makefile, instead of quoting the original, which is used later. |
|
|
395 | ECHO=$echo |
|
|
396 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
|
397 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
|
398 | fi |
|
|
399 | |
|
|
400 | |
|
|
401 | |
|
|
402 | # Name of the host. |
244 | # Name of the host. |
403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
404 | # so uname gets run too. |
246 | # so uname gets run too. |
405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
406 | |
248 | |
… | |
… | |
465 | #endif |
307 | #endif |
466 | #if HAVE_UNISTD_H |
308 | #if HAVE_UNISTD_H |
467 | # include <unistd.h> |
309 | # include <unistd.h> |
468 | #endif" |
310 | #endif" |
469 | |
311 | |
470 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER CXXLIB INSTALL_LIBRXVT RXVTNAME TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config 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 LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
471 | ac_subst_files='MCOMMON' |
313 | ac_subst_files='' |
472 | |
314 | |
473 | # Initialize some variables set by options. |
315 | # Initialize some variables set by options. |
474 | ac_init_help= |
316 | ac_init_help= |
475 | ac_init_version=false |
317 | ac_init_version=false |
476 | # The variables have the same names as the options, with |
318 | # The variables have the same names as the options, with |
… | |
… | |
1021 | cat <<\_ACEOF |
863 | cat <<\_ACEOF |
1022 | |
864 | |
1023 | Optional Features: |
865 | Optional Features: |
1024 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
866 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1025 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
867 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1026 | --enable-shared=PKGS build shared libraries default=no |
|
|
1027 | --enable-static=PKGS build static libraries default=yes |
|
|
1028 | --enable-fast-install=PKGS optimize for fast installation default=yes |
|
|
1029 | --disable-libtool-lock avoid locking (might break parallel builds) |
|
|
1030 | --enable-everything enable standard non-multichoice features |
868 | --enable-everything enable standard non-multichoice features |
1031 | NOTE: this option is order dependent |
869 | NOTE: this option is order dependent |
1032 | NOTE: automatically enabled with --enable-shared |
870 | NOTE: automatically enabled with --enable-shared |
1033 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
871 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1034 | --enable-combining enable composition of base and combining characters |
872 | --enable-combining enable composition of base and combining characters |
1035 | --enable-xft enable xft support on systems that have it |
873 | --enable-xft enable xft support on systems that have it |
1036 | --enable-utmp enable utmp (utmpx) support |
874 | --enable-font-styles enable bold and italic support |
1037 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
1038 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
|
|
1039 | --enable-xpm-background enable XPM background pixmaps |
875 | --enable-xpm-background enable background pixmaps |
|
|
876 | --enable-afterimage enable integration with libAfterImage for background images |
|
|
877 | --enable-afterstep enable integration with AfterStep window manager |
1040 | --enable-transparency enable transparent backgrounds |
878 | --enable-transparency enable transparent backgrounds |
1041 | --enable-tinting enable tinting of transparent bg |
879 | --enable-tinting enable tinting of transparent bg |
1042 | --enable-menubar enable menubar |
880 | --enable-fading enable colors fading when off focus |
1043 | --enable-rxvt-scroll enable rxvt style scrollbar |
881 | --enable-rxvt-scroll enable rxvt style scrollbar |
1044 | --enable-next-scroll enable NeXT style scrollbar |
882 | --enable-next-scroll enable NeXT style scrollbar |
1045 | --enable-xterm-scroll enable Xterm style scrollbar |
883 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
884 | --enable-perl enable embedded perl interpreter |
1046 | --enable-plain-scroll enable plain style scrollbar |
885 | --enable-plain-scroll enable plain style scrollbar |
1047 | --enable-half-shadow use half width/height shadow on rxvt scrollbar |
|
|
1048 | --enable-xim XIM (X Input Method) protocol support |
886 | --enable-xim XIM (X Input Method) protocol support |
1049 | --enable-ttygid enable tty setting to group named "tty" |
|
|
1050 | --disable-backspace-key disable handling of the backspace key |
887 | --disable-backspace-key disable handling of the backspace key |
1051 | --disable-delete-key disable handling of the delete key |
888 | --disable-delete-key disable handling of the delete key |
1052 | --disable-resources disable all resource checking |
889 | --disable-resources disable all resource checking |
1053 | --enable-xgetdefault enable resources via X instead of our small version |
|
|
1054 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
890 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1055 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
891 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1056 | --enable-strings enable some replacement system functions |
|
|
1057 | --disable-swapscreen disable swap screen support |
892 | --disable-swapscreen disable swap screen support |
|
|
893 | --enable-iso14755 enable support for extended ISO 14755 modes |
1058 | --enable-frills enable support for rarely used features |
894 | --enable-frills enable support for rarely used features |
1059 | --enable-linespace enable support for linespace |
|
|
1060 | --enable-24bit enable support for using 24bit visuals if available |
|
|
1061 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
895 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1062 | --enable-selectionscrolling enable scrolling during selections |
896 | --enable-selectionscrolling enable scrolling during selections |
1063 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
897 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1064 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
898 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1065 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
|
|
1066 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
|
|
1067 | NOTE: enable only one malloc package |
|
|
1068 | --enable-smart-resize enable smart growth/shrink behaviour |
899 | --enable-smart-resize enable smart growth/shrink behaviour |
1069 | --enable-256-color enable 256-color support |
|
|
1070 | --enable-cursor-blink enable blinking cursor |
|
|
1071 | --enable-text-blink enable blinking text |
900 | --enable-text-blink enable blinking text |
1072 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
901 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
|
|
902 | --enable-utmp enable utmp (utmpx) support |
|
|
903 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
904 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1073 | |
905 | |
1074 | Optional Packages: |
906 | Optional Packages: |
1075 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
907 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1076 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
908 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1077 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
909 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1078 | --with-pic try to use only PIC/non-PIC objects default=use both |
|
|
1079 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) |
910 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1080 | --with-res-name=NAME use this as default resource name (default: urxvt) |
911 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1081 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
912 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1082 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
913 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1083 | --with-term=NAME set the terminal to NAME (default: rxvt) |
914 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1084 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
915 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
… | |
… | |
1188 | echo |
1019 | echo |
1189 | $ac_configure --help |
1020 | $ac_configure --help |
1190 | else |
1021 | else |
1191 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1022 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1192 | fi |
1023 | fi |
1193 | cd "$ac_popdir" |
1024 | cd $ac_popdir |
1194 | done |
1025 | done |
1195 | fi |
1026 | fi |
1196 | |
1027 | |
1197 | test -n "$ac_init_help" && exit 0 |
1028 | test -n "$ac_init_help" && exit 0 |
1198 | if $ac_init_version; then |
1029 | if $ac_init_version; then |
… | |
… | |
1535 | |
1366 | |
1536 | |
1367 | |
1537 | |
1368 | |
1538 | |
1369 | |
1539 | |
1370 | |
|
|
1371 | |
|
|
1372 | |
|
|
1373 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
|
|
1374 | |
|
|
1375 | |
1540 | ac_aux_dir= |
1376 | ac_aux_dir= |
1541 | for ac_dir in autoconf $srcdir/autoconf; do |
1377 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1542 | if test -f $ac_dir/install-sh; then |
1378 | if test -f $ac_dir/install-sh; then |
1543 | ac_aux_dir=$ac_dir |
1379 | ac_aux_dir=$ac_dir |
1544 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1380 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1545 | break |
1381 | break |
1546 | elif test -f $ac_dir/install.sh; then |
1382 | elif test -f $ac_dir/install.sh; then |
… | |
… | |
1552 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1388 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1553 | break |
1389 | break |
1554 | fi |
1390 | fi |
1555 | done |
1391 | done |
1556 | if test -z "$ac_aux_dir"; then |
1392 | if test -z "$ac_aux_dir"; then |
1557 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1393 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1558 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
1394 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1559 | { (exit 1); exit 1; }; } |
1395 | { (exit 1); exit 1; }; } |
1560 | fi |
1396 | fi |
1561 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1397 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1562 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1398 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1563 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1399 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1564 | |
1400 | |
1565 | ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" |
1401 | # Make sure we can run config.sub. |
|
|
1402 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
1403 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
1404 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
1405 | { (exit 1); exit 1; }; } |
|
|
1406 | |
|
|
1407 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
1408 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
1409 | if test "${ac_cv_build+set}" = set; then |
|
|
1410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1411 | else |
|
|
1412 | ac_cv_build_alias=$build_alias |
|
|
1413 | test -z "$ac_cv_build_alias" && |
|
|
1414 | ac_cv_build_alias=`$ac_config_guess` |
|
|
1415 | test -z "$ac_cv_build_alias" && |
|
|
1416 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
1417 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
1418 | { (exit 1); exit 1; }; } |
|
|
1419 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
1420 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
1421 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
1422 | { (exit 1); exit 1; }; } |
|
|
1423 | |
|
|
1424 | fi |
|
|
1425 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
1426 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
1427 | build=$ac_cv_build |
|
|
1428 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1429 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1430 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1431 | |
|
|
1432 | |
|
|
1433 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
1434 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
1435 | if test "${ac_cv_host+set}" = set; then |
|
|
1436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1437 | else |
|
|
1438 | ac_cv_host_alias=$host_alias |
|
|
1439 | test -z "$ac_cv_host_alias" && |
|
|
1440 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
1441 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
1442 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
1443 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
1444 | { (exit 1); exit 1; }; } |
|
|
1445 | |
|
|
1446 | fi |
|
|
1447 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
1448 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
1449 | host=$ac_cv_host |
|
|
1450 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1451 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1452 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1453 | |
1566 | |
1454 | |
1567 | |
1455 | |
1568 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1456 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1569 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1457 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1570 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1571 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1572 | echo "" |
1458 | echo "" |
1573 | echo "configuring for rxvt $VERSION" |
1459 | echo "configuring for rxvt $VERSION" |
1574 | echo "" |
1460 | echo "" |
|
|
1461 | |
|
|
1462 | orig_CXXFLAGS="$CXXFLAGS" |
1575 | |
1463 | |
1576 | |
1464 | |
1577 | ac_ext=c |
1465 | ac_ext=c |
1578 | ac_cpp='$CPP $CPPFLAGS' |
1466 | ac_cpp='$CPP $CPPFLAGS' |
1579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
… | |
… | |
2140 | grep -v '^ *+' conftest.er1 >conftest.err |
2028 | grep -v '^ *+' conftest.er1 >conftest.err |
2141 | rm -f conftest.er1 |
2029 | rm -f conftest.er1 |
2142 | cat conftest.err >&5 |
2030 | cat conftest.err >&5 |
2143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2144 | (exit $ac_status); } && |
2032 | (exit $ac_status); } && |
2145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2033 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2034 | || test ! -s conftest.err' |
2146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2147 | (eval $ac_try) 2>&5 |
2036 | (eval $ac_try) 2>&5 |
2148 | ac_status=$? |
2037 | ac_status=$? |
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2150 | (exit $ac_status); }; } && |
2039 | (exit $ac_status); }; } && |
… | |
… | |
2198 | grep -v '^ *+' conftest.er1 >conftest.err |
2087 | grep -v '^ *+' conftest.er1 >conftest.err |
2199 | rm -f conftest.er1 |
2088 | rm -f conftest.er1 |
2200 | cat conftest.err >&5 |
2089 | cat conftest.err >&5 |
2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2202 | (exit $ac_status); } && |
2091 | (exit $ac_status); } && |
2203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2092 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2093 | || test ! -s conftest.err' |
2204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2205 | (eval $ac_try) 2>&5 |
2095 | (eval $ac_try) 2>&5 |
2206 | ac_status=$? |
2096 | ac_status=$? |
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2208 | (exit $ac_status); }; } && |
2098 | (exit $ac_status); }; } && |
… | |
… | |
2314 | grep -v '^ *+' conftest.er1 >conftest.err |
2204 | grep -v '^ *+' conftest.er1 >conftest.err |
2315 | rm -f conftest.er1 |
2205 | rm -f conftest.er1 |
2316 | cat conftest.err >&5 |
2206 | cat conftest.err >&5 |
2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2318 | (exit $ac_status); } && |
2208 | (exit $ac_status); } && |
2319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2209 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2210 | || test ! -s conftest.err' |
2320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2321 | (eval $ac_try) 2>&5 |
2212 | (eval $ac_try) 2>&5 |
2322 | ac_status=$? |
2213 | ac_status=$? |
2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2324 | (exit $ac_status); }; } && |
2215 | (exit $ac_status); }; } && |
… | |
… | |
2368 | grep -v '^ *+' conftest.er1 >conftest.err |
2259 | grep -v '^ *+' conftest.er1 >conftest.err |
2369 | rm -f conftest.er1 |
2260 | rm -f conftest.er1 |
2370 | cat conftest.err >&5 |
2261 | cat conftest.err >&5 |
2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2372 | (exit $ac_status); } && |
2263 | (exit $ac_status); } && |
2373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2264 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2265 | || test ! -s conftest.err' |
2374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2375 | (eval $ac_try) 2>&5 |
2267 | (eval $ac_try) 2>&5 |
2376 | ac_status=$? |
2268 | ac_status=$? |
2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2378 | (exit $ac_status); }; } && |
2270 | (exit $ac_status); }; } && |
… | |
… | |
2413 | grep -v '^ *+' conftest.er1 >conftest.err |
2305 | grep -v '^ *+' conftest.er1 >conftest.err |
2414 | rm -f conftest.er1 |
2306 | rm -f conftest.er1 |
2415 | cat conftest.err >&5 |
2307 | cat conftest.err >&5 |
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2417 | (exit $ac_status); } && |
2309 | (exit $ac_status); } && |
2418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2310 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2311 | || test ! -s conftest.err' |
2419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2420 | (eval $ac_try) 2>&5 |
2313 | (eval $ac_try) 2>&5 |
2421 | ac_status=$? |
2314 | ac_status=$? |
2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2423 | (exit $ac_status); }; } && |
2316 | (exit $ac_status); }; } && |
… | |
… | |
2457 | grep -v '^ *+' conftest.er1 >conftest.err |
2350 | grep -v '^ *+' conftest.er1 >conftest.err |
2458 | rm -f conftest.er1 |
2351 | rm -f conftest.er1 |
2459 | cat conftest.err >&5 |
2352 | cat conftest.err >&5 |
2460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2461 | (exit $ac_status); } && |
2354 | (exit $ac_status); } && |
2462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2355 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
2356 | || test ! -s conftest.err' |
2463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2464 | (eval $ac_try) 2>&5 |
2358 | (eval $ac_try) 2>&5 |
2465 | ac_status=$? |
2359 | ac_status=$? |
2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2467 | (exit $ac_status); }; } && |
2361 | (exit $ac_status); }; } && |
… | |
… | |
2641 | grep -v '^ *+' conftest.er1 >conftest.err |
2535 | grep -v '^ *+' conftest.er1 >conftest.err |
2642 | rm -f conftest.er1 |
2536 | rm -f conftest.er1 |
2643 | cat conftest.err >&5 |
2537 | cat conftest.err >&5 |
2644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2645 | (exit $ac_status); } && |
2539 | (exit $ac_status); } && |
2646 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2540 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
2541 | || test ! -s conftest.err' |
2647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2648 | (eval $ac_try) 2>&5 |
2543 | (eval $ac_try) 2>&5 |
2649 | ac_status=$? |
2544 | ac_status=$? |
2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2651 | (exit $ac_status); }; } && |
2546 | (exit $ac_status); }; } && |
… | |
… | |
2699 | grep -v '^ *+' conftest.er1 >conftest.err |
2594 | grep -v '^ *+' conftest.er1 >conftest.err |
2700 | rm -f conftest.er1 |
2595 | rm -f conftest.er1 |
2701 | cat conftest.err >&5 |
2596 | cat conftest.err >&5 |
2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2703 | (exit $ac_status); } && |
2598 | (exit $ac_status); } && |
2704 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2599 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
2600 | || test ! -s conftest.err' |
2705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2706 | (eval $ac_try) 2>&5 |
2602 | (eval $ac_try) 2>&5 |
2707 | ac_status=$? |
2603 | ac_status=$? |
2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2709 | (exit $ac_status); }; } && |
2605 | (exit $ac_status); }; } && |
… | |
… | |
2770 | grep -v '^ *+' conftest.er1 >conftest.err |
2666 | grep -v '^ *+' conftest.er1 >conftest.err |
2771 | rm -f conftest.er1 |
2667 | rm -f conftest.er1 |
2772 | cat conftest.err >&5 |
2668 | cat conftest.err >&5 |
2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2774 | (exit $ac_status); } && |
2670 | (exit $ac_status); } && |
2775 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2671 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
2672 | || test ! -s conftest.err' |
2776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2777 | (eval $ac_try) 2>&5 |
2674 | (eval $ac_try) 2>&5 |
2778 | ac_status=$? |
2675 | ac_status=$? |
2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2780 | (exit $ac_status); }; } && |
2677 | (exit $ac_status); }; } && |
… | |
… | |
2814 | grep -v '^ *+' conftest.er1 >conftest.err |
2711 | grep -v '^ *+' conftest.er1 >conftest.err |
2815 | rm -f conftest.er1 |
2712 | rm -f conftest.er1 |
2816 | cat conftest.err >&5 |
2713 | cat conftest.err >&5 |
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2818 | (exit $ac_status); } && |
2715 | (exit $ac_status); } && |
2819 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2716 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
2717 | || test ! -s conftest.err' |
2820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2821 | (eval $ac_try) 2>&5 |
2719 | (eval $ac_try) 2>&5 |
2822 | ac_status=$? |
2720 | ac_status=$? |
2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2824 | (exit $ac_status); }; } && |
2722 | (exit $ac_status); }; } && |
… | |
… | |
3160 | |
3058 | |
3161 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3059 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3162 | |
3060 | |
3163 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3061 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3164 | |
3062 | |
3165 | for ac_prog in gawk mawk nawk awk |
3063 | |
3166 | do |
3064 | |
|
|
3065 | |
|
|
3066 | echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
3067 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
|
3068 | if test "${ac_cv_prog_egrep+set}" = set; then |
|
|
3069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3070 | else |
|
|
3071 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
3072 | then ac_cv_prog_egrep='grep -E' |
|
|
3073 | else ac_cv_prog_egrep='egrep' |
|
|
3074 | fi |
|
|
3075 | fi |
|
|
3076 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
3077 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
3078 | EGREP=$ac_cv_prog_egrep |
|
|
3079 | |
|
|
3080 | |
|
|
3081 | |
|
|
3082 | echo "$as_me:$LINENO: checking for AIX" >&5 |
|
|
3083 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
|
|
3084 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3085 | /* confdefs.h. */ |
|
|
3086 | _ACEOF |
|
|
3087 | cat confdefs.h >>conftest.$ac_ext |
|
|
3088 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3089 | /* end confdefs.h. */ |
|
|
3090 | #ifdef _AIX |
|
|
3091 | yes |
|
|
3092 | #endif |
|
|
3093 | |
|
|
3094 | _ACEOF |
|
|
3095 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3096 | $EGREP "yes" >/dev/null 2>&1; then |
|
|
3097 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
3098 | echo "${ECHO_T}yes" >&6 |
|
|
3099 | cat >>confdefs.h <<\_ACEOF |
|
|
3100 | #define _ALL_SOURCE 1 |
|
|
3101 | _ACEOF |
|
|
3102 | |
|
|
3103 | else |
|
|
3104 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3105 | echo "${ECHO_T}no" >&6 |
|
|
3106 | fi |
|
|
3107 | rm -f conftest* |
|
|
3108 | |
|
|
3109 | |
|
|
3110 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
|
|
3111 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
|
|
3112 | if test "${ac_cv_search_strerror+set}" = set; then |
|
|
3113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3114 | else |
|
|
3115 | ac_func_search_save_LIBS=$LIBS |
|
|
3116 | ac_cv_search_strerror=no |
|
|
3117 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3118 | /* confdefs.h. */ |
|
|
3119 | _ACEOF |
|
|
3120 | cat confdefs.h >>conftest.$ac_ext |
|
|
3121 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3122 | /* end confdefs.h. */ |
|
|
3123 | |
|
|
3124 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3125 | #ifdef __cplusplus |
|
|
3126 | extern "C" |
|
|
3127 | #endif |
|
|
3128 | /* We use char because int might match the return type of a gcc2 |
|
|
3129 | builtin and then its argument prototype would still apply. */ |
|
|
3130 | char strerror (); |
|
|
3131 | int |
|
|
3132 | main () |
|
|
3133 | { |
|
|
3134 | strerror (); |
|
|
3135 | ; |
|
|
3136 | return 0; |
|
|
3137 | } |
|
|
3138 | _ACEOF |
|
|
3139 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3141 | (eval $ac_link) 2>conftest.er1 |
|
|
3142 | ac_status=$? |
|
|
3143 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3144 | rm -f conftest.er1 |
|
|
3145 | cat conftest.err >&5 |
|
|
3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3147 | (exit $ac_status); } && |
|
|
3148 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
3149 | || test ! -s conftest.err' |
|
|
3150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3151 | (eval $ac_try) 2>&5 |
|
|
3152 | ac_status=$? |
|
|
3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3154 | (exit $ac_status); }; } && |
|
|
3155 | { ac_try='test -s conftest$ac_exeext' |
|
|
3156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3157 | (eval $ac_try) 2>&5 |
|
|
3158 | ac_status=$? |
|
|
3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3160 | (exit $ac_status); }; }; then |
|
|
3161 | ac_cv_search_strerror="none required" |
|
|
3162 | else |
|
|
3163 | echo "$as_me: failed program was:" >&5 |
|
|
3164 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3165 | |
|
|
3166 | fi |
|
|
3167 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3168 | conftest$ac_exeext conftest.$ac_ext |
|
|
3169 | if test "$ac_cv_search_strerror" = no; then |
|
|
3170 | for ac_lib in cposix; do |
|
|
3171 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
3172 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3173 | /* confdefs.h. */ |
|
|
3174 | _ACEOF |
|
|
3175 | cat confdefs.h >>conftest.$ac_ext |
|
|
3176 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3177 | /* end confdefs.h. */ |
|
|
3178 | |
|
|
3179 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3180 | #ifdef __cplusplus |
|
|
3181 | extern "C" |
|
|
3182 | #endif |
|
|
3183 | /* We use char because int might match the return type of a gcc2 |
|
|
3184 | builtin and then its argument prototype would still apply. */ |
|
|
3185 | char strerror (); |
|
|
3186 | int |
|
|
3187 | main () |
|
|
3188 | { |
|
|
3189 | strerror (); |
|
|
3190 | ; |
|
|
3191 | return 0; |
|
|
3192 | } |
|
|
3193 | _ACEOF |
|
|
3194 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3196 | (eval $ac_link) 2>conftest.er1 |
|
|
3197 | ac_status=$? |
|
|
3198 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3199 | rm -f conftest.er1 |
|
|
3200 | cat conftest.err >&5 |
|
|
3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3202 | (exit $ac_status); } && |
|
|
3203 | { ac_try='test -z "$ac_c_werror_flag" |
|
|
3204 | || test ! -s conftest.err' |
|
|
3205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3206 | (eval $ac_try) 2>&5 |
|
|
3207 | ac_status=$? |
|
|
3208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3209 | (exit $ac_status); }; } && |
|
|
3210 | { ac_try='test -s conftest$ac_exeext' |
|
|
3211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3212 | (eval $ac_try) 2>&5 |
|
|
3213 | ac_status=$? |
|
|
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3215 | (exit $ac_status); }; }; then |
|
|
3216 | ac_cv_search_strerror="-l$ac_lib" |
|
|
3217 | break |
|
|
3218 | else |
|
|
3219 | echo "$as_me: failed program was:" >&5 |
|
|
3220 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3221 | |
|
|
3222 | fi |
|
|
3223 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3224 | conftest$ac_exeext conftest.$ac_ext |
|
|
3225 | done |
|
|
3226 | fi |
|
|
3227 | LIBS=$ac_func_search_save_LIBS |
|
|
3228 | fi |
|
|
3229 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
|
|
3230 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
|
|
3231 | if test "$ac_cv_search_strerror" != no; then |
|
|
3232 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
|
|
3233 | |
|
|
3234 | fi |
|
|
3235 | |
|
|
3236 | ac_ext=cc |
|
|
3237 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3238 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3239 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3240 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3241 | |
|
|
3242 | |
|
|
3243 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3244 | echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
|
|
3245 | echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6 |
|
|
3246 | save_CXX="$CXX" |
|
|
3247 | save_LIBS="$LIBS" |
|
|
3248 | CXX="$CC" |
|
|
3249 | LIBS="$LIBS -lsupc++" |
|
|
3250 | LINKER="$CC" |
|
|
3251 | |
|
|
3252 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3253 | /* confdefs.h. */ |
|
|
3254 | _ACEOF |
|
|
3255 | cat confdefs.h >>conftest.$ac_ext |
|
|
3256 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3257 | /* end confdefs.h. */ |
|
|
3258 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
3259 | int |
|
|
3260 | main () |
|
|
3261 | { |
|
|
3262 | |
|
|
3263 | ; |
|
|
3264 | return 0; |
|
|
3265 | } |
|
|
3266 | _ACEOF |
|
|
3267 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3269 | (eval $ac_link) 2>conftest.er1 |
|
|
3270 | ac_status=$? |
|
|
3271 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3272 | rm -f conftest.er1 |
|
|
3273 | cat conftest.err >&5 |
|
|
3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3275 | (exit $ac_status); } && |
|
|
3276 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3277 | || test ! -s conftest.err' |
|
|
3278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3279 | (eval $ac_try) 2>&5 |
|
|
3280 | ac_status=$? |
|
|
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3282 | (exit $ac_status); }; } && |
|
|
3283 | { ac_try='test -s conftest$ac_exeext' |
|
|
3284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3285 | (eval $ac_try) 2>&5 |
|
|
3286 | ac_status=$? |
|
|
3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3288 | (exit $ac_status); }; }; then |
|
|
3289 | |
|
|
3290 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
3291 | echo "${ECHO_T}ok" >&6 |
|
|
3292 | CXXLIB="-lsupc++" |
|
|
3293 | |
|
|
3294 | else |
|
|
3295 | echo "$as_me: failed program was:" >&5 |
|
|
3296 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3297 | |
|
|
3298 | |
|
|
3299 | echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
|
|
3300 | echo "${ECHO_T}no, making everything bigger and slower" >&6 |
|
|
3301 | LIBS="$save_LIBS" |
|
|
3302 | LINKER="$save_CXX" |
|
|
3303 | |
|
|
3304 | |
|
|
3305 | fi |
|
|
3306 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3307 | conftest$ac_exeext conftest.$ac_ext |
|
|
3308 | CXX="$save_CXX" |
|
|
3309 | fi |
|
|
3310 | LINKER=$LINKER |
|
|
3311 | |
|
|
3312 | |
|
|
3313 | |
|
|
3314 | if test -z "$orig_CXXFLAGS"; then |
|
|
3315 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3316 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3317 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3318 | /* confdefs.h. */ |
|
|
3319 | _ACEOF |
|
|
3320 | cat confdefs.h >>conftest.$ac_ext |
|
|
3321 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3322 | /* end confdefs.h. */ |
|
|
3323 | |
|
|
3324 | int |
|
|
3325 | main () |
|
|
3326 | { |
|
|
3327 | |
|
|
3328 | ; |
|
|
3329 | return 0; |
|
|
3330 | } |
|
|
3331 | _ACEOF |
|
|
3332 | rm -f conftest.$ac_objext |
|
|
3333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3334 | (eval $ac_compile) 2>conftest.er1 |
|
|
3335 | ac_status=$? |
|
|
3336 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3337 | rm -f conftest.er1 |
|
|
3338 | cat conftest.err >&5 |
|
|
3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3340 | (exit $ac_status); } && |
|
|
3341 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3342 | || test ! -s conftest.err' |
|
|
3343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3344 | (eval $ac_try) 2>&5 |
|
|
3345 | ac_status=$? |
|
|
3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3347 | (exit $ac_status); }; } && |
|
|
3348 | { ac_try='test -s conftest.$ac_objext' |
|
|
3349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3350 | (eval $ac_try) 2>&5 |
|
|
3351 | ac_status=$? |
|
|
3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3353 | (exit $ac_status); }; }; then |
|
|
3354 | : |
|
|
3355 | else |
|
|
3356 | echo "$as_me: failed program was:" >&5 |
|
|
3357 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3358 | |
|
|
3359 | CXXFLAGS="-g -O3" |
|
|
3360 | fi |
|
|
3361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3362 | else |
|
|
3363 | CXXFLAGS="-O" |
|
|
3364 | fi |
|
|
3365 | CFLAGS="$CXXFLAGS" |
|
|
3366 | fi |
|
|
3367 | |
|
|
3368 | |
|
|
3369 | cat >>confdefs.h <<\_ACEOF |
|
|
3370 | #define _GNU_SOURCE 1 |
|
|
3371 | _ACEOF |
|
|
3372 | |
|
|
3373 | |
|
|
3374 | case $host in |
|
|
3375 | *-*-solaris* ) |
|
|
3376 | |
|
|
3377 | cat >>confdefs.h <<\_ACEOF |
|
|
3378 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3379 | _ACEOF |
|
|
3380 | |
|
|
3381 | |
|
|
3382 | cat >>confdefs.h <<\_ACEOF |
|
|
3383 | #define _XOPEN_SOURCE 2 |
|
|
3384 | _ACEOF |
|
|
3385 | |
|
|
3386 | |
|
|
3387 | cat >>confdefs.h <<\_ACEOF |
|
|
3388 | #define __EXTENSIONS__ 1 |
|
|
3389 | _ACEOF |
|
|
3390 | |
|
|
3391 | ;; |
|
|
3392 | esac |
|
|
3393 | |
|
|
3394 | |
|
|
3395 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3396 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
|
|
3397 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3399 | else |
|
|
3400 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3401 | /* confdefs.h. */ |
|
|
3402 | _ACEOF |
|
|
3403 | cat confdefs.h >>conftest.$ac_ext |
|
|
3404 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3405 | /* end confdefs.h. */ |
|
|
3406 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3407 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3408 | #define setlocale innocuous_setlocale |
|
|
3409 | |
|
|
3410 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3411 | which can conflict with char setlocale (); below. |
|
|
3412 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3413 | <limits.h> exists even on freestanding compilers. */ |
|
|
3414 | |
|
|
3415 | #ifdef __STDC__ |
|
|
3416 | # include <limits.h> |
|
|
3417 | #else |
|
|
3418 | # include <assert.h> |
|
|
3419 | #endif |
|
|
3420 | |
|
|
3421 | #undef setlocale |
|
|
3422 | |
|
|
3423 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3424 | #ifdef __cplusplus |
|
|
3425 | extern "C" |
|
|
3426 | { |
|
|
3427 | #endif |
|
|
3428 | /* We use char because int might match the return type of a gcc2 |
|
|
3429 | builtin and then its argument prototype would still apply. */ |
|
|
3430 | char setlocale (); |
|
|
3431 | /* The GNU C library defines this for functions which it implements |
|
|
3432 | to always fail with ENOSYS. Some functions are actually named |
|
|
3433 | something starting with __ and the normal name is an alias. */ |
|
|
3434 | #if defined (__stub_setlocale) || defined (__stub___setlocale) |
|
|
3435 | choke me |
|
|
3436 | #else |
|
|
3437 | char (*f) () = setlocale; |
|
|
3438 | #endif |
|
|
3439 | #ifdef __cplusplus |
|
|
3440 | } |
|
|
3441 | #endif |
|
|
3442 | |
|
|
3443 | int |
|
|
3444 | main () |
|
|
3445 | { |
|
|
3446 | return f != setlocale; |
|
|
3447 | ; |
|
|
3448 | return 0; |
|
|
3449 | } |
|
|
3450 | _ACEOF |
|
|
3451 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3453 | (eval $ac_link) 2>conftest.er1 |
|
|
3454 | ac_status=$? |
|
|
3455 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3456 | rm -f conftest.er1 |
|
|
3457 | cat conftest.err >&5 |
|
|
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3459 | (exit $ac_status); } && |
|
|
3460 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3461 | || test ! -s conftest.err' |
|
|
3462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3463 | (eval $ac_try) 2>&5 |
|
|
3464 | ac_status=$? |
|
|
3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3466 | (exit $ac_status); }; } && |
|
|
3467 | { ac_try='test -s conftest$ac_exeext' |
|
|
3468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3469 | (eval $ac_try) 2>&5 |
|
|
3470 | ac_status=$? |
|
|
3471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3472 | (exit $ac_status); }; }; then |
|
|
3473 | ac_cv_func_setlocale=yes |
|
|
3474 | else |
|
|
3475 | echo "$as_me: failed program was:" >&5 |
|
|
3476 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3477 | |
|
|
3478 | ac_cv_func_setlocale=no |
|
|
3479 | fi |
|
|
3480 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3481 | conftest$ac_exeext conftest.$ac_ext |
|
|
3482 | fi |
|
|
3483 | echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
|
|
3484 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6 |
|
|
3485 | if test $ac_cv_func_setlocale = yes; then |
|
|
3486 | : |
|
|
3487 | else |
|
|
3488 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
|
|
3489 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
|
|
3490 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
|
|
3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3492 | else |
|
|
3493 | ac_check_lib_save_LIBS=$LIBS |
|
|
3494 | LIBS="-lxpg4 $LIBS" |
|
|
3495 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3496 | /* confdefs.h. */ |
|
|
3497 | _ACEOF |
|
|
3498 | cat confdefs.h >>conftest.$ac_ext |
|
|
3499 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3500 | /* end confdefs.h. */ |
|
|
3501 | |
|
|
3502 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3503 | #ifdef __cplusplus |
|
|
3504 | extern "C" |
|
|
3505 | #endif |
|
|
3506 | /* We use char because int might match the return type of a gcc2 |
|
|
3507 | builtin and then its argument prototype would still apply. */ |
|
|
3508 | char setlocale (); |
|
|
3509 | int |
|
|
3510 | main () |
|
|
3511 | { |
|
|
3512 | setlocale (); |
|
|
3513 | ; |
|
|
3514 | return 0; |
|
|
3515 | } |
|
|
3516 | _ACEOF |
|
|
3517 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3519 | (eval $ac_link) 2>conftest.er1 |
|
|
3520 | ac_status=$? |
|
|
3521 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3522 | rm -f conftest.er1 |
|
|
3523 | cat conftest.err >&5 |
|
|
3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3525 | (exit $ac_status); } && |
|
|
3526 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3527 | || test ! -s conftest.err' |
|
|
3528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3529 | (eval $ac_try) 2>&5 |
|
|
3530 | ac_status=$? |
|
|
3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3532 | (exit $ac_status); }; } && |
|
|
3533 | { ac_try='test -s conftest$ac_exeext' |
|
|
3534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3535 | (eval $ac_try) 2>&5 |
|
|
3536 | ac_status=$? |
|
|
3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3538 | (exit $ac_status); }; }; then |
|
|
3539 | ac_cv_lib_xpg4_setlocale=yes |
|
|
3540 | else |
|
|
3541 | echo "$as_me: failed program was:" >&5 |
|
|
3542 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3543 | |
|
|
3544 | ac_cv_lib_xpg4_setlocale=no |
|
|
3545 | fi |
|
|
3546 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3547 | conftest$ac_exeext conftest.$ac_ext |
|
|
3548 | LIBS=$ac_check_lib_save_LIBS |
|
|
3549 | fi |
|
|
3550 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 |
|
|
3551 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
|
|
3552 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
|
|
3553 | LIBS="$LIBS -lxpg4" |
|
|
3554 | fi |
|
|
3555 | |
|
|
3556 | fi |
|
|
3557 | |
|
|
3558 | |
|
|
3559 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
3560 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
3561 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3563 | else |
|
|
3564 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3565 | /* confdefs.h. */ |
|
|
3566 | _ACEOF |
|
|
3567 | cat confdefs.h >>conftest.$ac_ext |
|
|
3568 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3569 | /* end confdefs.h. */ |
|
|
3570 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
3571 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3572 | #define gethostbyname innocuous_gethostbyname |
|
|
3573 | |
|
|
3574 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3575 | which can conflict with char gethostbyname (); below. |
|
|
3576 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3577 | <limits.h> exists even on freestanding compilers. */ |
|
|
3578 | |
|
|
3579 | #ifdef __STDC__ |
|
|
3580 | # include <limits.h> |
|
|
3581 | #else |
|
|
3582 | # include <assert.h> |
|
|
3583 | #endif |
|
|
3584 | |
|
|
3585 | #undef gethostbyname |
|
|
3586 | |
|
|
3587 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3588 | #ifdef __cplusplus |
|
|
3589 | extern "C" |
|
|
3590 | { |
|
|
3591 | #endif |
|
|
3592 | /* We use char because int might match the return type of a gcc2 |
|
|
3593 | builtin and then its argument prototype would still apply. */ |
|
|
3594 | char gethostbyname (); |
|
|
3595 | /* The GNU C library defines this for functions which it implements |
|
|
3596 | to always fail with ENOSYS. Some functions are actually named |
|
|
3597 | something starting with __ and the normal name is an alias. */ |
|
|
3598 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
|
|
3599 | choke me |
|
|
3600 | #else |
|
|
3601 | char (*f) () = gethostbyname; |
|
|
3602 | #endif |
|
|
3603 | #ifdef __cplusplus |
|
|
3604 | } |
|
|
3605 | #endif |
|
|
3606 | |
|
|
3607 | int |
|
|
3608 | main () |
|
|
3609 | { |
|
|
3610 | return f != gethostbyname; |
|
|
3611 | ; |
|
|
3612 | return 0; |
|
|
3613 | } |
|
|
3614 | _ACEOF |
|
|
3615 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3617 | (eval $ac_link) 2>conftest.er1 |
|
|
3618 | ac_status=$? |
|
|
3619 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3620 | rm -f conftest.er1 |
|
|
3621 | cat conftest.err >&5 |
|
|
3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3623 | (exit $ac_status); } && |
|
|
3624 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3625 | || test ! -s conftest.err' |
|
|
3626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3627 | (eval $ac_try) 2>&5 |
|
|
3628 | ac_status=$? |
|
|
3629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3630 | (exit $ac_status); }; } && |
|
|
3631 | { ac_try='test -s conftest$ac_exeext' |
|
|
3632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3633 | (eval $ac_try) 2>&5 |
|
|
3634 | ac_status=$? |
|
|
3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3636 | (exit $ac_status); }; }; then |
|
|
3637 | ac_cv_func_gethostbyname=yes |
|
|
3638 | else |
|
|
3639 | echo "$as_me: failed program was:" >&5 |
|
|
3640 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3641 | |
|
|
3642 | ac_cv_func_gethostbyname=no |
|
|
3643 | fi |
|
|
3644 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3645 | conftest$ac_exeext conftest.$ac_ext |
|
|
3646 | fi |
|
|
3647 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
3648 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
|
3649 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
3650 | : |
|
|
3651 | else |
|
|
3652 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
|
|
3653 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
|
|
3654 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
|
|
3655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3656 | else |
|
|
3657 | ac_check_lib_save_LIBS=$LIBS |
|
|
3658 | LIBS="-lnsl $LIBS" |
|
|
3659 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3660 | /* confdefs.h. */ |
|
|
3661 | _ACEOF |
|
|
3662 | cat confdefs.h >>conftest.$ac_ext |
|
|
3663 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3664 | /* end confdefs.h. */ |
|
|
3665 | |
|
|
3666 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3667 | #ifdef __cplusplus |
|
|
3668 | extern "C" |
|
|
3669 | #endif |
|
|
3670 | /* We use char because int might match the return type of a gcc2 |
|
|
3671 | builtin and then its argument prototype would still apply. */ |
|
|
3672 | char gethostbyname (); |
|
|
3673 | int |
|
|
3674 | main () |
|
|
3675 | { |
|
|
3676 | gethostbyname (); |
|
|
3677 | ; |
|
|
3678 | return 0; |
|
|
3679 | } |
|
|
3680 | _ACEOF |
|
|
3681 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3683 | (eval $ac_link) 2>conftest.er1 |
|
|
3684 | ac_status=$? |
|
|
3685 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3686 | rm -f conftest.er1 |
|
|
3687 | cat conftest.err >&5 |
|
|
3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3689 | (exit $ac_status); } && |
|
|
3690 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3691 | || test ! -s conftest.err' |
|
|
3692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3693 | (eval $ac_try) 2>&5 |
|
|
3694 | ac_status=$? |
|
|
3695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3696 | (exit $ac_status); }; } && |
|
|
3697 | { ac_try='test -s conftest$ac_exeext' |
|
|
3698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3699 | (eval $ac_try) 2>&5 |
|
|
3700 | ac_status=$? |
|
|
3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3702 | (exit $ac_status); }; }; then |
|
|
3703 | ac_cv_lib_nsl_gethostbyname=yes |
|
|
3704 | else |
|
|
3705 | echo "$as_me: failed program was:" >&5 |
|
|
3706 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3707 | |
|
|
3708 | ac_cv_lib_nsl_gethostbyname=no |
|
|
3709 | fi |
|
|
3710 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3711 | conftest$ac_exeext conftest.$ac_ext |
|
|
3712 | LIBS=$ac_check_lib_save_LIBS |
|
|
3713 | fi |
|
|
3714 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
3715 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
|
|
3716 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
3717 | LIBS="$LIBS -lnsl" |
|
|
3718 | fi |
|
|
3719 | |
|
|
3720 | fi |
|
|
3721 | |
|
|
3722 | echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
3723 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
|
|
3724 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
3725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3726 | else |
|
|
3727 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3728 | /* confdefs.h. */ |
|
|
3729 | _ACEOF |
|
|
3730 | cat confdefs.h >>conftest.$ac_ext |
|
|
3731 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3732 | /* end confdefs.h. */ |
|
|
3733 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
3734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3735 | #define socket innocuous_socket |
|
|
3736 | |
|
|
3737 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3738 | which can conflict with char socket (); below. |
|
|
3739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3740 | <limits.h> exists even on freestanding compilers. */ |
|
|
3741 | |
|
|
3742 | #ifdef __STDC__ |
|
|
3743 | # include <limits.h> |
|
|
3744 | #else |
|
|
3745 | # include <assert.h> |
|
|
3746 | #endif |
|
|
3747 | |
|
|
3748 | #undef socket |
|
|
3749 | |
|
|
3750 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3751 | #ifdef __cplusplus |
|
|
3752 | extern "C" |
|
|
3753 | { |
|
|
3754 | #endif |
|
|
3755 | /* We use char because int might match the return type of a gcc2 |
|
|
3756 | builtin and then its argument prototype would still apply. */ |
|
|
3757 | char socket (); |
|
|
3758 | /* The GNU C library defines this for functions which it implements |
|
|
3759 | to always fail with ENOSYS. Some functions are actually named |
|
|
3760 | something starting with __ and the normal name is an alias. */ |
|
|
3761 | #if defined (__stub_socket) || defined (__stub___socket) |
|
|
3762 | choke me |
|
|
3763 | #else |
|
|
3764 | char (*f) () = socket; |
|
|
3765 | #endif |
|
|
3766 | #ifdef __cplusplus |
|
|
3767 | } |
|
|
3768 | #endif |
|
|
3769 | |
|
|
3770 | int |
|
|
3771 | main () |
|
|
3772 | { |
|
|
3773 | return f != socket; |
|
|
3774 | ; |
|
|
3775 | return 0; |
|
|
3776 | } |
|
|
3777 | _ACEOF |
|
|
3778 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3780 | (eval $ac_link) 2>conftest.er1 |
|
|
3781 | ac_status=$? |
|
|
3782 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3783 | rm -f conftest.er1 |
|
|
3784 | cat conftest.err >&5 |
|
|
3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3786 | (exit $ac_status); } && |
|
|
3787 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3788 | || test ! -s conftest.err' |
|
|
3789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3790 | (eval $ac_try) 2>&5 |
|
|
3791 | ac_status=$? |
|
|
3792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3793 | (exit $ac_status); }; } && |
|
|
3794 | { ac_try='test -s conftest$ac_exeext' |
|
|
3795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3796 | (eval $ac_try) 2>&5 |
|
|
3797 | ac_status=$? |
|
|
3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3799 | (exit $ac_status); }; }; then |
|
|
3800 | ac_cv_func_socket=yes |
|
|
3801 | else |
|
|
3802 | echo "$as_me: failed program was:" >&5 |
|
|
3803 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3804 | |
|
|
3805 | ac_cv_func_socket=no |
|
|
3806 | fi |
|
|
3807 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3808 | conftest$ac_exeext conftest.$ac_ext |
|
|
3809 | fi |
|
|
3810 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
3811 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
|
|
3812 | if test $ac_cv_func_socket = yes; then |
|
|
3813 | : |
|
|
3814 | else |
|
|
3815 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
|
|
3816 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
|
|
3817 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
|
|
3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3819 | else |
|
|
3820 | ac_check_lib_save_LIBS=$LIBS |
|
|
3821 | LIBS="-lsocket $LIBS" |
|
|
3822 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3823 | /* confdefs.h. */ |
|
|
3824 | _ACEOF |
|
|
3825 | cat confdefs.h >>conftest.$ac_ext |
|
|
3826 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3827 | /* end confdefs.h. */ |
|
|
3828 | |
|
|
3829 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3830 | #ifdef __cplusplus |
|
|
3831 | extern "C" |
|
|
3832 | #endif |
|
|
3833 | /* We use char because int might match the return type of a gcc2 |
|
|
3834 | builtin and then its argument prototype would still apply. */ |
|
|
3835 | char socket (); |
|
|
3836 | int |
|
|
3837 | main () |
|
|
3838 | { |
|
|
3839 | socket (); |
|
|
3840 | ; |
|
|
3841 | return 0; |
|
|
3842 | } |
|
|
3843 | _ACEOF |
|
|
3844 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3846 | (eval $ac_link) 2>conftest.er1 |
|
|
3847 | ac_status=$? |
|
|
3848 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3849 | rm -f conftest.er1 |
|
|
3850 | cat conftest.err >&5 |
|
|
3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3852 | (exit $ac_status); } && |
|
|
3853 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
3854 | || test ! -s conftest.err' |
|
|
3855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3856 | (eval $ac_try) 2>&5 |
|
|
3857 | ac_status=$? |
|
|
3858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3859 | (exit $ac_status); }; } && |
|
|
3860 | { ac_try='test -s conftest$ac_exeext' |
|
|
3861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3862 | (eval $ac_try) 2>&5 |
|
|
3863 | ac_status=$? |
|
|
3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3865 | (exit $ac_status); }; }; then |
|
|
3866 | ac_cv_lib_socket_socket=yes |
|
|
3867 | else |
|
|
3868 | echo "$as_me: failed program was:" >&5 |
|
|
3869 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3870 | |
|
|
3871 | ac_cv_lib_socket_socket=no |
|
|
3872 | fi |
|
|
3873 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3874 | conftest$ac_exeext conftest.$ac_ext |
|
|
3875 | LIBS=$ac_check_lib_save_LIBS |
|
|
3876 | fi |
|
|
3877 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
|
|
3878 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
|
|
3879 | if test $ac_cv_lib_socket_socket = yes; then |
|
|
3880 | LIBS="$LIBS -lsocket" |
|
|
3881 | fi |
|
|
3882 | |
|
|
3883 | fi |
|
|
3884 | |
|
|
3885 | |
|
|
3886 | |
|
|
3887 | support_frills=yes |
|
|
3888 | support_inheritpixmap=yes |
|
|
3889 | support_tinting=yes |
|
|
3890 | support_fading=yes |
|
|
3891 | support_keepscrolling=yes |
|
|
3892 | support_selectionscrolling=yes |
|
|
3893 | support_mousewheel=yes |
|
|
3894 | support_mouseslipwheel=yes |
|
|
3895 | support_text_blink=yes |
|
|
3896 | support_pointer_blank=yes |
|
|
3897 | support_scroll_rxvt=yes |
|
|
3898 | support_scroll_next=yes |
|
|
3899 | support_scroll_xterm=yes |
|
|
3900 | support_scroll_plain=yes |
|
|
3901 | support_xim=yes |
|
|
3902 | support_xpm=yes |
|
|
3903 | support_afterimage=yes |
|
|
3904 | support_afterstep=yes |
|
|
3905 | support_xft=yes |
|
|
3906 | support_unicode3=no |
|
|
3907 | support_combining=yes |
|
|
3908 | support_8bitctrls=no |
|
|
3909 | support_iso14755=yes |
|
|
3910 | support_styles=yes |
|
|
3911 | support_perl=yes |
|
|
3912 | codesets=all |
|
|
3913 | |
|
|
3914 | |
|
|
3915 | if test "x$enable_shared" = xyes; then |
|
|
3916 | |
|
|
3917 | cat >>confdefs.h <<\_ACEOF |
|
|
3918 | #define LIBRXVT 1 |
|
|
3919 | _ACEOF |
|
|
3920 | |
|
|
3921 | INSTALL_LIBRXVT=yes |
|
|
3922 | fi |
|
|
3923 | |
|
|
3924 | |
|
|
3925 | # Check whether --enable-everything or --disable-everything was given. |
|
|
3926 | if test "${enable_everything+set}" = set; then |
|
|
3927 | enableval="$enable_everything" |
|
|
3928 | |
|
|
3929 | if test x$enableval = xno; then |
|
|
3930 | support_frills=no |
|
|
3931 | support_inheritpixmap=no |
|
|
3932 | support_tinting=no |
|
|
3933 | support_fading=no |
|
|
3934 | support_keepscrolling=no |
|
|
3935 | support_selectionscrolling=no |
|
|
3936 | support_lastlog=no |
|
|
3937 | support_mousewheel=no |
|
|
3938 | support_mouseslipwheel=no |
|
|
3939 | support_text_blink=no |
|
|
3940 | support_pointer_blank=no |
|
|
3941 | support_scroll_rxvt=no |
|
|
3942 | support_scroll_next=no |
|
|
3943 | support_scroll_xterm=no |
|
|
3944 | support_scroll_plain=no |
|
|
3945 | support_utmp=no |
|
|
3946 | support_wtmp=no |
|
|
3947 | support_xim=no |
|
|
3948 | support_xpm=no |
|
|
3949 | support_afterimage=no |
|
|
3950 | support_afterstep=no |
|
|
3951 | support_xft=no |
|
|
3952 | support_unicode3=no |
|
|
3953 | support_combining=no |
|
|
3954 | support_8bitctrls=no |
|
|
3955 | support_iso14755=no |
|
|
3956 | support_styles=no |
|
|
3957 | support_perl=no |
|
|
3958 | codesets= |
|
|
3959 | fi |
|
|
3960 | if test x$enableval = xyes; then |
|
|
3961 | support_frills=yes |
|
|
3962 | support_inheritpixmap=yes |
|
|
3963 | support_tinting=yes |
|
|
3964 | support_fading=yes |
|
|
3965 | support_keepscrolling=yes |
|
|
3966 | support_selectionscrolling=yes |
|
|
3967 | support_lastlog=yes |
|
|
3968 | support_mousewheel=yes |
|
|
3969 | support_mouseslipwheel=yes |
|
|
3970 | support_text_blink=yes |
|
|
3971 | support_pointer_blank=yes |
|
|
3972 | support_scroll_rxvt=yes |
|
|
3973 | support_scroll_next=yes |
|
|
3974 | support_scroll_xterm=yes |
|
|
3975 | support_scroll_plain=yes |
|
|
3976 | support_utmp=yes |
|
|
3977 | support_wtmp=yes |
|
|
3978 | support_xim=yes |
|
|
3979 | support_xpm=yes |
|
|
3980 | support_afterimage=yes |
|
|
3981 | support_afterstep=yes |
|
|
3982 | support_xft=yes |
|
|
3983 | support_unicode3=yes |
|
|
3984 | support_combining=yes |
|
|
3985 | #support_8bitctrls=yes |
|
|
3986 | support_iso14755=yes |
|
|
3987 | support_styles=yes |
|
|
3988 | support_perl=yes |
|
|
3989 | codesets=all |
|
|
3990 | fi |
|
|
3991 | |
|
|
3992 | fi; |
|
|
3993 | |
|
|
3994 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
|
|
3995 | if test "${enable_unicode3+set}" = set; then |
|
|
3996 | enableval="$enable_unicode3" |
|
|
3997 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
3998 | support_unicode3=$enableval |
|
|
3999 | fi |
|
|
4000 | fi; |
|
|
4001 | |
|
|
4002 | # Check whether --enable-combining or --disable-combining was given. |
|
|
4003 | if test "${enable_combining+set}" = set; then |
|
|
4004 | enableval="$enable_combining" |
|
|
4005 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4006 | support_combining=$enableval |
|
|
4007 | fi |
|
|
4008 | fi; |
|
|
4009 | |
|
|
4010 | # Check whether --enable-xft or --disable-xft was given. |
|
|
4011 | if test "${enable_xft+set}" = set; then |
|
|
4012 | enableval="$enable_xft" |
|
|
4013 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4014 | support_xft=$enableval |
|
|
4015 | fi |
|
|
4016 | fi; |
|
|
4017 | |
|
|
4018 | # Check whether --enable-font-styles or --disable-font-styles was given. |
|
|
4019 | if test "${enable_font_styles+set}" = set; then |
|
|
4020 | enableval="$enable_font_styles" |
|
|
4021 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4022 | support_styles=$enableval |
|
|
4023 | fi |
|
|
4024 | fi; |
|
|
4025 | |
|
|
4026 | # Check whether --enable-xpm-background or --disable-xpm-background was given. |
|
|
4027 | if test "${enable_xpm_background+set}" = set; then |
|
|
4028 | enableval="$enable_xpm_background" |
|
|
4029 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4030 | support_xpm=$enableval |
|
|
4031 | fi |
|
|
4032 | fi; |
|
|
4033 | |
|
|
4034 | # Check whether --enable-afterimage or --disable-afterimage was given. |
|
|
4035 | if test "${enable_afterimage+set}" = set; then |
|
|
4036 | enableval="$enable_afterimage" |
|
|
4037 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4038 | support_afterimage=$enableval |
|
|
4039 | fi |
|
|
4040 | fi; |
|
|
4041 | |
|
|
4042 | |
|
|
4043 | # Check whether --with-afterimage_config or --without-afterimage_config was given. |
|
|
4044 | if test "${with_afterimage_config+set}" = set; then |
|
|
4045 | withval="$with_afterimage_config" |
|
|
4046 | if test "x$withval" != x; then |
|
|
4047 | afterimage_config=$withval/afterimage-config |
|
|
4048 | fi |
|
|
4049 | fi; |
|
|
4050 | |
|
|
4051 | # Check whether --enable-afterstep or --disable-afterstep was given. |
|
|
4052 | if test "${enable_afterstep+set}" = set; then |
|
|
4053 | enableval="$enable_afterstep" |
|
|
4054 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4055 | support_afterstep=$enableval |
|
|
4056 | fi |
|
|
4057 | fi; |
|
|
4058 | |
|
|
4059 | # Check whether --enable-transparency or --disable-transparency was given. |
|
|
4060 | if test "${enable_transparency+set}" = set; then |
|
|
4061 | enableval="$enable_transparency" |
|
|
4062 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4063 | support_inheritpixmap=$enableval |
|
|
4064 | fi |
|
|
4065 | fi; |
|
|
4066 | |
|
|
4067 | # Check whether --enable-tinting or --disable-tinting was given. |
|
|
4068 | if test "${enable_tinting+set}" = set; then |
|
|
4069 | enableval="$enable_tinting" |
|
|
4070 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4071 | support_tinting=$enableval |
|
|
4072 | fi |
|
|
4073 | fi; |
|
|
4074 | |
|
|
4075 | # Check whether --enable-fading or --disable-fading was given. |
|
|
4076 | if test "${enable_fading+set}" = set; then |
|
|
4077 | enableval="$enable_fading" |
|
|
4078 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4079 | support_fading=$enableval |
|
|
4080 | fi |
|
|
4081 | fi; |
|
|
4082 | |
|
|
4083 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
|
|
4084 | if test "${enable_rxvt_scroll+set}" = set; then |
|
|
4085 | enableval="$enable_rxvt_scroll" |
|
|
4086 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4087 | support_scroll_rxvt=$enableval |
|
|
4088 | fi |
|
|
4089 | fi; |
|
|
4090 | |
|
|
4091 | # Check whether --enable-next-scroll or --disable-next-scroll was given. |
|
|
4092 | if test "${enable_next_scroll+set}" = set; then |
|
|
4093 | enableval="$enable_next_scroll" |
|
|
4094 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4095 | support_scroll_next=$enableval |
|
|
4096 | fi |
|
|
4097 | fi; |
|
|
4098 | |
|
|
4099 | # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. |
|
|
4100 | if test "${enable_xterm_scroll+set}" = set; then |
|
|
4101 | enableval="$enable_xterm_scroll" |
|
|
4102 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4103 | support_scroll_xterm=$enableval |
|
|
4104 | fi |
|
|
4105 | fi; |
|
|
4106 | |
|
|
4107 | # Check whether --enable-perl or --disable-perl was given. |
|
|
4108 | if test "${enable_perl+set}" = set; then |
|
|
4109 | enableval="$enable_perl" |
|
|
4110 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4111 | support_perl=$enableval |
|
|
4112 | fi |
|
|
4113 | fi; |
|
|
4114 | |
|
|
4115 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
|
|
4116 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4117 | enableval="$enable_plain_scroll" |
|
|
4118 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4119 | support_scroll_plain=$enableval |
|
|
4120 | fi |
|
|
4121 | fi; |
|
|
4122 | |
|
|
4123 | |
|
|
4124 | # Check whether --with-codesets or --without-codesets was given. |
|
|
4125 | if test "${with_codesets+set}" = set; then |
|
|
4126 | withval="$with_codesets" |
|
|
4127 | codesets="$withval" |
|
|
4128 | fi; |
|
|
4129 | |
|
|
4130 | # Check whether --enable-xim or --disable-xim was given. |
|
|
4131 | if test "${enable_xim+set}" = set; then |
|
|
4132 | enableval="$enable_xim" |
|
|
4133 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4134 | support_xim=$enableval |
|
|
4135 | fi |
|
|
4136 | fi; |
|
|
4137 | |
|
|
4138 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
|
|
4139 | if test "${enable_backspace_key+set}" = set; then |
|
|
4140 | enableval="$enable_backspace_key" |
|
|
4141 | if test x$enableval = xno; then |
|
|
4142 | |
|
|
4143 | cat >>confdefs.h <<\_ACEOF |
|
|
4144 | #define NO_BACKSPACE_KEY 1 |
|
|
4145 | _ACEOF |
|
|
4146 | |
|
|
4147 | fi |
|
|
4148 | fi; |
|
|
4149 | |
|
|
4150 | # Check whether --enable-delete-key or --disable-delete-key was given. |
|
|
4151 | if test "${enable_delete_key+set}" = set; then |
|
|
4152 | enableval="$enable_delete_key" |
|
|
4153 | if test x$enableval = xno; then |
|
|
4154 | |
|
|
4155 | cat >>confdefs.h <<\_ACEOF |
|
|
4156 | #define NO_DELETE_KEY 1 |
|
|
4157 | _ACEOF |
|
|
4158 | |
|
|
4159 | fi |
|
|
4160 | fi; |
|
|
4161 | |
|
|
4162 | # Check whether --enable-resources or --disable-resources was given. |
|
|
4163 | if test "${enable_resources+set}" = set; then |
|
|
4164 | enableval="$enable_resources" |
|
|
4165 | if test x$enableval = xno; then |
|
|
4166 | |
|
|
4167 | cat >>confdefs.h <<\_ACEOF |
|
|
4168 | #define NO_RESOURCES 1 |
|
|
4169 | _ACEOF |
|
|
4170 | |
|
|
4171 | fi |
|
|
4172 | fi; |
|
|
4173 | |
|
|
4174 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
|
|
4175 | if test "${enable_8bitctrls+set}" = set; then |
|
|
4176 | enableval="$enable_8bitctrls" |
|
|
4177 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4178 | support_8bitctrls=$enableval |
|
|
4179 | fi |
|
|
4180 | fi; |
|
|
4181 | |
|
|
4182 | RESFALLBACK=Rxvt |
|
|
4183 | # Check whether --enable-fallback or --disable-fallback was given. |
|
|
4184 | if test "${enable_fallback+set}" = set; then |
|
|
4185 | enableval="$enable_fallback" |
|
|
4186 | |
|
|
4187 | test x$enableval = xyes && enableval=Rxvt |
|
|
4188 | test x$enableval = xno && enableval= |
|
|
4189 | RESFALLBACK="$enableval" |
|
|
4190 | |
|
|
4191 | fi; |
|
|
4192 | |
|
|
4193 | if test x$RESFALLBACK != x; then |
|
|
4194 | |
|
|
4195 | cat >>confdefs.h <<_ACEOF |
|
|
4196 | #define RESFALLBACK "$RESFALLBACK" |
|
|
4197 | _ACEOF |
|
|
4198 | |
|
|
4199 | fi |
|
|
4200 | |
|
|
4201 | RESNAME=urxvt |
|
|
4202 | |
|
|
4203 | # Check whether --with-res-name or --without-res-name was given. |
|
|
4204 | if test "${with_res_name+set}" = set; then |
|
|
4205 | withval="$with_res_name" |
|
|
4206 | RESNAME="$withval" |
|
|
4207 | fi; |
|
|
4208 | |
|
|
4209 | cat >>confdefs.h <<_ACEOF |
|
|
4210 | #define RESNAME "$RESNAME" |
|
|
4211 | _ACEOF |
|
|
4212 | |
|
|
4213 | |
|
|
4214 | RESCLASS=URxvt |
|
|
4215 | |
|
|
4216 | # Check whether --with-res-class or --without-res-class was given. |
|
|
4217 | if test "${with_res_class+set}" = set; then |
|
|
4218 | withval="$with_res_class" |
|
|
4219 | RESCLASS="$withval" |
|
|
4220 | fi; |
|
|
4221 | |
|
|
4222 | cat >>confdefs.h <<_ACEOF |
|
|
4223 | #define RESCLASS "$RESCLASS" |
|
|
4224 | _ACEOF |
|
|
4225 | |
|
|
4226 | |
|
|
4227 | RXVTNAME=urxvt |
|
|
4228 | |
|
|
4229 | # Check whether --with-name or --without-name was given. |
|
|
4230 | if test "${with_name+set}" = set; then |
|
|
4231 | withval="$with_name" |
|
|
4232 | RXVTNAME="$withval" |
|
|
4233 | fi; |
|
|
4234 | |
|
|
4235 | cat >>confdefs.h <<_ACEOF |
|
|
4236 | #define RXVTNAME "$RXVTNAME" |
|
|
4237 | _ACEOF |
|
|
4238 | |
|
|
4239 | |
|
|
4240 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
|
|
4241 | |
|
|
4242 | |
|
|
4243 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
|
|
4244 | if test "${enable_swapscreen+set}" = set; then |
|
|
4245 | enableval="$enable_swapscreen" |
|
|
4246 | if test x$enableval = xno; then |
|
|
4247 | |
|
|
4248 | cat >>confdefs.h <<\_ACEOF |
|
|
4249 | #define NO_SECONDARY_SCREEN 1 |
|
|
4250 | _ACEOF |
|
|
4251 | |
|
|
4252 | fi |
|
|
4253 | fi; |
|
|
4254 | |
|
|
4255 | # Check whether --enable-iso14755 or --disable-iso14755 was given. |
|
|
4256 | if test "${enable_iso14755+set}" = set; then |
|
|
4257 | enableval="$enable_iso14755" |
|
|
4258 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4259 | support_iso14755=$enableval |
|
|
4260 | fi |
|
|
4261 | fi; |
|
|
4262 | |
|
|
4263 | # Check whether --enable-frills or --disable-frills was given. |
|
|
4264 | if test "${enable_frills+set}" = set; then |
|
|
4265 | enableval="$enable_frills" |
|
|
4266 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4267 | support_frills=$enableval |
|
|
4268 | fi |
|
|
4269 | fi; |
|
|
4270 | |
|
|
4271 | # Check whether --enable-keepscrolling or --disable-keepscrolling was given. |
|
|
4272 | if test "${enable_keepscrolling+set}" = set; then |
|
|
4273 | enableval="$enable_keepscrolling" |
|
|
4274 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4275 | support_keepscrolling=$enableval |
|
|
4276 | fi |
|
|
4277 | fi; |
|
|
4278 | |
|
|
4279 | # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. |
|
|
4280 | if test "${enable_selectionscrolling+set}" = set; then |
|
|
4281 | enableval="$enable_selectionscrolling" |
|
|
4282 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4283 | support_selectionscrolling=$enableval |
|
|
4284 | fi |
|
|
4285 | fi; |
|
|
4286 | |
|
|
4287 | # Check whether --enable-mousewheel or --disable-mousewheel was given. |
|
|
4288 | if test "${enable_mousewheel+set}" = set; then |
|
|
4289 | enableval="$enable_mousewheel" |
|
|
4290 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4291 | support_mousewheel=$enableval |
|
|
4292 | fi |
|
|
4293 | fi; |
|
|
4294 | |
|
|
4295 | # Check whether --enable-slipwheeling or --disable-slipwheeling was given. |
|
|
4296 | if test "${enable_slipwheeling+set}" = set; then |
|
|
4297 | enableval="$enable_slipwheeling" |
|
|
4298 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4299 | support_mouseslipwheel=$enableval |
|
|
4300 | fi |
|
|
4301 | fi; |
|
|
4302 | |
|
|
4303 | # Check whether --enable-smart-resize or --disable-smart-resize was given. |
|
|
4304 | if test "${enable_smart_resize+set}" = set; then |
|
|
4305 | enableval="$enable_smart_resize" |
|
|
4306 | if test x$enableval = xyes; then |
|
|
4307 | |
|
|
4308 | cat >>confdefs.h <<\_ACEOF |
|
|
4309 | #define SMART_RESIZE 1 |
|
|
4310 | _ACEOF |
|
|
4311 | |
|
|
4312 | fi |
|
|
4313 | fi; |
|
|
4314 | |
|
|
4315 | # Check whether --enable-text-blink or --disable-text-blink was given. |
|
|
4316 | if test "${enable_text_blink+set}" = set; then |
|
|
4317 | enableval="$enable_text_blink" |
|
|
4318 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4319 | support_text_blink=$enableval |
|
|
4320 | fi |
|
|
4321 | fi; |
|
|
4322 | |
|
|
4323 | # Check whether --enable-pointer-blank or --disable-pointer-blank was given. |
|
|
4324 | if test "${enable_pointer_blank+set}" = set; then |
|
|
4325 | enableval="$enable_pointer_blank" |
|
|
4326 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4327 | support_pointer_blank=$enableval |
|
|
4328 | fi |
|
|
4329 | fi; |
|
|
4330 | |
|
|
4331 | |
|
|
4332 | # Check whether --with-term or --without-term was given. |
|
|
4333 | if test "${with_term+set}" = set; then |
|
|
4334 | withval="$with_term" |
|
|
4335 | if test x$withval != x; then |
|
|
4336 | |
|
|
4337 | cat >>confdefs.h <<_ACEOF |
|
|
4338 | #define TERMENV "$withval" |
|
|
4339 | _ACEOF |
|
|
4340 | term="$withval" |
|
|
4341 | fi |
|
|
4342 | fi; |
|
|
4343 | |
|
|
4344 | |
|
|
4345 | # Check whether --with-terminfo or --without-terminfo was given. |
|
|
4346 | if test "${with_terminfo+set}" = set; then |
|
|
4347 | withval="$with_terminfo" |
|
|
4348 | if test x$withval != x; then |
|
|
4349 | |
|
|
4350 | cat >>confdefs.h <<_ACEOF |
|
|
4351 | #define RXVT_TERMINFO "$withval" |
|
|
4352 | _ACEOF |
|
|
4353 | terminfo="$withval" |
|
|
4354 | fi |
|
|
4355 | fi; |
|
|
4356 | |
|
|
4357 | |
3167 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4358 | # Extract the first word of "tic", so it can be a program name with args. |
3168 | set dummy $ac_prog; ac_word=$2 |
4359 | set dummy tic; ac_word=$2 |
3169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4360 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3171 | if test "${ac_cv_prog_AWK+set}" = set; then |
4362 | if test "${ac_cv_path_TIC+set}" = set; then |
3172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3173 | else |
4364 | else |
3174 | if test -n "$AWK"; then |
4365 | case $TIC in |
|
|
4366 | [\\/]* | ?:[\\/]*) |
3175 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
4367 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
3176 | else |
4368 | ;; |
|
|
4369 | *) |
3177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3178 | for as_dir in $PATH |
4371 | for as_dir in $PATH |
3179 | do |
4372 | do |
3180 | IFS=$as_save_IFS |
4373 | IFS=$as_save_IFS |
3181 | test -z "$as_dir" && as_dir=. |
4374 | test -z "$as_dir" && as_dir=. |
3182 | for ac_exec_ext in '' $ac_executable_extensions; do |
4375 | for ac_exec_ext in '' $ac_executable_extensions; do |
3183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4376 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3184 | ac_cv_prog_AWK="$ac_prog" |
4377 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
3185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3186 | break 2 |
4379 | break 2 |
3187 | fi |
4380 | fi |
3188 | done |
4381 | done |
3189 | done |
4382 | done |
3190 | |
4383 | |
|
|
4384 | ;; |
|
|
4385 | esac |
3191 | fi |
4386 | fi |
3192 | fi |
4387 | TIC=$ac_cv_path_TIC |
3193 | AWK=$ac_cv_prog_AWK |
4388 | |
3194 | if test -n "$AWK"; then |
4389 | if test -n "$TIC"; then |
3195 | echo "$as_me:$LINENO: result: $AWK" >&5 |
4390 | echo "$as_me:$LINENO: result: $TIC" >&5 |
3196 | echo "${ECHO_T}$AWK" >&6 |
4391 | echo "${ECHO_T}$TIC" >&6 |
3197 | else |
4392 | else |
3198 | echo "$as_me:$LINENO: result: no" >&5 |
4393 | echo "$as_me:$LINENO: result: no" >&5 |
3199 | echo "${ECHO_T}no" >&6 |
4394 | echo "${ECHO_T}no" >&6 |
3200 | fi |
4395 | fi |
3201 | |
4396 | |
3202 | test -n "$AWK" && break |
|
|
3203 | done |
|
|
3204 | |
|
|
3205 | |
|
|
3206 | ac_ext=c |
|
|
3207 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3211 | |
|
|
3212 | |
|
|
3213 | LINKER="$CXX" |
|
|
3214 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3215 | |
|
|
3216 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3217 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3218 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3220 | else |
|
|
3221 | ac_check_lib_save_LIBS=$LIBS |
|
|
3222 | LIBS="-lsupc++ $LIBS" |
|
|
3223 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3224 | /* confdefs.h. */ |
|
|
3225 | _ACEOF |
|
|
3226 | cat confdefs.h >>conftest.$ac_ext |
|
|
3227 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3228 | /* end confdefs.h. */ |
|
|
3229 | |
|
|
3230 | |
|
|
3231 | int |
|
|
3232 | main () |
|
|
3233 | { |
|
|
3234 | main (); |
|
|
3235 | ; |
|
|
3236 | return 0; |
|
|
3237 | } |
|
|
3238 | _ACEOF |
|
|
3239 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3241 | (eval $ac_link) 2>conftest.er1 |
|
|
3242 | ac_status=$? |
|
|
3243 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3244 | rm -f conftest.er1 |
|
|
3245 | cat conftest.err >&5 |
|
|
3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3247 | (exit $ac_status); } && |
|
|
3248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3250 | (eval $ac_try) 2>&5 |
|
|
3251 | ac_status=$? |
|
|
3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3253 | (exit $ac_status); }; } && |
|
|
3254 | { ac_try='test -s conftest$ac_exeext' |
|
|
3255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3256 | (eval $ac_try) 2>&5 |
|
|
3257 | ac_status=$? |
|
|
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3259 | (exit $ac_status); }; }; then |
|
|
3260 | ac_cv_lib_supcpp_main=yes |
|
|
3261 | else |
|
|
3262 | echo "$as_me: failed program was:" >&5 |
|
|
3263 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3264 | |
|
|
3265 | ac_cv_lib_supcpp_main=no |
|
|
3266 | fi |
|
|
3267 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3268 | conftest$ac_exeext conftest.$ac_ext |
|
|
3269 | LIBS=$ac_check_lib_save_LIBS |
|
|
3270 | fi |
|
|
3271 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3272 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3273 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3274 | |
|
|
3275 | LINKER="$CC" |
|
|
3276 | LIBS="$LIBS -lsupc++" |
|
|
3277 | |
|
|
3278 | fi |
|
|
3279 | |
|
|
3280 | fi |
|
|
3281 | LINKER=$LINKER |
|
|
3282 | |
|
|
3283 | |
|
|
3284 | CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" |
|
|
3285 | |
|
|
3286 | |
|
|
3287 | ac_ext=cc |
|
|
3288 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3289 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3290 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3291 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3292 | |
4397 | |
3293 | |
4398 | |
3294 | |
4399 | |
3295 | ac_ext=cc |
4400 | ac_ext=cc |
3296 | ac_cpp='$CXXCPP $CPPFLAGS' |
4401 | ac_cpp='$CXXCPP $CPPFLAGS' |
… | |
… | |
3521 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4626 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3522 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4627 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3523 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4628 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3524 | |
4629 | |
3525 | |
4630 | |
3526 | echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
3527 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
|
3528 | if test "${ac_cv_prog_egrep+set}" = set; then |
|
|
3529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3530 | else |
|
|
3531 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
3532 | then ac_cv_prog_egrep='grep -E' |
|
|
3533 | else ac_cv_prog_egrep='egrep' |
|
|
3534 | fi |
|
|
3535 | fi |
|
|
3536 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
3537 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
3538 | EGREP=$ac_cv_prog_egrep |
|
|
3539 | |
|
|
3540 | |
|
|
3541 | |
|
|
3542 | echo "$as_me:$LINENO: checking for AIX" >&5 |
4631 | echo "$as_me:$LINENO: checking for X" >&5 |
3543 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
|
|
3544 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3545 | /* confdefs.h. */ |
|
|
3546 | _ACEOF |
|
|
3547 | cat confdefs.h >>conftest.$ac_ext |
|
|
3548 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3549 | /* end confdefs.h. */ |
|
|
3550 | #ifdef _AIX |
|
|
3551 | yes |
|
|
3552 | #endif |
|
|
3553 | |
|
|
3554 | _ACEOF |
|
|
3555 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3556 | $EGREP "yes" >/dev/null 2>&1; then |
|
|
3557 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
3558 | echo "${ECHO_T}yes" >&6 |
|
|
3559 | cat >>confdefs.h <<\_ACEOF |
|
|
3560 | #define _ALL_SOURCE 1 |
|
|
3561 | _ACEOF |
|
|
3562 | |
|
|
3563 | else |
|
|
3564 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3565 | echo "${ECHO_T}no" >&6 |
|
|
3566 | fi |
|
|
3567 | rm -f conftest* |
|
|
3568 | |
|
|
3569 | |
|
|
3570 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
|
|
3571 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
|
|
3572 | if test "${ac_cv_search_strerror+set}" = set; then |
|
|
3573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3574 | else |
|
|
3575 | ac_func_search_save_LIBS=$LIBS |
|
|
3576 | ac_cv_search_strerror=no |
|
|
3577 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3578 | /* confdefs.h. */ |
|
|
3579 | _ACEOF |
|
|
3580 | cat confdefs.h >>conftest.$ac_ext |
|
|
3581 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3582 | /* end confdefs.h. */ |
|
|
3583 | |
|
|
3584 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3585 | #ifdef __cplusplus |
|
|
3586 | extern "C" |
|
|
3587 | #endif |
|
|
3588 | /* We use char because int might match the return type of a gcc2 |
|
|
3589 | builtin and then its argument prototype would still apply. */ |
|
|
3590 | char strerror (); |
|
|
3591 | int |
|
|
3592 | main () |
|
|
3593 | { |
|
|
3594 | strerror (); |
|
|
3595 | ; |
|
|
3596 | return 0; |
|
|
3597 | } |
|
|
3598 | _ACEOF |
|
|
3599 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3601 | (eval $ac_link) 2>conftest.er1 |
|
|
3602 | ac_status=$? |
|
|
3603 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3604 | rm -f conftest.er1 |
|
|
3605 | cat conftest.err >&5 |
|
|
3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3607 | (exit $ac_status); } && |
|
|
3608 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3610 | (eval $ac_try) 2>&5 |
|
|
3611 | ac_status=$? |
|
|
3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3613 | (exit $ac_status); }; } && |
|
|
3614 | { ac_try='test -s conftest$ac_exeext' |
|
|
3615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3616 | (eval $ac_try) 2>&5 |
|
|
3617 | ac_status=$? |
|
|
3618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3619 | (exit $ac_status); }; }; then |
|
|
3620 | ac_cv_search_strerror="none required" |
|
|
3621 | else |
|
|
3622 | echo "$as_me: failed program was:" >&5 |
|
|
3623 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3624 | |
|
|
3625 | fi |
|
|
3626 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3627 | conftest$ac_exeext conftest.$ac_ext |
|
|
3628 | if test "$ac_cv_search_strerror" = no; then |
|
|
3629 | for ac_lib in cposix; do |
|
|
3630 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
3631 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3632 | /* confdefs.h. */ |
|
|
3633 | _ACEOF |
|
|
3634 | cat confdefs.h >>conftest.$ac_ext |
|
|
3635 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3636 | /* end confdefs.h. */ |
|
|
3637 | |
|
|
3638 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3639 | #ifdef __cplusplus |
|
|
3640 | extern "C" |
|
|
3641 | #endif |
|
|
3642 | /* We use char because int might match the return type of a gcc2 |
|
|
3643 | builtin and then its argument prototype would still apply. */ |
|
|
3644 | char strerror (); |
|
|
3645 | int |
|
|
3646 | main () |
|
|
3647 | { |
|
|
3648 | strerror (); |
|
|
3649 | ; |
|
|
3650 | return 0; |
|
|
3651 | } |
|
|
3652 | _ACEOF |
|
|
3653 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3655 | (eval $ac_link) 2>conftest.er1 |
|
|
3656 | ac_status=$? |
|
|
3657 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3658 | rm -f conftest.er1 |
|
|
3659 | cat conftest.err >&5 |
|
|
3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3661 | (exit $ac_status); } && |
|
|
3662 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3664 | (eval $ac_try) 2>&5 |
|
|
3665 | ac_status=$? |
|
|
3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3667 | (exit $ac_status); }; } && |
|
|
3668 | { ac_try='test -s conftest$ac_exeext' |
|
|
3669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3670 | (eval $ac_try) 2>&5 |
|
|
3671 | ac_status=$? |
|
|
3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3673 | (exit $ac_status); }; }; then |
|
|
3674 | ac_cv_search_strerror="-l$ac_lib" |
|
|
3675 | break |
|
|
3676 | else |
|
|
3677 | echo "$as_me: failed program was:" >&5 |
|
|
3678 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3679 | |
|
|
3680 | fi |
|
|
3681 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3682 | conftest$ac_exeext conftest.$ac_ext |
|
|
3683 | done |
|
|
3684 | fi |
|
|
3685 | LIBS=$ac_func_search_save_LIBS |
|
|
3686 | fi |
|
|
3687 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
|
|
3688 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
|
|
3689 | if test "$ac_cv_search_strerror" != no; then |
|
|
3690 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
|
|
3691 | |
|
|
3692 | fi |
|
|
3693 | |
|
|
3694 | |
|
|
3695 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
|
|
3696 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
|
|
3697 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
|
|
3698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3699 | else |
|
|
3700 | ac_check_lib_save_LIBS=$LIBS |
|
|
3701 | LIBS="-lxpg4 $LIBS" |
|
|
3702 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3703 | /* confdefs.h. */ |
|
|
3704 | _ACEOF |
|
|
3705 | cat confdefs.h >>conftest.$ac_ext |
|
|
3706 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3707 | /* end confdefs.h. */ |
|
|
3708 | |
|
|
3709 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3710 | #ifdef __cplusplus |
|
|
3711 | extern "C" |
|
|
3712 | #endif |
|
|
3713 | /* We use char because int might match the return type of a gcc2 |
|
|
3714 | builtin and then its argument prototype would still apply. */ |
|
|
3715 | char setlocale (); |
|
|
3716 | int |
|
|
3717 | main () |
|
|
3718 | { |
|
|
3719 | setlocale (); |
|
|
3720 | ; |
|
|
3721 | return 0; |
|
|
3722 | } |
|
|
3723 | _ACEOF |
|
|
3724 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3726 | (eval $ac_link) 2>conftest.er1 |
|
|
3727 | ac_status=$? |
|
|
3728 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3729 | rm -f conftest.er1 |
|
|
3730 | cat conftest.err >&5 |
|
|
3731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3732 | (exit $ac_status); } && |
|
|
3733 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3735 | (eval $ac_try) 2>&5 |
|
|
3736 | ac_status=$? |
|
|
3737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3738 | (exit $ac_status); }; } && |
|
|
3739 | { ac_try='test -s conftest$ac_exeext' |
|
|
3740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3741 | (eval $ac_try) 2>&5 |
|
|
3742 | ac_status=$? |
|
|
3743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3744 | (exit $ac_status); }; }; then |
|
|
3745 | ac_cv_lib_xpg4_setlocale=yes |
|
|
3746 | else |
|
|
3747 | echo "$as_me: failed program was:" >&5 |
|
|
3748 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3749 | |
|
|
3750 | ac_cv_lib_xpg4_setlocale=no |
|
|
3751 | fi |
|
|
3752 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3753 | conftest$ac_exeext conftest.$ac_ext |
|
|
3754 | LIBS=$ac_check_lib_save_LIBS |
|
|
3755 | fi |
|
|
3756 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 |
|
|
3757 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
|
|
3758 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
|
|
3759 | LIBS="$LIBS -lxpg4" |
|
|
3760 | fi |
|
|
3761 | |
|
|
3762 | |
|
|
3763 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
|
|
3764 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
|
|
3765 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
|
|
3766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3767 | else |
|
|
3768 | ac_check_lib_save_LIBS=$LIBS |
|
|
3769 | LIBS="-lnsl $LIBS" |
|
|
3770 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3771 | /* confdefs.h. */ |
|
|
3772 | _ACEOF |
|
|
3773 | cat confdefs.h >>conftest.$ac_ext |
|
|
3774 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3775 | /* end confdefs.h. */ |
|
|
3776 | |
|
|
3777 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3778 | #ifdef __cplusplus |
|
|
3779 | extern "C" |
|
|
3780 | #endif |
|
|
3781 | /* We use char because int might match the return type of a gcc2 |
|
|
3782 | builtin and then its argument prototype would still apply. */ |
|
|
3783 | char gethostbyname (); |
|
|
3784 | int |
|
|
3785 | main () |
|
|
3786 | { |
|
|
3787 | gethostbyname (); |
|
|
3788 | ; |
|
|
3789 | return 0; |
|
|
3790 | } |
|
|
3791 | _ACEOF |
|
|
3792 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3794 | (eval $ac_link) 2>conftest.er1 |
|
|
3795 | ac_status=$? |
|
|
3796 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3797 | rm -f conftest.er1 |
|
|
3798 | cat conftest.err >&5 |
|
|
3799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3800 | (exit $ac_status); } && |
|
|
3801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3803 | (eval $ac_try) 2>&5 |
|
|
3804 | ac_status=$? |
|
|
3805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3806 | (exit $ac_status); }; } && |
|
|
3807 | { ac_try='test -s conftest$ac_exeext' |
|
|
3808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3809 | (eval $ac_try) 2>&5 |
|
|
3810 | ac_status=$? |
|
|
3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3812 | (exit $ac_status); }; }; then |
|
|
3813 | ac_cv_lib_nsl_gethostbyname=yes |
|
|
3814 | else |
|
|
3815 | echo "$as_me: failed program was:" >&5 |
|
|
3816 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3817 | |
|
|
3818 | ac_cv_lib_nsl_gethostbyname=no |
|
|
3819 | fi |
|
|
3820 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3821 | conftest$ac_exeext conftest.$ac_ext |
|
|
3822 | LIBS=$ac_check_lib_save_LIBS |
|
|
3823 | fi |
|
|
3824 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
3825 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
|
|
3826 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
3827 | LIBS="$LIBS -lnsl" |
|
|
3828 | fi |
|
|
3829 | |
|
|
3830 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
|
|
3831 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
|
|
3832 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
|
|
3833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3834 | else |
|
|
3835 | ac_check_lib_save_LIBS=$LIBS |
|
|
3836 | LIBS="-lsocket $LIBS" |
|
|
3837 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3838 | /* confdefs.h. */ |
|
|
3839 | _ACEOF |
|
|
3840 | cat confdefs.h >>conftest.$ac_ext |
|
|
3841 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3842 | /* end confdefs.h. */ |
|
|
3843 | |
|
|
3844 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3845 | #ifdef __cplusplus |
|
|
3846 | extern "C" |
|
|
3847 | #endif |
|
|
3848 | /* We use char because int might match the return type of a gcc2 |
|
|
3849 | builtin and then its argument prototype would still apply. */ |
|
|
3850 | char socket (); |
|
|
3851 | int |
|
|
3852 | main () |
|
|
3853 | { |
|
|
3854 | socket (); |
|
|
3855 | ; |
|
|
3856 | return 0; |
|
|
3857 | } |
|
|
3858 | _ACEOF |
|
|
3859 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3861 | (eval $ac_link) 2>conftest.er1 |
|
|
3862 | ac_status=$? |
|
|
3863 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3864 | rm -f conftest.er1 |
|
|
3865 | cat conftest.err >&5 |
|
|
3866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3867 | (exit $ac_status); } && |
|
|
3868 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3870 | (eval $ac_try) 2>&5 |
|
|
3871 | ac_status=$? |
|
|
3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3873 | (exit $ac_status); }; } && |
|
|
3874 | { ac_try='test -s conftest$ac_exeext' |
|
|
3875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3876 | (eval $ac_try) 2>&5 |
|
|
3877 | ac_status=$? |
|
|
3878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3879 | (exit $ac_status); }; }; then |
|
|
3880 | ac_cv_lib_socket_socket=yes |
|
|
3881 | else |
|
|
3882 | echo "$as_me: failed program was:" >&5 |
|
|
3883 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3884 | |
|
|
3885 | ac_cv_lib_socket_socket=no |
|
|
3886 | fi |
|
|
3887 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3888 | conftest$ac_exeext conftest.$ac_ext |
|
|
3889 | LIBS=$ac_check_lib_save_LIBS |
|
|
3890 | fi |
|
|
3891 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
|
|
3892 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
|
|
3893 | if test $ac_cv_lib_socket_socket = yes; then |
|
|
3894 | LIBS="$LIBS -lsocket" |
|
|
3895 | fi |
|
|
3896 | |
|
|
3897 | |
|
|
3898 | # Check whether --enable-shared or --disable-shared was given. |
|
|
3899 | if test "${enable_shared+set}" = set; then |
|
|
3900 | enableval="$enable_shared" |
|
|
3901 | p=${PACKAGE-default} |
|
|
3902 | case "$enableval" in |
|
|
3903 | yes) enable_shared=yes ;; |
|
|
3904 | no) enable_shared=no ;; |
|
|
3905 | *) |
|
|
3906 | enable_shared=no |
|
|
3907 | # Look at the argument we got. We use all the common list separators. |
|
|
3908 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3909 | for pkg in $enableval; do |
|
|
3910 | if test "X$pkg" = "X$p"; then |
|
|
3911 | enable_shared=yes |
|
|
3912 | fi |
|
|
3913 | done |
|
|
3914 | IFS="$ac_save_ifs" |
|
|
3915 | ;; |
|
|
3916 | esac |
|
|
3917 | else |
|
|
3918 | enable_shared=no |
|
|
3919 | fi; # Check whether --enable-static or --disable-static was given. |
|
|
3920 | if test "${enable_static+set}" = set; then |
|
|
3921 | enableval="$enable_static" |
|
|
3922 | p=${PACKAGE-default} |
|
|
3923 | case "$enableval" in |
|
|
3924 | yes) enable_static=yes ;; |
|
|
3925 | no) enable_static=no ;; |
|
|
3926 | *) |
|
|
3927 | enable_static=no |
|
|
3928 | # Look at the argument we got. We use all the common list separators. |
|
|
3929 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3930 | for pkg in $enableval; do |
|
|
3931 | if test "X$pkg" = "X$p"; then |
|
|
3932 | enable_static=yes |
|
|
3933 | fi |
|
|
3934 | done |
|
|
3935 | IFS="$ac_save_ifs" |
|
|
3936 | ;; |
|
|
3937 | esac |
|
|
3938 | else |
|
|
3939 | enable_static=yes |
|
|
3940 | fi; # Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
3941 | if test "${enable_fast_install+set}" = set; then |
|
|
3942 | enableval="$enable_fast_install" |
|
|
3943 | p=${PACKAGE-default} |
|
|
3944 | case "$enableval" in |
|
|
3945 | yes) enable_fast_install=yes ;; |
|
|
3946 | no) enable_fast_install=no ;; |
|
|
3947 | *) |
|
|
3948 | enable_fast_install=no |
|
|
3949 | # Look at the argument we got. We use all the common list separators. |
|
|
3950 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3951 | for pkg in $enableval; do |
|
|
3952 | if test "X$pkg" = "X$p"; then |
|
|
3953 | enable_fast_install=yes |
|
|
3954 | fi |
|
|
3955 | done |
|
|
3956 | IFS="$ac_save_ifs" |
|
|
3957 | ;; |
|
|
3958 | esac |
|
|
3959 | else |
|
|
3960 | enable_fast_install=yes |
|
|
3961 | fi; |
|
|
3962 | # Make sure we can run config.sub. |
|
|
3963 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
3964 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
3965 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
3966 | { (exit 1); exit 1; }; } |
|
|
3967 | |
|
|
3968 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
3969 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
3970 | if test "${ac_cv_build+set}" = set; then |
|
|
3971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3972 | else |
|
|
3973 | ac_cv_build_alias=$build_alias |
|
|
3974 | test -z "$ac_cv_build_alias" && |
|
|
3975 | ac_cv_build_alias=`$ac_config_guess` |
|
|
3976 | test -z "$ac_cv_build_alias" && |
|
|
3977 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
3978 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
3979 | { (exit 1); exit 1; }; } |
|
|
3980 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
3981 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
3982 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
3983 | { (exit 1); exit 1; }; } |
|
|
3984 | |
|
|
3985 | fi |
|
|
3986 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
3987 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
3988 | build=$ac_cv_build |
|
|
3989 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
3990 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
3991 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
3992 | |
|
|
3993 | |
|
|
3994 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
3995 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
3996 | if test "${ac_cv_host+set}" = set; then |
|
|
3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3998 | else |
|
|
3999 | ac_cv_host_alias=$host_alias |
|
|
4000 | test -z "$ac_cv_host_alias" && |
|
|
4001 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
4002 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
4003 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
4004 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
4005 | { (exit 1); exit 1; }; } |
|
|
4006 | |
|
|
4007 | fi |
|
|
4008 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
4009 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
4010 | host=$ac_cv_host |
|
|
4011 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
4012 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
4013 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
4014 | |
|
|
4015 | |
|
|
4016 | |
|
|
4017 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
4018 | if test "${with_gnu_ld+set}" = set; then |
|
|
4019 | withval="$with_gnu_ld" |
|
|
4020 | test "$withval" = no || with_gnu_ld=yes |
|
|
4021 | else |
|
|
4022 | with_gnu_ld=no |
|
|
4023 | fi; |
|
|
4024 | ac_prog=ld |
|
|
4025 | if test "$GCC" = yes; then |
|
|
4026 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
4027 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
|
|
4028 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
|
|
4029 | case $host in |
|
|
4030 | *-*-mingw*) |
|
|
4031 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
4032 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
4033 | *) |
|
|
4034 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
4035 | esac |
|
|
4036 | case "$ac_prog" in |
|
|
4037 | # Accept absolute paths. |
|
|
4038 | [\\/]* | [A-Za-z]:[\\/]*) |
|
|
4039 | re_direlt='/[^/][^/]*/\.\./' |
|
|
4040 | # Canonicalize the path of ld |
|
|
4041 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
|
|
4042 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
4043 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
|
|
4044 | done |
|
|
4045 | test -z "$LD" && LD="$ac_prog" |
|
|
4046 | ;; |
|
|
4047 | "") |
|
|
4048 | # If it fails, then pretend we aren't using GCC. |
|
|
4049 | ac_prog=ld |
|
|
4050 | ;; |
|
|
4051 | *) |
|
|
4052 | # If it is relative, then search for the first ld in PATH. |
|
|
4053 | with_gnu_ld=unknown |
|
|
4054 | ;; |
|
|
4055 | esac |
|
|
4056 | elif test "$with_gnu_ld" = yes; then |
|
|
4057 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
|
4058 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
|
4059 | else |
|
|
4060 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
4061 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
4062 | fi |
|
|
4063 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
4064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4065 | else |
|
|
4066 | if test -z "$LD"; then |
|
|
4067 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4068 | for ac_dir in $PATH; do |
|
|
4069 | test -z "$ac_dir" && ac_dir=. |
|
|
4070 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
4071 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
4072 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
4073 | # but apparently some GNU ld's only accept -v. |
|
|
4074 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
4075 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4076 | test "$with_gnu_ld" != no && break |
|
|
4077 | else |
|
|
4078 | test "$with_gnu_ld" != yes && break |
|
|
4079 | fi |
|
|
4080 | fi |
|
|
4081 | done |
|
|
4082 | IFS="$ac_save_ifs" |
|
|
4083 | else |
|
|
4084 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
4085 | fi |
|
|
4086 | fi |
|
|
4087 | |
|
|
4088 | LD="$lt_cv_path_LD" |
|
|
4089 | if test -n "$LD"; then |
|
|
4090 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
4091 | echo "${ECHO_T}$LD" >&6 |
|
|
4092 | else |
|
|
4093 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4094 | echo "${ECHO_T}no" >&6 |
|
|
4095 | fi |
|
|
4096 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
4097 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
4098 | { (exit 1); exit 1; }; } |
|
|
4099 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
4100 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
4101 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4103 | else |
|
|
4104 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
4105 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
|
|
4106 | lt_cv_prog_gnu_ld=yes |
|
|
4107 | else |
|
|
4108 | lt_cv_prog_gnu_ld=no |
|
|
4109 | fi |
|
|
4110 | fi |
|
|
4111 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
4112 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
4113 | with_gnu_ld=$lt_cv_prog_gnu_ld |
|
|
4114 | |
|
|
4115 | |
|
|
4116 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
|
4117 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
|
4118 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
|
4119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4120 | else |
|
|
4121 | lt_cv_ld_reload_flag='-r' |
|
|
4122 | fi |
|
|
4123 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
|
4124 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
|
4125 | reload_flag=$lt_cv_ld_reload_flag |
|
|
4126 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
|
|
4127 | |
|
|
4128 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
|
4129 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
|
4130 | if test "${lt_cv_path_NM+set}" = set; then |
|
|
4131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4132 | else |
|
|
4133 | if test -n "$NM"; then |
|
|
4134 | # Let the user override the test. |
|
|
4135 | lt_cv_path_NM="$NM" |
|
|
4136 | else |
|
|
4137 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4138 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
|
|
4139 | test -z "$ac_dir" && ac_dir=. |
|
|
4140 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
|
|
4141 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
|
|
4142 | # Check to see if the nm accepts a BSD-compat flag. |
|
|
4143 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
|
4144 | # nm: unknown option "B" ignored |
|
|
4145 | # Tru64's nm complains that /dev/null is an invalid object file |
|
|
4146 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
|
|
4147 | lt_cv_path_NM="$tmp_nm -B" |
|
|
4148 | break |
|
|
4149 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
|
|
4150 | lt_cv_path_NM="$tmp_nm -p" |
|
|
4151 | break |
|
|
4152 | else |
|
|
4153 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
|
4154 | continue # so that we can try to find one that supports BSD flags |
|
|
4155 | fi |
|
|
4156 | fi |
|
|
4157 | done |
|
|
4158 | IFS="$ac_save_ifs" |
|
|
4159 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
|
4160 | fi |
|
|
4161 | fi |
|
|
4162 | |
|
|
4163 | NM="$lt_cv_path_NM" |
|
|
4164 | echo "$as_me:$LINENO: result: $NM" >&5 |
|
|
4165 | echo "${ECHO_T}$NM" >&6 |
|
|
4166 | |
|
|
4167 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
|
4168 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
|
4169 | LN_S=$as_ln_s |
|
|
4170 | if test "$LN_S" = "ln -s"; then |
|
|
4171 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4172 | echo "${ECHO_T}yes" >&6 |
|
|
4173 | else |
|
|
4174 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
|
4175 | echo "${ECHO_T}no, using $LN_S" >&6 |
|
|
4176 | fi |
|
|
4177 | |
|
|
4178 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
|
|
4179 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
|
|
4180 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
|
4181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4182 | else |
|
|
4183 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
|
4184 | lt_cv_file_magic_test_file= |
|
|
4185 | lt_cv_deplibs_check_method='unknown' |
|
|
4186 | # Need to set the preceding variable on all platforms that support |
|
|
4187 | # interlibrary dependencies. |
|
|
4188 | # 'none' -- dependencies not supported. |
|
|
4189 | # `unknown' -- same as none, but documents that we really don't know. |
|
|
4190 | # 'pass_all' -- all dependencies passed with no checks. |
|
|
4191 | # 'test_compile' -- check by making test program. |
|
|
4192 | # ['file_magic [regex]'] -- check by looking for files in library path |
|
|
4193 | # which responds to the $file_magic_cmd with a given egrep regex. |
|
|
4194 | # If you have `file' or equivalent on your system and you're not sure |
|
|
4195 | # whether `pass_all' will *always* work, you probably want this one. |
|
|
4196 | |
|
|
4197 | case "$host_os" in |
|
|
4198 | aix4*) |
|
|
4199 | lt_cv_deplibs_check_method=pass_all |
|
|
4200 | ;; |
|
|
4201 | |
|
|
4202 | beos*) |
|
|
4203 | lt_cv_deplibs_check_method=pass_all |
|
|
4204 | ;; |
|
|
4205 | |
|
|
4206 | bsdi4*) |
|
|
4207 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
|
4208 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4209 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4210 | ;; |
|
|
4211 | |
|
|
4212 | cygwin* | mingw* | pw32*) |
|
|
4213 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
4214 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
|
4215 | ;; |
|
|
4216 | |
|
|
4217 | darwin*|rhapsody*) |
|
|
4218 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
|
4219 | lt_cv_file_magiic_cmd=/usr/bin/file |
|
|
4220 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
|
|
4221 | ;; |
|
|
4222 | |
|
|
4223 | freebsd*) |
|
|
4224 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4225 | case "$host_cpu" in |
|
|
4226 | i*86 ) |
|
|
4227 | # Not sure whether the presence of OpenBSD here was a mistake. |
|
|
4228 | # Let's accept both of them until this is cleared up. |
|
|
4229 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
|
|
4230 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4231 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
|
4232 | ;; |
|
|
4233 | esac |
|
|
4234 | else |
|
|
4235 | lt_cv_deplibs_check_method=pass_all |
|
|
4236 | fi |
|
|
4237 | ;; |
|
|
4238 | |
|
|
4239 | gnu*) |
|
|
4240 | lt_cv_deplibs_check_method=pass_all |
|
|
4241 | ;; |
|
|
4242 | |
|
|
4243 | hpux10.20*|hpux11*) |
|
|
4244 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
|
4245 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4246 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
|
4247 | ;; |
|
|
4248 | |
|
|
4249 | irix5* | irix6*) |
|
|
4250 | case "$host_os" in |
|
|
4251 | irix5*) |
|
|
4252 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4253 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
|
|
4254 | ;; |
|
|
4255 | *) |
|
|
4256 | case "$LD" in |
|
|
4257 | *-32|*"-32 ") libmagic=32-bit;; |
|
|
4258 | *-n32|*"-n32 ") libmagic=N32;; |
|
|
4259 | *-64|*"-64 ") libmagic=64-bit;; |
|
|
4260 | *) libmagic=never-match;; |
|
|
4261 | esac |
|
|
4262 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4263 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
|
|
4264 | ;; |
|
|
4265 | esac |
|
|
4266 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
|
4267 | lt_cv_deplibs_check_method=pass_all |
|
|
4268 | ;; |
|
|
4269 | |
|
|
4270 | # This must be Linux ELF. |
|
|
4271 | linux-gnu*) |
|
|
4272 | case "$host_cpu" in |
|
|
4273 | alpha* | i*86 | powerpc* | sparc* | ia64* ) |
|
|
4274 | lt_cv_deplibs_check_method=pass_all ;; |
|
|
4275 | *) |
|
|
4276 | # glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
4277 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
4278 | esac |
|
|
4279 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
|
4280 | ;; |
|
|
4281 | |
|
|
4282 | netbsd*) |
|
|
4283 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4284 | lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library' |
|
|
4285 | else |
|
|
4286 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
|
|
4287 | fi |
|
|
4288 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4289 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4290 | ;; |
|
|
4291 | |
|
|
4292 | newos6*) |
|
|
4293 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
|
4294 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4295 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
|
4296 | ;; |
|
|
4297 | |
|
|
4298 | osf3* | osf4* | osf5*) |
|
|
4299 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4300 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
|
4301 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4302 | lt_cv_deplibs_check_method=pass_all |
|
|
4303 | ;; |
|
|
4304 | |
|
|
4305 | sco3.2v5*) |
|
|
4306 | lt_cv_deplibs_check_method=pass_all |
|
|
4307 | ;; |
|
|
4308 | |
|
|
4309 | solaris*) |
|
|
4310 | lt_cv_deplibs_check_method=pass_all |
|
|
4311 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4312 | ;; |
|
|
4313 | |
|
|
4314 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
4315 | case "$host_vendor" in |
|
|
4316 | motorola) |
|
|
4317 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
|
|
4318 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4319 | ;; |
|
|
4320 | ncr) |
|
|
4321 | lt_cv_deplibs_check_method=pass_all |
|
|
4322 | ;; |
|
|
4323 | sequent) |
|
|
4324 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4325 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
|
4326 | ;; |
|
|
4327 | sni) |
|
|
4328 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4329 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
|
4330 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4331 | ;; |
|
|
4332 | esac |
|
|
4333 | ;; |
|
|
4334 | esac |
|
|
4335 | |
|
|
4336 | fi |
|
|
4337 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
|
4338 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
|
4339 | file_magic_cmd=$lt_cv_file_magic_cmd |
|
|
4340 | deplibs_check_method=$lt_cv_deplibs_check_method |
|
|
4341 | |
|
|
4342 | |
|
|
4343 | |
|
|
4344 | |
|
|
4345 | |
|
|
4346 | |
|
|
4347 | |
|
|
4348 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
4349 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
|
|
4350 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
|
|
4351 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
4352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4353 | else |
|
|
4354 | |
|
|
4355 | # These are sane defaults that work on at least a few old systems. |
|
|
4356 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
4357 | |
|
|
4358 | # Character class describing NM global symbol codes. |
|
|
4359 | symcode='[BCDEGRST]' |
|
|
4360 | |
|
|
4361 | # Regexp to match symbols that can be accessed directly from C. |
|
|
4362 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
4363 | |
|
|
4364 | # Transform the above into a raw symbol and a C symbol. |
|
|
4365 | symxfrm='\1 \2\3 \3' |
|
|
4366 | |
|
|
4367 | # Transform an extracted symbol line into a proper C declaration |
|
|
4368 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4369 | |
|
|
4370 | # Define system-specific variables. |
|
|
4371 | case "$host_os" in |
|
|
4372 | aix*) |
|
|
4373 | symcode='[BCDT]' |
|
|
4374 | ;; |
|
|
4375 | cygwin* | mingw* | pw32*) |
|
|
4376 | symcode='[ABCDGISTW]' |
|
|
4377 | ;; |
|
|
4378 | hpux*) # Its linker distinguishes data from code symbols |
|
|
4379 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4380 | ;; |
|
|
4381 | irix*) |
|
|
4382 | symcode='[BCDEGRST]' |
|
|
4383 | ;; |
|
|
4384 | solaris* | sysv5*) |
|
|
4385 | symcode='[BDT]' |
|
|
4386 | ;; |
|
|
4387 | sysv4) |
|
|
4388 | symcode='[DFNSTU]' |
|
|
4389 | ;; |
|
|
4390 | esac |
|
|
4391 | |
|
|
4392 | # Handle CRLF in mingw tool chain |
|
|
4393 | opt_cr= |
|
|
4394 | case "$host_os" in |
|
|
4395 | mingw*) |
|
|
4396 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
4397 | ;; |
|
|
4398 | esac |
|
|
4399 | |
|
|
4400 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
4401 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4402 | symcode='[ABCDGISTW]' |
|
|
4403 | fi |
|
|
4404 | |
|
|
4405 | # Try without a prefix undercore, then with it. |
|
|
4406 | for ac_symprfx in "" "_"; do |
|
|
4407 | |
|
|
4408 | # Write the raw and C identifiers. |
|
|
4409 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
|
4410 | |
|
|
4411 | # Check to see that the pipe works correctly. |
|
|
4412 | pipe_works=no |
|
|
4413 | rm -f conftest* |
|
|
4414 | cat > conftest.$ac_ext <<EOF |
|
|
4415 | #ifdef __cplusplus |
|
|
4416 | extern "C" { |
|
|
4417 | #endif |
|
|
4418 | char nm_test_var; |
|
|
4419 | void nm_test_func(){} |
|
|
4420 | #ifdef __cplusplus |
|
|
4421 | } |
|
|
4422 | #endif |
|
|
4423 | main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
4424 | EOF |
|
|
4425 | |
|
|
4426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4427 | (eval $ac_compile) 2>&5 |
|
|
4428 | ac_status=$? |
|
|
4429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4430 | (exit $ac_status); }; then |
|
|
4431 | # Now try to grab the symbols. |
|
|
4432 | nlist=conftest.nm |
|
|
4433 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
4434 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
4435 | ac_status=$? |
|
|
4436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4437 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
4438 | # Try sorting and uniquifying the output. |
|
|
4439 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
4440 | mv -f "$nlist"T "$nlist" |
|
|
4441 | else |
|
|
4442 | rm -f "$nlist"T |
|
|
4443 | fi |
|
|
4444 | |
|
|
4445 | # Make sure that we snagged all the symbols we need. |
|
|
4446 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
4447 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
4448 | cat <<EOF > conftest.$ac_ext |
|
|
4449 | #ifdef __cplusplus |
|
|
4450 | extern "C" { |
|
|
4451 | #endif |
|
|
4452 | |
|
|
4453 | EOF |
|
|
4454 | # Now generate the symbol file. |
|
|
4455 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
|
|
4456 | |
|
|
4457 | cat <<EOF >> conftest.$ac_ext |
|
|
4458 | #if defined (__STDC__) && __STDC__ |
|
|
4459 | # define lt_ptr_t void * |
|
|
4460 | #else |
|
|
4461 | # define lt_ptr_t char * |
|
|
4462 | # define const |
|
|
4463 | #endif |
|
|
4464 | |
|
|
4465 | /* The mapping between symbol names and symbols. */ |
|
|
4466 | const struct { |
|
|
4467 | const char *name; |
|
|
4468 | lt_ptr_t address; |
|
|
4469 | } |
|
|
4470 | lt_preloaded_symbols[] = |
|
|
4471 | { |
|
|
4472 | EOF |
|
|
4473 | sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext |
|
|
4474 | cat <<\EOF >> conftest.$ac_ext |
|
|
4475 | {0, (lt_ptr_t) 0} |
|
|
4476 | }; |
|
|
4477 | |
|
|
4478 | #ifdef __cplusplus |
|
|
4479 | } |
|
|
4480 | #endif |
|
|
4481 | EOF |
|
|
4482 | # Now try linking the two files. |
|
|
4483 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
4484 | save_LIBS="$LIBS" |
|
|
4485 | save_CFLAGS="$CFLAGS" |
|
|
4486 | LIBS="conftstm.$ac_objext" |
|
|
4487 | CFLAGS="$CFLAGS$no_builtin_flag" |
|
|
4488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4489 | (eval $ac_link) 2>&5 |
|
|
4490 | ac_status=$? |
|
|
4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4492 | (exit $ac_status); } && test -s conftest; then |
|
|
4493 | pipe_works=yes |
|
|
4494 | fi |
|
|
4495 | LIBS="$save_LIBS" |
|
|
4496 | CFLAGS="$save_CFLAGS" |
|
|
4497 | else |
|
|
4498 | echo "cannot find nm_test_func in $nlist" >&5 |
|
|
4499 | fi |
|
|
4500 | else |
|
|
4501 | echo "cannot find nm_test_var in $nlist" >&5 |
|
|
4502 | fi |
|
|
4503 | else |
|
|
4504 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
4505 | fi |
|
|
4506 | else |
|
|
4507 | echo "$progname: failed program was:" >&5 |
|
|
4508 | cat conftest.$ac_ext >&5 |
|
|
4509 | fi |
|
|
4510 | rm -f conftest* conftst* |
|
|
4511 | |
|
|
4512 | # Do not use the global_symbol_pipe unless it works. |
|
|
4513 | if test "$pipe_works" = yes; then |
|
|
4514 | break |
|
|
4515 | else |
|
|
4516 | lt_cv_sys_global_symbol_pipe= |
|
|
4517 | fi |
|
|
4518 | done |
|
|
4519 | |
|
|
4520 | fi |
|
|
4521 | |
|
|
4522 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
|
|
4523 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
4524 | global_symbol_to_cdecl= |
|
|
4525 | else |
|
|
4526 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
|
|
4527 | fi |
|
|
4528 | if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
|
|
4529 | echo "$as_me:$LINENO: result: failed" >&5 |
|
|
4530 | echo "${ECHO_T}failed" >&6 |
|
|
4531 | else |
|
|
4532 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
4533 | echo "${ECHO_T}ok" >&6 |
|
|
4534 | fi |
|
|
4535 | |
|
|
4536 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
4537 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
4538 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4540 | else |
|
|
4541 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4542 | /* confdefs.h. */ |
|
|
4543 | _ACEOF |
|
|
4544 | cat confdefs.h >>conftest.$ac_ext |
|
|
4545 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4546 | /* end confdefs.h. */ |
|
|
4547 | #include <stdlib.h> |
|
|
4548 | #include <stdarg.h> |
|
|
4549 | #include <string.h> |
|
|
4550 | #include <float.h> |
|
|
4551 | |
|
|
4552 | int |
|
|
4553 | main () |
|
|
4554 | { |
|
|
4555 | |
|
|
4556 | ; |
|
|
4557 | return 0; |
|
|
4558 | } |
|
|
4559 | _ACEOF |
|
|
4560 | rm -f conftest.$ac_objext |
|
|
4561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4562 | (eval $ac_compile) 2>conftest.er1 |
|
|
4563 | ac_status=$? |
|
|
4564 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4565 | rm -f conftest.er1 |
|
|
4566 | cat conftest.err >&5 |
|
|
4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4568 | (exit $ac_status); } && |
|
|
4569 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4571 | (eval $ac_try) 2>&5 |
|
|
4572 | ac_status=$? |
|
|
4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4574 | (exit $ac_status); }; } && |
|
|
4575 | { ac_try='test -s conftest.$ac_objext' |
|
|
4576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4577 | (eval $ac_try) 2>&5 |
|
|
4578 | ac_status=$? |
|
|
4579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4580 | (exit $ac_status); }; }; then |
|
|
4581 | ac_cv_header_stdc=yes |
|
|
4582 | else |
|
|
4583 | echo "$as_me: failed program was:" >&5 |
|
|
4584 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4585 | |
|
|
4586 | ac_cv_header_stdc=no |
|
|
4587 | fi |
|
|
4588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4589 | |
|
|
4590 | if test $ac_cv_header_stdc = yes; then |
|
|
4591 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
4592 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4593 | /* confdefs.h. */ |
|
|
4594 | _ACEOF |
|
|
4595 | cat confdefs.h >>conftest.$ac_ext |
|
|
4596 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4597 | /* end confdefs.h. */ |
|
|
4598 | #include <string.h> |
|
|
4599 | |
|
|
4600 | _ACEOF |
|
|
4601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4602 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
4603 | : |
|
|
4604 | else |
|
|
4605 | ac_cv_header_stdc=no |
|
|
4606 | fi |
|
|
4607 | rm -f conftest* |
|
|
4608 | |
|
|
4609 | fi |
|
|
4610 | |
|
|
4611 | if test $ac_cv_header_stdc = yes; then |
|
|
4612 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
4613 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4614 | /* confdefs.h. */ |
|
|
4615 | _ACEOF |
|
|
4616 | cat confdefs.h >>conftest.$ac_ext |
|
|
4617 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4618 | /* end confdefs.h. */ |
|
|
4619 | #include <stdlib.h> |
|
|
4620 | |
|
|
4621 | _ACEOF |
|
|
4622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4623 | $EGREP "free" >/dev/null 2>&1; then |
|
|
4624 | : |
|
|
4625 | else |
|
|
4626 | ac_cv_header_stdc=no |
|
|
4627 | fi |
|
|
4628 | rm -f conftest* |
|
|
4629 | |
|
|
4630 | fi |
|
|
4631 | |
|
|
4632 | if test $ac_cv_header_stdc = yes; then |
|
|
4633 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
4634 | if test "$cross_compiling" = yes; then |
|
|
4635 | : |
|
|
4636 | else |
|
|
4637 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4638 | /* confdefs.h. */ |
|
|
4639 | _ACEOF |
|
|
4640 | cat confdefs.h >>conftest.$ac_ext |
|
|
4641 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4642 | /* end confdefs.h. */ |
|
|
4643 | #include <ctype.h> |
|
|
4644 | #if ((' ' & 0x0FF) == 0x020) |
|
|
4645 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
4646 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
4647 | #else |
|
|
4648 | # define ISLOWER(c) \ |
|
|
4649 | (('a' <= (c) && (c) <= 'i') \ |
|
|
4650 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
4651 | || ('s' <= (c) && (c) <= 'z')) |
|
|
4652 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
4653 | #endif |
|
|
4654 | |
|
|
4655 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
4656 | int |
|
|
4657 | main () |
|
|
4658 | { |
|
|
4659 | int i; |
|
|
4660 | for (i = 0; i < 256; i++) |
|
|
4661 | if (XOR (islower (i), ISLOWER (i)) |
|
|
4662 | || toupper (i) != TOUPPER (i)) |
|
|
4663 | exit(2); |
|
|
4664 | exit (0); |
|
|
4665 | } |
|
|
4666 | _ACEOF |
|
|
4667 | rm -f conftest$ac_exeext |
|
|
4668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4669 | (eval $ac_link) 2>&5 |
|
|
4670 | ac_status=$? |
|
|
4671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4672 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4674 | (eval $ac_try) 2>&5 |
|
|
4675 | ac_status=$? |
|
|
4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4677 | (exit $ac_status); }; }; then |
|
|
4678 | : |
|
|
4679 | else |
|
|
4680 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4681 | echo "$as_me: failed program was:" >&5 |
|
|
4682 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4683 | |
|
|
4684 | ( exit $ac_status ) |
|
|
4685 | ac_cv_header_stdc=no |
|
|
4686 | fi |
|
|
4687 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4688 | fi |
|
|
4689 | fi |
|
|
4690 | fi |
|
|
4691 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
4692 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
4693 | if test $ac_cv_header_stdc = yes; then |
|
|
4694 | |
|
|
4695 | cat >>confdefs.h <<\_ACEOF |
|
|
4696 | #define STDC_HEADERS 1 |
|
|
4697 | _ACEOF |
|
|
4698 | |
|
|
4699 | fi |
|
|
4700 | |
|
|
4701 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
4702 | |
|
|
4703 | |
|
|
4704 | |
|
|
4705 | |
|
|
4706 | |
|
|
4707 | |
|
|
4708 | |
|
|
4709 | |
|
|
4710 | |
|
|
4711 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
4712 | inttypes.h stdint.h unistd.h |
|
|
4713 | do |
|
|
4714 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4715 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4717 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4719 | else |
|
|
4720 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4721 | /* confdefs.h. */ |
|
|
4722 | _ACEOF |
|
|
4723 | cat confdefs.h >>conftest.$ac_ext |
|
|
4724 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4725 | /* end confdefs.h. */ |
|
|
4726 | $ac_includes_default |
|
|
4727 | |
|
|
4728 | #include <$ac_header> |
|
|
4729 | _ACEOF |
|
|
4730 | rm -f conftest.$ac_objext |
|
|
4731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4732 | (eval $ac_compile) 2>conftest.er1 |
|
|
4733 | ac_status=$? |
|
|
4734 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4735 | rm -f conftest.er1 |
|
|
4736 | cat conftest.err >&5 |
|
|
4737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4738 | (exit $ac_status); } && |
|
|
4739 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4741 | (eval $ac_try) 2>&5 |
|
|
4742 | ac_status=$? |
|
|
4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4744 | (exit $ac_status); }; } && |
|
|
4745 | { ac_try='test -s conftest.$ac_objext' |
|
|
4746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4747 | (eval $ac_try) 2>&5 |
|
|
4748 | ac_status=$? |
|
|
4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4750 | (exit $ac_status); }; }; then |
|
|
4751 | eval "$as_ac_Header=yes" |
|
|
4752 | else |
|
|
4753 | echo "$as_me: failed program was:" >&5 |
|
|
4754 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4755 | |
|
|
4756 | eval "$as_ac_Header=no" |
|
|
4757 | fi |
|
|
4758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4759 | fi |
|
|
4760 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4761 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4762 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4763 | cat >>confdefs.h <<_ACEOF |
|
|
4764 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4765 | _ACEOF |
|
|
4766 | |
|
|
4767 | fi |
|
|
4768 | |
|
|
4769 | done |
|
|
4770 | |
|
|
4771 | |
|
|
4772 | |
|
|
4773 | for ac_header in dlfcn.h |
|
|
4774 | do |
|
|
4775 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4776 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4777 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4779 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4781 | fi |
|
|
4782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4784 | else |
|
|
4785 | # Is the header compilable? |
|
|
4786 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
4787 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
4788 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4789 | /* confdefs.h. */ |
|
|
4790 | _ACEOF |
|
|
4791 | cat confdefs.h >>conftest.$ac_ext |
|
|
4792 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4793 | /* end confdefs.h. */ |
|
|
4794 | $ac_includes_default |
|
|
4795 | #include <$ac_header> |
|
|
4796 | _ACEOF |
|
|
4797 | rm -f conftest.$ac_objext |
|
|
4798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4799 | (eval $ac_compile) 2>conftest.er1 |
|
|
4800 | ac_status=$? |
|
|
4801 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4802 | rm -f conftest.er1 |
|
|
4803 | cat conftest.err >&5 |
|
|
4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4805 | (exit $ac_status); } && |
|
|
4806 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4808 | (eval $ac_try) 2>&5 |
|
|
4809 | ac_status=$? |
|
|
4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4811 | (exit $ac_status); }; } && |
|
|
4812 | { ac_try='test -s conftest.$ac_objext' |
|
|
4813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4814 | (eval $ac_try) 2>&5 |
|
|
4815 | ac_status=$? |
|
|
4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4817 | (exit $ac_status); }; }; then |
|
|
4818 | ac_header_compiler=yes |
|
|
4819 | else |
|
|
4820 | echo "$as_me: failed program was:" >&5 |
|
|
4821 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4822 | |
|
|
4823 | ac_header_compiler=no |
|
|
4824 | fi |
|
|
4825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4826 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
4827 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
4828 | |
|
|
4829 | # Is the header present? |
|
|
4830 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
4831 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
4832 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4833 | /* confdefs.h. */ |
|
|
4834 | _ACEOF |
|
|
4835 | cat confdefs.h >>conftest.$ac_ext |
|
|
4836 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4837 | /* end confdefs.h. */ |
|
|
4838 | #include <$ac_header> |
|
|
4839 | _ACEOF |
|
|
4840 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4841 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4842 | ac_status=$? |
|
|
4843 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4844 | rm -f conftest.er1 |
|
|
4845 | cat conftest.err >&5 |
|
|
4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4847 | (exit $ac_status); } >/dev/null; then |
|
|
4848 | if test -s conftest.err; then |
|
|
4849 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4850 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4851 | else |
|
|
4852 | ac_cpp_err= |
|
|
4853 | fi |
|
|
4854 | else |
|
|
4855 | ac_cpp_err=yes |
|
|
4856 | fi |
|
|
4857 | if test -z "$ac_cpp_err"; then |
|
|
4858 | ac_header_preproc=yes |
|
|
4859 | else |
|
|
4860 | echo "$as_me: failed program was:" >&5 |
|
|
4861 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4862 | |
|
|
4863 | ac_header_preproc=no |
|
|
4864 | fi |
|
|
4865 | rm -f conftest.err conftest.$ac_ext |
|
|
4866 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
4867 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
4868 | |
|
|
4869 | # So? What about this header? |
|
|
4870 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
4871 | yes:no: ) |
|
|
4872 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
4873 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
4874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
4875 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
4876 | ac_header_preproc=yes |
|
|
4877 | ;; |
|
|
4878 | no:yes:* ) |
|
|
4879 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
4880 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
4881 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
4882 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
4883 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
4884 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
4885 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
4886 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
4887 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
4888 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
4889 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
4890 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
4891 | ( |
|
|
4892 | cat <<\_ASBOX |
|
|
4893 | ## ------------------------------------------ ## |
|
|
4894 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
4895 | ## ------------------------------------------ ## |
|
|
4896 | _ASBOX |
|
|
4897 | ) | |
|
|
4898 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
4899 | ;; |
|
|
4900 | esac |
|
|
4901 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4902 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4905 | else |
|
|
4906 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
4907 | fi |
|
|
4908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4909 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4910 | |
|
|
4911 | fi |
|
|
4912 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4913 | cat >>confdefs.h <<_ACEOF |
|
|
4914 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4915 | _ACEOF |
|
|
4916 | |
|
|
4917 | fi |
|
|
4918 | |
|
|
4919 | done |
|
|
4920 | |
|
|
4921 | |
|
|
4922 | |
|
|
4923 | |
|
|
4924 | |
|
|
4925 | # Only perform the check for file, if the check method requires it |
|
|
4926 | case "$deplibs_check_method" in |
|
|
4927 | file_magic*) |
|
|
4928 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
|
4929 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
4930 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
4931 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4933 | else |
|
|
4934 | case "$MAGIC_CMD" in |
|
|
4935 | /*) |
|
|
4936 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
4937 | ;; |
|
|
4938 | ?:/*) |
|
|
4939 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
4940 | ;; |
|
|
4941 | *) |
|
|
4942 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
4943 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
4944 | ac_dummy="/usr/bin:$PATH" |
|
|
4945 | for ac_dir in $ac_dummy; do |
|
|
4946 | test -z "$ac_dir" && ac_dir=. |
|
|
4947 | if test -f $ac_dir/${ac_tool_prefix}file; then |
|
|
4948 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
|
4949 | if test -n "$file_magic_test_file"; then |
|
|
4950 | case "$deplibs_check_method" in |
|
|
4951 | "file_magic "*) |
|
|
4952 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
4953 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4954 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
4955 | egrep "$file_magic_regex" > /dev/null; then |
|
|
4956 | : |
|
|
4957 | else |
|
|
4958 | cat <<EOF 1>&2 |
|
|
4959 | |
|
|
4960 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
4961 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
4962 | *** The result is that libtool may fail to recognize shared libraries |
|
|
4963 | *** as such. This will affect the creation of libtool libraries that |
|
|
4964 | *** depend on shared libraries, but programs linked with such libtool |
|
|
4965 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
4966 | *** may want to report the problem to your system manager and/or to |
|
|
4967 | *** bug-libtool@gnu.org |
|
|
4968 | |
|
|
4969 | EOF |
|
|
4970 | fi ;; |
|
|
4971 | esac |
|
|
4972 | fi |
|
|
4973 | break |
|
|
4974 | fi |
|
|
4975 | done |
|
|
4976 | IFS="$ac_save_ifs" |
|
|
4977 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
4978 | ;; |
|
|
4979 | esac |
|
|
4980 | fi |
|
|
4981 | |
|
|
4982 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4983 | if test -n "$MAGIC_CMD"; then |
|
|
4984 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
4985 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
4986 | else |
|
|
4987 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4988 | echo "${ECHO_T}no" >&6 |
|
|
4989 | fi |
|
|
4990 | |
|
|
4991 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
|
4992 | if test -n "$ac_tool_prefix"; then |
|
|
4993 | echo "$as_me:$LINENO: checking for file" >&5 |
|
|
4994 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
4995 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4997 | else |
|
|
4998 | case "$MAGIC_CMD" in |
|
|
4999 | /*) |
|
|
5000 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
5001 | ;; |
|
|
5002 | ?:/*) |
|
|
5003 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
5004 | ;; |
|
|
5005 | *) |
|
|
5006 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
5007 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
5008 | ac_dummy="/usr/bin:$PATH" |
|
|
5009 | for ac_dir in $ac_dummy; do |
|
|
5010 | test -z "$ac_dir" && ac_dir=. |
|
|
5011 | if test -f $ac_dir/file; then |
|
|
5012 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
5013 | if test -n "$file_magic_test_file"; then |
|
|
5014 | case "$deplibs_check_method" in |
|
|
5015 | "file_magic "*) |
|
|
5016 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
5017 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5018 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
5019 | egrep "$file_magic_regex" > /dev/null; then |
|
|
5020 | : |
|
|
5021 | else |
|
|
5022 | cat <<EOF 1>&2 |
|
|
5023 | |
|
|
5024 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
5025 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
5026 | *** The result is that libtool may fail to recognize shared libraries |
|
|
5027 | *** as such. This will affect the creation of libtool libraries that |
|
|
5028 | *** depend on shared libraries, but programs linked with such libtool |
|
|
5029 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
5030 | *** may want to report the problem to your system manager and/or to |
|
|
5031 | *** bug-libtool@gnu.org |
|
|
5032 | |
|
|
5033 | EOF |
|
|
5034 | fi ;; |
|
|
5035 | esac |
|
|
5036 | fi |
|
|
5037 | break |
|
|
5038 | fi |
|
|
5039 | done |
|
|
5040 | IFS="$ac_save_ifs" |
|
|
5041 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
5042 | ;; |
|
|
5043 | esac |
|
|
5044 | fi |
|
|
5045 | |
|
|
5046 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5047 | if test -n "$MAGIC_CMD"; then |
|
|
5048 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
5049 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
5050 | else |
|
|
5051 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5052 | echo "${ECHO_T}no" >&6 |
|
|
5053 | fi |
|
|
5054 | |
|
|
5055 | else |
|
|
5056 | MAGIC_CMD=: |
|
|
5057 | fi |
|
|
5058 | fi |
|
|
5059 | |
|
|
5060 | fi |
|
|
5061 | ;; |
|
|
5062 | esac |
|
|
5063 | |
|
|
5064 | if test -n "$ac_tool_prefix"; then |
|
|
5065 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
5066 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
5067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5069 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
5070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5071 | else |
|
|
5072 | if test -n "$RANLIB"; then |
|
|
5073 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
5074 | else |
|
|
5075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5076 | for as_dir in $PATH |
|
|
5077 | do |
|
|
5078 | IFS=$as_save_IFS |
|
|
5079 | test -z "$as_dir" && as_dir=. |
|
|
5080 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5082 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
5083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5084 | break 2 |
|
|
5085 | fi |
|
|
5086 | done |
|
|
5087 | done |
|
|
5088 | |
|
|
5089 | fi |
|
|
5090 | fi |
|
|
5091 | RANLIB=$ac_cv_prog_RANLIB |
|
|
5092 | if test -n "$RANLIB"; then |
|
|
5093 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
5094 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
5095 | else |
|
|
5096 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5097 | echo "${ECHO_T}no" >&6 |
|
|
5098 | fi |
|
|
5099 | |
|
|
5100 | fi |
|
|
5101 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
5102 | ac_ct_RANLIB=$RANLIB |
|
|
5103 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
5104 | set dummy ranlib; ac_word=$2 |
|
|
5105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5107 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5109 | else |
|
|
5110 | if test -n "$ac_ct_RANLIB"; then |
|
|
5111 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
5112 | else |
|
|
5113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5114 | for as_dir in $PATH |
|
|
5115 | do |
|
|
5116 | IFS=$as_save_IFS |
|
|
5117 | test -z "$as_dir" && as_dir=. |
|
|
5118 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5120 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
5121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5122 | break 2 |
|
|
5123 | fi |
|
|
5124 | done |
|
|
5125 | done |
|
|
5126 | |
|
|
5127 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
5128 | fi |
|
|
5129 | fi |
|
|
5130 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
5131 | if test -n "$ac_ct_RANLIB"; then |
|
|
5132 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
5133 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
5134 | else |
|
|
5135 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5136 | echo "${ECHO_T}no" >&6 |
|
|
5137 | fi |
|
|
5138 | |
|
|
5139 | RANLIB=$ac_ct_RANLIB |
|
|
5140 | else |
|
|
5141 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
5142 | fi |
|
|
5143 | |
|
|
5144 | if test -n "$ac_tool_prefix"; then |
|
|
5145 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
5146 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
5147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5149 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
5150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5151 | else |
|
|
5152 | if test -n "$STRIP"; then |
|
|
5153 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
5154 | else |
|
|
5155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5156 | for as_dir in $PATH |
|
|
5157 | do |
|
|
5158 | IFS=$as_save_IFS |
|
|
5159 | test -z "$as_dir" && as_dir=. |
|
|
5160 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5162 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
5163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5164 | break 2 |
|
|
5165 | fi |
|
|
5166 | done |
|
|
5167 | done |
|
|
5168 | |
|
|
5169 | fi |
|
|
5170 | fi |
|
|
5171 | STRIP=$ac_cv_prog_STRIP |
|
|
5172 | if test -n "$STRIP"; then |
|
|
5173 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
5174 | echo "${ECHO_T}$STRIP" >&6 |
|
|
5175 | else |
|
|
5176 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5177 | echo "${ECHO_T}no" >&6 |
|
|
5178 | fi |
|
|
5179 | |
|
|
5180 | fi |
|
|
5181 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
5182 | ac_ct_STRIP=$STRIP |
|
|
5183 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
5184 | set dummy strip; ac_word=$2 |
|
|
5185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5187 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
5188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5189 | else |
|
|
5190 | if test -n "$ac_ct_STRIP"; then |
|
|
5191 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
5192 | else |
|
|
5193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5194 | for as_dir in $PATH |
|
|
5195 | do |
|
|
5196 | IFS=$as_save_IFS |
|
|
5197 | test -z "$as_dir" && as_dir=. |
|
|
5198 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5200 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
5201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5202 | break 2 |
|
|
5203 | fi |
|
|
5204 | done |
|
|
5205 | done |
|
|
5206 | |
|
|
5207 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
5208 | fi |
|
|
5209 | fi |
|
|
5210 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
5211 | if test -n "$ac_ct_STRIP"; then |
|
|
5212 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
5213 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
5214 | else |
|
|
5215 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5216 | echo "${ECHO_T}no" >&6 |
|
|
5217 | fi |
|
|
5218 | |
|
|
5219 | STRIP=$ac_ct_STRIP |
|
|
5220 | else |
|
|
5221 | STRIP="$ac_cv_prog_STRIP" |
|
|
5222 | fi |
|
|
5223 | |
|
|
5224 | |
|
|
5225 | enable_dlopen=no |
|
|
5226 | enable_win32_dll=no |
|
|
5227 | |
|
|
5228 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
5229 | if test "${enable_libtool_lock+set}" = set; then |
|
|
5230 | enableval="$enable_libtool_lock" |
|
|
5231 | |
|
|
5232 | fi; |
|
|
5233 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
|
5234 | |
|
|
5235 | # Some flags need to be propagated to the compiler or linker for good |
|
|
5236 | # libtool support. |
|
|
5237 | case "$host" in |
|
|
5238 | *-*-irix6*) |
|
|
5239 | # Find out which ABI we are using. |
|
|
5240 | echo '#line 5240 "configure"' > conftest.$ac_ext |
|
|
5241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5242 | (eval $ac_compile) 2>&5 |
|
|
5243 | ac_status=$? |
|
|
5244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5245 | (exit $ac_status); }; then |
|
|
5246 | case "`/usr/bin/file conftest.$ac_objext`" in |
|
|
5247 | *32-bit*) |
|
|
5248 | LD="${LD-ld} -32" |
|
|
5249 | ;; |
|
|
5250 | *N32*) |
|
|
5251 | LD="${LD-ld} -n32" |
|
|
5252 | ;; |
|
|
5253 | *64-bit*) |
|
|
5254 | LD="${LD-ld} -64" |
|
|
5255 | ;; |
|
|
5256 | esac |
|
|
5257 | fi |
|
|
5258 | rm -rf conftest* |
|
|
5259 | ;; |
|
|
5260 | |
|
|
5261 | *-*-sco3.2v5*) |
|
|
5262 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
|
5263 | SAVE_CFLAGS="$CFLAGS" |
|
|
5264 | CFLAGS="$CFLAGS -belf" |
|
|
5265 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
5266 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
5267 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
|
5268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5269 | else |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | ac_ext=c |
|
|
5273 | ac_cpp='$CPP $CPPFLAGS' |
|
|
5274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
5277 | |
|
|
5278 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5279 | /* confdefs.h. */ |
|
|
5280 | _ACEOF |
|
|
5281 | cat confdefs.h >>conftest.$ac_ext |
|
|
5282 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5283 | /* end confdefs.h. */ |
|
|
5284 | |
|
|
5285 | int |
|
|
5286 | main () |
|
|
5287 | { |
|
|
5288 | |
|
|
5289 | ; |
|
|
5290 | return 0; |
|
|
5291 | } |
|
|
5292 | _ACEOF |
|
|
5293 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5295 | (eval $ac_link) 2>conftest.er1 |
|
|
5296 | ac_status=$? |
|
|
5297 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5298 | rm -f conftest.er1 |
|
|
5299 | cat conftest.err >&5 |
|
|
5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5301 | (exit $ac_status); } && |
|
|
5302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
5303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5304 | (eval $ac_try) 2>&5 |
|
|
5305 | ac_status=$? |
|
|
5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5307 | (exit $ac_status); }; } && |
|
|
5308 | { ac_try='test -s conftest$ac_exeext' |
|
|
5309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5310 | (eval $ac_try) 2>&5 |
|
|
5311 | ac_status=$? |
|
|
5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5313 | (exit $ac_status); }; }; then |
|
|
5314 | lt_cv_cc_needs_belf=yes |
|
|
5315 | else |
|
|
5316 | echo "$as_me: failed program was:" >&5 |
|
|
5317 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5318 | |
|
|
5319 | lt_cv_cc_needs_belf=no |
|
|
5320 | fi |
|
|
5321 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5322 | conftest$ac_exeext conftest.$ac_ext |
|
|
5323 | ac_ext=cc |
|
|
5324 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5325 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5326 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5327 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5328 | |
|
|
5329 | fi |
|
|
5330 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
5331 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
5332 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
5333 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
5334 | CFLAGS="$SAVE_CFLAGS" |
|
|
5335 | fi |
|
|
5336 | ;; |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | esac |
|
|
5340 | |
|
|
5341 | # Sed substitution that helps us do robust quoting. It backslashifies |
|
|
5342 | # metacharacters that are still active within double-quoted strings. |
|
|
5343 | Xsed='sed -e s/^X//' |
|
|
5344 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
|
5345 | |
|
|
5346 | # Same as above, but do not quote variable references. |
|
|
5347 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
|
5348 | |
|
|
5349 | # Sed substitution to delay expansion of an escaped shell variable in a |
|
|
5350 | # double_quote_subst'ed string. |
|
|
5351 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
|
5352 | |
|
|
5353 | # Constants: |
|
|
5354 | rm="rm -f" |
|
|
5355 | |
|
|
5356 | # Global variables: |
|
|
5357 | default_ofile=libtool |
|
|
5358 | can_build_shared=yes |
|
|
5359 | |
|
|
5360 | # All known linkers require a `.a' archive for static linking (except M$VC, |
|
|
5361 | # which needs '.lib'). |
|
|
5362 | libext=a |
|
|
5363 | ltmain="$ac_aux_dir/ltmain.sh" |
|
|
5364 | ofile="$default_ofile" |
|
|
5365 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
5366 | need_locks="$enable_libtool_lock" |
|
|
5367 | |
|
|
5368 | old_CC="$CC" |
|
|
5369 | old_CFLAGS="$CFLAGS" |
|
|
5370 | |
|
|
5371 | # Set sane defaults for various variables |
|
|
5372 | test -z "$AR" && AR=ar |
|
|
5373 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
5374 | test -z "$AS" && AS=as |
|
|
5375 | test -z "$CC" && CC=cc |
|
|
5376 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
5377 | test -z "$LD" && LD=ld |
|
|
5378 | test -z "$LN_S" && LN_S="ln -s" |
|
|
5379 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
5380 | test -z "$NM" && NM=nm |
|
|
5381 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
5382 | test -z "$RANLIB" && RANLIB=: |
|
|
5383 | test -z "$STRIP" && STRIP=: |
|
|
5384 | test -z "$ac_objext" && ac_objext=o |
|
|
5385 | |
|
|
5386 | if test x"$host" != x"$build"; then |
|
|
5387 | ac_tool_prefix=${host_alias}- |
|
|
5388 | else |
|
|
5389 | ac_tool_prefix= |
|
|
5390 | fi |
|
|
5391 | |
|
|
5392 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
|
|
5393 | case "$host_os" in |
|
|
5394 | linux-gnu*) ;; |
|
|
5395 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
|
|
5396 | esac |
|
|
5397 | |
|
|
5398 | case "$host_os" in |
|
|
5399 | aix3*) |
|
|
5400 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
5401 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
5402 | # vanish in a puff of smoke. |
|
|
5403 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
5404 | COLLECT_NAMES= |
|
|
5405 | export COLLECT_NAMES |
|
|
5406 | fi |
|
|
5407 | ;; |
|
|
5408 | esac |
|
|
5409 | |
|
|
5410 | # Determine commands to create old-style static archives. |
|
|
5411 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
5412 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
5413 | old_postuninstall_cmds= |
|
|
5414 | |
|
|
5415 | if test -n "$RANLIB"; then |
|
|
5416 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
5417 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
5418 | fi |
|
|
5419 | |
|
|
5420 | # Allow CC to be a program name with arguments. |
|
|
5421 | set dummy $CC |
|
|
5422 | compiler="$2" |
|
|
5423 | |
|
|
5424 | ## FIXME: this should be a separate macro |
|
|
5425 | ## |
|
|
5426 | echo "$as_me:$LINENO: checking for objdir" >&5 |
|
|
5427 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
|
5428 | rm -f .libs 2>/dev/null |
|
|
5429 | mkdir .libs 2>/dev/null |
|
|
5430 | if test -d .libs; then |
|
|
5431 | objdir=.libs |
|
|
5432 | else |
|
|
5433 | # MS-DOS does not allow filenames that begin with a dot. |
|
|
5434 | objdir=_libs |
|
|
5435 | fi |
|
|
5436 | rmdir .libs 2>/dev/null |
|
|
5437 | echo "$as_me:$LINENO: result: $objdir" >&5 |
|
|
5438 | echo "${ECHO_T}$objdir" >&6 |
|
|
5439 | ## |
|
|
5440 | ## END FIXME |
|
|
5441 | |
|
|
5442 | |
|
|
5443 | ## FIXME: this should be a separate macro |
|
|
5444 | ## |
|
|
5445 | |
|
|
5446 | # Check whether --with-pic or --without-pic was given. |
|
|
5447 | if test "${with_pic+set}" = set; then |
|
|
5448 | withval="$with_pic" |
|
|
5449 | pic_mode="$withval" |
|
|
5450 | else |
|
|
5451 | pic_mode=default |
|
|
5452 | fi; |
|
|
5453 | test -z "$pic_mode" && pic_mode=default |
|
|
5454 | |
|
|
5455 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
|
|
5456 | # in isolation, and that seeing it set (from the cache) indicates that |
|
|
5457 | # the associated values are set (in the cache) correctly too. |
|
|
5458 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
5459 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
5460 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
|
|
5461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5462 | else |
|
|
5463 | lt_cv_prog_cc_pic= |
|
|
5464 | lt_cv_prog_cc_shlib= |
|
|
5465 | lt_cv_prog_cc_wl= |
|
|
5466 | lt_cv_prog_cc_static= |
|
|
5467 | lt_cv_prog_cc_no_builtin= |
|
|
5468 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
|
|
5469 | |
|
|
5470 | if test "$GCC" = yes; then |
|
|
5471 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5472 | lt_cv_prog_cc_static='-static' |
|
|
5473 | |
|
|
5474 | case "$host_os" in |
|
|
5475 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
|
|
5476 | # PIC is the default for these OSes. |
|
|
5477 | ;; |
|
|
5478 | aix*) |
|
|
5479 | # Below there is a dirty hack to force normal static linking with -ldl |
|
|
5480 | # The problem is because libdl dynamically linked with both libc and |
|
|
5481 | # libC (AIX C++ library), which obviously doesn't included in libraries |
|
|
5482 | # list by gcc. This cause undefined symbols with -static flags. |
|
|
5483 | # This hack allows C programs to be linked with "-static -ldl", but |
|
|
5484 | # we not sure about C++ programs. |
|
|
5485 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
|
|
5486 | ;; |
|
|
5487 | cygwin* | mingw* | pw32* | os2*) |
|
|
5488 | # This hack is so that the source file can tell whether it is being |
|
|
5489 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5490 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5491 | ;; |
|
|
5492 | amigaos*) |
|
|
5493 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
5494 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
5495 | # like `-m68040'. |
|
|
5496 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
5497 | ;; |
|
|
5498 | sysv4*MP*) |
|
|
5499 | if test -d /usr/nec; then |
|
|
5500 | lt_cv_prog_cc_pic=-Kconform_pic |
|
|
5501 | fi |
|
|
5502 | ;; |
|
|
5503 | *) |
|
|
5504 | lt_cv_prog_cc_pic='-fPIC' |
|
|
5505 | ;; |
|
|
5506 | esac |
|
|
5507 | else |
|
|
5508 | # PORTME Check for PIC flags for the system compiler. |
|
|
5509 | case "$host_os" in |
|
|
5510 | aix3* | aix4*) |
|
|
5511 | # All AIX code is PIC. |
|
|
5512 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
|
|
5513 | ;; |
|
|
5514 | |
|
|
5515 | hpux9* | hpux10* | hpux11*) |
|
|
5516 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
|
|
5517 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5518 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
|
|
5519 | lt_cv_prog_cc_pic='+Z' |
|
|
5520 | ;; |
|
|
5521 | |
|
|
5522 | irix5* | irix6*) |
|
|
5523 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5524 | lt_cv_prog_cc_static='-non_shared' |
|
|
5525 | # PIC (with -KPIC) is the default. |
|
|
5526 | ;; |
|
|
5527 | |
|
|
5528 | cygwin* | mingw* | pw32* | os2*) |
|
|
5529 | # This hack is so that the source file can tell whether it is being |
|
|
5530 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5531 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5532 | ;; |
|
|
5533 | |
|
|
5534 | newsos6) |
|
|
5535 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5536 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5537 | ;; |
|
|
5538 | |
|
|
5539 | osf3* | osf4* | osf5*) |
|
|
5540 | # All OSF/1 code is PIC. |
|
|
5541 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5542 | lt_cv_prog_cc_static='-non_shared' |
|
|
5543 | ;; |
|
|
5544 | |
|
|
5545 | sco3.2v5*) |
|
|
5546 | lt_cv_prog_cc_pic='-Kpic' |
|
|
5547 | lt_cv_prog_cc_static='-dn' |
|
|
5548 | lt_cv_prog_cc_shlib='-belf' |
|
|
5549 | ;; |
|
|
5550 | |
|
|
5551 | solaris*) |
|
|
5552 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5553 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5554 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5555 | ;; |
|
|
5556 | |
|
|
5557 | sunos4*) |
|
|
5558 | lt_cv_prog_cc_pic='-PIC' |
|
|
5559 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5560 | lt_cv_prog_cc_wl='-Qoption ld ' |
|
|
5561 | ;; |
|
|
5562 | |
|
|
5563 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
5564 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5565 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5566 | if test "x$host_vendor" = xsni; then |
|
|
5567 | lt_cv_prog_cc_wl='-LD' |
|
|
5568 | else |
|
|
5569 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5570 | fi |
|
|
5571 | ;; |
|
|
5572 | |
|
|
5573 | uts4*) |
|
|
5574 | lt_cv_prog_cc_pic='-pic' |
|
|
5575 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5576 | ;; |
|
|
5577 | |
|
|
5578 | sysv4*MP*) |
|
|
5579 | if test -d /usr/nec ;then |
|
|
5580 | lt_cv_prog_cc_pic='-Kconform_pic' |
|
|
5581 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5582 | fi |
|
|
5583 | ;; |
|
|
5584 | |
|
|
5585 | *) |
|
|
5586 | lt_cv_prog_cc_can_build_shared=no |
|
|
5587 | ;; |
|
|
5588 | esac |
|
|
5589 | fi |
|
|
5590 | |
|
|
5591 | fi |
|
|
5592 | |
|
|
5593 | if test -z "$lt_cv_prog_cc_pic"; then |
|
|
5594 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
5595 | echo "${ECHO_T}none" >&6 |
|
|
5596 | else |
|
|
5597 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
|
|
5598 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
|
|
5599 | |
|
|
5600 | # Check to make sure the pic_flag actually works. |
|
|
5601 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
|
|
5602 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
|
|
5603 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
|
|
5604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5605 | else |
|
|
5606 | save_CFLAGS="$CFLAGS" |
|
|
5607 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
|
|
5608 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5609 | /* confdefs.h. */ |
|
|
5610 | _ACEOF |
|
|
5611 | cat confdefs.h >>conftest.$ac_ext |
|
|
5612 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5613 | /* end confdefs.h. */ |
|
|
5614 | |
|
|
5615 | int |
|
|
5616 | main () |
|
|
5617 | { |
|
|
5618 | |
|
|
5619 | ; |
|
|
5620 | return 0; |
|
|
5621 | } |
|
|
5622 | _ACEOF |
|
|
5623 | rm -f conftest.$ac_objext |
|
|
5624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5625 | (eval $ac_compile) 2>conftest.er1 |
|
|
5626 | ac_status=$? |
|
|
5627 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5628 | rm -f conftest.er1 |
|
|
5629 | cat conftest.err >&5 |
|
|
5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5631 | (exit $ac_status); } && |
|
|
5632 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5634 | (eval $ac_try) 2>&5 |
|
|
5635 | ac_status=$? |
|
|
5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5637 | (exit $ac_status); }; } && |
|
|
5638 | { ac_try='test -s conftest.$ac_objext' |
|
|
5639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5640 | (eval $ac_try) 2>&5 |
|
|
5641 | ac_status=$? |
|
|
5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5643 | (exit $ac_status); }; }; then |
|
|
5644 | case "$host_os" in |
|
|
5645 | hpux9* | hpux10* | hpux11*) |
|
|
5646 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
|
|
5647 | # they create non-PIC objects. So, if there were any warnings, we |
|
|
5648 | # assume that PIC is not supported. |
|
|
5649 | if test -s conftest.err; then |
|
|
5650 | lt_cv_prog_cc_pic_works=no |
|
|
5651 | else |
|
|
5652 | lt_cv_prog_cc_pic_works=yes |
|
|
5653 | fi |
|
|
5654 | ;; |
|
|
5655 | *) |
|
|
5656 | lt_cv_prog_cc_pic_works=yes |
|
|
5657 | ;; |
|
|
5658 | esac |
|
|
5659 | |
|
|
5660 | else |
|
|
5661 | echo "$as_me: failed program was:" >&5 |
|
|
5662 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5663 | |
|
|
5664 | lt_cv_prog_cc_pic_works=no |
|
|
5665 | |
|
|
5666 | fi |
|
|
5667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5668 | CFLAGS="$save_CFLAGS" |
|
|
5669 | |
|
|
5670 | fi |
|
|
5671 | |
|
|
5672 | |
|
|
5673 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
|
|
5674 | lt_cv_prog_cc_pic= |
|
|
5675 | lt_cv_prog_cc_can_build_shared=no |
|
|
5676 | else |
|
|
5677 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
|
|
5678 | fi |
|
|
5679 | |
|
|
5680 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
|
|
5681 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
|
|
5682 | fi |
|
|
5683 | ## |
|
|
5684 | ## END FIXME |
|
|
5685 | |
|
|
5686 | # Check for any special shared library compilation flags. |
|
|
5687 | if test -n "$lt_cv_prog_cc_shlib"; then |
|
|
5688 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
|
|
5689 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
5690 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
5691 | else |
|
|
5692 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
5693 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
5694 | lt_cv_prog_cc_can_build_shared=no |
|
|
5695 | fi |
|
|
5696 | fi |
|
|
5697 | |
|
|
5698 | ## FIXME: this should be a separate macro |
|
|
5699 | ## |
|
|
5700 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
|
|
5701 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
|
|
5702 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
|
|
5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5704 | else |
|
|
5705 | lt_cv_prog_cc_static_works=no |
|
|
5706 | save_LDFLAGS="$LDFLAGS" |
|
|
5707 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
|
|
5708 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5709 | /* confdefs.h. */ |
|
|
5710 | _ACEOF |
|
|
5711 | cat confdefs.h >>conftest.$ac_ext |
|
|
5712 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5713 | /* end confdefs.h. */ |
|
|
5714 | |
|
|
5715 | int |
|
|
5716 | main () |
|
|
5717 | { |
|
|
5718 | |
|
|
5719 | ; |
|
|
5720 | return 0; |
|
|
5721 | } |
|
|
5722 | _ACEOF |
|
|
5723 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5725 | (eval $ac_link) 2>conftest.er1 |
|
|
5726 | ac_status=$? |
|
|
5727 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5728 | rm -f conftest.er1 |
|
|
5729 | cat conftest.err >&5 |
|
|
5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5731 | (exit $ac_status); } && |
|
|
5732 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5734 | (eval $ac_try) 2>&5 |
|
|
5735 | ac_status=$? |
|
|
5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5737 | (exit $ac_status); }; } && |
|
|
5738 | { ac_try='test -s conftest$ac_exeext' |
|
|
5739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5740 | (eval $ac_try) 2>&5 |
|
|
5741 | ac_status=$? |
|
|
5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5743 | (exit $ac_status); }; }; then |
|
|
5744 | lt_cv_prog_cc_static_works=yes |
|
|
5745 | else |
|
|
5746 | echo "$as_me: failed program was:" >&5 |
|
|
5747 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5748 | |
|
|
5749 | fi |
|
|
5750 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5751 | conftest$ac_exeext conftest.$ac_ext |
|
|
5752 | LDFLAGS="$save_LDFLAGS" |
|
|
5753 | |
|
|
5754 | fi |
|
|
5755 | |
|
|
5756 | |
|
|
5757 | # Belt *and* braces to stop my trousers falling down: |
|
|
5758 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
|
|
5759 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
|
|
5760 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
|
|
5761 | |
|
|
5762 | pic_flag="$lt_cv_prog_cc_pic" |
|
|
5763 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
|
|
5764 | wl="$lt_cv_prog_cc_wl" |
|
|
5765 | link_static_flag="$lt_cv_prog_cc_static" |
|
|
5766 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
5767 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
5768 | ## |
|
|
5769 | ## END FIXME |
|
|
5770 | |
|
|
5771 | |
|
|
5772 | ## FIXME: this should be a separate macro |
|
|
5773 | ## |
|
|
5774 | # Check to see if options -o and -c are simultaneously supported by compiler |
|
|
5775 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
5776 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
5777 | $rm -r conftest 2>/dev/null |
|
|
5778 | mkdir conftest |
|
|
5779 | cd conftest |
|
|
5780 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5781 | mkdir out |
|
|
5782 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
5783 | # that will create temporary files in the current directory regardless of |
|
|
5784 | # the output directory. Thus, making CWD read-only will cause this test |
|
|
5785 | # to fail, enabling locking or at least warning the user not to do parallel |
|
|
5786 | # builds. |
|
|
5787 | chmod -w . |
|
|
5788 | save_CFLAGS="$CFLAGS" |
|
|
5789 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
|
|
5790 | compiler_c_o=no |
|
|
5791 | if { (eval echo configure:5791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
|
5792 | # The compiler can only warn and ignore the option if not recognized |
|
|
5793 | # So say no if there are warnings |
|
|
5794 | if test -s out/conftest.err; then |
|
|
5795 | compiler_c_o=no |
|
|
5796 | else |
|
|
5797 | compiler_c_o=yes |
|
|
5798 | fi |
|
|
5799 | else |
|
|
5800 | # Append any errors to the config.log. |
|
|
5801 | cat out/conftest.err 1>&5 |
|
|
5802 | compiler_c_o=no |
|
|
5803 | fi |
|
|
5804 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5805 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5806 | CFLAGS="$save_CFLAGS" |
|
|
5807 | chmod u+w . |
|
|
5808 | $rm conftest* out/* |
|
|
5809 | rmdir out |
|
|
5810 | cd .. |
|
|
5811 | rmdir conftest |
|
|
5812 | $rm -r conftest 2>/dev/null |
|
|
5813 | |
|
|
5814 | if test x"$compiler_c_o" = x"yes"; then |
|
|
5815 | # Check to see if we can write to a .lo |
|
|
5816 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
|
|
5817 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
|
|
5818 | compiler_o_lo=no |
|
|
5819 | save_CFLAGS="$CFLAGS" |
|
|
5820 | CFLAGS="$CFLAGS -c -o conftest.lo" |
|
|
5821 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5822 | /* confdefs.h. */ |
|
|
5823 | _ACEOF |
|
|
5824 | cat confdefs.h >>conftest.$ac_ext |
|
|
5825 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5826 | /* end confdefs.h. */ |
|
|
5827 | |
|
|
5828 | int |
|
|
5829 | main () |
|
|
5830 | { |
|
|
5831 | int some_variable = 0; |
|
|
5832 | ; |
|
|
5833 | return 0; |
|
|
5834 | } |
|
|
5835 | _ACEOF |
|
|
5836 | rm -f conftest.$ac_objext |
|
|
5837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5838 | (eval $ac_compile) 2>conftest.er1 |
|
|
5839 | ac_status=$? |
|
|
5840 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5841 | rm -f conftest.er1 |
|
|
5842 | cat conftest.err >&5 |
|
|
5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5844 | (exit $ac_status); } && |
|
|
5845 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5847 | (eval $ac_try) 2>&5 |
|
|
5848 | ac_status=$? |
|
|
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5850 | (exit $ac_status); }; } && |
|
|
5851 | { ac_try='test -s conftest.$ac_objext' |
|
|
5852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5853 | (eval $ac_try) 2>&5 |
|
|
5854 | ac_status=$? |
|
|
5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5856 | (exit $ac_status); }; }; then |
|
|
5857 | # The compiler can only warn and ignore the option if not recognized |
|
|
5858 | # So say no if there are warnings |
|
|
5859 | if test -s conftest.err; then |
|
|
5860 | compiler_o_lo=no |
|
|
5861 | else |
|
|
5862 | compiler_o_lo=yes |
|
|
5863 | fi |
|
|
5864 | |
|
|
5865 | else |
|
|
5866 | echo "$as_me: failed program was:" >&5 |
|
|
5867 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5868 | |
|
|
5869 | fi |
|
|
5870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5871 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5872 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5873 | CFLAGS="$save_CFLAGS" |
|
|
5874 | else |
|
|
5875 | compiler_o_lo=no |
|
|
5876 | fi |
|
|
5877 | ## |
|
|
5878 | ## END FIXME |
|
|
5879 | |
|
|
5880 | ## FIXME: this should be a separate macro |
|
|
5881 | ## |
|
|
5882 | # Check to see if we can do hard links to lock some files if needed |
|
|
5883 | hard_links="nottested" |
|
|
5884 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
5885 | # do not overwrite the value of need_locks provided by the user |
|
|
5886 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
5887 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
5888 | hard_links=yes |
|
|
5889 | $rm conftest* |
|
|
5890 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5891 | touch conftest.a |
|
|
5892 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
5893 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5894 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
5895 | echo "${ECHO_T}$hard_links" >&6 |
|
|
5896 | if test "$hard_links" = no; then |
|
|
5897 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
5898 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
5899 | need_locks=warn |
|
|
5900 | fi |
|
|
5901 | else |
|
|
5902 | need_locks=no |
|
|
5903 | fi |
|
|
5904 | ## |
|
|
5905 | ## END FIXME |
|
|
5906 | |
|
|
5907 | ## FIXME: this should be a separate macro |
|
|
5908 | ## |
|
|
5909 | if test "$GCC" = yes; then |
|
|
5910 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
|
|
5911 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
5912 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
5913 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5914 | save_CFLAGS="$CFLAGS" |
|
|
5915 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
|
|
5916 | compiler_rtti_exceptions=no |
|
|
5917 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5918 | /* confdefs.h. */ |
|
|
5919 | _ACEOF |
|
|
5920 | cat confdefs.h >>conftest.$ac_ext |
|
|
5921 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5922 | /* end confdefs.h. */ |
|
|
5923 | |
|
|
5924 | int |
|
|
5925 | main () |
|
|
5926 | { |
|
|
5927 | int some_variable = 0; |
|
|
5928 | ; |
|
|
5929 | return 0; |
|
|
5930 | } |
|
|
5931 | _ACEOF |
|
|
5932 | rm -f conftest.$ac_objext |
|
|
5933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5934 | (eval $ac_compile) 2>conftest.er1 |
|
|
5935 | ac_status=$? |
|
|
5936 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5937 | rm -f conftest.er1 |
|
|
5938 | cat conftest.err >&5 |
|
|
5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5940 | (exit $ac_status); } && |
|
|
5941 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5943 | (eval $ac_try) 2>&5 |
|
|
5944 | ac_status=$? |
|
|
5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5946 | (exit $ac_status); }; } && |
|
|
5947 | { ac_try='test -s conftest.$ac_objext' |
|
|
5948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5949 | (eval $ac_try) 2>&5 |
|
|
5950 | ac_status=$? |
|
|
5951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5952 | (exit $ac_status); }; }; then |
|
|
5953 | # The compiler can only warn and ignore the option if not recognized |
|
|
5954 | # So say no if there are warnings |
|
|
5955 | if test -s conftest.err; then |
|
|
5956 | compiler_rtti_exceptions=no |
|
|
5957 | else |
|
|
5958 | compiler_rtti_exceptions=yes |
|
|
5959 | fi |
|
|
5960 | |
|
|
5961 | else |
|
|
5962 | echo "$as_me: failed program was:" >&5 |
|
|
5963 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5964 | |
|
|
5965 | fi |
|
|
5966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5967 | CFLAGS="$save_CFLAGS" |
|
|
5968 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
|
|
5969 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
|
|
5970 | |
|
|
5971 | if test "$compiler_rtti_exceptions" = "yes"; then |
|
|
5972 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
|
|
5973 | else |
|
|
5974 | no_builtin_flag=' -fno-builtin' |
|
|
5975 | fi |
|
|
5976 | fi |
|
|
5977 | ## |
|
|
5978 | ## END FIXME |
|
|
5979 | |
|
|
5980 | ## FIXME: this should be a separate macro |
|
|
5981 | ## |
|
|
5982 | # See if the linker supports building shared libraries. |
|
|
5983 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
|
|
5984 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
5985 | |
|
|
5986 | allow_undefined_flag= |
|
|
5987 | no_undefined_flag= |
|
|
5988 | need_lib_prefix=unknown |
|
|
5989 | need_version=unknown |
|
|
5990 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
5991 | # flags to be left without arguments |
|
|
5992 | archive_cmds= |
|
|
5993 | archive_expsym_cmds= |
|
|
5994 | old_archive_from_new_cmds= |
|
|
5995 | old_archive_from_expsyms_cmds= |
|
|
5996 | export_dynamic_flag_spec= |
|
|
5997 | whole_archive_flag_spec= |
|
|
5998 | thread_safe_flag_spec= |
|
|
5999 | hardcode_into_libs=no |
|
|
6000 | hardcode_libdir_flag_spec= |
|
|
6001 | hardcode_libdir_separator= |
|
|
6002 | hardcode_direct=no |
|
|
6003 | hardcode_minus_L=no |
|
|
6004 | hardcode_shlibpath_var=unsupported |
|
|
6005 | runpath_var= |
|
|
6006 | link_all_deplibs=unknown |
|
|
6007 | always_export_symbols=no |
|
|
6008 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
6009 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
6010 | # included in the symbol list |
|
|
6011 | include_expsyms= |
|
|
6012 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
|
|
6013 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
6014 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
6015 | # as well as any symbol that contains `d'. |
|
|
6016 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
6017 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
6018 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
6019 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
6020 | # rely on this symbol name, it's probably fine to never include it in |
|
|
6021 | # preloaded symbol tables. |
|
|
6022 | extract_expsyms_cmds= |
|
|
6023 | |
|
|
6024 | case "$host_os" in |
|
|
6025 | cygwin* | mingw* | pw32* ) |
|
|
6026 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
6027 | # When not using gcc, we currently assume that we are using |
|
|
6028 | # Microsoft Visual C++. |
|
|
6029 | if test "$GCC" != yes; then |
|
|
6030 | with_gnu_ld=no |
|
|
6031 | fi |
|
|
6032 | ;; |
|
|
6033 | |
|
|
6034 | esac |
|
|
6035 | |
|
|
6036 | ld_shlibs=yes |
|
|
6037 | if test "$with_gnu_ld" = yes; then |
|
|
6038 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
6039 | wlarc='${wl}' |
|
|
6040 | |
|
|
6041 | # See if GNU ld supports shared libraries. |
|
|
6042 | case "$host_os" in |
|
|
6043 | aix3* | aix4*) |
|
|
6044 | # On AIX, the GNU linker is very broken |
|
|
6045 | ld_shlibs=no |
|
|
6046 | cat <<EOF 1>&2 |
|
|
6047 | |
|
|
6048 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
6049 | *** to be unable to reliably create shared libraries on AIX. |
|
|
6050 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
6051 | *** really care for shared libraries, you may want to modify your PATH |
|
|
6052 | *** so that a non-GNU linker is found, and then restart. |
|
|
6053 | |
|
|
6054 | EOF |
|
|
6055 | ;; |
|
|
6056 | |
|
|
6057 | amigaos*) |
|
|
6058 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
6059 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6060 | hardcode_minus_L=yes |
|
|
6061 | |
|
|
6062 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
6063 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
6064 | # to version 4, is to share data among multiple programs linked |
|
|
6065 | # with the same dynamic library. Since this doesn't match the |
|
|
6066 | # behavior of shared libraries on other platforms, we can use |
|
|
6067 | # them. |
|
|
6068 | ld_shlibs=no |
|
|
6069 | ;; |
|
|
6070 | |
|
|
6071 | beos*) |
|
|
6072 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6073 | allow_undefined_flag=unsupported |
|
|
6074 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
6075 | # support --undefined. This deserves some investigation. FIXME |
|
|
6076 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6077 | else |
|
|
6078 | ld_shlibs=no |
|
|
6079 | fi |
|
|
6080 | ;; |
|
|
6081 | |
|
|
6082 | cygwin* | mingw* | pw32*) |
|
|
6083 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6084 | # no search path for DLLs. |
|
|
6085 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6086 | allow_undefined_flag=unsupported |
|
|
6087 | always_export_symbols=yes |
|
|
6088 | |
|
|
6089 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
|
|
6090 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
|
|
6091 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
|
|
6092 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
|
|
6093 | else $CC -o impgen impgen.c ; fi)~ |
|
|
6094 | $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def' |
|
|
6095 | |
|
|
6096 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
|
|
6097 | |
|
|
6098 | # cygwin and mingw dlls have different entry points and sets of symbols |
|
|
6099 | # to exclude. |
|
|
6100 | # FIXME: what about values for MSVC? |
|
|
6101 | dll_entry=__cygwin_dll_entry@12 |
|
|
6102 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
|
|
6103 | case "$host_os" in |
|
|
6104 | mingw*) |
|
|
6105 | # mingw values |
|
|
6106 | dll_entry=_DllMainCRTStartup@12 |
|
|
6107 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
|
|
6108 | ;; |
|
|
6109 | esac |
|
|
6110 | |
|
|
6111 | # mingw and cygwin differ, and it's simplest to just exclude the union |
|
|
6112 | # of the two symbol sets. |
|
|
6113 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
|
|
6114 | |
|
|
6115 | # recent cygwin and mingw systems supply a stub DllMain which the user |
|
|
6116 | # can override, but on older systems we have to supply one (in ltdll.c) |
|
|
6117 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
|
|
6118 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
|
|
6119 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~ |
|
|
6120 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
|
|
6121 | else |
|
|
6122 | ltdll_obj= |
|
|
6123 | ltdll_cmds= |
|
|
6124 | fi |
|
|
6125 | |
|
|
6126 | # Extract the symbol export list from an `--export-all' def file, |
|
|
6127 | # then regenerate the def file from the symbol export list, so that |
|
|
6128 | # the compiled dll only exports the symbol export list. |
|
|
6129 | # Be careful not to strip the DATA tag left be newer dlltools. |
|
|
6130 | export_symbols_cmds="$ltdll_cmds"' |
|
|
6131 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
|
|
6132 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
|
|
6133 | |
|
|
6134 | # If DATA tags from a recent dlltool are present, honour them! |
|
|
6135 | archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~ |
|
|
6136 | _lt_hint=1; |
|
|
6137 | cat $export_symbols | while read symbol; do |
|
|
6138 | set dummy \$symbol; |
|
|
6139 | case \$# in |
|
|
6140 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
6141 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
|
|
6142 | esac; |
|
|
6143 | _lt_hint=`expr 1 + \$_lt_hint`; |
|
|
6144 | done~ |
|
|
6145 | '"$ltdll_cmds"' |
|
|
6146 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
6147 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
|
|
6148 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
6149 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
|
|
6150 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
|
|
6151 | ;; |
|
|
6152 | |
|
|
6153 | netbsd*) |
|
|
6154 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6155 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
6156 | wlarc= |
|
|
6157 | else |
|
|
6158 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6159 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6160 | fi |
|
|
6161 | ;; |
|
|
6162 | |
|
|
6163 | solaris* | sysv5*) |
|
|
6164 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
|
|
6165 | ld_shlibs=no |
|
|
6166 | cat <<EOF 1>&2 |
|
|
6167 | |
|
|
6168 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
6169 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
6170 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
6171 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
6172 | *** your PATH or compiler configuration so that the native linker is |
|
|
6173 | *** used, and then restart. |
|
|
6174 | |
|
|
6175 | EOF |
|
|
6176 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6177 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6178 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6179 | else |
|
|
6180 | ld_shlibs=no |
|
|
6181 | fi |
|
|
6182 | ;; |
|
|
6183 | |
|
|
6184 | sunos4*) |
|
|
6185 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6186 | wlarc= |
|
|
6187 | hardcode_direct=yes |
|
|
6188 | hardcode_shlibpath_var=no |
|
|
6189 | ;; |
|
|
6190 | |
|
|
6191 | *) |
|
|
6192 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6193 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6194 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6195 | else |
|
|
6196 | ld_shlibs=no |
|
|
6197 | fi |
|
|
6198 | ;; |
|
|
6199 | esac |
|
|
6200 | |
|
|
6201 | if test "$ld_shlibs" = yes; then |
|
|
6202 | runpath_var=LD_RUN_PATH |
|
|
6203 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
6204 | export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
6205 | case $host_os in |
|
|
6206 | cygwin* | mingw* | pw32*) |
|
|
6207 | # dlltool doesn't understand --whole-archive et. al. |
|
|
6208 | whole_archive_flag_spec= |
|
|
6209 | ;; |
|
|
6210 | *) |
|
|
6211 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
6212 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
|
|
6213 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
6214 | else |
|
|
6215 | whole_archive_flag_spec= |
|
|
6216 | fi |
|
|
6217 | ;; |
|
|
6218 | esac |
|
|
6219 | fi |
|
|
6220 | else |
|
|
6221 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
6222 | case "$host_os" in |
|
|
6223 | aix3*) |
|
|
6224 | allow_undefined_flag=unsupported |
|
|
6225 | always_export_symbols=yes |
|
|
6226 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
|
6227 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
6228 | # are no directories specified by -L. |
|
|
6229 | hardcode_minus_L=yes |
|
|
6230 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
6231 | # Neither direct hardcoding nor static linking is supported with a |
|
|
6232 | # broken collect2. |
|
|
6233 | hardcode_direct=unsupported |
|
|
6234 | fi |
|
|
6235 | ;; |
|
|
6236 | |
|
|
6237 | aix4*) |
|
|
6238 | hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib' |
|
|
6239 | hardcode_libdir_separator=':' |
|
|
6240 | if test "$GCC" = yes; then |
|
|
6241 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
6242 | if test -f "$collect2name" && \ |
|
|
6243 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
6244 | then |
|
|
6245 | # We have reworked collect2 |
|
|
6246 | hardcode_direct=yes |
|
|
6247 | else |
|
|
6248 | # We have old collect2 |
|
|
6249 | hardcode_direct=unsupported |
|
|
6250 | # It fails to find uninstalled libraries when the uninstalled |
|
|
6251 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
6252 | # to unsupported forces relinking |
|
|
6253 | hardcode_minus_L=yes |
|
|
6254 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6255 | hardcode_libdir_separator= |
|
|
6256 | fi |
|
|
6257 | shared_flag='-shared' |
|
|
6258 | else |
|
|
6259 | shared_flag='${wl}-bM:SRE' |
|
|
6260 | hardcode_direct=yes |
|
|
6261 | fi |
|
|
6262 | allow_undefined_flag=' ${wl}-berok' |
|
|
6263 | archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6264 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6265 | case "$host_os" in aix4.[01]|aix4.[01].*) |
|
|
6266 | # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on |
|
|
6267 | always_export_symbols=yes ;; |
|
|
6268 | esac |
|
|
6269 | |
|
|
6270 | # We don't want to build shared libraries on unknown CPU types. |
|
|
6271 | case $host_cpu in |
|
|
6272 | powerpc | rs6000) ;; |
|
|
6273 | *) ld_shlibs=no ;; |
|
|
6274 | esac |
|
|
6275 | ;; |
|
|
6276 | |
|
|
6277 | amigaos*) |
|
|
6278 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
6279 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6280 | hardcode_minus_L=yes |
|
|
6281 | # see comment about different semantics on the GNU ld section |
|
|
6282 | ld_shlibs=no |
|
|
6283 | ;; |
|
|
6284 | |
|
|
6285 | cygwin* | mingw* | pw32*) |
|
|
6286 | # When not using gcc, we currently assume that we are using |
|
|
6287 | # Microsoft Visual C++. |
|
|
6288 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6289 | # no search path for DLLs. |
|
|
6290 | hardcode_libdir_flag_spec=' ' |
|
|
6291 | allow_undefined_flag=unsupported |
|
|
6292 | # Tell ltmain to make .lib files, not .a files. |
|
|
6293 | libext=lib |
|
|
6294 | # FIXME: Setting linknames here is a bad hack. |
|
|
6295 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
6296 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
6297 | old_archive_from_new_cmds='true' |
|
|
6298 | # FIXME: Should let the user specify the lib program. |
|
|
6299 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
6300 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
6301 | ;; |
|
|
6302 | |
|
|
6303 | darwin* | rhapsody*) |
|
|
6304 | allow_undefined_flag='-undefined warning' |
|
|
6305 | archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else |
|
|
6306 | echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts' |
|
|
6307 | archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
|
|
6308 | ## What we need is to hardcode the path to the library, not the search path |
|
|
6309 | #hardcode_direct=yes |
|
|
6310 | #hardcode_libdir_flag_spec='-install_name $libdir/$lib' |
|
|
6311 | hardcode_shlibpath_var=no |
|
|
6312 | whole_archive_flag_spec='-all_load' |
|
|
6313 | ;; |
|
|
6314 | |
|
|
6315 | freebsd1*) |
|
|
6316 | ld_shlibs=no |
|
|
6317 | ;; |
|
|
6318 | |
|
|
6319 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
6320 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
6321 | # does not break anything, and helps significantly (at the cost of a little |
|
|
6322 | # extra space). |
|
|
6323 | freebsd2.2*) |
|
|
6324 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
6325 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6326 | hardcode_direct=yes |
|
|
6327 | hardcode_shlibpath_var=no |
|
|
6328 | ;; |
|
|
6329 | |
|
|
6330 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
6331 | freebsd2*) |
|
|
6332 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6333 | hardcode_direct=yes |
|
|
6334 | hardcode_minus_L=yes |
|
|
6335 | hardcode_shlibpath_var=no |
|
|
6336 | ;; |
|
|
6337 | |
|
|
6338 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
6339 | freebsd*) |
|
|
6340 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6341 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6342 | hardcode_direct=yes |
|
|
6343 | hardcode_shlibpath_var=no |
|
|
6344 | ;; |
|
|
6345 | |
|
|
6346 | hpux9* | hpux10* | hpux11*) |
|
|
6347 | case "$host_os" in |
|
|
6348 | hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
|
|
6349 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
|
|
6350 | esac |
|
|
6351 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6352 | hardcode_libdir_separator=: |
|
|
6353 | hardcode_direct=yes |
|
|
6354 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
|
|
6355 | # location of the library. |
|
|
6356 | export_dynamic_flag_spec='${wl}-E' |
|
|
6357 | ;; |
|
|
6358 | |
|
|
6359 | irix5* | irix6*) |
|
|
6360 | if test "$GCC" = yes; then |
|
|
6361 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
6362 | else |
|
|
6363 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
6364 | fi |
|
|
6365 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6366 | hardcode_libdir_separator=: |
|
|
6367 | link_all_deplibs=yes |
|
|
6368 | ;; |
|
|
6369 | |
|
|
6370 | netbsd*) |
|
|
6371 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6372 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
6373 | else |
|
|
6374 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
6375 | fi |
|
|
6376 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6377 | hardcode_direct=yes |
|
|
6378 | hardcode_shlibpath_var=no |
|
|
6379 | ;; |
|
|
6380 | |
|
|
6381 | newsos6) |
|
|
6382 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6383 | hardcode_direct=yes |
|
|
6384 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6385 | hardcode_libdir_separator=: |
|
|
6386 | hardcode_shlibpath_var=no |
|
|
6387 | ;; |
|
|
6388 | |
|
|
6389 | openbsd*) |
|
|
6390 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6391 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6392 | hardcode_direct=yes |
|
|
6393 | hardcode_shlibpath_var=no |
|
|
6394 | ;; |
|
|
6395 | |
|
|
6396 | os2*) |
|
|
6397 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6398 | hardcode_minus_L=yes |
|
|
6399 | allow_undefined_flag=unsupported |
|
|
6400 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
|
|
6401 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
6402 | ;; |
|
|
6403 | |
|
|
6404 | osf3*) |
|
|
6405 | if test "$GCC" = yes; then |
|
|
6406 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6407 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
6408 | else |
|
|
6409 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6410 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
6411 | fi |
|
|
6412 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6413 | hardcode_libdir_separator=: |
|
|
6414 | ;; |
|
|
6415 | |
|
|
6416 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
6417 | if test "$GCC" = yes; then |
|
|
6418 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6419 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
6420 | else |
|
|
6421 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6422 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
6423 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
6424 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
|
6425 | fi |
|
|
6426 | #Both c and cxx compiler support -rpath directly |
|
|
6427 | hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
6428 | hardcode_libdir_separator=: |
|
|
6429 | ;; |
|
|
6430 | |
|
|
6431 | sco3.2v5*) |
|
|
6432 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6433 | hardcode_shlibpath_var=no |
|
|
6434 | runpath_var=LD_RUN_PATH |
|
|
6435 | hardcode_runpath_var=yes |
|
|
6436 | ;; |
|
|
6437 | |
|
|
6438 | solaris*) |
|
|
6439 | no_undefined_flag=' -z text' |
|
|
6440 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6441 | # object files and a static libstdc++, better avoid it by now |
|
|
6442 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6443 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6444 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6445 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6446 | hardcode_shlibpath_var=no |
|
|
6447 | case "$host_os" in |
|
|
6448 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
6449 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
6450 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
|
6451 | esac |
|
|
6452 | link_all_deplibs=yes |
|
|
6453 | ;; |
|
|
6454 | |
|
|
6455 | sunos4*) |
|
|
6456 | if test "x$host_vendor" = xsequent; then |
|
|
6457 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
6458 | # files that make .init and .fini sections work. |
|
|
6459 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6460 | else |
|
|
6461 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
6462 | fi |
|
|
6463 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6464 | hardcode_direct=yes |
|
|
6465 | hardcode_minus_L=yes |
|
|
6466 | hardcode_shlibpath_var=no |
|
|
6467 | ;; |
|
|
6468 | |
|
|
6469 | sysv4) |
|
|
6470 | if test "x$host_vendor" = xsno; then |
|
|
6471 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6472 | hardcode_direct=yes # is this really true??? |
|
|
6473 | else |
|
|
6474 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6475 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
6476 | fi |
|
|
6477 | runpath_var='LD_RUN_PATH' |
|
|
6478 | hardcode_shlibpath_var=no |
|
|
6479 | ;; |
|
|
6480 | |
|
|
6481 | sysv4.3*) |
|
|
6482 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6483 | hardcode_shlibpath_var=no |
|
|
6484 | export_dynamic_flag_spec='-Bexport' |
|
|
6485 | ;; |
|
|
6486 | |
|
|
6487 | sysv5*) |
|
|
6488 | no_undefined_flag=' -z text' |
|
|
6489 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6490 | # object files and a static libstdc++, better avoid it by now |
|
|
6491 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6492 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6493 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6494 | hardcode_libdir_flag_spec= |
|
|
6495 | hardcode_shlibpath_var=no |
|
|
6496 | runpath_var='LD_RUN_PATH' |
|
|
6497 | ;; |
|
|
6498 | |
|
|
6499 | uts4*) |
|
|
6500 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6501 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6502 | hardcode_shlibpath_var=no |
|
|
6503 | ;; |
|
|
6504 | |
|
|
6505 | dgux*) |
|
|
6506 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6507 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6508 | hardcode_shlibpath_var=no |
|
|
6509 | ;; |
|
|
6510 | |
|
|
6511 | sysv4*MP*) |
|
|
6512 | if test -d /usr/nec; then |
|
|
6513 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6514 | hardcode_shlibpath_var=no |
|
|
6515 | runpath_var=LD_RUN_PATH |
|
|
6516 | hardcode_runpath_var=yes |
|
|
6517 | ld_shlibs=yes |
|
|
6518 | fi |
|
|
6519 | ;; |
|
|
6520 | |
|
|
6521 | sysv4.2uw2*) |
|
|
6522 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
6523 | hardcode_direct=yes |
|
|
6524 | hardcode_minus_L=no |
|
|
6525 | hardcode_shlibpath_var=no |
|
|
6526 | hardcode_runpath_var=yes |
|
|
6527 | runpath_var=LD_RUN_PATH |
|
|
6528 | ;; |
|
|
6529 | |
|
|
6530 | unixware7*) |
|
|
6531 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6532 | runpath_var='LD_RUN_PATH' |
|
|
6533 | hardcode_shlibpath_var=no |
|
|
6534 | ;; |
|
|
6535 | |
|
|
6536 | *) |
|
|
6537 | ld_shlibs=no |
|
|
6538 | ;; |
|
|
6539 | esac |
|
|
6540 | fi |
|
|
6541 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
|
6542 | echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
6543 | test "$ld_shlibs" = no && can_build_shared=no |
|
|
6544 | ## |
|
|
6545 | ## END FIXME |
|
|
6546 | |
|
|
6547 | ## FIXME: this should be a separate macro |
|
|
6548 | ## |
|
|
6549 | # Check hardcoding attributes. |
|
|
6550 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
6551 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
6552 | hardcode_action= |
|
|
6553 | if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
6554 | test -n "$runpath_var"; then |
|
|
6555 | |
|
|
6556 | # We can hardcode non-existant directories. |
|
|
6557 | if test "$hardcode_direct" != no && |
|
|
6558 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
6559 | # have to relink, otherwise we might link with an installed library |
|
|
6560 | # when we should be linking with a yet-to-be-installed one |
|
|
6561 | ## test "$hardcode_shlibpath_var" != no && |
|
|
6562 | test "$hardcode_minus_L" != no; then |
|
|
6563 | # Linking always hardcodes the temporary library directory. |
|
|
6564 | hardcode_action=relink |
|
|
6565 | else |
|
|
6566 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
6567 | hardcode_action=immediate |
|
|
6568 | fi |
|
|
6569 | else |
|
|
6570 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
6571 | # directories. |
|
|
6572 | hardcode_action=unsupported |
|
|
6573 | fi |
|
|
6574 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
6575 | echo "${ECHO_T}$hardcode_action" >&6 |
|
|
6576 | ## |
|
|
6577 | ## END FIXME |
|
|
6578 | |
|
|
6579 | ## FIXME: this should be a separate macro |
|
|
6580 | ## |
|
|
6581 | striplib= |
|
|
6582 | old_striplib= |
|
|
6583 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
6584 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
6585 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
6586 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
6587 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
6588 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
6589 | echo "${ECHO_T}yes" >&6 |
|
|
6590 | else |
|
|
6591 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6592 | echo "${ECHO_T}no" >&6 |
|
|
6593 | fi |
|
|
6594 | ## |
|
|
6595 | ## END FIXME |
|
|
6596 | |
|
|
6597 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
6598 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
6599 | |
|
|
6600 | ## FIXME: this should be a separate macro |
|
|
6601 | ## |
|
|
6602 | # PORTME Fill in your ld.so characteristics |
|
|
6603 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
6604 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
6605 | library_names_spec= |
|
|
6606 | libname_spec='lib$name' |
|
|
6607 | soname_spec= |
|
|
6608 | postinstall_cmds= |
|
|
6609 | postuninstall_cmds= |
|
|
6610 | finish_cmds= |
|
|
6611 | finish_eval= |
|
|
6612 | shlibpath_var= |
|
|
6613 | shlibpath_overrides_runpath=unknown |
|
|
6614 | version_type=none |
|
|
6615 | dynamic_linker="$host_os ld.so" |
|
|
6616 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
6617 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
6618 | |
|
|
6619 | case "$host_os" in |
|
|
6620 | aix3*) |
|
|
6621 | version_type=linux |
|
|
6622 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
|
|
6623 | shlibpath_var=LIBPATH |
|
|
6624 | |
|
|
6625 | # AIX has no versioning support, so we append a major version to the name. |
|
|
6626 | soname_spec='${libname}${release}.so$major' |
|
|
6627 | ;; |
|
|
6628 | |
|
|
6629 | aix4*) |
|
|
6630 | version_type=linux |
|
|
6631 | # AIX has no versioning support, so currently we can not hardcode correct |
|
|
6632 | # soname into executable. Probably we can add versioning support to |
|
|
6633 | # collect2, so additional links can be useful in future. |
|
|
6634 | # We preserve .a as extension for shared libraries though AIX4.2 |
|
|
6635 | # and later linker supports .so |
|
|
6636 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' |
|
|
6637 | shlibpath_var=LIBPATH |
|
|
6638 | ;; |
|
|
6639 | |
|
|
6640 | amigaos*) |
|
|
6641 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
6642 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
6643 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
|
|
6644 | ;; |
|
|
6645 | |
|
|
6646 | beos*) |
|
|
6647 | library_names_spec='${libname}.so' |
|
|
6648 | dynamic_linker="$host_os ld.so" |
|
|
6649 | shlibpath_var=LIBRARY_PATH |
|
|
6650 | ;; |
|
|
6651 | |
|
|
6652 | bsdi4*) |
|
|
6653 | version_type=linux |
|
|
6654 | need_version=no |
|
|
6655 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6656 | soname_spec='${libname}${release}.so$major' |
|
|
6657 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
6658 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6659 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
6660 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
6661 | export_dynamic_flag_spec=-rdynamic |
|
|
6662 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
6663 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
6664 | # libtool to hard-code these into programs |
|
|
6665 | ;; |
|
|
6666 | |
|
|
6667 | cygwin* | mingw* | pw32*) |
|
|
6668 | version_type=windows |
|
|
6669 | need_version=no |
|
|
6670 | need_lib_prefix=no |
|
|
6671 | if test "$GCC" = yes; then |
|
|
6672 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
|
|
6673 | else |
|
|
6674 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
|
|
6675 | fi |
|
|
6676 | dynamic_linker='Win32 ld.exe' |
|
|
6677 | # FIXME: first we should search . and the directory the executable is in |
|
|
6678 | shlibpath_var=PATH |
|
|
6679 | ;; |
|
|
6680 | |
|
|
6681 | darwin* | rhapsody*) |
|
|
6682 | need_lib_prefix=no |
|
|
6683 | need_version=no |
|
|
6684 | library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`' |
|
|
6685 | shlibpath_overrides_runpath=yes |
|
|
6686 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
6687 | postinstall_cmds='chmod +x $lib' |
|
|
6688 | ;; |
|
|
6689 | |
|
|
6690 | freebsd1*) |
|
|
6691 | dynamic_linker=no |
|
|
6692 | ;; |
|
|
6693 | |
|
|
6694 | freebsd*) |
|
|
6695 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
6696 | version_type=freebsd-$objformat |
|
|
6697 | case "$version_type" in |
|
|
6698 | freebsd-elf*) |
|
|
6699 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6700 | need_version=no |
|
|
6701 | need_lib_prefix=no |
|
|
6702 | ;; |
|
|
6703 | freebsd-*) |
|
|
6704 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
|
|
6705 | need_version=yes |
|
|
6706 | ;; |
|
|
6707 | esac |
|
|
6708 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6709 | case "$host_os" in |
|
|
6710 | freebsd2*) |
|
|
6711 | shlibpath_overrides_runpath=yes |
|
|
6712 | ;; |
|
|
6713 | *) |
|
|
6714 | shlibpath_overrides_runpath=no |
|
|
6715 | hardcode_into_libs=yes |
|
|
6716 | ;; |
|
|
6717 | esac |
|
|
6718 | ;; |
|
|
6719 | |
|
|
6720 | gnu*) |
|
|
6721 | version_type=linux |
|
|
6722 | need_lib_prefix=no |
|
|
6723 | need_version=no |
|
|
6724 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
|
|
6725 | soname_spec='${libname}${release}.so$major' |
|
|
6726 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6727 | hardcode_into_libs=yes |
|
|
6728 | ;; |
|
|
6729 | |
|
|
6730 | hpux9* | hpux10* | hpux11*) |
|
|
6731 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
6732 | # link against other versions. |
|
|
6733 | dynamic_linker="$host_os dld.sl" |
|
|
6734 | version_type=sunos |
|
|
6735 | need_lib_prefix=no |
|
|
6736 | need_version=no |
|
|
6737 | shlibpath_var=SHLIB_PATH |
|
|
6738 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
6739 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
|
|
6740 | soname_spec='${libname}${release}.sl$major' |
|
|
6741 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
6742 | postinstall_cmds='chmod 555 $lib' |
|
|
6743 | ;; |
|
|
6744 | |
|
|
6745 | irix5* | irix6*) |
|
|
6746 | version_type=irix |
|
|
6747 | need_lib_prefix=no |
|
|
6748 | need_version=no |
|
|
6749 | soname_spec='${libname}${release}.so$major' |
|
|
6750 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
|
|
6751 | case "$host_os" in |
|
|
6752 | irix5*) |
|
|
6753 | libsuff= shlibsuff= |
|
|
6754 | ;; |
|
|
6755 | *) |
|
|
6756 | case "$LD" in # libtool.m4 will add one of these switches to LD |
|
|
6757 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
|
|
6758 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
6759 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
6760 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
6761 | esac |
|
|
6762 | ;; |
|
|
6763 | esac |
|
|
6764 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
6765 | shlibpath_overrides_runpath=no |
|
|
6766 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
6767 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
6768 | ;; |
|
|
6769 | |
|
|
6770 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
6771 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
|
|
6772 | dynamic_linker=no |
|
|
6773 | ;; |
|
|
6774 | |
|
|
6775 | # This must be Linux ELF. |
|
|
6776 | linux-gnu*) |
|
|
6777 | version_type=linux |
|
|
6778 | need_lib_prefix=no |
|
|
6779 | need_version=no |
|
|
6780 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6781 | soname_spec='${libname}${release}.so$major' |
|
|
6782 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
6783 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6784 | shlibpath_overrides_runpath=no |
|
|
6785 | # This implies no fast_install, which is unacceptable. |
|
|
6786 | # Some rework will be needed to allow for fast_install |
|
|
6787 | # before this can be enabled. |
|
|
6788 | hardcode_into_libs=yes |
|
|
6789 | |
|
|
6790 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
6791 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
6792 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
6793 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
6794 | # people can always --disable-shared, the test was removed, and we |
|
|
6795 | # assume the GNU/Linux dynamic linker is in use. |
|
|
6796 | dynamic_linker='GNU/Linux ld.so' |
|
|
6797 | ;; |
|
|
6798 | |
|
|
6799 | netbsd*) |
|
|
6800 | version_type=sunos |
|
|
6801 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6802 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6803 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6804 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
6805 | else |
|
|
6806 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
|
|
6807 | soname_spec='${libname}${release}.so$major' |
|
|
6808 | dynamic_linker='NetBSD ld.elf_so' |
|
|
6809 | fi |
|
|
6810 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6811 | shlibpath_overrides_runpath=yes |
|
|
6812 | hardcode_into_libs=yes |
|
|
6813 | ;; |
|
|
6814 | |
|
|
6815 | newsos6) |
|
|
6816 | version_type=linux |
|
|
6817 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6818 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6819 | shlibpath_overrides_runpath=yes |
|
|
6820 | ;; |
|
|
6821 | |
|
|
6822 | openbsd*) |
|
|
6823 | version_type=sunos |
|
|
6824 | if test "$with_gnu_ld" = yes; then |
|
|
6825 | need_lib_prefix=no |
|
|
6826 | need_version=no |
|
|
6827 | fi |
|
|
6828 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6829 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6830 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6831 | ;; |
|
|
6832 | |
|
|
6833 | os2*) |
|
|
6834 | libname_spec='$name' |
|
|
6835 | need_lib_prefix=no |
|
|
6836 | library_names_spec='$libname.dll $libname.a' |
|
|
6837 | dynamic_linker='OS/2 ld.exe' |
|
|
6838 | shlibpath_var=LIBPATH |
|
|
6839 | ;; |
|
|
6840 | |
|
|
6841 | osf3* | osf4* | osf5*) |
|
|
6842 | version_type=osf |
|
|
6843 | need_version=no |
|
|
6844 | soname_spec='${libname}${release}.so' |
|
|
6845 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6846 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6847 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
6848 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
6849 | ;; |
|
|
6850 | |
|
|
6851 | sco3.2v5*) |
|
|
6852 | version_type=osf |
|
|
6853 | soname_spec='${libname}${release}.so$major' |
|
|
6854 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6855 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6856 | ;; |
|
|
6857 | |
|
|
6858 | solaris*) |
|
|
6859 | version_type=linux |
|
|
6860 | need_lib_prefix=no |
|
|
6861 | need_version=no |
|
|
6862 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6863 | soname_spec='${libname}${release}.so$major' |
|
|
6864 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6865 | shlibpath_overrides_runpath=yes |
|
|
6866 | hardcode_into_libs=yes |
|
|
6867 | # ldd complains unless libraries are executable |
|
|
6868 | postinstall_cmds='chmod +x $lib' |
|
|
6869 | ;; |
|
|
6870 | |
|
|
6871 | sunos4*) |
|
|
6872 | version_type=sunos |
|
|
6873 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6874 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
6875 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6876 | shlibpath_overrides_runpath=yes |
|
|
6877 | if test "$with_gnu_ld" = yes; then |
|
|
6878 | need_lib_prefix=no |
|
|
6879 | fi |
|
|
6880 | need_version=yes |
|
|
6881 | ;; |
|
|
6882 | |
|
|
6883 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
6884 | version_type=linux |
|
|
6885 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6886 | soname_spec='${libname}${release}.so$major' |
|
|
6887 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6888 | case "$host_vendor" in |
|
|
6889 | sni) |
|
|
6890 | shlibpath_overrides_runpath=no |
|
|
6891 | ;; |
|
|
6892 | motorola) |
|
|
6893 | need_lib_prefix=no |
|
|
6894 | need_version=no |
|
|
6895 | shlibpath_overrides_runpath=no |
|
|
6896 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
6897 | ;; |
|
|
6898 | esac |
|
|
6899 | ;; |
|
|
6900 | |
|
|
6901 | uts4*) |
|
|
6902 | version_type=linux |
|
|
6903 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6904 | soname_spec='${libname}${release}.so$major' |
|
|
6905 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6906 | ;; |
|
|
6907 | |
|
|
6908 | dgux*) |
|
|
6909 | version_type=linux |
|
|
6910 | need_lib_prefix=no |
|
|
6911 | need_version=no |
|
|
6912 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6913 | soname_spec='${libname}${release}.so$major' |
|
|
6914 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6915 | ;; |
|
|
6916 | |
|
|
6917 | sysv4*MP*) |
|
|
6918 | if test -d /usr/nec ;then |
|
|
6919 | version_type=linux |
|
|
6920 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
|
|
6921 | soname_spec='$libname.so.$major' |
|
|
6922 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6923 | fi |
|
|
6924 | ;; |
|
|
6925 | |
|
|
6926 | *) |
|
|
6927 | dynamic_linker=no |
|
|
6928 | ;; |
|
|
6929 | esac |
|
|
6930 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
6931 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
6932 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
6933 | ## |
|
|
6934 | ## END FIXME |
|
|
6935 | |
|
|
6936 | ## FIXME: this should be a separate macro |
|
|
6937 | ## |
|
|
6938 | # Report the final consequences. |
|
|
6939 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
6940 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
6941 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
6942 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
6943 | ## |
|
|
6944 | ## END FIXME |
|
|
6945 | |
|
|
6946 | if test "$hardcode_action" = relink; then |
|
|
6947 | # Fast installation is not supported |
|
|
6948 | enable_fast_install=no |
|
|
6949 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
6950 | test "$enable_shared" = no; then |
|
|
6951 | # Fast installation is not necessary |
|
|
6952 | enable_fast_install=needless |
|
|
6953 | fi |
|
|
6954 | |
|
|
6955 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
6956 | if test "$GCC" = yes; then |
|
|
6957 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
6958 | fi |
|
|
6959 | |
|
|
6960 | if test "x$enable_dlopen" != xyes; then |
|
|
6961 | enable_dlopen=unknown |
|
|
6962 | enable_dlopen_self=unknown |
|
|
6963 | enable_dlopen_self_static=unknown |
|
|
6964 | else |
|
|
6965 | lt_cv_dlopen=no |
|
|
6966 | lt_cv_dlopen_libs= |
|
|
6967 | |
|
|
6968 | case "$host_os" in |
|
|
6969 | beos*) |
|
|
6970 | lt_cv_dlopen="load_add_on" |
|
|
6971 | lt_cv_dlopen_libs= |
|
|
6972 | lt_cv_dlopen_self=yes |
|
|
6973 | ;; |
|
|
6974 | |
|
|
6975 | cygwin* | mingw* | pw32*) |
|
|
6976 | lt_cv_dlopen="LoadLibrary" |
|
|
6977 | lt_cv_dlopen_libs= |
|
|
6978 | ;; |
|
|
6979 | |
|
|
6980 | *) |
|
|
6981 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
6982 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
6983 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
6984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6985 | else |
|
|
6986 | ac_check_lib_save_LIBS=$LIBS |
|
|
6987 | LIBS="-ldl $LIBS" |
|
|
6988 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6989 | /* confdefs.h. */ |
|
|
6990 | _ACEOF |
|
|
6991 | cat confdefs.h >>conftest.$ac_ext |
|
|
6992 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6993 | /* end confdefs.h. */ |
|
|
6994 | |
|
|
6995 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6996 | #ifdef __cplusplus |
|
|
6997 | extern "C" |
|
|
6998 | #endif |
|
|
6999 | /* We use char because int might match the return type of a gcc2 |
|
|
7000 | builtin and then its argument prototype would still apply. */ |
|
|
7001 | char dlopen (); |
|
|
7002 | int |
|
|
7003 | main () |
|
|
7004 | { |
|
|
7005 | dlopen (); |
|
|
7006 | ; |
|
|
7007 | return 0; |
|
|
7008 | } |
|
|
7009 | _ACEOF |
|
|
7010 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7012 | (eval $ac_link) 2>conftest.er1 |
|
|
7013 | ac_status=$? |
|
|
7014 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7015 | rm -f conftest.er1 |
|
|
7016 | cat conftest.err >&5 |
|
|
7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7018 | (exit $ac_status); } && |
|
|
7019 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7021 | (eval $ac_try) 2>&5 |
|
|
7022 | ac_status=$? |
|
|
7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7024 | (exit $ac_status); }; } && |
|
|
7025 | { ac_try='test -s conftest$ac_exeext' |
|
|
7026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7027 | (eval $ac_try) 2>&5 |
|
|
7028 | ac_status=$? |
|
|
7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7030 | (exit $ac_status); }; }; then |
|
|
7031 | ac_cv_lib_dl_dlopen=yes |
|
|
7032 | else |
|
|
7033 | echo "$as_me: failed program was:" >&5 |
|
|
7034 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7035 | |
|
|
7036 | ac_cv_lib_dl_dlopen=no |
|
|
7037 | fi |
|
|
7038 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7039 | conftest$ac_exeext conftest.$ac_ext |
|
|
7040 | LIBS=$ac_check_lib_save_LIBS |
|
|
7041 | fi |
|
|
7042 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
7043 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
7044 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
7045 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
7046 | else |
|
|
7047 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
7048 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
7049 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
7050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7051 | else |
|
|
7052 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7053 | /* confdefs.h. */ |
|
|
7054 | _ACEOF |
|
|
7055 | cat confdefs.h >>conftest.$ac_ext |
|
|
7056 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7057 | /* end confdefs.h. */ |
|
|
7058 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
|
7059 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
7060 | #define dlopen innocuous_dlopen |
|
|
7061 | |
|
|
7062 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7063 | which can conflict with char dlopen (); below. |
|
|
7064 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7065 | <limits.h> exists even on freestanding compilers. */ |
|
|
7066 | |
|
|
7067 | #ifdef __STDC__ |
|
|
7068 | # include <limits.h> |
|
|
7069 | #else |
|
|
7070 | # include <assert.h> |
|
|
7071 | #endif |
|
|
7072 | |
|
|
7073 | #undef dlopen |
|
|
7074 | |
|
|
7075 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7076 | #ifdef __cplusplus |
|
|
7077 | extern "C" |
|
|
7078 | { |
|
|
7079 | #endif |
|
|
7080 | /* We use char because int might match the return type of a gcc2 |
|
|
7081 | builtin and then its argument prototype would still apply. */ |
|
|
7082 | char dlopen (); |
|
|
7083 | /* The GNU C library defines this for functions which it implements |
|
|
7084 | to always fail with ENOSYS. Some functions are actually named |
|
|
7085 | something starting with __ and the normal name is an alias. */ |
|
|
7086 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
|
7087 | choke me |
|
|
7088 | #else |
|
|
7089 | char (*f) () = dlopen; |
|
|
7090 | #endif |
|
|
7091 | #ifdef __cplusplus |
|
|
7092 | } |
|
|
7093 | #endif |
|
|
7094 | |
|
|
7095 | int |
|
|
7096 | main () |
|
|
7097 | { |
|
|
7098 | return f != dlopen; |
|
|
7099 | ; |
|
|
7100 | return 0; |
|
|
7101 | } |
|
|
7102 | _ACEOF |
|
|
7103 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7105 | (eval $ac_link) 2>conftest.er1 |
|
|
7106 | ac_status=$? |
|
|
7107 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7108 | rm -f conftest.er1 |
|
|
7109 | cat conftest.err >&5 |
|
|
7110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7111 | (exit $ac_status); } && |
|
|
7112 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7114 | (eval $ac_try) 2>&5 |
|
|
7115 | ac_status=$? |
|
|
7116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7117 | (exit $ac_status); }; } && |
|
|
7118 | { ac_try='test -s conftest$ac_exeext' |
|
|
7119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7120 | (eval $ac_try) 2>&5 |
|
|
7121 | ac_status=$? |
|
|
7122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7123 | (exit $ac_status); }; }; then |
|
|
7124 | ac_cv_func_dlopen=yes |
|
|
7125 | else |
|
|
7126 | echo "$as_me: failed program was:" >&5 |
|
|
7127 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7128 | |
|
|
7129 | ac_cv_func_dlopen=no |
|
|
7130 | fi |
|
|
7131 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7132 | conftest$ac_exeext conftest.$ac_ext |
|
|
7133 | fi |
|
|
7134 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
|
7135 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
|
7136 | if test $ac_cv_func_dlopen = yes; then |
|
|
7137 | lt_cv_dlopen="dlopen" |
|
|
7138 | else |
|
|
7139 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
|
7140 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
|
7141 | if test "${ac_cv_func_shl_load+set}" = set; then |
|
|
7142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7143 | else |
|
|
7144 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7145 | /* confdefs.h. */ |
|
|
7146 | _ACEOF |
|
|
7147 | cat confdefs.h >>conftest.$ac_ext |
|
|
7148 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7149 | /* end confdefs.h. */ |
|
|
7150 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
7151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
7152 | #define shl_load innocuous_shl_load |
|
|
7153 | |
|
|
7154 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7155 | which can conflict with char shl_load (); below. |
|
|
7156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7157 | <limits.h> exists even on freestanding compilers. */ |
|
|
7158 | |
|
|
7159 | #ifdef __STDC__ |
|
|
7160 | # include <limits.h> |
|
|
7161 | #else |
|
|
7162 | # include <assert.h> |
|
|
7163 | #endif |
|
|
7164 | |
|
|
7165 | #undef shl_load |
|
|
7166 | |
|
|
7167 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7168 | #ifdef __cplusplus |
|
|
7169 | extern "C" |
|
|
7170 | { |
|
|
7171 | #endif |
|
|
7172 | /* We use char because int might match the return type of a gcc2 |
|
|
7173 | builtin and then its argument prototype would still apply. */ |
|
|
7174 | char shl_load (); |
|
|
7175 | /* The GNU C library defines this for functions which it implements |
|
|
7176 | to always fail with ENOSYS. Some functions are actually named |
|
|
7177 | something starting with __ and the normal name is an alias. */ |
|
|
7178 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
7179 | choke me |
|
|
7180 | #else |
|
|
7181 | char (*f) () = shl_load; |
|
|
7182 | #endif |
|
|
7183 | #ifdef __cplusplus |
|
|
7184 | } |
|
|
7185 | #endif |
|
|
7186 | |
|
|
7187 | int |
|
|
7188 | main () |
|
|
7189 | { |
|
|
7190 | return f != shl_load; |
|
|
7191 | ; |
|
|
7192 | return 0; |
|
|
7193 | } |
|
|
7194 | _ACEOF |
|
|
7195 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7197 | (eval $ac_link) 2>conftest.er1 |
|
|
7198 | ac_status=$? |
|
|
7199 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7200 | rm -f conftest.er1 |
|
|
7201 | cat conftest.err >&5 |
|
|
7202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7203 | (exit $ac_status); } && |
|
|
7204 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7206 | (eval $ac_try) 2>&5 |
|
|
7207 | ac_status=$? |
|
|
7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7209 | (exit $ac_status); }; } && |
|
|
7210 | { ac_try='test -s conftest$ac_exeext' |
|
|
7211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7212 | (eval $ac_try) 2>&5 |
|
|
7213 | ac_status=$? |
|
|
7214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7215 | (exit $ac_status); }; }; then |
|
|
7216 | ac_cv_func_shl_load=yes |
|
|
7217 | else |
|
|
7218 | echo "$as_me: failed program was:" >&5 |
|
|
7219 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7220 | |
|
|
7221 | ac_cv_func_shl_load=no |
|
|
7222 | fi |
|
|
7223 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7224 | conftest$ac_exeext conftest.$ac_ext |
|
|
7225 | fi |
|
|
7226 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
7227 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
7228 | if test $ac_cv_func_shl_load = yes; then |
|
|
7229 | lt_cv_dlopen="shl_load" |
|
|
7230 | else |
|
|
7231 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
7232 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
7233 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
7234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7235 | else |
|
|
7236 | ac_check_lib_save_LIBS=$LIBS |
|
|
7237 | LIBS="-lsvld $LIBS" |
|
|
7238 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7239 | /* confdefs.h. */ |
|
|
7240 | _ACEOF |
|
|
7241 | cat confdefs.h >>conftest.$ac_ext |
|
|
7242 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7243 | /* end confdefs.h. */ |
|
|
7244 | |
|
|
7245 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7246 | #ifdef __cplusplus |
|
|
7247 | extern "C" |
|
|
7248 | #endif |
|
|
7249 | /* We use char because int might match the return type of a gcc2 |
|
|
7250 | builtin and then its argument prototype would still apply. */ |
|
|
7251 | char dlopen (); |
|
|
7252 | int |
|
|
7253 | main () |
|
|
7254 | { |
|
|
7255 | dlopen (); |
|
|
7256 | ; |
|
|
7257 | return 0; |
|
|
7258 | } |
|
|
7259 | _ACEOF |
|
|
7260 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7262 | (eval $ac_link) 2>conftest.er1 |
|
|
7263 | ac_status=$? |
|
|
7264 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7265 | rm -f conftest.er1 |
|
|
7266 | cat conftest.err >&5 |
|
|
7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7268 | (exit $ac_status); } && |
|
|
7269 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7271 | (eval $ac_try) 2>&5 |
|
|
7272 | ac_status=$? |
|
|
7273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7274 | (exit $ac_status); }; } && |
|
|
7275 | { ac_try='test -s conftest$ac_exeext' |
|
|
7276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7277 | (eval $ac_try) 2>&5 |
|
|
7278 | ac_status=$? |
|
|
7279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7280 | (exit $ac_status); }; }; then |
|
|
7281 | ac_cv_lib_svld_dlopen=yes |
|
|
7282 | else |
|
|
7283 | echo "$as_me: failed program was:" >&5 |
|
|
7284 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7285 | |
|
|
7286 | ac_cv_lib_svld_dlopen=no |
|
|
7287 | fi |
|
|
7288 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7289 | conftest$ac_exeext conftest.$ac_ext |
|
|
7290 | LIBS=$ac_check_lib_save_LIBS |
|
|
7291 | fi |
|
|
7292 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
|
7293 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
|
7294 | if test $ac_cv_lib_svld_dlopen = yes; then |
|
|
7295 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
|
7296 | else |
|
|
7297 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
|
7298 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
|
7299 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
7300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7301 | else |
|
|
7302 | ac_check_lib_save_LIBS=$LIBS |
|
|
7303 | LIBS="-ldld $LIBS" |
|
|
7304 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7305 | /* confdefs.h. */ |
|
|
7306 | _ACEOF |
|
|
7307 | cat confdefs.h >>conftest.$ac_ext |
|
|
7308 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7309 | /* end confdefs.h. */ |
|
|
7310 | |
|
|
7311 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7312 | #ifdef __cplusplus |
|
|
7313 | extern "C" |
|
|
7314 | #endif |
|
|
7315 | /* We use char because int might match the return type of a gcc2 |
|
|
7316 | builtin and then its argument prototype would still apply. */ |
|
|
7317 | char shl_load (); |
|
|
7318 | int |
|
|
7319 | main () |
|
|
7320 | { |
|
|
7321 | shl_load (); |
|
|
7322 | ; |
|
|
7323 | return 0; |
|
|
7324 | } |
|
|
7325 | _ACEOF |
|
|
7326 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7328 | (eval $ac_link) 2>conftest.er1 |
|
|
7329 | ac_status=$? |
|
|
7330 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7331 | rm -f conftest.er1 |
|
|
7332 | cat conftest.err >&5 |
|
|
7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7334 | (exit $ac_status); } && |
|
|
7335 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7337 | (eval $ac_try) 2>&5 |
|
|
7338 | ac_status=$? |
|
|
7339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7340 | (exit $ac_status); }; } && |
|
|
7341 | { ac_try='test -s conftest$ac_exeext' |
|
|
7342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7343 | (eval $ac_try) 2>&5 |
|
|
7344 | ac_status=$? |
|
|
7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7346 | (exit $ac_status); }; }; then |
|
|
7347 | ac_cv_lib_dld_shl_load=yes |
|
|
7348 | else |
|
|
7349 | echo "$as_me: failed program was:" >&5 |
|
|
7350 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7351 | |
|
|
7352 | ac_cv_lib_dld_shl_load=no |
|
|
7353 | fi |
|
|
7354 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7355 | conftest$ac_exeext conftest.$ac_ext |
|
|
7356 | LIBS=$ac_check_lib_save_LIBS |
|
|
7357 | fi |
|
|
7358 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
7359 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
7360 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
7361 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
7362 | fi |
|
|
7363 | |
|
|
7364 | |
|
|
7365 | fi |
|
|
7366 | |
|
|
7367 | |
|
|
7368 | fi |
|
|
7369 | |
|
|
7370 | |
|
|
7371 | fi |
|
|
7372 | |
|
|
7373 | |
|
|
7374 | fi |
|
|
7375 | |
|
|
7376 | ;; |
|
|
7377 | esac |
|
|
7378 | |
|
|
7379 | if test "x$lt_cv_dlopen" != xno; then |
|
|
7380 | enable_dlopen=yes |
|
|
7381 | else |
|
|
7382 | enable_dlopen=no |
|
|
7383 | fi |
|
|
7384 | |
|
|
7385 | case "$lt_cv_dlopen" in |
|
|
7386 | dlopen) |
|
|
7387 | save_CPPFLAGS="$CPP_FLAGS" |
|
|
7388 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
7389 | |
|
|
7390 | save_LDFLAGS="$LDFLAGS" |
|
|
7391 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
7392 | |
|
|
7393 | save_LIBS="$LIBS" |
|
|
7394 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
7395 | |
|
|
7396 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
7397 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
7398 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
7399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7400 | else |
|
|
7401 | if test "$cross_compiling" = yes; then : |
|
|
7402 | lt_cv_dlopen_self=cross |
|
|
7403 | else |
|
|
7404 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7405 | lt_status=$lt_dlunknown |
|
|
7406 | cat > conftest.$ac_ext <<EOF |
|
|
7407 | #line 7407 "configure" |
|
|
7408 | #include "confdefs.h" |
|
|
7409 | |
|
|
7410 | #if HAVE_DLFCN_H |
|
|
7411 | #include <dlfcn.h> |
|
|
7412 | #endif |
|
|
7413 | |
|
|
7414 | #include <stdio.h> |
|
|
7415 | |
|
|
7416 | #ifdef RTLD_GLOBAL |
|
|
7417 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7418 | #else |
|
|
7419 | # ifdef DL_GLOBAL |
|
|
7420 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7421 | # else |
|
|
7422 | # define LT_DLGLOBAL 0 |
|
|
7423 | # endif |
|
|
7424 | #endif |
|
|
7425 | |
|
|
7426 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7427 | find out it does not work in some platform. */ |
|
|
7428 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7429 | # ifdef RTLD_LAZY |
|
|
7430 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7431 | # else |
|
|
7432 | # ifdef DL_LAZY |
|
|
7433 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7434 | # else |
|
|
7435 | # ifdef RTLD_NOW |
|
|
7436 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7437 | # else |
|
|
7438 | # ifdef DL_NOW |
|
|
7439 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7440 | # else |
|
|
7441 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7442 | # endif |
|
|
7443 | # endif |
|
|
7444 | # endif |
|
|
7445 | # endif |
|
|
7446 | #endif |
|
|
7447 | |
|
|
7448 | #ifdef __cplusplus |
|
|
7449 | extern "C" void exit (int); |
|
|
7450 | #endif |
|
|
7451 | |
|
|
7452 | fnord() { int i=42;} |
|
|
7453 | main () |
|
|
7454 | { |
|
|
7455 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7456 | int status = $lt_dlunknown; |
|
|
7457 | |
|
|
7458 | if (self) |
|
|
7459 | { |
|
|
7460 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7461 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7462 | /* dlclose (self); */ |
|
|
7463 | } |
|
|
7464 | |
|
|
7465 | exit (status); |
|
|
7466 | } |
|
|
7467 | EOF |
|
|
7468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7469 | (eval $ac_link) 2>&5 |
|
|
7470 | ac_status=$? |
|
|
7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7472 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7473 | (./conftest; exit; ) 2>/dev/null |
|
|
7474 | lt_status=$? |
|
|
7475 | case x$lt_status in |
|
|
7476 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7477 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7478 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
7479 | esac |
|
|
7480 | else : |
|
|
7481 | # compilation failed |
|
|
7482 | lt_cv_dlopen_self=no |
|
|
7483 | fi |
|
|
7484 | fi |
|
|
7485 | rm -fr conftest* |
|
|
7486 | |
|
|
7487 | |
|
|
7488 | fi |
|
|
7489 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
7490 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
7491 | |
|
|
7492 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
7493 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
7494 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
7495 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
7496 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
7497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7498 | else |
|
|
7499 | if test "$cross_compiling" = yes; then : |
|
|
7500 | lt_cv_dlopen_self_static=cross |
|
|
7501 | else |
|
|
7502 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7503 | lt_status=$lt_dlunknown |
|
|
7504 | cat > conftest.$ac_ext <<EOF |
|
|
7505 | #line 7505 "configure" |
|
|
7506 | #include "confdefs.h" |
|
|
7507 | |
|
|
7508 | #if HAVE_DLFCN_H |
|
|
7509 | #include <dlfcn.h> |
|
|
7510 | #endif |
|
|
7511 | |
|
|
7512 | #include <stdio.h> |
|
|
7513 | |
|
|
7514 | #ifdef RTLD_GLOBAL |
|
|
7515 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7516 | #else |
|
|
7517 | # ifdef DL_GLOBAL |
|
|
7518 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7519 | # else |
|
|
7520 | # define LT_DLGLOBAL 0 |
|
|
7521 | # endif |
|
|
7522 | #endif |
|
|
7523 | |
|
|
7524 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7525 | find out it does not work in some platform. */ |
|
|
7526 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7527 | # ifdef RTLD_LAZY |
|
|
7528 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7529 | # else |
|
|
7530 | # ifdef DL_LAZY |
|
|
7531 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7532 | # else |
|
|
7533 | # ifdef RTLD_NOW |
|
|
7534 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7535 | # else |
|
|
7536 | # ifdef DL_NOW |
|
|
7537 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7538 | # else |
|
|
7539 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7540 | # endif |
|
|
7541 | # endif |
|
|
7542 | # endif |
|
|
7543 | # endif |
|
|
7544 | #endif |
|
|
7545 | |
|
|
7546 | #ifdef __cplusplus |
|
|
7547 | extern "C" void exit (int); |
|
|
7548 | #endif |
|
|
7549 | |
|
|
7550 | fnord() { int i=42;} |
|
|
7551 | main () |
|
|
7552 | { |
|
|
7553 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7554 | int status = $lt_dlunknown; |
|
|
7555 | |
|
|
7556 | if (self) |
|
|
7557 | { |
|
|
7558 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7559 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7560 | /* dlclose (self); */ |
|
|
7561 | } |
|
|
7562 | |
|
|
7563 | exit (status); |
|
|
7564 | } |
|
|
7565 | EOF |
|
|
7566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7567 | (eval $ac_link) 2>&5 |
|
|
7568 | ac_status=$? |
|
|
7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7570 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7571 | (./conftest; exit; ) 2>/dev/null |
|
|
7572 | lt_status=$? |
|
|
7573 | case x$lt_status in |
|
|
7574 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7575 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7576 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
7577 | esac |
|
|
7578 | else : |
|
|
7579 | # compilation failed |
|
|
7580 | lt_cv_dlopen_self_static=no |
|
|
7581 | fi |
|
|
7582 | fi |
|
|
7583 | rm -fr conftest* |
|
|
7584 | |
|
|
7585 | |
|
|
7586 | fi |
|
|
7587 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
7588 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
7589 | fi |
|
|
7590 | |
|
|
7591 | CPPFLAGS="$save_CPPFLAGS" |
|
|
7592 | LDFLAGS="$save_LDFLAGS" |
|
|
7593 | LIBS="$save_LIBS" |
|
|
7594 | ;; |
|
|
7595 | esac |
|
|
7596 | |
|
|
7597 | case "$lt_cv_dlopen_self" in |
|
|
7598 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
7599 | *) enable_dlopen_self=unknown ;; |
|
|
7600 | esac |
|
|
7601 | |
|
|
7602 | case "$lt_cv_dlopen_self_static" in |
|
|
7603 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
7604 | *) enable_dlopen_self_static=unknown ;; |
|
|
7605 | esac |
|
|
7606 | fi |
|
|
7607 | |
|
|
7608 | |
|
|
7609 | ## FIXME: this should be a separate macro |
|
|
7610 | ## |
|
|
7611 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
7612 | case "$archive_cmds" in |
|
|
7613 | *'~'*) |
|
|
7614 | # FIXME: we may have to deal with multi-command sequences. |
|
|
7615 | ;; |
|
|
7616 | '$CC '*) |
|
|
7617 | # Test whether the compiler implicitly links with -lc since on some |
|
|
7618 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
7619 | # to ld, don't add -lc before -lgcc. |
|
|
7620 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
7621 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
7622 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
|
|
7623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7624 | else |
|
|
7625 | $rm conftest* |
|
|
7626 | echo 'static int dummy;' > conftest.$ac_ext |
|
|
7627 | |
|
|
7628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7629 | (eval $ac_compile) 2>&5 |
|
|
7630 | ac_status=$? |
|
|
7631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7632 | (exit $ac_status); }; then |
|
|
7633 | soname=conftest |
|
|
7634 | lib=conftest |
|
|
7635 | libobjs=conftest.$ac_objext |
|
|
7636 | deplibs= |
|
|
7637 | wl=$lt_cv_prog_cc_wl |
|
|
7638 | compiler_flags=-v |
|
|
7639 | linker_flags=-v |
|
|
7640 | verstring= |
|
|
7641 | output_objdir=. |
|
|
7642 | libname=conftest |
|
|
7643 | save_allow_undefined_flag=$allow_undefined_flag |
|
|
7644 | allow_undefined_flag= |
|
|
7645 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
7646 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
7647 | ac_status=$? |
|
|
7648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7649 | (exit $ac_status); } |
|
|
7650 | then |
|
|
7651 | lt_cv_archive_cmds_need_lc=no |
|
|
7652 | else |
|
|
7653 | lt_cv_archive_cmds_need_lc=yes |
|
|
7654 | fi |
|
|
7655 | allow_undefined_flag=$save_allow_undefined_flag |
|
|
7656 | else |
|
|
7657 | cat conftest.err 1>&5 |
|
|
7658 | fi |
|
|
7659 | fi |
|
|
7660 | |
|
|
7661 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
|
|
7662 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
|
|
7663 | ;; |
|
|
7664 | esac |
|
|
7665 | fi |
|
|
7666 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
|
7667 | ## |
|
|
7668 | ## END FIXME |
|
|
7669 | |
|
|
7670 | ## FIXME: this should be a separate macro |
|
|
7671 | ## |
|
|
7672 | # The second clause should only fire when bootstrapping the |
|
|
7673 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
7674 | # with your package, and you will get complaints that there are |
|
|
7675 | # no rules to generate ltmain.sh. |
|
|
7676 | if test -f "$ltmain"; then |
|
|
7677 | : |
|
|
7678 | else |
|
|
7679 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
7680 | # `config.status --recheck' to rerun these tests and create the |
|
|
7681 | # libtool script then. |
|
|
7682 | test -f Makefile && make "$ltmain" |
|
|
7683 | fi |
|
|
7684 | |
|
|
7685 | if test -f "$ltmain"; then |
|
|
7686 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
|
|
7687 | $rm -f "${ofile}T" |
|
|
7688 | |
|
|
7689 | echo creating $ofile |
|
|
7690 | |
|
|
7691 | # Now quote all the things that may contain metacharacters while being |
|
|
7692 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
7693 | # variables and quote the copies for generation of the libtool script. |
|
|
7694 | for var in echo old_CC old_CFLAGS \ |
|
|
7695 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
|
|
7696 | reload_flag reload_cmds wl \ |
|
|
7697 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
|
|
7698 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
|
|
7699 | library_names_spec soname_spec \ |
|
|
7700 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
|
|
7701 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
|
|
7702 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
|
|
7703 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
|
|
7704 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
|
|
7705 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
|
|
7706 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
|
|
7707 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
7708 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
|
|
7709 | |
|
|
7710 | case "$var" in |
|
|
7711 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
|
|
7712 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
7713 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
|
|
7714 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
|
|
7715 | postinstall_cmds | postuninstall_cmds | \ |
|
|
7716 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
7717 | # Double-quote double-evaled strings. |
|
|
7718 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
7719 | ;; |
|
|
7720 | *) |
|
|
7721 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
7722 | ;; |
|
|
7723 | esac |
|
|
7724 | done |
|
|
7725 | |
|
|
7726 | cat <<__EOF__ > "${ofile}T" |
|
|
7727 | #! $SHELL |
|
|
7728 | |
|
|
7729 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
7730 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
7731 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
7732 | # |
|
|
7733 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
|
|
7734 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
7735 | # |
|
|
7736 | # This program is free software; you can redistribute it and/or modify |
|
|
7737 | # it under the terms of the GNU General Public License as published by |
|
|
7738 | # the Free Software Foundation; either version 2 of the License, or |
|
|
7739 | # (at your option) any later version. |
|
|
7740 | # |
|
|
7741 | # This program is distributed in the hope that it will be useful, but |
|
|
7742 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
7743 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
7744 | # General Public License for more details. |
|
|
7745 | # |
|
|
7746 | # You should have received a copy of the GNU General Public License |
|
|
7747 | # along with this program; if not, write to the Free Software |
|
|
7748 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
7749 | # |
|
|
7750 | # As a special exception to the GNU General Public License, if you |
|
|
7751 | # distribute this file as part of a program that contains a |
|
|
7752 | # configuration script generated by Autoconf, you may include it under |
|
|
7753 | # the same distribution terms that you use for the rest of that program. |
|
|
7754 | |
|
|
7755 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
7756 | Xsed="sed -e s/^X//" |
|
|
7757 | |
|
|
7758 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
7759 | # if CDPATH is set. |
|
|
7760 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
7761 | |
|
|
7762 | # ### BEGIN LIBTOOL CONFIG |
|
|
7763 | |
|
|
7764 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
7765 | |
|
|
7766 | # Shell to use when invoking shell scripts. |
|
|
7767 | SHELL=$lt_SHELL |
|
|
7768 | |
|
|
7769 | # Whether or not to build shared libraries. |
|
|
7770 | build_libtool_libs=$enable_shared |
|
|
7771 | |
|
|
7772 | # Whether or not to add -lc for building shared libraries. |
|
|
7773 | build_libtool_need_lc=$need_lc |
|
|
7774 | |
|
|
7775 | # Whether or not to build static libraries. |
|
|
7776 | build_old_libs=$enable_static |
|
|
7777 | |
|
|
7778 | # Whether or not to optimize for fast installation. |
|
|
7779 | fast_install=$enable_fast_install |
|
|
7780 | |
|
|
7781 | # The host system. |
|
|
7782 | host_alias=$host_alias |
|
|
7783 | host=$host |
|
|
7784 | |
|
|
7785 | # An echo program that does not interpret backslashes. |
|
|
7786 | echo=$lt_echo |
|
|
7787 | |
|
|
7788 | # The archiver. |
|
|
7789 | AR=$lt_AR |
|
|
7790 | AR_FLAGS=$lt_AR_FLAGS |
|
|
7791 | |
|
|
7792 | # The default C compiler. |
|
|
7793 | CC=$lt_CC |
|
|
7794 | |
|
|
7795 | # Is the compiler the GNU C compiler? |
|
|
7796 | with_gcc=$GCC |
|
|
7797 | |
|
|
7798 | # The linker used to build libraries. |
|
|
7799 | LD=$lt_LD |
|
|
7800 | |
|
|
7801 | # Whether we need hard or soft links. |
|
|
7802 | LN_S=$lt_LN_S |
|
|
7803 | |
|
|
7804 | # A BSD-compatible nm program. |
|
|
7805 | NM=$lt_NM |
|
|
7806 | |
|
|
7807 | # A symbol stripping program |
|
|
7808 | STRIP=$STRIP |
|
|
7809 | |
|
|
7810 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
7811 | MAGIC_CMD=$MAGIC_CMD |
|
|
7812 | |
|
|
7813 | # Used on cygwin: DLL creation program. |
|
|
7814 | DLLTOOL="$DLLTOOL" |
|
|
7815 | |
|
|
7816 | # Used on cygwin: object dumper. |
|
|
7817 | OBJDUMP="$OBJDUMP" |
|
|
7818 | |
|
|
7819 | # Used on cygwin: assembler. |
|
|
7820 | AS="$AS" |
|
|
7821 | |
|
|
7822 | # The name of the directory that contains temporary libtool files. |
|
|
7823 | objdir=$objdir |
|
|
7824 | |
|
|
7825 | # How to create reloadable object files. |
|
|
7826 | reload_flag=$lt_reload_flag |
|
|
7827 | reload_cmds=$lt_reload_cmds |
|
|
7828 | |
|
|
7829 | # How to pass a linker flag through the compiler. |
|
|
7830 | wl=$lt_wl |
|
|
7831 | |
|
|
7832 | # Object file suffix (normally "o"). |
|
|
7833 | objext="$ac_objext" |
|
|
7834 | |
|
|
7835 | # Old archive suffix (normally "a"). |
|
|
7836 | libext="$libext" |
|
|
7837 | |
|
|
7838 | # Executable file suffix (normally ""). |
|
|
7839 | exeext="$exeext" |
|
|
7840 | |
|
|
7841 | # Additional compiler flags for building library objects. |
|
|
7842 | pic_flag=$lt_pic_flag |
|
|
7843 | pic_mode=$pic_mode |
|
|
7844 | |
|
|
7845 | # Does compiler simultaneously support -c and -o options? |
|
|
7846 | compiler_c_o=$lt_compiler_c_o |
|
|
7847 | |
|
|
7848 | # Can we write directly to a .lo ? |
|
|
7849 | compiler_o_lo=$lt_compiler_o_lo |
|
|
7850 | |
|
|
7851 | # Must we lock files when doing compilation ? |
|
|
7852 | need_locks=$lt_need_locks |
|
|
7853 | |
|
|
7854 | # Do we need the lib prefix for modules? |
|
|
7855 | need_lib_prefix=$need_lib_prefix |
|
|
7856 | |
|
|
7857 | # Do we need a version for libraries? |
|
|
7858 | need_version=$need_version |
|
|
7859 | |
|
|
7860 | # Whether dlopen is supported. |
|
|
7861 | dlopen_support=$enable_dlopen |
|
|
7862 | |
|
|
7863 | # Whether dlopen of programs is supported. |
|
|
7864 | dlopen_self=$enable_dlopen_self |
|
|
7865 | |
|
|
7866 | # Whether dlopen of statically linked programs is supported. |
|
|
7867 | dlopen_self_static=$enable_dlopen_self_static |
|
|
7868 | |
|
|
7869 | # Compiler flag to prevent dynamic linking. |
|
|
7870 | link_static_flag=$lt_link_static_flag |
|
|
7871 | |
|
|
7872 | # Compiler flag to turn off builtin functions. |
|
|
7873 | no_builtin_flag=$lt_no_builtin_flag |
|
|
7874 | |
|
|
7875 | # Compiler flag to allow reflexive dlopens. |
|
|
7876 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
7877 | |
|
|
7878 | # Compiler flag to generate shared objects directly from archives. |
|
|
7879 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
7880 | |
|
|
7881 | # Compiler flag to generate thread-safe objects. |
|
|
7882 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
|
7883 | |
|
|
7884 | # Library versioning type. |
|
|
7885 | version_type=$version_type |
|
|
7886 | |
|
|
7887 | # Format of library name prefix. |
|
|
7888 | libname_spec=$lt_libname_spec |
|
|
7889 | |
|
|
7890 | # List of archive names. First name is the real one, the rest are links. |
|
|
7891 | # The last name is the one that the linker finds with -lNAME. |
|
|
7892 | library_names_spec=$lt_library_names_spec |
|
|
7893 | |
|
|
7894 | # The coded name of the library, if different from the real name. |
|
|
7895 | soname_spec=$lt_soname_spec |
|
|
7896 | |
|
|
7897 | # Commands used to build and install an old-style archive. |
|
|
7898 | RANLIB=$lt_RANLIB |
|
|
7899 | old_archive_cmds=$lt_old_archive_cmds |
|
|
7900 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
7901 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
7902 | |
|
|
7903 | # Create an old-style archive from a shared archive. |
|
|
7904 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
7905 | |
|
|
7906 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
7907 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
7908 | |
|
|
7909 | # Commands used to build and install a shared archive. |
|
|
7910 | archive_cmds=$lt_archive_cmds |
|
|
7911 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
7912 | postinstall_cmds=$lt_postinstall_cmds |
|
|
7913 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
7914 | |
|
|
7915 | # Commands to strip libraries. |
|
|
7916 | old_striplib=$lt_old_striplib |
|
|
7917 | striplib=$lt_striplib |
|
|
7918 | |
|
|
7919 | # Method to check whether dependent libraries are shared objects. |
|
|
7920 | deplibs_check_method=$lt_deplibs_check_method |
|
|
7921 | |
|
|
7922 | # Command to use when deplibs_check_method == file_magic. |
|
|
7923 | file_magic_cmd=$lt_file_magic_cmd |
|
|
7924 | |
|
|
7925 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
7926 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
7927 | |
|
|
7928 | # Flag that forces no undefined symbols. |
|
|
7929 | no_undefined_flag=$lt_no_undefined_flag |
|
|
7930 | |
|
|
7931 | # Commands used to finish a libtool library installation in a directory. |
|
|
7932 | finish_cmds=$lt_finish_cmds |
|
|
7933 | |
|
|
7934 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
7935 | finish_eval=$lt_finish_eval |
|
|
7936 | |
|
|
7937 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
7938 | global_symbol_pipe=$lt_global_symbol_pipe |
|
|
7939 | |
|
|
7940 | # Transform the output of nm in a proper C declaration |
|
|
7941 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
|
|
7942 | |
|
|
7943 | # This is the shared library runtime path variable. |
|
|
7944 | runpath_var=$runpath_var |
|
|
7945 | |
|
|
7946 | # This is the shared library path variable. |
|
|
7947 | shlibpath_var=$shlibpath_var |
|
|
7948 | |
|
|
7949 | # Is shlibpath searched before the hard-coded library search path? |
|
|
7950 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
7951 | |
|
|
7952 | # How to hardcode a shared library path into an executable. |
|
|
7953 | hardcode_action=$hardcode_action |
|
|
7954 | |
|
|
7955 | # Whether we should hardcode library paths into libraries. |
|
|
7956 | hardcode_into_libs=$hardcode_into_libs |
|
|
7957 | |
|
|
7958 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
7959 | # This must work even if \$libdir does not exist. |
|
|
7960 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
7961 | |
|
|
7962 | # Whether we need a single -rpath flag with a separated argument. |
|
|
7963 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
7964 | |
|
|
7965 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
|
|
7966 | # resulting binary. |
|
|
7967 | hardcode_direct=$hardcode_direct |
|
|
7968 | |
|
|
7969 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
7970 | # resulting binary. |
|
|
7971 | hardcode_minus_L=$hardcode_minus_L |
|
|
7972 | |
|
|
7973 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
7974 | # the resulting binary. |
|
|
7975 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
7976 | |
|
|
7977 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
7978 | # restored at relink time. |
|
|
7979 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
7980 | |
|
|
7981 | # Whether libtool must link a program against all its dependency libraries. |
|
|
7982 | link_all_deplibs=$link_all_deplibs |
|
|
7983 | |
|
|
7984 | # Compile-time system search path for libraries |
|
|
7985 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
7986 | |
|
|
7987 | # Run-time system search path for libraries |
|
|
7988 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
7989 | |
|
|
7990 | # Fix the shell variable \$srcfile for the compiler. |
|
|
7991 | fix_srcfile_path="$fix_srcfile_path" |
|
|
7992 | |
|
|
7993 | # Set to yes if exported symbols are required. |
|
|
7994 | always_export_symbols=$always_export_symbols |
|
|
7995 | |
|
|
7996 | # The commands to list exported symbols. |
|
|
7997 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
7998 | |
|
|
7999 | # The commands to extract the exported symbol list from a shared archive. |
|
|
8000 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
8001 | |
|
|
8002 | # Symbols that should not be listed in the preloaded symbols. |
|
|
8003 | exclude_expsyms=$lt_exclude_expsyms |
|
|
8004 | |
|
|
8005 | # Symbols that must always be exported. |
|
|
8006 | include_expsyms=$lt_include_expsyms |
|
|
8007 | |
|
|
8008 | # ### END LIBTOOL CONFIG |
|
|
8009 | |
|
|
8010 | __EOF__ |
|
|
8011 | |
|
|
8012 | case "$host_os" in |
|
|
8013 | aix3*) |
|
|
8014 | cat <<\EOF >> "${ofile}T" |
|
|
8015 | |
|
|
8016 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
8017 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
8018 | # vanish in a puff of smoke. |
|
|
8019 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
8020 | COLLECT_NAMES= |
|
|
8021 | export COLLECT_NAMES |
|
|
8022 | fi |
|
|
8023 | EOF |
|
|
8024 | ;; |
|
|
8025 | esac |
|
|
8026 | |
|
|
8027 | case "$host_os" in |
|
|
8028 | cygwin* | mingw* | pw32* | os2*) |
|
|
8029 | cat <<'EOF' >> "${ofile}T" |
|
|
8030 | # This is a source program that is used to create dlls on Windows |
|
|
8031 | # Don't remove nor modify the starting and closing comments |
|
|
8032 | # /* ltdll.c starts here */ |
|
|
8033 | # #define WIN32_LEAN_AND_MEAN |
|
|
8034 | # #include <windows.h> |
|
|
8035 | # #undef WIN32_LEAN_AND_MEAN |
|
|
8036 | # #include <stdio.h> |
|
|
8037 | # |
|
|
8038 | # #ifndef __CYGWIN__ |
|
|
8039 | # # ifdef __CYGWIN32__ |
|
|
8040 | # # define __CYGWIN__ __CYGWIN32__ |
|
|
8041 | # # endif |
|
|
8042 | # #endif |
|
|
8043 | # |
|
|
8044 | # #ifdef __cplusplus |
|
|
8045 | # extern "C" { |
|
|
8046 | # #endif |
|
|
8047 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
|
|
8048 | # #ifdef __cplusplus |
|
|
8049 | # } |
|
|
8050 | # #endif |
|
|
8051 | # |
|
|
8052 | # #ifdef __CYGWIN__ |
|
|
8053 | # #include <cygwin/cygwin_dll.h> |
|
|
8054 | # DECLARE_CYGWIN_DLL( DllMain ); |
|
|
8055 | # #endif |
|
|
8056 | # HINSTANCE __hDllInstance_base; |
|
|
8057 | # |
|
|
8058 | # BOOL APIENTRY |
|
|
8059 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
|
|
8060 | # { |
|
|
8061 | # __hDllInstance_base = hInst; |
|
|
8062 | # return TRUE; |
|
|
8063 | # } |
|
|
8064 | # /* ltdll.c ends here */ |
|
|
8065 | # This is a source program that is used to create import libraries |
|
|
8066 | # on Windows for dlls which lack them. Don't remove nor modify the |
|
|
8067 | # starting and closing comments |
|
|
8068 | # /* impgen.c starts here */ |
|
|
8069 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
|
|
8070 | # |
|
|
8071 | # This file is part of GNU libtool. |
|
|
8072 | # |
|
|
8073 | # This program is free software; you can redistribute it and/or modify |
|
|
8074 | # it under the terms of the GNU General Public License as published by |
|
|
8075 | # the Free Software Foundation; either version 2 of the License, or |
|
|
8076 | # (at your option) any later version. |
|
|
8077 | # |
|
|
8078 | # This program is distributed in the hope that it will be useful, |
|
|
8079 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
8080 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
8081 | # GNU General Public License for more details. |
|
|
8082 | # |
|
|
8083 | # You should have received a copy of the GNU General Public License |
|
|
8084 | # along with this program; if not, write to the Free Software |
|
|
8085 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
8086 | # */ |
|
|
8087 | # |
|
|
8088 | # #include <stdio.h> /* for printf() */ |
|
|
8089 | # #include <unistd.h> /* for open(), lseek(), read() */ |
|
|
8090 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
|
|
8091 | # #include <string.h> /* for strdup() */ |
|
|
8092 | # |
|
|
8093 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
|
|
8094 | # #ifndef O_BINARY |
|
|
8095 | # #define O_BINARY 0 |
|
|
8096 | # #endif |
|
|
8097 | # |
|
|
8098 | # static unsigned int |
|
|
8099 | # pe_get16 (fd, offset) |
|
|
8100 | # int fd; |
|
|
8101 | # int offset; |
|
|
8102 | # { |
|
|
8103 | # unsigned char b[2]; |
|
|
8104 | # lseek (fd, offset, SEEK_SET); |
|
|
8105 | # read (fd, b, 2); |
|
|
8106 | # return b[0] + (b[1]<<8); |
|
|
8107 | # } |
|
|
8108 | # |
|
|
8109 | # static unsigned int |
|
|
8110 | # pe_get32 (fd, offset) |
|
|
8111 | # int fd; |
|
|
8112 | # int offset; |
|
|
8113 | # { |
|
|
8114 | # unsigned char b[4]; |
|
|
8115 | # lseek (fd, offset, SEEK_SET); |
|
|
8116 | # read (fd, b, 4); |
|
|
8117 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8118 | # } |
|
|
8119 | # |
|
|
8120 | # static unsigned int |
|
|
8121 | # pe_as32 (ptr) |
|
|
8122 | # void *ptr; |
|
|
8123 | # { |
|
|
8124 | # unsigned char *b = ptr; |
|
|
8125 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8126 | # } |
|
|
8127 | # |
|
|
8128 | # int |
|
|
8129 | # main (argc, argv) |
|
|
8130 | # int argc; |
|
|
8131 | # char *argv[]; |
|
|
8132 | # { |
|
|
8133 | # int dll; |
|
|
8134 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
|
|
8135 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
|
|
8136 | # unsigned long name_rvas, nexp; |
|
|
8137 | # unsigned char *expdata, *erva; |
|
|
8138 | # char *filename, *dll_name; |
|
|
8139 | # |
|
|
8140 | # filename = argv[1]; |
|
|
8141 | # |
|
|
8142 | # dll = open(filename, O_RDONLY|O_BINARY); |
|
|
8143 | # if (!dll) |
|
|
8144 | # return 1; |
|
|
8145 | # |
|
|
8146 | # dll_name = filename; |
|
|
8147 | # |
|
|
8148 | # for (i=0; filename[i]; i++) |
|
|
8149 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
|
|
8150 | # dll_name = filename + i +1; |
|
|
8151 | # |
|
|
8152 | # pe_header_offset = pe_get32 (dll, 0x3c); |
|
|
8153 | # opthdr_ofs = pe_header_offset + 4 + 20; |
|
|
8154 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
|
|
8155 | # |
|
|
8156 | # if (num_entries < 1) /* no exports */ |
|
|
8157 | # return 1; |
|
|
8158 | # |
|
|
8159 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
|
|
8160 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
|
|
8161 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
|
|
8162 | # secptr = (pe_header_offset + 4 + 20 + |
|
|
8163 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
|
|
8164 | # |
|
|
8165 | # expptr = 0; |
|
|
8166 | # for (i = 0; i < nsections; i++) |
|
|
8167 | # { |
|
|
8168 | # char sname[8]; |
|
|
8169 | # unsigned long secptr1 = secptr + 40 * i; |
|
|
8170 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
|
|
8171 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
|
|
8172 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
|
|
8173 | # lseek(dll, secptr1, SEEK_SET); |
|
|
8174 | # read(dll, sname, 8); |
|
|
8175 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
|
|
8176 | # { |
|
|
8177 | # expptr = fptr + (export_rva - vaddr); |
|
|
8178 | # if (export_rva + export_size > vaddr + vsize) |
|
|
8179 | # export_size = vsize - (export_rva - vaddr); |
|
|
8180 | # break; |
|
|
8181 | # } |
|
|
8182 | # } |
|
|
8183 | # |
|
|
8184 | # expdata = (unsigned char*)malloc(export_size); |
|
|
8185 | # lseek (dll, expptr, SEEK_SET); |
|
|
8186 | # read (dll, expdata, export_size); |
|
|
8187 | # erva = expdata - export_rva; |
|
|
8188 | # |
|
|
8189 | # nexp = pe_as32 (expdata+24); |
|
|
8190 | # name_rvas = pe_as32 (expdata+32); |
|
|
8191 | # |
|
|
8192 | # printf ("EXPORTS\n"); |
|
|
8193 | # for (i = 0; i<nexp; i++) |
|
|
8194 | # { |
|
|
8195 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
|
|
8196 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
|
|
8197 | # } |
|
|
8198 | # |
|
|
8199 | # return 0; |
|
|
8200 | # } |
|
|
8201 | # /* impgen.c ends here */ |
|
|
8202 | |
|
|
8203 | EOF |
|
|
8204 | ;; |
|
|
8205 | esac |
|
|
8206 | |
|
|
8207 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
8208 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
8209 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
8210 | # is reportedly fixed, but why not run on old versions too? |
|
|
8211 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
|
|
8212 | |
|
|
8213 | mv -f "${ofile}T" "$ofile" || \ |
|
|
8214 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
|
8215 | chmod +x "$ofile" |
|
|
8216 | fi |
|
|
8217 | ## |
|
|
8218 | ## END FIXME |
|
|
8219 | |
|
|
8220 | |
|
|
8221 | |
|
|
8222 | |
|
|
8223 | |
|
|
8224 | # This can be used to rebuild libtool when needed |
|
|
8225 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
|
8226 | |
|
|
8227 | # Always use our own libtool. |
|
|
8228 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
8229 | |
|
|
8230 | # Prevent multiple expansion |
|
|
8231 | |
|
|
8232 | |
|
|
8233 | MALLOC_TYPE=S |
|
|
8234 | support_addstrings=no |
|
|
8235 | support_frills=no |
|
|
8236 | support_linespace=no |
|
|
8237 | support_inheritpixmap=no |
|
|
8238 | support_tinting=no |
|
|
8239 | support_keepscrolling=no |
|
|
8240 | support_selectionscrolling=no |
|
|
8241 | support_menubar=no |
|
|
8242 | support_mousewheel=no |
|
|
8243 | support_mouseslipwheel=no |
|
|
8244 | support_utmp=no |
|
|
8245 | support_wtmp=no |
|
|
8246 | support_lastlog=no |
|
|
8247 | support_cursor_blink=no |
|
|
8248 | support_text_blink=no |
|
|
8249 | support_pointer_blank=no |
|
|
8250 | support_scroll_rxvt=no |
|
|
8251 | support_scroll_next=no |
|
|
8252 | support_scroll_xterm=no |
|
|
8253 | support_scroll_plain=no |
|
|
8254 | support_xim=no |
|
|
8255 | support_xpm=no |
|
|
8256 | support_xft=no |
|
|
8257 | support_unicode3=no |
|
|
8258 | support_combining=no |
|
|
8259 | support_8bitctrls=no |
|
|
8260 | codesets= |
|
|
8261 | |
|
|
8262 | |
|
|
8263 | if test "x$enable_shared" = xyes; then |
|
|
8264 | |
|
|
8265 | cat >>confdefs.h <<\_ACEOF |
|
|
8266 | #define LIBRXVT 1 |
|
|
8267 | _ACEOF |
|
|
8268 | |
|
|
8269 | INSTALL_LIBRXVT=yes |
|
|
8270 | fi |
|
|
8271 | |
|
|
8272 | |
|
|
8273 | # Check whether --enable-everything or --disable-everything was given. |
|
|
8274 | if test "${enable_everything+set}" = set; then |
|
|
8275 | enableval="$enable_everything" |
|
|
8276 | if test x$enableval = xyes; then |
|
|
8277 | support_24bit=yes |
|
|
8278 | support_frills=yes |
|
|
8279 | support_linespace=yes |
|
|
8280 | support_inheritpixmap=yes |
|
|
8281 | support_tinting=yes |
|
|
8282 | support_keepscrolling=yes |
|
|
8283 | support_selectionscrolling=yes |
|
|
8284 | support_lastlog=yes |
|
|
8285 | support_menubar=yes |
|
|
8286 | support_mousewheel=yes |
|
|
8287 | support_mouseslipwheel=yes |
|
|
8288 | support_cursor_blink=yes |
|
|
8289 | support_text_blink=yes |
|
|
8290 | support_pointer_blank=yes |
|
|
8291 | support_scroll_rxvt=yes |
|
|
8292 | support_scroll_next=yes |
|
|
8293 | support_scroll_xterm=yes |
|
|
8294 | support_scroll_plain=yes |
|
|
8295 | support_utmp=yes |
|
|
8296 | support_wtmp=yes |
|
|
8297 | support_xim=yes |
|
|
8298 | support_xpm=yes |
|
|
8299 | support_xft=yes |
|
|
8300 | support_unicode3=yes |
|
|
8301 | support_combining=yes |
|
|
8302 | #support_8bitctrls=yes |
|
|
8303 | codesets=all |
|
|
8304 | fi |
|
|
8305 | fi; |
|
|
8306 | |
|
|
8307 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
|
|
8308 | if test "${enable_unicode3+set}" = set; then |
|
|
8309 | enableval="$enable_unicode3" |
|
|
8310 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8311 | support_unicode3=yes |
|
|
8312 | fi |
|
|
8313 | fi; |
|
|
8314 | |
|
|
8315 | # Check whether --enable-combining or --disable-combining was given. |
|
|
8316 | if test "${enable_combining+set}" = set; then |
|
|
8317 | enableval="$enable_combining" |
|
|
8318 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8319 | support_combining=yes |
|
|
8320 | fi |
|
|
8321 | fi; |
|
|
8322 | |
|
|
8323 | # Check whether --enable-xft or --disable-xft was given. |
|
|
8324 | if test "${enable_xft+set}" = set; then |
|
|
8325 | enableval="$enable_xft" |
|
|
8326 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8327 | support_xft=yes |
|
|
8328 | fi |
|
|
8329 | fi; |
|
|
8330 | |
|
|
8331 | # Check whether --enable-utmp or --disable-utmp was given. |
|
|
8332 | if test "${enable_utmp+set}" = set; then |
|
|
8333 | enableval="$enable_utmp" |
|
|
8334 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8335 | support_utmp=$enableval |
|
|
8336 | fi |
|
|
8337 | fi; |
|
|
8338 | |
|
|
8339 | # Check whether --enable-wtmp or --disable-wtmp was given. |
|
|
8340 | if test "${enable_wtmp+set}" = set; then |
|
|
8341 | enableval="$enable_wtmp" |
|
|
8342 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8343 | support_wtmp=$enableval |
|
|
8344 | fi |
|
|
8345 | fi; |
|
|
8346 | |
|
|
8347 | # Check whether --enable-lastlog or --disable-lastlog was given. |
|
|
8348 | if test "${enable_lastlog+set}" = set; then |
|
|
8349 | enableval="$enable_lastlog" |
|
|
8350 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8351 | support_lastlog=$enableval |
|
|
8352 | fi |
|
|
8353 | fi; |
|
|
8354 | |
|
|
8355 | # Check whether --enable-xpm-background or --disable-xpm-background was given. |
|
|
8356 | if test "${enable_xpm_background+set}" = set; then |
|
|
8357 | enableval="$enable_xpm_background" |
|
|
8358 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8359 | support_xpm=$enableval |
|
|
8360 | fi |
|
|
8361 | fi; |
|
|
8362 | |
|
|
8363 | # Check whether --enable-transparency or --disable-transparency was given. |
|
|
8364 | if test "${enable_transparency+set}" = set; then |
|
|
8365 | enableval="$enable_transparency" |
|
|
8366 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8367 | support_inheritpixmap=$enableval |
|
|
8368 | fi |
|
|
8369 | fi; |
|
|
8370 | |
|
|
8371 | # Check whether --enable-tinting or --disable-tinting was given. |
|
|
8372 | if test "${enable_tinting+set}" = set; then |
|
|
8373 | enableval="$enable_tinting" |
|
|
8374 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8375 | support_tinting=$enableval |
|
|
8376 | fi |
|
|
8377 | fi; |
|
|
8378 | |
|
|
8379 | # Check whether --enable-menubar or --disable-menubar was given. |
|
|
8380 | if test "${enable_menubar+set}" = set; then |
|
|
8381 | enableval="$enable_menubar" |
|
|
8382 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8383 | support_menubar=$enableval |
|
|
8384 | fi |
|
|
8385 | fi; |
|
|
8386 | |
|
|
8387 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
|
|
8388 | if test "${enable_rxvt_scroll+set}" = set; then |
|
|
8389 | enableval="$enable_rxvt_scroll" |
|
|
8390 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8391 | support_scroll_rxvt=$enableval |
|
|
8392 | fi |
|
|
8393 | fi; |
|
|
8394 | |
|
|
8395 | # Check whether --enable-next-scroll or --disable-next-scroll was given. |
|
|
8396 | if test "${enable_next_scroll+set}" = set; then |
|
|
8397 | enableval="$enable_next_scroll" |
|
|
8398 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8399 | support_scroll_next=$enableval |
|
|
8400 | fi |
|
|
8401 | fi; |
|
|
8402 | |
|
|
8403 | # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. |
|
|
8404 | if test "${enable_xterm_scroll+set}" = set; then |
|
|
8405 | enableval="$enable_xterm_scroll" |
|
|
8406 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8407 | support_scroll_xterm=$enableval |
|
|
8408 | fi |
|
|
8409 | fi; |
|
|
8410 | |
|
|
8411 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
|
|
8412 | if test "${enable_plain_scroll+set}" = set; then |
|
|
8413 | enableval="$enable_plain_scroll" |
|
|
8414 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8415 | support_scroll_plain=$enableval |
|
|
8416 | fi |
|
|
8417 | fi; |
|
|
8418 | |
|
|
8419 | # Check whether --enable-half-shadow or --disable-half-shadow was given. |
|
|
8420 | if test "${enable_half_shadow+set}" = set; then |
|
|
8421 | enableval="$enable_half_shadow" |
|
|
8422 | if test x$enableval = xyes; then |
|
|
8423 | |
|
|
8424 | cat >>confdefs.h <<\_ACEOF |
|
|
8425 | #define HALFSHADOW 1 |
|
|
8426 | _ACEOF |
|
|
8427 | |
|
|
8428 | fi |
|
|
8429 | fi; |
|
|
8430 | |
|
|
8431 | |
|
|
8432 | # Check whether --with-codesets or --without-codesets was given. |
|
|
8433 | if test "${with_codesets+set}" = set; then |
|
|
8434 | withval="$with_codesets" |
|
|
8435 | codesets="$withval" |
|
|
8436 | fi; |
|
|
8437 | |
|
|
8438 | # Check whether --enable-xim or --disable-xim was given. |
|
|
8439 | if test "${enable_xim+set}" = set; then |
|
|
8440 | enableval="$enable_xim" |
|
|
8441 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8442 | support_xim=$enableval |
|
|
8443 | fi |
|
|
8444 | fi; |
|
|
8445 | |
|
|
8446 | # Check whether --enable-ttygid or --disable-ttygid was given. |
|
|
8447 | if test "${enable_ttygid+set}" = set; then |
|
|
8448 | enableval="$enable_ttygid" |
|
|
8449 | if test x$enableval = xyes; then |
|
|
8450 | |
|
|
8451 | cat >>confdefs.h <<\_ACEOF |
|
|
8452 | #define TTY_GID_SUPPORT 1 |
|
|
8453 | _ACEOF |
|
|
8454 | |
|
|
8455 | fi |
|
|
8456 | fi; |
|
|
8457 | |
|
|
8458 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
|
|
8459 | if test "${enable_backspace_key+set}" = set; then |
|
|
8460 | enableval="$enable_backspace_key" |
|
|
8461 | if test x$enableval = xno; then |
|
|
8462 | |
|
|
8463 | cat >>confdefs.h <<\_ACEOF |
|
|
8464 | #define NO_BACKSPACE_KEY 1 |
|
|
8465 | _ACEOF |
|
|
8466 | |
|
|
8467 | fi |
|
|
8468 | fi; |
|
|
8469 | |
|
|
8470 | # Check whether --enable-delete-key or --disable-delete-key was given. |
|
|
8471 | if test "${enable_delete_key+set}" = set; then |
|
|
8472 | enableval="$enable_delete_key" |
|
|
8473 | if test x$enableval = xno; then |
|
|
8474 | |
|
|
8475 | cat >>confdefs.h <<\_ACEOF |
|
|
8476 | #define NO_DELETE_KEY 1 |
|
|
8477 | _ACEOF |
|
|
8478 | |
|
|
8479 | fi |
|
|
8480 | fi; |
|
|
8481 | |
|
|
8482 | # Check whether --enable-resources or --disable-resources was given. |
|
|
8483 | if test "${enable_resources+set}" = set; then |
|
|
8484 | enableval="$enable_resources" |
|
|
8485 | if test x$enableval = xno; then |
|
|
8486 | |
|
|
8487 | cat >>confdefs.h <<\_ACEOF |
|
|
8488 | #define NO_RESOURCES 1 |
|
|
8489 | _ACEOF |
|
|
8490 | |
|
|
8491 | fi |
|
|
8492 | fi; |
|
|
8493 | |
|
|
8494 | # Check whether --enable-xgetdefault or --disable-xgetdefault was given. |
|
|
8495 | if test "${enable_xgetdefault+set}" = set; then |
|
|
8496 | enableval="$enable_xgetdefault" |
|
|
8497 | if test x$enableval = xyes; then |
|
|
8498 | |
|
|
8499 | cat >>confdefs.h <<\_ACEOF |
|
|
8500 | #define USE_XGETDEFAULT 1 |
|
|
8501 | _ACEOF |
|
|
8502 | |
|
|
8503 | fi |
|
|
8504 | fi; |
|
|
8505 | |
|
|
8506 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
|
|
8507 | if test "${enable_8bitctrls+set}" = set; then |
|
|
8508 | enableval="$enable_8bitctrls" |
|
|
8509 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8510 | support_8bitctrls=yes |
|
|
8511 | fi |
|
|
8512 | fi; |
|
|
8513 | |
|
|
8514 | RESFALLBACK=Rxvt |
|
|
8515 | # Check whether --enable-fallback or --disable-fallback was given. |
|
|
8516 | if test "${enable_fallback+set}" = set; then |
|
|
8517 | enableval="$enable_fallback" |
|
|
8518 | |
|
|
8519 | test x$enableval = xyes && enableval=Rxvt |
|
|
8520 | test x$enableval = xno && enableval= |
|
|
8521 | RESFALLBACK="$enableval" |
|
|
8522 | |
|
|
8523 | fi; |
|
|
8524 | |
|
|
8525 | if test x$RESFALLBACK != x; then |
|
|
8526 | |
|
|
8527 | cat >>confdefs.h <<_ACEOF |
|
|
8528 | #define RESFALLBACK "$RESFALLBACK" |
|
|
8529 | _ACEOF |
|
|
8530 | |
|
|
8531 | fi |
|
|
8532 | |
|
|
8533 | RESNAME=urxvt |
|
|
8534 | |
|
|
8535 | # Check whether --with-res-name or --without-res-name was given. |
|
|
8536 | if test "${with_res_name+set}" = set; then |
|
|
8537 | withval="$with_res_name" |
|
|
8538 | RESNAME="$withval" |
|
|
8539 | fi; |
|
|
8540 | |
|
|
8541 | cat >>confdefs.h <<_ACEOF |
|
|
8542 | #define RESNAME "$RESNAME" |
|
|
8543 | _ACEOF |
|
|
8544 | |
|
|
8545 | |
|
|
8546 | RESCLASS=URxvt |
|
|
8547 | |
|
|
8548 | # Check whether --with-res-class or --without-res-class was given. |
|
|
8549 | if test "${with_res_class+set}" = set; then |
|
|
8550 | withval="$with_res_class" |
|
|
8551 | RESCLASS="$withval" |
|
|
8552 | fi; |
|
|
8553 | |
|
|
8554 | cat >>confdefs.h <<_ACEOF |
|
|
8555 | #define RESCLASS "$RESCLASS" |
|
|
8556 | _ACEOF |
|
|
8557 | |
|
|
8558 | |
|
|
8559 | RXVTNAME=urxvt |
|
|
8560 | |
|
|
8561 | # Check whether --with-name or --without-name was given. |
|
|
8562 | if test "${with_name+set}" = set; then |
|
|
8563 | withval="$with_name" |
|
|
8564 | RXVTNAME="$withval" |
|
|
8565 | fi; |
|
|
8566 | |
|
|
8567 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
|
|
8568 | |
|
|
8569 | |
|
|
8570 | # Check whether --enable-strings or --disable-strings was given. |
|
|
8571 | if test "${enable_strings+set}" = set; then |
|
|
8572 | enableval="$enable_strings" |
|
|
8573 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8574 | support_addstrings=$enableval |
|
|
8575 | fi |
|
|
8576 | fi; |
|
|
8577 | |
|
|
8578 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
|
|
8579 | if test "${enable_swapscreen+set}" = set; then |
|
|
8580 | enableval="$enable_swapscreen" |
|
|
8581 | if test x$enableval = xno; then |
|
|
8582 | |
|
|
8583 | cat >>confdefs.h <<\_ACEOF |
|
|
8584 | #define NO_SECONDARY_SCREEN 1 |
|
|
8585 | _ACEOF |
|
|
8586 | |
|
|
8587 | fi |
|
|
8588 | fi; |
|
|
8589 | |
|
|
8590 | # Check whether --enable-frills or --disable-frills was given. |
|
|
8591 | if test "${enable_frills+set}" = set; then |
|
|
8592 | enableval="$enable_frills" |
|
|
8593 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8594 | support_frills=$enableval |
|
|
8595 | fi |
|
|
8596 | fi; |
|
|
8597 | |
|
|
8598 | # Check whether --enable-linespace or --disable-linespace was given. |
|
|
8599 | if test "${enable_linespace+set}" = set; then |
|
|
8600 | enableval="$enable_linespace" |
|
|
8601 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8602 | support_linespace=$enableval |
|
|
8603 | fi |
|
|
8604 | fi; |
|
|
8605 | |
|
|
8606 | # Check whether --enable-24bit or --disable-24bit was given. |
|
|
8607 | if test "${enable_24bit+set}" = set; then |
|
|
8608 | enableval="$enable_24bit" |
|
|
8609 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8610 | support_24bit=$enableval |
|
|
8611 | fi |
|
|
8612 | fi; |
|
|
8613 | |
|
|
8614 | # Check whether --enable-keepscrolling or --disable-keepscrolling was given. |
|
|
8615 | if test "${enable_keepscrolling+set}" = set; then |
|
|
8616 | enableval="$enable_keepscrolling" |
|
|
8617 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8618 | support_keepscrolling=$enableval |
|
|
8619 | fi |
|
|
8620 | fi; |
|
|
8621 | |
|
|
8622 | # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. |
|
|
8623 | if test "${enable_selectionscrolling+set}" = set; then |
|
|
8624 | enableval="$enable_selectionscrolling" |
|
|
8625 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8626 | support_selectionscrolling=$enableval |
|
|
8627 | fi |
|
|
8628 | fi; |
|
|
8629 | |
|
|
8630 | # Check whether --enable-mousewheel or --disable-mousewheel was given. |
|
|
8631 | if test "${enable_mousewheel+set}" = set; then |
|
|
8632 | enableval="$enable_mousewheel" |
|
|
8633 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8634 | support_mousewheel=$enableval |
|
|
8635 | fi |
|
|
8636 | fi; |
|
|
8637 | |
|
|
8638 | # Check whether --enable-slipwheeling or --disable-slipwheeling was given. |
|
|
8639 | if test "${enable_slipwheeling+set}" = set; then |
|
|
8640 | enableval="$enable_slipwheeling" |
|
|
8641 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8642 | support_mouseslipwheel=$enableval |
|
|
8643 | fi |
|
|
8644 | fi; |
|
|
8645 | |
|
|
8646 | # Check whether --enable-dmalloc or --disable-dmalloc was given. |
|
|
8647 | if test "${enable_dmalloc+set}" = set; then |
|
|
8648 | enableval="$enable_dmalloc" |
|
|
8649 | if test x$enableval = xyes; then |
|
|
8650 | MALLOC_TYPE=G |
|
|
8651 | DEBUG=-DDEBUG_MALLOC |
|
|
8652 | DLIB="-L/usr/local/lib -ldmalloc" |
|
|
8653 | DINCLUDE=-I/usr/local/include |
|
|
8654 | fi |
|
|
8655 | fi; |
|
|
8656 | |
|
|
8657 | # Check whether --enable-dlmalloc or --disable-dlmalloc was given. |
|
|
8658 | if test "${enable_dlmalloc+set}" = set; then |
|
|
8659 | enableval="$enable_dlmalloc" |
|
|
8660 | if test x$enableval = xyes; then |
|
|
8661 | MALLOC_TYPE=D |
|
|
8662 | DEBUG= |
|
|
8663 | DLIB="-L/usr/local/lib -ldlmalloc" |
|
|
8664 | DINCLUDE= |
|
|
8665 | fi |
|
|
8666 | fi; |
|
|
8667 | |
|
|
8668 | # Check whether --enable-smart-resize or --disable-smart-resize was given. |
|
|
8669 | if test "${enable_smart_resize+set}" = set; then |
|
|
8670 | enableval="$enable_smart_resize" |
|
|
8671 | if test x$enableval = xyes; then |
|
|
8672 | |
|
|
8673 | cat >>confdefs.h <<\_ACEOF |
|
|
8674 | #define SMART_RESIZE 1 |
|
|
8675 | _ACEOF |
|
|
8676 | |
|
|
8677 | fi |
|
|
8678 | fi; |
|
|
8679 | |
|
|
8680 | # Check whether --enable-256-color or --disable-256-color was given. |
|
|
8681 | if test "${enable_256_color+set}" = set; then |
|
|
8682 | enableval="$enable_256_color" |
|
|
8683 | if test x$enableval = xyes; then |
|
|
8684 | |
|
|
8685 | cat >>confdefs.h <<\_ACEOF |
|
|
8686 | #define TTY_256COLOR 1 |
|
|
8687 | _ACEOF |
|
|
8688 | |
|
|
8689 | fi |
|
|
8690 | fi; |
|
|
8691 | |
|
|
8692 | # Check whether --enable-cursor-blink or --disable-cursor-blink was given. |
|
|
8693 | if test "${enable_cursor_blink+set}" = set; then |
|
|
8694 | enableval="$enable_cursor_blink" |
|
|
8695 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8696 | support_cursor_blink=$enableval |
|
|
8697 | fi |
|
|
8698 | fi; |
|
|
8699 | |
|
|
8700 | # Check whether --enable-text-blink or --disable-text-blink was given. |
|
|
8701 | if test "${enable_text_blink+set}" = set; then |
|
|
8702 | enableval="$enable_text_blink" |
|
|
8703 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8704 | support_text_blink=$enableval |
|
|
8705 | fi |
|
|
8706 | fi; |
|
|
8707 | |
|
|
8708 | # Check whether --enable-pointer-blank or --disable-pointer-blank was given. |
|
|
8709 | if test "${enable_pointer_blank+set}" = set; then |
|
|
8710 | enableval="$enable_pointer_blank" |
|
|
8711 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8712 | support_pointer_blank=$enableval |
|
|
8713 | fi |
|
|
8714 | fi; |
|
|
8715 | |
|
|
8716 | |
|
|
8717 | # Check whether --with-term or --without-term was given. |
|
|
8718 | if test "${with_term+set}" = set; then |
|
|
8719 | withval="$with_term" |
|
|
8720 | if test x$withval != x; then |
|
|
8721 | |
|
|
8722 | cat >>confdefs.h <<_ACEOF |
|
|
8723 | #define TERMENV "$withval" |
|
|
8724 | _ACEOF |
|
|
8725 | term="$withval" |
|
|
8726 | fi |
|
|
8727 | fi; |
|
|
8728 | |
|
|
8729 | |
|
|
8730 | # Check whether --with-terminfo or --without-terminfo was given. |
|
|
8731 | if test "${with_terminfo+set}" = set; then |
|
|
8732 | withval="$with_terminfo" |
|
|
8733 | if test x$withval != x; then |
|
|
8734 | |
|
|
8735 | cat >>confdefs.h <<_ACEOF |
|
|
8736 | #define RXVT_TERMINFO "$withval" |
|
|
8737 | _ACEOF |
|
|
8738 | terminfo="$withval" |
|
|
8739 | fi |
|
|
8740 | fi; |
|
|
8741 | |
|
|
8742 | |
|
|
8743 | |
|
|
8744 | cat >>confdefs.h <<\_ACEOF |
|
|
8745 | #define PROTOTYPES 1 |
|
|
8746 | _ACEOF |
|
|
8747 | |
|
|
8748 | |
|
|
8749 | if test -z "$CFLAGS"; then |
|
|
8750 | if test -z "$CCOPTS"; then |
|
|
8751 | CCOPTS='-O' |
|
|
8752 | fi |
|
|
8753 | CFLAGS="$CCOPTS" |
|
|
8754 | fi |
|
|
8755 | |
|
|
8756 | # Extract the first word of "mv", so it can be a program name with args. |
|
|
8757 | set dummy mv; ac_word=$2 |
|
|
8758 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8760 | if test "${ac_cv_path_MV+set}" = set; then |
|
|
8761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8762 | else |
|
|
8763 | case $MV in |
|
|
8764 | [\\/]* | ?:[\\/]*) |
|
|
8765 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
|
|
8766 | ;; |
|
|
8767 | *) |
|
|
8768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8769 | for as_dir in $PATH |
|
|
8770 | do |
|
|
8771 | IFS=$as_save_IFS |
|
|
8772 | test -z "$as_dir" && as_dir=. |
|
|
8773 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8775 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
|
|
8776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8777 | break 2 |
|
|
8778 | fi |
|
|
8779 | done |
|
|
8780 | done |
|
|
8781 | |
|
|
8782 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
|
|
8783 | ;; |
|
|
8784 | esac |
|
|
8785 | fi |
|
|
8786 | MV=$ac_cv_path_MV |
|
|
8787 | |
|
|
8788 | if test -n "$MV"; then |
|
|
8789 | echo "$as_me:$LINENO: result: $MV" >&5 |
|
|
8790 | echo "${ECHO_T}$MV" >&6 |
|
|
8791 | else |
|
|
8792 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8793 | echo "${ECHO_T}no" >&6 |
|
|
8794 | fi |
|
|
8795 | |
|
|
8796 | # Extract the first word of "rm", so it can be a program name with args. |
|
|
8797 | set dummy rm; ac_word=$2 |
|
|
8798 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8800 | if test "${ac_cv_path_RM+set}" = set; then |
|
|
8801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8802 | else |
|
|
8803 | case $RM in |
|
|
8804 | [\\/]* | ?:[\\/]*) |
|
|
8805 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
|
|
8806 | ;; |
|
|
8807 | *) |
|
|
8808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8809 | for as_dir in $PATH |
|
|
8810 | do |
|
|
8811 | IFS=$as_save_IFS |
|
|
8812 | test -z "$as_dir" && as_dir=. |
|
|
8813 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8814 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8815 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
|
|
8816 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8817 | break 2 |
|
|
8818 | fi |
|
|
8819 | done |
|
|
8820 | done |
|
|
8821 | |
|
|
8822 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
|
|
8823 | ;; |
|
|
8824 | esac |
|
|
8825 | fi |
|
|
8826 | RM=$ac_cv_path_RM |
|
|
8827 | |
|
|
8828 | if test -n "$RM"; then |
|
|
8829 | echo "$as_me:$LINENO: result: $RM" >&5 |
|
|
8830 | echo "${ECHO_T}$RM" >&6 |
|
|
8831 | else |
|
|
8832 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8833 | echo "${ECHO_T}no" >&6 |
|
|
8834 | fi |
|
|
8835 | |
|
|
8836 | # Extract the first word of "cp", so it can be a program name with args. |
|
|
8837 | set dummy cp; ac_word=$2 |
|
|
8838 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8840 | if test "${ac_cv_path_CP+set}" = set; then |
|
|
8841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8842 | else |
|
|
8843 | case $CP in |
|
|
8844 | [\\/]* | ?:[\\/]*) |
|
|
8845 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
|
|
8846 | ;; |
|
|
8847 | *) |
|
|
8848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8849 | for as_dir in $PATH |
|
|
8850 | do |
|
|
8851 | IFS=$as_save_IFS |
|
|
8852 | test -z "$as_dir" && as_dir=. |
|
|
8853 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8855 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
|
|
8856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8857 | break 2 |
|
|
8858 | fi |
|
|
8859 | done |
|
|
8860 | done |
|
|
8861 | |
|
|
8862 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
|
|
8863 | ;; |
|
|
8864 | esac |
|
|
8865 | fi |
|
|
8866 | CP=$ac_cv_path_CP |
|
|
8867 | |
|
|
8868 | if test -n "$CP"; then |
|
|
8869 | echo "$as_me:$LINENO: result: $CP" >&5 |
|
|
8870 | echo "${ECHO_T}$CP" >&6 |
|
|
8871 | else |
|
|
8872 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8873 | echo "${ECHO_T}no" >&6 |
|
|
8874 | fi |
|
|
8875 | |
|
|
8876 | # Extract the first word of "ln", so it can be a program name with args. |
|
|
8877 | set dummy ln; ac_word=$2 |
|
|
8878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8880 | if test "${ac_cv_path_LN+set}" = set; then |
|
|
8881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8882 | else |
|
|
8883 | case $LN in |
|
|
8884 | [\\/]* | ?:[\\/]*) |
|
|
8885 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
|
|
8886 | ;; |
|
|
8887 | *) |
|
|
8888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8889 | for as_dir in $PATH |
|
|
8890 | do |
|
|
8891 | IFS=$as_save_IFS |
|
|
8892 | test -z "$as_dir" && as_dir=. |
|
|
8893 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8895 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
|
|
8896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8897 | break 2 |
|
|
8898 | fi |
|
|
8899 | done |
|
|
8900 | done |
|
|
8901 | |
|
|
8902 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
|
|
8903 | ;; |
|
|
8904 | esac |
|
|
8905 | fi |
|
|
8906 | LN=$ac_cv_path_LN |
|
|
8907 | |
|
|
8908 | if test -n "$LN"; then |
|
|
8909 | echo "$as_me:$LINENO: result: $LN" >&5 |
|
|
8910 | echo "${ECHO_T}$LN" >&6 |
|
|
8911 | else |
|
|
8912 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8913 | echo "${ECHO_T}no" >&6 |
|
|
8914 | fi |
|
|
8915 | |
|
|
8916 | # Extract the first word of "sed", so it can be a program name with args. |
|
|
8917 | set dummy sed; ac_word=$2 |
|
|
8918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8920 | if test "${ac_cv_path_SED+set}" = set; then |
|
|
8921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8922 | else |
|
|
8923 | case $SED in |
|
|
8924 | [\\/]* | ?:[\\/]*) |
|
|
8925 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
|
|
8926 | ;; |
|
|
8927 | *) |
|
|
8928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8929 | for as_dir in $PATH |
|
|
8930 | do |
|
|
8931 | IFS=$as_save_IFS |
|
|
8932 | test -z "$as_dir" && as_dir=. |
|
|
8933 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8934 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8935 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
|
|
8936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8937 | break 2 |
|
|
8938 | fi |
|
|
8939 | done |
|
|
8940 | done |
|
|
8941 | |
|
|
8942 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
|
|
8943 | ;; |
|
|
8944 | esac |
|
|
8945 | fi |
|
|
8946 | SED=$ac_cv_path_SED |
|
|
8947 | |
|
|
8948 | if test -n "$SED"; then |
|
|
8949 | echo "$as_me:$LINENO: result: $SED" >&5 |
|
|
8950 | echo "${ECHO_T}$SED" >&6 |
|
|
8951 | else |
|
|
8952 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8953 | echo "${ECHO_T}no" >&6 |
|
|
8954 | fi |
|
|
8955 | |
|
|
8956 | # Extract the first word of "echo", so it can be a program name with args. |
|
|
8957 | set dummy echo; ac_word=$2 |
|
|
8958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
8960 | if test "${ac_cv_path_ECHO+set}" = set; then |
|
|
8961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8962 | else |
|
|
8963 | case $ECHO in |
|
|
8964 | [\\/]* | ?:[\\/]*) |
|
|
8965 | ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. |
|
|
8966 | ;; |
|
|
8967 | *) |
|
|
8968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8969 | for as_dir in $PATH |
|
|
8970 | do |
|
|
8971 | IFS=$as_save_IFS |
|
|
8972 | test -z "$as_dir" && as_dir=. |
|
|
8973 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8974 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
8975 | ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" |
|
|
8976 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8977 | break 2 |
|
|
8978 | fi |
|
|
8979 | done |
|
|
8980 | done |
|
|
8981 | |
|
|
8982 | test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" |
|
|
8983 | ;; |
|
|
8984 | esac |
|
|
8985 | fi |
|
|
8986 | ECHO=$ac_cv_path_ECHO |
|
|
8987 | |
|
|
8988 | if test -n "$ECHO"; then |
|
|
8989 | echo "$as_me:$LINENO: result: $ECHO" >&5 |
|
|
8990 | echo "${ECHO_T}$ECHO" >&6 |
|
|
8991 | else |
|
|
8992 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
8993 | echo "${ECHO_T}no" >&6 |
|
|
8994 | fi |
|
|
8995 | |
|
|
8996 | # Extract the first word of "cmp", so it can be a program name with args. |
|
|
8997 | set dummy cmp; ac_word=$2 |
|
|
8998 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
8999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
9000 | if test "${ac_cv_path_CMP+set}" = set; then |
|
|
9001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9002 | else |
|
|
9003 | case $CMP in |
|
|
9004 | [\\/]* | ?:[\\/]*) |
|
|
9005 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
|
|
9006 | ;; |
|
|
9007 | *) |
|
|
9008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
9009 | for as_dir in $PATH |
|
|
9010 | do |
|
|
9011 | IFS=$as_save_IFS |
|
|
9012 | test -z "$as_dir" && as_dir=. |
|
|
9013 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
9014 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
9015 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
|
|
9016 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
9017 | break 2 |
|
|
9018 | fi |
|
|
9019 | done |
|
|
9020 | done |
|
|
9021 | |
|
|
9022 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
|
|
9023 | ;; |
|
|
9024 | esac |
|
|
9025 | fi |
|
|
9026 | CMP=$ac_cv_path_CMP |
|
|
9027 | |
|
|
9028 | if test -n "$CMP"; then |
|
|
9029 | echo "$as_me:$LINENO: result: $CMP" >&5 |
|
|
9030 | echo "${ECHO_T}$CMP" >&6 |
|
|
9031 | else |
|
|
9032 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
9033 | echo "${ECHO_T}no" >&6 |
|
|
9034 | fi |
|
|
9035 | |
|
|
9036 | # Extract the first word of "tbl", so it can be a program name with args. |
|
|
9037 | set dummy tbl; ac_word=$2 |
|
|
9038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
9039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
9040 | if test "${ac_cv_path_TBL+set}" = set; then |
|
|
9041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9042 | else |
|
|
9043 | case $TBL in |
|
|
9044 | [\\/]* | ?:[\\/]*) |
|
|
9045 | ac_cv_path_TBL="$TBL" # Let the user override the test with a path. |
|
|
9046 | ;; |
|
|
9047 | *) |
|
|
9048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
9049 | for as_dir in $PATH |
|
|
9050 | do |
|
|
9051 | IFS=$as_save_IFS |
|
|
9052 | test -z "$as_dir" && as_dir=. |
|
|
9053 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
9054 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
9055 | ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" |
|
|
9056 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
9057 | break 2 |
|
|
9058 | fi |
|
|
9059 | done |
|
|
9060 | done |
|
|
9061 | |
|
|
9062 | ;; |
|
|
9063 | esac |
|
|
9064 | fi |
|
|
9065 | TBL=$ac_cv_path_TBL |
|
|
9066 | |
|
|
9067 | if test -n "$TBL"; then |
|
|
9068 | echo "$as_me:$LINENO: result: $TBL" >&5 |
|
|
9069 | echo "${ECHO_T}$TBL" >&6 |
|
|
9070 | else |
|
|
9071 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
9072 | echo "${ECHO_T}no" >&6 |
|
|
9073 | fi |
|
|
9074 | |
|
|
9075 | |
|
|
9076 | |
|
|
9077 | |
|
|
9078 | |
|
|
9079 | if test "x$ac_path_x_has_been_run" != xyes; then |
|
|
9080 | echo "$as_me:$LINENO: checking for X" >&5 |
|
|
9081 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
4632 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
9082 | |
4633 | |
9083 | ac_path_x_has_been_run=yes |
|
|
9084 | |
4634 | |
9085 | # Check whether --with-x or --without-x was given. |
4635 | # Check whether --with-x or --without-x was given. |
9086 | if test "${with_x+set}" = set; then |
4636 | if test "${with_x+set}" = set; then |
9087 | withval="$with_x" |
4637 | withval="$with_x" |
9088 | |
4638 | |
… | |
… | |
9171 | |
4721 | |
9172 | /usr/openwin/include |
4722 | /usr/openwin/include |
9173 | /usr/openwin/share/include' |
4723 | /usr/openwin/share/include' |
9174 | |
4724 | |
9175 | if test "$ac_x_includes" = no; then |
4725 | if test "$ac_x_includes" = no; then |
9176 | # Guess where to find include files, by looking for a specified header file. |
4726 | # Guess where to find include files, by looking for Intrinsic.h. |
9177 | # First, try using that file with no special directory specified. |
4727 | # First, try using that file with no special directory specified. |
9178 | cat >conftest.$ac_ext <<_ACEOF |
4728 | cat >conftest.$ac_ext <<_ACEOF |
9179 | /* confdefs.h. */ |
4729 | /* confdefs.h. */ |
9180 | _ACEOF |
4730 | _ACEOF |
9181 | cat confdefs.h >>conftest.$ac_ext |
4731 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
9245 | grep -v '^ *+' conftest.er1 >conftest.err |
4795 | grep -v '^ *+' conftest.er1 >conftest.err |
9246 | rm -f conftest.er1 |
4796 | rm -f conftest.er1 |
9247 | cat conftest.err >&5 |
4797 | cat conftest.err >&5 |
9248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9249 | (exit $ac_status); } && |
4799 | (exit $ac_status); } && |
9250 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4800 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
4801 | || test ! -s conftest.err' |
9251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9252 | (eval $ac_try) 2>&5 |
4803 | (eval $ac_try) 2>&5 |
9253 | ac_status=$? |
4804 | ac_status=$? |
9254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255 | (exit $ac_status); }; } && |
4806 | (exit $ac_status); }; } && |
… | |
… | |
9305 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
4856 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
9306 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
4857 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
9307 | # Update the cache value to reflect the command line values. |
4858 | # Update the cache value to reflect the command line values. |
9308 | ac_cv_have_x="have_x=yes \ |
4859 | ac_cv_have_x="have_x=yes \ |
9309 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
4860 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
9310 | # It might be that x_includes is empty (headers are found in the |
|
|
9311 | # standard search path. Then output the corresponding message |
|
|
9312 | ac_out_x_includes=$x_includes |
|
|
9313 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" |
|
|
9314 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 |
4861 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
9315 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 |
4862 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
9316 | fi |
4863 | fi |
9317 | |
4864 | |
9318 | fi |
|
|
9319 | if test "$no_x" = yes; then |
4865 | if test "$no_x" = yes; then |
9320 | # Not all programs may use this symbol, but it does not hurt to define it. |
4866 | # Not all programs may use this symbol, but it does not hurt to define it. |
9321 | |
4867 | |
9322 | cat >>confdefs.h <<\_ACEOF |
4868 | cat >>confdefs.h <<\_ACEOF |
9323 | #define X_DISPLAY_MISSING 1 |
4869 | #define X_DISPLAY_MISSING 1 |
… | |
… | |
9361 | grep -v '^ *+' conftest.er1 >conftest.err |
4907 | grep -v '^ *+' conftest.er1 >conftest.err |
9362 | rm -f conftest.er1 |
4908 | rm -f conftest.er1 |
9363 | cat conftest.err >&5 |
4909 | cat conftest.err >&5 |
9364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9365 | (exit $ac_status); } && |
4911 | (exit $ac_status); } && |
9366 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4912 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
4913 | || test ! -s conftest.err' |
9367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9368 | (eval $ac_try) 2>&5 |
4915 | (eval $ac_try) 2>&5 |
9369 | ac_status=$? |
4916 | ac_status=$? |
9370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9371 | (exit $ac_status); }; } && |
4918 | (exit $ac_status); }; } && |
… | |
… | |
9412 | grep -v '^ *+' conftest.er1 >conftest.err |
4959 | grep -v '^ *+' conftest.er1 >conftest.err |
9413 | rm -f conftest.er1 |
4960 | rm -f conftest.er1 |
9414 | cat conftest.err >&5 |
4961 | cat conftest.err >&5 |
9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9416 | (exit $ac_status); } && |
4963 | (exit $ac_status); } && |
9417 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4964 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
4965 | || test ! -s conftest.err' |
9418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9419 | (eval $ac_try) 2>&5 |
4967 | (eval $ac_try) 2>&5 |
9420 | ac_status=$? |
4968 | ac_status=$? |
9421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9422 | (exit $ac_status); }; } && |
4970 | (exit $ac_status); }; } && |
… | |
… | |
9488 | grep -v '^ *+' conftest.er1 >conftest.err |
5036 | grep -v '^ *+' conftest.er1 >conftest.err |
9489 | rm -f conftest.er1 |
5037 | rm -f conftest.er1 |
9490 | cat conftest.err >&5 |
5038 | cat conftest.err >&5 |
9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9492 | (exit $ac_status); } && |
5040 | (exit $ac_status); } && |
9493 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5041 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5042 | || test ! -s conftest.err' |
9494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9495 | (eval $ac_try) 2>&5 |
5044 | (eval $ac_try) 2>&5 |
9496 | ac_status=$? |
5045 | ac_status=$? |
9497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9498 | (exit $ac_status); }; } && |
5047 | (exit $ac_status); }; } && |
… | |
… | |
9543 | grep -v '^ *+' conftest.er1 >conftest.err |
5092 | grep -v '^ *+' conftest.er1 >conftest.err |
9544 | rm -f conftest.er1 |
5093 | rm -f conftest.er1 |
9545 | cat conftest.err >&5 |
5094 | cat conftest.err >&5 |
9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9547 | (exit $ac_status); } && |
5096 | (exit $ac_status); } && |
9548 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5097 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5098 | || test ! -s conftest.err' |
9549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9550 | (eval $ac_try) 2>&5 |
5100 | (eval $ac_try) 2>&5 |
9551 | ac_status=$? |
5101 | ac_status=$? |
9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9553 | (exit $ac_status); }; } && |
5103 | (exit $ac_status); }; } && |
… | |
… | |
9611 | grep -v '^ *+' conftest.er1 >conftest.err |
5161 | grep -v '^ *+' conftest.er1 >conftest.err |
9612 | rm -f conftest.er1 |
5162 | rm -f conftest.er1 |
9613 | cat conftest.err >&5 |
5163 | cat conftest.err >&5 |
9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9615 | (exit $ac_status); } && |
5165 | (exit $ac_status); } && |
9616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5166 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5167 | || test ! -s conftest.err' |
9617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9618 | (eval $ac_try) 2>&5 |
5169 | (eval $ac_try) 2>&5 |
9619 | ac_status=$? |
5170 | ac_status=$? |
9620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9621 | (exit $ac_status); }; } && |
5172 | (exit $ac_status); }; } && |
… | |
… | |
9719 | grep -v '^ *+' conftest.er1 >conftest.err |
5270 | grep -v '^ *+' conftest.er1 >conftest.err |
9720 | rm -f conftest.er1 |
5271 | rm -f conftest.er1 |
9721 | cat conftest.err >&5 |
5272 | cat conftest.err >&5 |
9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9723 | (exit $ac_status); } && |
5274 | (exit $ac_status); } && |
9724 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5275 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5276 | || test ! -s conftest.err' |
9725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9726 | (eval $ac_try) 2>&5 |
5278 | (eval $ac_try) 2>&5 |
9727 | ac_status=$? |
5279 | ac_status=$? |
9728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9729 | (exit $ac_status); }; } && |
5281 | (exit $ac_status); }; } && |
… | |
… | |
9783 | grep -v '^ *+' conftest.er1 >conftest.err |
5335 | grep -v '^ *+' conftest.er1 >conftest.err |
9784 | rm -f conftest.er1 |
5336 | rm -f conftest.er1 |
9785 | cat conftest.err >&5 |
5337 | cat conftest.err >&5 |
9786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9787 | (exit $ac_status); } && |
5339 | (exit $ac_status); } && |
9788 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5340 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5341 | || test ! -s conftest.err' |
9789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9790 | (eval $ac_try) 2>&5 |
5343 | (eval $ac_try) 2>&5 |
9791 | ac_status=$? |
5344 | ac_status=$? |
9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9793 | (exit $ac_status); }; } && |
5346 | (exit $ac_status); }; } && |
… | |
… | |
9851 | grep -v '^ *+' conftest.er1 >conftest.err |
5404 | grep -v '^ *+' conftest.er1 >conftest.err |
9852 | rm -f conftest.er1 |
5405 | rm -f conftest.er1 |
9853 | cat conftest.err >&5 |
5406 | cat conftest.err >&5 |
9854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9855 | (exit $ac_status); } && |
5408 | (exit $ac_status); } && |
9856 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5409 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5410 | || test ! -s conftest.err' |
9857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9858 | (eval $ac_try) 2>&5 |
5412 | (eval $ac_try) 2>&5 |
9859 | ac_status=$? |
5413 | ac_status=$? |
9860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9861 | (exit $ac_status); }; } && |
5415 | (exit $ac_status); }; } && |
… | |
… | |
9955 | grep -v '^ *+' conftest.er1 >conftest.err |
5509 | grep -v '^ *+' conftest.er1 >conftest.err |
9956 | rm -f conftest.er1 |
5510 | rm -f conftest.er1 |
9957 | cat conftest.err >&5 |
5511 | cat conftest.err >&5 |
9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9959 | (exit $ac_status); } && |
5513 | (exit $ac_status); } && |
9960 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5514 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5515 | || test ! -s conftest.err' |
9961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9962 | (eval $ac_try) 2>&5 |
5517 | (eval $ac_try) 2>&5 |
9963 | ac_status=$? |
5518 | ac_status=$? |
9964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9965 | (exit $ac_status); }; } && |
5520 | (exit $ac_status); }; } && |
… | |
… | |
10019 | grep -v '^ *+' conftest.er1 >conftest.err |
5574 | grep -v '^ *+' conftest.er1 >conftest.err |
10020 | rm -f conftest.er1 |
5575 | rm -f conftest.er1 |
10021 | cat conftest.err >&5 |
5576 | cat conftest.err >&5 |
10022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10023 | (exit $ac_status); } && |
5578 | (exit $ac_status); } && |
10024 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5579 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5580 | || test ! -s conftest.err' |
10025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10026 | (eval $ac_try) 2>&5 |
5582 | (eval $ac_try) 2>&5 |
10027 | ac_status=$? |
5583 | ac_status=$? |
10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10029 | (exit $ac_status); }; } && |
5585 | (exit $ac_status); }; } && |
… | |
… | |
10116 | grep -v '^ *+' conftest.er1 >conftest.err |
5672 | grep -v '^ *+' conftest.er1 >conftest.err |
10117 | rm -f conftest.er1 |
5673 | rm -f conftest.er1 |
10118 | cat conftest.err >&5 |
5674 | cat conftest.err >&5 |
10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10120 | (exit $ac_status); } && |
5676 | (exit $ac_status); } && |
10121 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5677 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5678 | || test ! -s conftest.err' |
10122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10123 | (eval $ac_try) 2>&5 |
5680 | (eval $ac_try) 2>&5 |
10124 | ac_status=$? |
5681 | ac_status=$? |
10125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10126 | (exit $ac_status); }; } && |
5683 | (exit $ac_status); }; } && |
… | |
… | |
10180 | grep -v '^ *+' conftest.er1 >conftest.err |
5737 | grep -v '^ *+' conftest.er1 >conftest.err |
10181 | rm -f conftest.er1 |
5738 | rm -f conftest.er1 |
10182 | cat conftest.err >&5 |
5739 | cat conftest.err >&5 |
10183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10184 | (exit $ac_status); } && |
5741 | (exit $ac_status); } && |
10185 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5742 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5743 | || test ! -s conftest.err' |
10186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10187 | (eval $ac_try) 2>&5 |
5745 | (eval $ac_try) 2>&5 |
10188 | ac_status=$? |
5746 | ac_status=$? |
10189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10190 | (exit $ac_status); }; } && |
5748 | (exit $ac_status); }; } && |
… | |
… | |
10277 | grep -v '^ *+' conftest.er1 >conftest.err |
5835 | grep -v '^ *+' conftest.er1 >conftest.err |
10278 | rm -f conftest.er1 |
5836 | rm -f conftest.er1 |
10279 | cat conftest.err >&5 |
5837 | cat conftest.err >&5 |
10280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10281 | (exit $ac_status); } && |
5839 | (exit $ac_status); } && |
10282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5840 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5841 | || test ! -s conftest.err' |
10283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10284 | (eval $ac_try) 2>&5 |
5843 | (eval $ac_try) 2>&5 |
10285 | ac_status=$? |
5844 | ac_status=$? |
10286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10287 | (exit $ac_status); }; } && |
5846 | (exit $ac_status); }; } && |
… | |
… | |
10341 | grep -v '^ *+' conftest.er1 >conftest.err |
5900 | grep -v '^ *+' conftest.er1 >conftest.err |
10342 | rm -f conftest.er1 |
5901 | rm -f conftest.er1 |
10343 | cat conftest.err >&5 |
5902 | cat conftest.err >&5 |
10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10345 | (exit $ac_status); } && |
5904 | (exit $ac_status); } && |
10346 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5905 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5906 | || test ! -s conftest.err' |
10347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10348 | (eval $ac_try) 2>&5 |
5908 | (eval $ac_try) 2>&5 |
10349 | ac_status=$? |
5909 | ac_status=$? |
10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10351 | (exit $ac_status); }; } && |
5911 | (exit $ac_status); }; } && |
… | |
… | |
10420 | grep -v '^ *+' conftest.er1 >conftest.err |
5980 | grep -v '^ *+' conftest.er1 >conftest.err |
10421 | rm -f conftest.er1 |
5981 | rm -f conftest.er1 |
10422 | cat conftest.err >&5 |
5982 | cat conftest.err >&5 |
10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10424 | (exit $ac_status); } && |
5984 | (exit $ac_status); } && |
10425 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5985 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
5986 | || test ! -s conftest.err' |
10426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10427 | (eval $ac_try) 2>&5 |
5988 | (eval $ac_try) 2>&5 |
10428 | ac_status=$? |
5989 | ac_status=$? |
10429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10430 | (exit $ac_status); }; } && |
5991 | (exit $ac_status); }; } && |
… | |
… | |
10455 | |
6016 | |
10456 | fi |
6017 | fi |
10457 | |
6018 | |
10458 | |
6019 | |
10459 | |
6020 | |
|
|
6021 | LIBAFTERIMAGE_CFLAGS= |
|
|
6022 | AFTERIMAGE_LIBS= |
|
|
6023 | have_afterimage= |
|
|
6024 | |
10460 | if test x$support_xpm = xyes; then |
6025 | if test x$support_afterimage = xyes; then |
|
|
6026 | support_afterimage=no |
|
|
6027 | |
|
|
6028 | if test "x$afterimage_config" = "x" ; then |
|
|
6029 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
|
|
6030 | set dummy afterimage-config; ac_word=$2 |
|
|
6031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
6032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
6033 | if test "${ac_cv_path_afterimage_config+set}" = set; then |
|
|
6034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6035 | else |
|
|
6036 | case $afterimage_config in |
|
|
6037 | [\\/]* | ?:[\\/]*) |
|
|
6038 | ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. |
|
|
6039 | ;; |
|
|
6040 | *) |
|
|
6041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6042 | for as_dir in $PATH |
|
|
6043 | do |
|
|
6044 | IFS=$as_save_IFS |
|
|
6045 | test -z "$as_dir" && as_dir=. |
|
|
6046 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6047 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
6048 | ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" |
|
|
6049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
6050 | break 2 |
|
|
6051 | fi |
|
|
6052 | done |
|
|
6053 | done |
|
|
6054 | |
|
|
6055 | test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" |
|
|
6056 | ;; |
|
|
6057 | esac |
|
|
6058 | fi |
|
|
6059 | afterimage_config=$ac_cv_path_afterimage_config |
|
|
6060 | |
|
|
6061 | if test -n "$afterimage_config"; then |
|
|
6062 | echo "$as_me:$LINENO: result: $afterimage_config" >&5 |
|
|
6063 | echo "${ECHO_T}$afterimage_config" >&6 |
|
|
6064 | else |
|
|
6065 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6066 | echo "${ECHO_T}no" >&6 |
|
|
6067 | fi |
|
|
6068 | |
|
|
6069 | fi |
|
|
6070 | |
|
|
6071 | echo "$as_me:$LINENO: checking for libAfterImage" >&5 |
|
|
6072 | echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6 |
|
|
6073 | if $afterimage_config --version >/dev/null 2>&1 ; then |
|
|
6074 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
|
|
6075 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
|
|
6076 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
|
|
6077 | support_afterimage=yes |
|
|
6078 | fi |
|
|
6079 | fi |
|
|
6080 | |
|
|
6081 | if test "x$support_afterimage" = "xyes"; then |
|
|
6082 | echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
6083 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6 |
|
|
6084 | else |
|
|
6085 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6086 | echo "${ECHO_T}no" >&6 |
|
|
6087 | fi |
|
|
6088 | fi |
|
|
6089 | |
|
|
6090 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
10461 | |
6091 | |
10462 | |
6092 | |
10463 | |
6093 | |
10464 | # Initialize some more variables set by options. |
6094 | # Initialize some more variables set by options. |
10465 | # The variables have the same names as the options, with |
6095 | # The variables have the same names as the options, with |
… | |
… | |
10636 | grep -v '^ *+' conftest.er1 >conftest.err |
6266 | grep -v '^ *+' conftest.er1 >conftest.err |
10637 | rm -f conftest.er1 |
6267 | rm -f conftest.er1 |
10638 | cat conftest.err >&5 |
6268 | cat conftest.err >&5 |
10639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10640 | (exit $ac_status); } && |
6270 | (exit $ac_status); } && |
10641 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6271 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6272 | || test ! -s conftest.err' |
10642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10643 | (eval $ac_try) 2>&5 |
6274 | (eval $ac_try) 2>&5 |
10644 | ac_status=$? |
6275 | ac_status=$? |
10645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10646 | (exit $ac_status); }; } && |
6277 | (exit $ac_status); }; } && |
… | |
… | |
10850 | grep -v '^ *+' conftest.er1 >conftest.err |
6481 | grep -v '^ *+' conftest.er1 >conftest.err |
10851 | rm -f conftest.er1 |
6482 | rm -f conftest.er1 |
10852 | cat conftest.err >&5 |
6483 | cat conftest.err >&5 |
10853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10854 | (exit $ac_status); } && |
6485 | (exit $ac_status); } && |
10855 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6486 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6487 | || test ! -s conftest.err' |
10856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10857 | (eval $ac_try) 2>&5 |
6489 | (eval $ac_try) 2>&5 |
10858 | ac_status=$? |
6490 | ac_status=$? |
10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10860 | (exit $ac_status); }; } && |
6492 | (exit $ac_status); }; } && |
… | |
… | |
10881 | #define HAVE_SYS_WAIT_H 1 |
6513 | #define HAVE_SYS_WAIT_H 1 |
10882 | _ACEOF |
6514 | _ACEOF |
10883 | |
6515 | |
10884 | fi |
6516 | fi |
10885 | |
6517 | |
|
|
6518 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6519 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
6520 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6522 | else |
|
|
6523 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6524 | /* confdefs.h. */ |
|
|
6525 | _ACEOF |
|
|
6526 | cat confdefs.h >>conftest.$ac_ext |
|
|
6527 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6528 | /* end confdefs.h. */ |
|
|
6529 | #include <stdlib.h> |
|
|
6530 | #include <stdarg.h> |
|
|
6531 | #include <string.h> |
|
|
6532 | #include <float.h> |
|
|
6533 | |
|
|
6534 | int |
|
|
6535 | main () |
|
|
6536 | { |
|
|
6537 | |
|
|
6538 | ; |
|
|
6539 | return 0; |
|
|
6540 | } |
|
|
6541 | _ACEOF |
|
|
6542 | rm -f conftest.$ac_objext |
|
|
6543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
6544 | (eval $ac_compile) 2>conftest.er1 |
|
|
6545 | ac_status=$? |
|
|
6546 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6547 | rm -f conftest.er1 |
|
|
6548 | cat conftest.err >&5 |
|
|
6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6550 | (exit $ac_status); } && |
|
|
6551 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6552 | || test ! -s conftest.err' |
|
|
6553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6554 | (eval $ac_try) 2>&5 |
|
|
6555 | ac_status=$? |
|
|
6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6557 | (exit $ac_status); }; } && |
|
|
6558 | { ac_try='test -s conftest.$ac_objext' |
|
|
6559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6560 | (eval $ac_try) 2>&5 |
|
|
6561 | ac_status=$? |
|
|
6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6563 | (exit $ac_status); }; }; then |
|
|
6564 | ac_cv_header_stdc=yes |
|
|
6565 | else |
|
|
6566 | echo "$as_me: failed program was:" >&5 |
|
|
6567 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6568 | |
|
|
6569 | ac_cv_header_stdc=no |
|
|
6570 | fi |
|
|
6571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6572 | |
|
|
6573 | if test $ac_cv_header_stdc = yes; then |
|
|
6574 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
6575 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6576 | /* confdefs.h. */ |
|
|
6577 | _ACEOF |
|
|
6578 | cat confdefs.h >>conftest.$ac_ext |
|
|
6579 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6580 | /* end confdefs.h. */ |
|
|
6581 | #include <string.h> |
|
|
6582 | |
|
|
6583 | _ACEOF |
|
|
6584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6585 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
6586 | : |
|
|
6587 | else |
|
|
6588 | ac_cv_header_stdc=no |
|
|
6589 | fi |
|
|
6590 | rm -f conftest* |
|
|
6591 | |
|
|
6592 | fi |
|
|
6593 | |
|
|
6594 | if test $ac_cv_header_stdc = yes; then |
|
|
6595 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
6596 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6597 | /* confdefs.h. */ |
|
|
6598 | _ACEOF |
|
|
6599 | cat confdefs.h >>conftest.$ac_ext |
|
|
6600 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6601 | /* end confdefs.h. */ |
|
|
6602 | #include <stdlib.h> |
|
|
6603 | |
|
|
6604 | _ACEOF |
|
|
6605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6606 | $EGREP "free" >/dev/null 2>&1; then |
|
|
6607 | : |
|
|
6608 | else |
|
|
6609 | ac_cv_header_stdc=no |
|
|
6610 | fi |
|
|
6611 | rm -f conftest* |
|
|
6612 | |
|
|
6613 | fi |
|
|
6614 | |
|
|
6615 | if test $ac_cv_header_stdc = yes; then |
|
|
6616 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
6617 | if test "$cross_compiling" = yes; then |
|
|
6618 | : |
|
|
6619 | else |
|
|
6620 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6621 | /* confdefs.h. */ |
|
|
6622 | _ACEOF |
|
|
6623 | cat confdefs.h >>conftest.$ac_ext |
|
|
6624 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6625 | /* end confdefs.h. */ |
|
|
6626 | #include <ctype.h> |
|
|
6627 | #if ((' ' & 0x0FF) == 0x020) |
|
|
6628 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
6629 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
6630 | #else |
|
|
6631 | # define ISLOWER(c) \ |
|
|
6632 | (('a' <= (c) && (c) <= 'i') \ |
|
|
6633 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
6634 | || ('s' <= (c) && (c) <= 'z')) |
|
|
6635 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
6636 | #endif |
|
|
6637 | |
|
|
6638 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
6639 | int |
|
|
6640 | main () |
|
|
6641 | { |
|
|
6642 | int i; |
|
|
6643 | for (i = 0; i < 256; i++) |
|
|
6644 | if (XOR (islower (i), ISLOWER (i)) |
|
|
6645 | || toupper (i) != TOUPPER (i)) |
|
|
6646 | exit(2); |
|
|
6647 | exit (0); |
|
|
6648 | } |
|
|
6649 | _ACEOF |
|
|
6650 | rm -f conftest$ac_exeext |
|
|
6651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6652 | (eval $ac_link) 2>&5 |
|
|
6653 | ac_status=$? |
|
|
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
6656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6657 | (eval $ac_try) 2>&5 |
|
|
6658 | ac_status=$? |
|
|
6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6660 | (exit $ac_status); }; }; then |
|
|
6661 | : |
|
|
6662 | else |
|
|
6663 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
6664 | echo "$as_me: failed program was:" >&5 |
|
|
6665 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6666 | |
|
|
6667 | ( exit $ac_status ) |
|
|
6668 | ac_cv_header_stdc=no |
|
|
6669 | fi |
|
|
6670 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
6671 | fi |
|
|
6672 | fi |
|
|
6673 | fi |
|
|
6674 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
6675 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
6676 | if test $ac_cv_header_stdc = yes; then |
|
|
6677 | |
|
|
6678 | cat >>confdefs.h <<\_ACEOF |
|
|
6679 | #define STDC_HEADERS 1 |
|
|
6680 | _ACEOF |
|
|
6681 | |
|
|
6682 | fi |
|
|
6683 | |
|
|
6684 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
6685 | |
|
|
6686 | |
|
|
6687 | |
|
|
6688 | |
|
|
6689 | |
|
|
6690 | |
|
|
6691 | |
|
|
6692 | |
|
|
6693 | |
|
|
6694 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
6695 | inttypes.h stdint.h unistd.h |
|
|
6696 | do |
|
|
6697 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
6699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
6700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
6701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6702 | else |
|
|
6703 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6704 | /* confdefs.h. */ |
|
|
6705 | _ACEOF |
|
|
6706 | cat confdefs.h >>conftest.$ac_ext |
|
|
6707 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6708 | /* end confdefs.h. */ |
|
|
6709 | $ac_includes_default |
|
|
6710 | |
|
|
6711 | #include <$ac_header> |
|
|
6712 | _ACEOF |
|
|
6713 | rm -f conftest.$ac_objext |
|
|
6714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
6715 | (eval $ac_compile) 2>conftest.er1 |
|
|
6716 | ac_status=$? |
|
|
6717 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6718 | rm -f conftest.er1 |
|
|
6719 | cat conftest.err >&5 |
|
|
6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6721 | (exit $ac_status); } && |
|
|
6722 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6723 | || test ! -s conftest.err' |
|
|
6724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6725 | (eval $ac_try) 2>&5 |
|
|
6726 | ac_status=$? |
|
|
6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6728 | (exit $ac_status); }; } && |
|
|
6729 | { ac_try='test -s conftest.$ac_objext' |
|
|
6730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6731 | (eval $ac_try) 2>&5 |
|
|
6732 | ac_status=$? |
|
|
6733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6734 | (exit $ac_status); }; }; then |
|
|
6735 | eval "$as_ac_Header=yes" |
|
|
6736 | else |
|
|
6737 | echo "$as_me: failed program was:" >&5 |
|
|
6738 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6739 | |
|
|
6740 | eval "$as_ac_Header=no" |
|
|
6741 | fi |
|
|
6742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6743 | fi |
|
|
6744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
6745 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
6746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
6747 | cat >>confdefs.h <<_ACEOF |
|
|
6748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6749 | _ACEOF |
|
|
6750 | |
|
|
6751 | fi |
|
|
6752 | |
|
|
6753 | done |
10886 | |
6754 | |
10887 | |
6755 | |
10888 | |
6756 | |
10889 | |
6757 | |
10890 | |
6758 | |
… | |
… | |
10903 | |
6771 | |
10904 | |
6772 | |
10905 | for ac_header in \ |
6773 | for ac_header in \ |
10906 | assert.h \ |
6774 | assert.h \ |
10907 | fcntl.h \ |
6775 | fcntl.h \ |
10908 | grp.h \ |
|
|
10909 | libc.h \ |
|
|
10910 | lastlog.h \ |
|
|
10911 | stdarg.h \ |
6776 | stdarg.h \ |
10912 | stdlib.h \ |
6777 | stdlib.h \ |
10913 | string.h \ |
6778 | string.h \ |
10914 | termios.h \ |
6779 | termios.h \ |
10915 | unistd.h \ |
6780 | unistd.h \ |
… | |
… | |
10917 | sys/ioctl.h \ |
6782 | sys/ioctl.h \ |
10918 | sys/select.h \ |
6783 | sys/select.h \ |
10919 | sys/sockio.h \ |
6784 | sys/sockio.h \ |
10920 | sys/strredir.h \ |
6785 | sys/strredir.h \ |
10921 | sys/time.h \ |
6786 | sys/time.h \ |
10922 | utmp.h \ |
6787 | stdint.h \ |
10923 | utmpx.h \ |
6788 | wchar.h \ |
10924 | stdint.h \ |
6789 | cwchar \ |
|
|
6790 | clocale \ |
10925 | |
6791 | |
10926 | do |
6792 | do |
10927 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6793 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6795 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
10953 | grep -v '^ *+' conftest.er1 >conftest.err |
6819 | grep -v '^ *+' conftest.er1 >conftest.err |
10954 | rm -f conftest.er1 |
6820 | rm -f conftest.er1 |
10955 | cat conftest.err >&5 |
6821 | cat conftest.err >&5 |
10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10957 | (exit $ac_status); } && |
6823 | (exit $ac_status); } && |
10958 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6824 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6825 | || test ! -s conftest.err' |
10959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10960 | (eval $ac_try) 2>&5 |
6827 | (eval $ac_try) 2>&5 |
10961 | ac_status=$? |
6828 | ac_status=$? |
10962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10963 | (exit $ac_status); }; } && |
6830 | (exit $ac_status); }; } && |
… | |
… | |
11102 | grep -v '^ *+' conftest.er1 >conftest.err |
6969 | grep -v '^ *+' conftest.er1 >conftest.err |
11103 | rm -f conftest.er1 |
6970 | rm -f conftest.er1 |
11104 | cat conftest.err >&5 |
6971 | cat conftest.err >&5 |
11105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11106 | (exit $ac_status); } && |
6973 | (exit $ac_status); } && |
11107 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6974 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
6975 | || test ! -s conftest.err' |
11108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11109 | (eval $ac_try) 2>&5 |
6977 | (eval $ac_try) 2>&5 |
11110 | ac_status=$? |
6978 | ac_status=$? |
11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11112 | (exit $ac_status); }; } && |
6980 | (exit $ac_status); }; } && |
… | |
… | |
11167 | grep -v '^ *+' conftest.er1 >conftest.err |
7035 | grep -v '^ *+' conftest.er1 >conftest.err |
11168 | rm -f conftest.er1 |
7036 | rm -f conftest.er1 |
11169 | cat conftest.err >&5 |
7037 | cat conftest.err >&5 |
11170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11171 | (exit $ac_status); } && |
7039 | (exit $ac_status); } && |
11172 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7040 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7041 | || test ! -s conftest.err' |
11173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11174 | (eval $ac_try) 2>&5 |
7043 | (eval $ac_try) 2>&5 |
11175 | ac_status=$? |
7044 | ac_status=$? |
11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11177 | (exit $ac_status); }; } && |
7046 | (exit $ac_status); }; } && |
… | |
… | |
11217 | /* confdefs.h. */ |
7086 | /* confdefs.h. */ |
11218 | _ACEOF |
7087 | _ACEOF |
11219 | cat confdefs.h >>conftest.$ac_ext |
7088 | cat confdefs.h >>conftest.$ac_ext |
11220 | cat >>conftest.$ac_ext <<_ACEOF |
7089 | cat >>conftest.$ac_ext <<_ACEOF |
11221 | /* end confdefs.h. */ |
7090 | /* end confdefs.h. */ |
11222 | |
7091 | #include <X11/Xlib.h> |
|
|
7092 | #include <stdlib.h> |
11223 | main() |
7093 | main() |
11224 | { |
7094 | { |
11225 | exit(0); |
7095 | exit(0); |
11226 | (void) XOpenDisplay("foobar"); |
7096 | (void) XOpenDisplay("foobar"); |
11227 | } |
7097 | } |
… | |
… | |
11266 | /* confdefs.h. */ |
7136 | /* confdefs.h. */ |
11267 | _ACEOF |
7137 | _ACEOF |
11268 | cat confdefs.h >>conftest.$ac_ext |
7138 | cat confdefs.h >>conftest.$ac_ext |
11269 | cat >>conftest.$ac_ext <<_ACEOF |
7139 | cat >>conftest.$ac_ext <<_ACEOF |
11270 | /* end confdefs.h. */ |
7140 | /* end confdefs.h. */ |
11271 | |
7141 | #include <X11/Xlib.h> |
|
|
7142 | #include <stdlib.h> |
11272 | main() |
7143 | main() |
11273 | { |
7144 | { |
11274 | exit(0); |
7145 | exit(0); |
11275 | (void) XOpenDisplay("foobar"); |
7146 | (void) XOpenDisplay("foobar"); |
11276 | } |
7147 | } |
… | |
… | |
11332 | grep -v '^ *+' conftest.er1 >conftest.err |
7203 | grep -v '^ *+' conftest.er1 >conftest.err |
11333 | rm -f conftest.er1 |
7204 | rm -f conftest.er1 |
11334 | cat conftest.err >&5 |
7205 | cat conftest.err >&5 |
11335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11336 | (exit $ac_status); } && |
7207 | (exit $ac_status); } && |
11337 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7208 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7209 | || test ! -s conftest.err' |
11338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11339 | (eval $ac_try) 2>&5 |
7211 | (eval $ac_try) 2>&5 |
11340 | ac_status=$? |
7212 | ac_status=$? |
11341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11342 | (exit $ac_status); }; } && |
7214 | (exit $ac_status); }; } && |
… | |
… | |
11365 | |
7237 | |
11366 | fi |
7238 | fi |
11367 | LIBS=$ac_save_LIBS |
7239 | LIBS=$ac_save_LIBS |
11368 | CFLAGS=$ac_save_CFLAGS |
7240 | CFLAGS=$ac_save_CFLAGS |
11369 | |
7241 | |
|
|
7242 | echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
7243 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6 |
|
|
7244 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
|
|
7245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7246 | else |
|
|
7247 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7248 | /* confdefs.h. */ |
|
|
7249 | _ACEOF |
|
|
7250 | cat confdefs.h >>conftest.$ac_ext |
|
|
7251 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7252 | /* end confdefs.h. */ |
|
|
7253 | |
|
|
7254 | #define XLIB_ILLEGAL_ACCESS |
|
|
7255 | #include <X11/Xlib.h> |
|
|
7256 | |
|
|
7257 | int |
|
|
7258 | main () |
|
|
7259 | { |
|
|
7260 | |
|
|
7261 | Display *dpy; |
|
|
7262 | dpy->xdefaults = (char *)0; |
|
|
7263 | |
|
|
7264 | ; |
|
|
7265 | return 0; |
|
|
7266 | } |
|
|
7267 | _ACEOF |
|
|
7268 | rm -f conftest.$ac_objext |
|
|
7269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7270 | (eval $ac_compile) 2>conftest.er1 |
|
|
7271 | ac_status=$? |
|
|
7272 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7273 | rm -f conftest.er1 |
|
|
7274 | cat conftest.err >&5 |
|
|
7275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7276 | (exit $ac_status); } && |
|
|
7277 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7278 | || test ! -s conftest.err' |
|
|
7279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7280 | (eval $ac_try) 2>&5 |
|
|
7281 | ac_status=$? |
|
|
7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7283 | (exit $ac_status); }; } && |
|
|
7284 | { ac_try='test -s conftest.$ac_objext' |
|
|
7285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7286 | (eval $ac_try) 2>&5 |
|
|
7287 | ac_status=$? |
|
|
7288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7289 | (exit $ac_status); }; }; then |
|
|
7290 | rxvt_xlib_illegal_access=yes |
|
|
7291 | else |
|
|
7292 | echo "$as_me: failed program was:" >&5 |
|
|
7293 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7294 | |
|
|
7295 | rxvt_xlib_illegal_access=no |
|
|
7296 | |
|
|
7297 | fi |
|
|
7298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7299 | fi |
|
|
7300 | echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 |
|
|
7301 | echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6 |
|
|
7302 | if test x$rxvt_xlib_illegal_access = xyes; then |
|
|
7303 | |
|
|
7304 | cat >>confdefs.h <<\_ACEOF |
|
|
7305 | #define XLIB_ILLEGAL_ACCESS 1 |
|
|
7306 | _ACEOF |
|
|
7307 | |
|
|
7308 | fi |
11370 | |
7309 | |
11371 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
7310 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
11372 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
7311 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
11373 | if test "${ac_cv_c_const+set}" = set; then |
7312 | if test "${ac_cv_c_const+set}" = set; then |
11374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11441 | grep -v '^ *+' conftest.er1 >conftest.err |
7380 | grep -v '^ *+' conftest.er1 >conftest.err |
11442 | rm -f conftest.er1 |
7381 | rm -f conftest.er1 |
11443 | cat conftest.err >&5 |
7382 | cat conftest.err >&5 |
11444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11445 | (exit $ac_status); } && |
7384 | (exit $ac_status); } && |
11446 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7385 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7386 | || test ! -s conftest.err' |
11447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11448 | (eval $ac_try) 2>&5 |
7388 | (eval $ac_try) 2>&5 |
11449 | ac_status=$? |
7389 | ac_status=$? |
11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11451 | (exit $ac_status); }; } && |
7391 | (exit $ac_status); }; } && |
… | |
… | |
11501 | grep -v '^ *+' conftest.er1 >conftest.err |
7441 | grep -v '^ *+' conftest.er1 >conftest.err |
11502 | rm -f conftest.er1 |
7442 | rm -f conftest.er1 |
11503 | cat conftest.err >&5 |
7443 | cat conftest.err >&5 |
11504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11505 | (exit $ac_status); } && |
7445 | (exit $ac_status); } && |
11506 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7446 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7447 | || test ! -s conftest.err' |
11507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11508 | (eval $ac_try) 2>&5 |
7449 | (eval $ac_try) 2>&5 |
11509 | ac_status=$? |
7450 | ac_status=$? |
11510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11511 | (exit $ac_status); }; } && |
7452 | (exit $ac_status); }; } && |
… | |
… | |
11576 | grep -v '^ *+' conftest.er1 >conftest.err |
7517 | grep -v '^ *+' conftest.er1 >conftest.err |
11577 | rm -f conftest.er1 |
7518 | rm -f conftest.er1 |
11578 | cat conftest.err >&5 |
7519 | cat conftest.err >&5 |
11579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11580 | (exit $ac_status); } && |
7521 | (exit $ac_status); } && |
11581 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7522 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7523 | || test ! -s conftest.err' |
11582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11583 | (eval $ac_try) 2>&5 |
7525 | (eval $ac_try) 2>&5 |
11584 | ac_status=$? |
7526 | ac_status=$? |
11585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11586 | (exit $ac_status); }; } && |
7528 | (exit $ac_status); }; } && |
… | |
… | |
11641 | grep -v '^ *+' conftest.er1 >conftest.err |
7583 | grep -v '^ *+' conftest.er1 >conftest.err |
11642 | rm -f conftest.er1 |
7584 | rm -f conftest.er1 |
11643 | cat conftest.err >&5 |
7585 | cat conftest.err >&5 |
11644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11645 | (exit $ac_status); } && |
7587 | (exit $ac_status); } && |
11646 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7588 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7589 | || test ! -s conftest.err' |
11647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11648 | (eval $ac_try) 2>&5 |
7591 | (eval $ac_try) 2>&5 |
11649 | ac_status=$? |
7592 | ac_status=$? |
11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11651 | (exit $ac_status); }; } && |
7594 | (exit $ac_status); }; } && |
… | |
… | |
11711 | cat >>confdefs.h <<\_ACEOF |
7654 | cat >>confdefs.h <<\_ACEOF |
11712 | #define gid_t int |
7655 | #define gid_t int |
11713 | _ACEOF |
7656 | _ACEOF |
11714 | |
7657 | |
11715 | fi |
7658 | fi |
11716 | |
|
|
11717 | |
|
|
11718 | |
|
|
11719 | echo "$as_me:$LINENO: checking for char" >&5 |
|
|
11720 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
|
|
11721 | if test "${ac_cv_type_char+set}" = set; then |
|
|
11722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11723 | else |
|
|
11724 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11725 | /* confdefs.h. */ |
|
|
11726 | _ACEOF |
|
|
11727 | cat confdefs.h >>conftest.$ac_ext |
|
|
11728 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11729 | /* end confdefs.h. */ |
|
|
11730 | $ac_includes_default |
|
|
11731 | int |
|
|
11732 | main () |
|
|
11733 | { |
|
|
11734 | if ((char *) 0) |
|
|
11735 | return 0; |
|
|
11736 | if (sizeof (char)) |
|
|
11737 | return 0; |
|
|
11738 | ; |
|
|
11739 | return 0; |
|
|
11740 | } |
|
|
11741 | _ACEOF |
|
|
11742 | rm -f conftest.$ac_objext |
|
|
11743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11744 | (eval $ac_compile) 2>conftest.er1 |
|
|
11745 | ac_status=$? |
|
|
11746 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11747 | rm -f conftest.er1 |
|
|
11748 | cat conftest.err >&5 |
|
|
11749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11750 | (exit $ac_status); } && |
|
|
11751 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11753 | (eval $ac_try) 2>&5 |
|
|
11754 | ac_status=$? |
|
|
11755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11756 | (exit $ac_status); }; } && |
|
|
11757 | { ac_try='test -s conftest.$ac_objext' |
|
|
11758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11759 | (eval $ac_try) 2>&5 |
|
|
11760 | ac_status=$? |
|
|
11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11762 | (exit $ac_status); }; }; then |
|
|
11763 | ac_cv_type_char=yes |
|
|
11764 | else |
|
|
11765 | echo "$as_me: failed program was:" >&5 |
|
|
11766 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11767 | |
|
|
11768 | ac_cv_type_char=no |
|
|
11769 | fi |
|
|
11770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11771 | fi |
|
|
11772 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
|
|
11773 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
|
|
11774 | |
|
|
11775 | echo "$as_me:$LINENO: checking size of char" >&5 |
|
|
11776 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
|
|
11777 | if test "${ac_cv_sizeof_char+set}" = set; then |
|
|
11778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11779 | else |
|
|
11780 | if test "$ac_cv_type_char" = yes; then |
|
|
11781 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
11782 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
11783 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
11784 | # This bug is HP SR number 8606223364. |
|
|
11785 | if test "$cross_compiling" = yes; then |
|
|
11786 | # Depending upon the size, compute the lo and hi bounds. |
|
|
11787 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11788 | /* confdefs.h. */ |
|
|
11789 | _ACEOF |
|
|
11790 | cat confdefs.h >>conftest.$ac_ext |
|
|
11791 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11792 | /* end confdefs.h. */ |
|
|
11793 | $ac_includes_default |
|
|
11794 | int |
|
|
11795 | main () |
|
|
11796 | { |
|
|
11797 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
|
|
11798 | test_array [0] = 0 |
|
|
11799 | |
|
|
11800 | ; |
|
|
11801 | return 0; |
|
|
11802 | } |
|
|
11803 | _ACEOF |
|
|
11804 | rm -f conftest.$ac_objext |
|
|
11805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11806 | (eval $ac_compile) 2>conftest.er1 |
|
|
11807 | ac_status=$? |
|
|
11808 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11809 | rm -f conftest.er1 |
|
|
11810 | cat conftest.err >&5 |
|
|
11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11812 | (exit $ac_status); } && |
|
|
11813 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11815 | (eval $ac_try) 2>&5 |
|
|
11816 | ac_status=$? |
|
|
11817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11818 | (exit $ac_status); }; } && |
|
|
11819 | { ac_try='test -s conftest.$ac_objext' |
|
|
11820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11821 | (eval $ac_try) 2>&5 |
|
|
11822 | ac_status=$? |
|
|
11823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11824 | (exit $ac_status); }; }; then |
|
|
11825 | ac_lo=0 ac_mid=0 |
|
|
11826 | while :; do |
|
|
11827 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11828 | /* confdefs.h. */ |
|
|
11829 | _ACEOF |
|
|
11830 | cat confdefs.h >>conftest.$ac_ext |
|
|
11831 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11832 | /* end confdefs.h. */ |
|
|
11833 | $ac_includes_default |
|
|
11834 | int |
|
|
11835 | main () |
|
|
11836 | { |
|
|
11837 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
11838 | test_array [0] = 0 |
|
|
11839 | |
|
|
11840 | ; |
|
|
11841 | return 0; |
|
|
11842 | } |
|
|
11843 | _ACEOF |
|
|
11844 | rm -f conftest.$ac_objext |
|
|
11845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11846 | (eval $ac_compile) 2>conftest.er1 |
|
|
11847 | ac_status=$? |
|
|
11848 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11849 | rm -f conftest.er1 |
|
|
11850 | cat conftest.err >&5 |
|
|
11851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11852 | (exit $ac_status); } && |
|
|
11853 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11855 | (eval $ac_try) 2>&5 |
|
|
11856 | ac_status=$? |
|
|
11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11858 | (exit $ac_status); }; } && |
|
|
11859 | { ac_try='test -s conftest.$ac_objext' |
|
|
11860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11861 | (eval $ac_try) 2>&5 |
|
|
11862 | ac_status=$? |
|
|
11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11864 | (exit $ac_status); }; }; then |
|
|
11865 | ac_hi=$ac_mid; break |
|
|
11866 | else |
|
|
11867 | echo "$as_me: failed program was:" >&5 |
|
|
11868 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11869 | |
|
|
11870 | ac_lo=`expr $ac_mid + 1` |
|
|
11871 | if test $ac_lo -le $ac_mid; then |
|
|
11872 | ac_lo= ac_hi= |
|
|
11873 | break |
|
|
11874 | fi |
|
|
11875 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
11876 | fi |
|
|
11877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11878 | done |
|
|
11879 | else |
|
|
11880 | echo "$as_me: failed program was:" >&5 |
|
|
11881 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11882 | |
|
|
11883 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11884 | /* confdefs.h. */ |
|
|
11885 | _ACEOF |
|
|
11886 | cat confdefs.h >>conftest.$ac_ext |
|
|
11887 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11888 | /* end confdefs.h. */ |
|
|
11889 | $ac_includes_default |
|
|
11890 | int |
|
|
11891 | main () |
|
|
11892 | { |
|
|
11893 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
|
|
11894 | test_array [0] = 0 |
|
|
11895 | |
|
|
11896 | ; |
|
|
11897 | return 0; |
|
|
11898 | } |
|
|
11899 | _ACEOF |
|
|
11900 | rm -f conftest.$ac_objext |
|
|
11901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11902 | (eval $ac_compile) 2>conftest.er1 |
|
|
11903 | ac_status=$? |
|
|
11904 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11905 | rm -f conftest.er1 |
|
|
11906 | cat conftest.err >&5 |
|
|
11907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11908 | (exit $ac_status); } && |
|
|
11909 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11911 | (eval $ac_try) 2>&5 |
|
|
11912 | ac_status=$? |
|
|
11913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11914 | (exit $ac_status); }; } && |
|
|
11915 | { ac_try='test -s conftest.$ac_objext' |
|
|
11916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11917 | (eval $ac_try) 2>&5 |
|
|
11918 | ac_status=$? |
|
|
11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11920 | (exit $ac_status); }; }; then |
|
|
11921 | ac_hi=-1 ac_mid=-1 |
|
|
11922 | while :; do |
|
|
11923 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11924 | /* confdefs.h. */ |
|
|
11925 | _ACEOF |
|
|
11926 | cat confdefs.h >>conftest.$ac_ext |
|
|
11927 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11928 | /* end confdefs.h. */ |
|
|
11929 | $ac_includes_default |
|
|
11930 | int |
|
|
11931 | main () |
|
|
11932 | { |
|
|
11933 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
|
|
11934 | test_array [0] = 0 |
|
|
11935 | |
|
|
11936 | ; |
|
|
11937 | return 0; |
|
|
11938 | } |
|
|
11939 | _ACEOF |
|
|
11940 | rm -f conftest.$ac_objext |
|
|
11941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11942 | (eval $ac_compile) 2>conftest.er1 |
|
|
11943 | ac_status=$? |
|
|
11944 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11945 | rm -f conftest.er1 |
|
|
11946 | cat conftest.err >&5 |
|
|
11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11948 | (exit $ac_status); } && |
|
|
11949 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11951 | (eval $ac_try) 2>&5 |
|
|
11952 | ac_status=$? |
|
|
11953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11954 | (exit $ac_status); }; } && |
|
|
11955 | { ac_try='test -s conftest.$ac_objext' |
|
|
11956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11957 | (eval $ac_try) 2>&5 |
|
|
11958 | ac_status=$? |
|
|
11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11960 | (exit $ac_status); }; }; then |
|
|
11961 | ac_lo=$ac_mid; break |
|
|
11962 | else |
|
|
11963 | echo "$as_me: failed program was:" >&5 |
|
|
11964 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11965 | |
|
|
11966 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
11967 | if test $ac_mid -le $ac_hi; then |
|
|
11968 | ac_lo= ac_hi= |
|
|
11969 | break |
|
|
11970 | fi |
|
|
11971 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
11972 | fi |
|
|
11973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11974 | done |
|
|
11975 | else |
|
|
11976 | echo "$as_me: failed program was:" >&5 |
|
|
11977 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11978 | |
|
|
11979 | ac_lo= ac_hi= |
|
|
11980 | fi |
|
|
11981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11982 | fi |
|
|
11983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11984 | # Binary search between lo and hi bounds. |
|
|
11985 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
11986 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
11987 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11988 | /* confdefs.h. */ |
|
|
11989 | _ACEOF |
|
|
11990 | cat confdefs.h >>conftest.$ac_ext |
|
|
11991 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11992 | /* end confdefs.h. */ |
|
|
11993 | $ac_includes_default |
|
|
11994 | int |
|
|
11995 | main () |
|
|
11996 | { |
|
|
11997 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
11998 | test_array [0] = 0 |
|
|
11999 | |
|
|
12000 | ; |
|
|
12001 | return 0; |
|
|
12002 | } |
|
|
12003 | _ACEOF |
|
|
12004 | rm -f conftest.$ac_objext |
|
|
12005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12006 | (eval $ac_compile) 2>conftest.er1 |
|
|
12007 | ac_status=$? |
|
|
12008 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12009 | rm -f conftest.er1 |
|
|
12010 | cat conftest.err >&5 |
|
|
12011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12012 | (exit $ac_status); } && |
|
|
12013 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12015 | (eval $ac_try) 2>&5 |
|
|
12016 | ac_status=$? |
|
|
12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12018 | (exit $ac_status); }; } && |
|
|
12019 | { ac_try='test -s conftest.$ac_objext' |
|
|
12020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12021 | (eval $ac_try) 2>&5 |
|
|
12022 | ac_status=$? |
|
|
12023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12024 | (exit $ac_status); }; }; then |
|
|
12025 | ac_hi=$ac_mid |
|
|
12026 | else |
|
|
12027 | echo "$as_me: failed program was:" >&5 |
|
|
12028 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12029 | |
|
|
12030 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
12031 | fi |
|
|
12032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12033 | done |
|
|
12034 | case $ac_lo in |
|
|
12035 | ?*) ac_cv_sizeof_char=$ac_lo;; |
|
|
12036 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12037 | See \`config.log' for more details." >&5 |
|
|
12038 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12039 | See \`config.log' for more details." >&2;} |
|
|
12040 | { (exit 1); exit 1; }; } ;; |
|
|
12041 | esac |
|
|
12042 | else |
|
|
12043 | if test "$cross_compiling" = yes; then |
|
|
12044 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
12045 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
12046 | { (exit 1); exit 1; }; } |
|
|
12047 | else |
|
|
12048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12049 | /* confdefs.h. */ |
|
|
12050 | _ACEOF |
|
|
12051 | cat confdefs.h >>conftest.$ac_ext |
|
|
12052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12053 | /* end confdefs.h. */ |
|
|
12054 | $ac_includes_default |
|
|
12055 | long longval () { return (long) (sizeof (char)); } |
|
|
12056 | unsigned long ulongval () { return (long) (sizeof (char)); } |
|
|
12057 | #include <stdio.h> |
|
|
12058 | #include <stdlib.h> |
|
|
12059 | int |
|
|
12060 | main () |
|
|
12061 | { |
|
|
12062 | |
|
|
12063 | FILE *f = fopen ("conftest.val", "w"); |
|
|
12064 | if (! f) |
|
|
12065 | exit (1); |
|
|
12066 | if (((long) (sizeof (char))) < 0) |
|
|
12067 | { |
|
|
12068 | long i = longval (); |
|
|
12069 | if (i != ((long) (sizeof (char)))) |
|
|
12070 | exit (1); |
|
|
12071 | fprintf (f, "%ld\n", i); |
|
|
12072 | } |
|
|
12073 | else |
|
|
12074 | { |
|
|
12075 | unsigned long i = ulongval (); |
|
|
12076 | if (i != ((long) (sizeof (char)))) |
|
|
12077 | exit (1); |
|
|
12078 | fprintf (f, "%lu\n", i); |
|
|
12079 | } |
|
|
12080 | exit (ferror (f) || fclose (f) != 0); |
|
|
12081 | |
|
|
12082 | ; |
|
|
12083 | return 0; |
|
|
12084 | } |
|
|
12085 | _ACEOF |
|
|
12086 | rm -f conftest$ac_exeext |
|
|
12087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12088 | (eval $ac_link) 2>&5 |
|
|
12089 | ac_status=$? |
|
|
12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12093 | (eval $ac_try) 2>&5 |
|
|
12094 | ac_status=$? |
|
|
12095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12096 | (exit $ac_status); }; }; then |
|
|
12097 | ac_cv_sizeof_char=`cat conftest.val` |
|
|
12098 | else |
|
|
12099 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12100 | echo "$as_me: failed program was:" >&5 |
|
|
12101 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12102 | |
|
|
12103 | ( exit $ac_status ) |
|
|
12104 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12105 | See \`config.log' for more details." >&5 |
|
|
12106 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12107 | See \`config.log' for more details." >&2;} |
|
|
12108 | { (exit 1); exit 1; }; } |
|
|
12109 | fi |
|
|
12110 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12111 | fi |
|
|
12112 | fi |
|
|
12113 | rm -f conftest.val |
|
|
12114 | else |
|
|
12115 | ac_cv_sizeof_char=0 |
|
|
12116 | fi |
|
|
12117 | fi |
|
|
12118 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
|
|
12119 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
|
|
12120 | cat >>confdefs.h <<_ACEOF |
|
|
12121 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
|
|
12122 | _ACEOF |
|
|
12123 | |
7659 | |
12124 | |
7660 | |
12125 | echo "$as_me:$LINENO: checking for short" >&5 |
7661 | echo "$as_me:$LINENO: checking for short" >&5 |
12126 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
7662 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
12127 | if test "${ac_cv_type_short+set}" = set; then |
7663 | if test "${ac_cv_type_short+set}" = set; then |
… | |
… | |
12152 | grep -v '^ *+' conftest.er1 >conftest.err |
7688 | grep -v '^ *+' conftest.er1 >conftest.err |
12153 | rm -f conftest.er1 |
7689 | rm -f conftest.er1 |
12154 | cat conftest.err >&5 |
7690 | cat conftest.err >&5 |
12155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12156 | (exit $ac_status); } && |
7692 | (exit $ac_status); } && |
12157 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7693 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7694 | || test ! -s conftest.err' |
12158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12159 | (eval $ac_try) 2>&5 |
7696 | (eval $ac_try) 2>&5 |
12160 | ac_status=$? |
7697 | ac_status=$? |
12161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12162 | (exit $ac_status); }; } && |
7699 | (exit $ac_status); }; } && |
… | |
… | |
12214 | grep -v '^ *+' conftest.er1 >conftest.err |
7751 | grep -v '^ *+' conftest.er1 >conftest.err |
12215 | rm -f conftest.er1 |
7752 | rm -f conftest.er1 |
12216 | cat conftest.err >&5 |
7753 | cat conftest.err >&5 |
12217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12218 | (exit $ac_status); } && |
7755 | (exit $ac_status); } && |
12219 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7756 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7757 | || test ! -s conftest.err' |
12220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12221 | (eval $ac_try) 2>&5 |
7759 | (eval $ac_try) 2>&5 |
12222 | ac_status=$? |
7760 | ac_status=$? |
12223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12224 | (exit $ac_status); }; } && |
7762 | (exit $ac_status); }; } && |
… | |
… | |
12254 | grep -v '^ *+' conftest.er1 >conftest.err |
7792 | grep -v '^ *+' conftest.er1 >conftest.err |
12255 | rm -f conftest.er1 |
7793 | rm -f conftest.er1 |
12256 | cat conftest.err >&5 |
7794 | cat conftest.err >&5 |
12257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12258 | (exit $ac_status); } && |
7796 | (exit $ac_status); } && |
12259 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7797 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7798 | || test ! -s conftest.err' |
12260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12261 | (eval $ac_try) 2>&5 |
7800 | (eval $ac_try) 2>&5 |
12262 | ac_status=$? |
7801 | ac_status=$? |
12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12264 | (exit $ac_status); }; } && |
7803 | (exit $ac_status); }; } && |
… | |
… | |
12310 | grep -v '^ *+' conftest.er1 >conftest.err |
7849 | grep -v '^ *+' conftest.er1 >conftest.err |
12311 | rm -f conftest.er1 |
7850 | rm -f conftest.er1 |
12312 | cat conftest.err >&5 |
7851 | cat conftest.err >&5 |
12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12314 | (exit $ac_status); } && |
7853 | (exit $ac_status); } && |
12315 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7854 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7855 | || test ! -s conftest.err' |
12316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12317 | (eval $ac_try) 2>&5 |
7857 | (eval $ac_try) 2>&5 |
12318 | ac_status=$? |
7858 | ac_status=$? |
12319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12320 | (exit $ac_status); }; } && |
7860 | (exit $ac_status); }; } && |
… | |
… | |
12350 | grep -v '^ *+' conftest.er1 >conftest.err |
7890 | grep -v '^ *+' conftest.er1 >conftest.err |
12351 | rm -f conftest.er1 |
7891 | rm -f conftest.er1 |
12352 | cat conftest.err >&5 |
7892 | cat conftest.err >&5 |
12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12354 | (exit $ac_status); } && |
7894 | (exit $ac_status); } && |
12355 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7895 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7896 | || test ! -s conftest.err' |
12356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12357 | (eval $ac_try) 2>&5 |
7898 | (eval $ac_try) 2>&5 |
12358 | ac_status=$? |
7899 | ac_status=$? |
12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12360 | (exit $ac_status); }; } && |
7901 | (exit $ac_status); }; } && |
… | |
… | |
12414 | grep -v '^ *+' conftest.er1 >conftest.err |
7955 | grep -v '^ *+' conftest.er1 >conftest.err |
12415 | rm -f conftest.er1 |
7956 | rm -f conftest.er1 |
12416 | cat conftest.err >&5 |
7957 | cat conftest.err >&5 |
12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12418 | (exit $ac_status); } && |
7959 | (exit $ac_status); } && |
12419 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7960 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
7961 | || test ! -s conftest.err' |
12420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12421 | (eval $ac_try) 2>&5 |
7963 | (eval $ac_try) 2>&5 |
12422 | ac_status=$? |
7964 | ac_status=$? |
12423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12424 | (exit $ac_status); }; } && |
7966 | (exit $ac_status); }; } && |
… | |
… | |
12445 | See \`config.log' for more details." >&2;} |
7987 | See \`config.log' for more details." >&2;} |
12446 | { (exit 1); exit 1; }; } ;; |
7988 | { (exit 1); exit 1; }; } ;; |
12447 | esac |
7989 | esac |
12448 | else |
7990 | else |
12449 | if test "$cross_compiling" = yes; then |
7991 | if test "$cross_compiling" = yes; then |
12450 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
7992 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
12451 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
7993 | See \`config.log' for more details." >&5 |
|
|
7994 | echo "$as_me: error: cannot run test program while cross compiling |
|
|
7995 | See \`config.log' for more details." >&2;} |
12452 | { (exit 1); exit 1; }; } |
7996 | { (exit 1); exit 1; }; } |
12453 | else |
7997 | else |
12454 | cat >conftest.$ac_ext <<_ACEOF |
7998 | cat >conftest.$ac_ext <<_ACEOF |
12455 | /* confdefs.h. */ |
7999 | /* confdefs.h. */ |
12456 | _ACEOF |
8000 | _ACEOF |
… | |
… | |
12558 | grep -v '^ *+' conftest.er1 >conftest.err |
8102 | grep -v '^ *+' conftest.er1 >conftest.err |
12559 | rm -f conftest.er1 |
8103 | rm -f conftest.er1 |
12560 | cat conftest.err >&5 |
8104 | cat conftest.err >&5 |
12561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12562 | (exit $ac_status); } && |
8106 | (exit $ac_status); } && |
12563 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8107 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8108 | || test ! -s conftest.err' |
12564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12565 | (eval $ac_try) 2>&5 |
8110 | (eval $ac_try) 2>&5 |
12566 | ac_status=$? |
8111 | ac_status=$? |
12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12568 | (exit $ac_status); }; } && |
8113 | (exit $ac_status); }; } && |
… | |
… | |
12620 | grep -v '^ *+' conftest.er1 >conftest.err |
8165 | grep -v '^ *+' conftest.er1 >conftest.err |
12621 | rm -f conftest.er1 |
8166 | rm -f conftest.er1 |
12622 | cat conftest.err >&5 |
8167 | cat conftest.err >&5 |
12623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12624 | (exit $ac_status); } && |
8169 | (exit $ac_status); } && |
12625 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8170 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8171 | || test ! -s conftest.err' |
12626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12627 | (eval $ac_try) 2>&5 |
8173 | (eval $ac_try) 2>&5 |
12628 | ac_status=$? |
8174 | ac_status=$? |
12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12630 | (exit $ac_status); }; } && |
8176 | (exit $ac_status); }; } && |
… | |
… | |
12660 | grep -v '^ *+' conftest.er1 >conftest.err |
8206 | grep -v '^ *+' conftest.er1 >conftest.err |
12661 | rm -f conftest.er1 |
8207 | rm -f conftest.er1 |
12662 | cat conftest.err >&5 |
8208 | cat conftest.err >&5 |
12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12664 | (exit $ac_status); } && |
8210 | (exit $ac_status); } && |
12665 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8211 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8212 | || test ! -s conftest.err' |
12666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12667 | (eval $ac_try) 2>&5 |
8214 | (eval $ac_try) 2>&5 |
12668 | ac_status=$? |
8215 | ac_status=$? |
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12670 | (exit $ac_status); }; } && |
8217 | (exit $ac_status); }; } && |
… | |
… | |
12716 | grep -v '^ *+' conftest.er1 >conftest.err |
8263 | grep -v '^ *+' conftest.er1 >conftest.err |
12717 | rm -f conftest.er1 |
8264 | rm -f conftest.er1 |
12718 | cat conftest.err >&5 |
8265 | cat conftest.err >&5 |
12719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12720 | (exit $ac_status); } && |
8267 | (exit $ac_status); } && |
12721 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8268 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8269 | || test ! -s conftest.err' |
12722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12723 | (eval $ac_try) 2>&5 |
8271 | (eval $ac_try) 2>&5 |
12724 | ac_status=$? |
8272 | ac_status=$? |
12725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12726 | (exit $ac_status); }; } && |
8274 | (exit $ac_status); }; } && |
… | |
… | |
12756 | grep -v '^ *+' conftest.er1 >conftest.err |
8304 | grep -v '^ *+' conftest.er1 >conftest.err |
12757 | rm -f conftest.er1 |
8305 | rm -f conftest.er1 |
12758 | cat conftest.err >&5 |
8306 | cat conftest.err >&5 |
12759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12760 | (exit $ac_status); } && |
8308 | (exit $ac_status); } && |
12761 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8309 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8310 | || test ! -s conftest.err' |
12762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12763 | (eval $ac_try) 2>&5 |
8312 | (eval $ac_try) 2>&5 |
12764 | ac_status=$? |
8313 | ac_status=$? |
12765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12766 | (exit $ac_status); }; } && |
8315 | (exit $ac_status); }; } && |
… | |
… | |
12820 | grep -v '^ *+' conftest.er1 >conftest.err |
8369 | grep -v '^ *+' conftest.er1 >conftest.err |
12821 | rm -f conftest.er1 |
8370 | rm -f conftest.er1 |
12822 | cat conftest.err >&5 |
8371 | cat conftest.err >&5 |
12823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12824 | (exit $ac_status); } && |
8373 | (exit $ac_status); } && |
12825 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8374 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8375 | || test ! -s conftest.err' |
12826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12827 | (eval $ac_try) 2>&5 |
8377 | (eval $ac_try) 2>&5 |
12828 | ac_status=$? |
8378 | ac_status=$? |
12829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12830 | (exit $ac_status); }; } && |
8380 | (exit $ac_status); }; } && |
… | |
… | |
12851 | See \`config.log' for more details." >&2;} |
8401 | See \`config.log' for more details." >&2;} |
12852 | { (exit 1); exit 1; }; } ;; |
8402 | { (exit 1); exit 1; }; } ;; |
12853 | esac |
8403 | esac |
12854 | else |
8404 | else |
12855 | if test "$cross_compiling" = yes; then |
8405 | if test "$cross_compiling" = yes; then |
12856 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
8406 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
12857 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
8407 | See \`config.log' for more details." >&5 |
|
|
8408 | echo "$as_me: error: cannot run test program while cross compiling |
|
|
8409 | See \`config.log' for more details." >&2;} |
12858 | { (exit 1); exit 1; }; } |
8410 | { (exit 1); exit 1; }; } |
12859 | else |
8411 | else |
12860 | cat >conftest.$ac_ext <<_ACEOF |
8412 | cat >conftest.$ac_ext <<_ACEOF |
12861 | /* confdefs.h. */ |
8413 | /* confdefs.h. */ |
12862 | _ACEOF |
8414 | _ACEOF |
… | |
… | |
12932 | cat >>confdefs.h <<_ACEOF |
8484 | cat >>confdefs.h <<_ACEOF |
12933 | #define SIZEOF_INT $ac_cv_sizeof_int |
8485 | #define SIZEOF_INT $ac_cv_sizeof_int |
12934 | _ACEOF |
8486 | _ACEOF |
12935 | |
8487 | |
12936 | |
8488 | |
12937 | echo "$as_me:$LINENO: checking for long" >&5 |
|
|
12938 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
|
|
12939 | if test "${ac_cv_type_long+set}" = set; then |
|
|
12940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12941 | else |
|
|
12942 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12943 | /* confdefs.h. */ |
|
|
12944 | _ACEOF |
|
|
12945 | cat confdefs.h >>conftest.$ac_ext |
|
|
12946 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12947 | /* end confdefs.h. */ |
|
|
12948 | $ac_includes_default |
|
|
12949 | int |
|
|
12950 | main () |
|
|
12951 | { |
|
|
12952 | if ((long *) 0) |
|
|
12953 | return 0; |
|
|
12954 | if (sizeof (long)) |
|
|
12955 | return 0; |
|
|
12956 | ; |
|
|
12957 | return 0; |
|
|
12958 | } |
|
|
12959 | _ACEOF |
|
|
12960 | rm -f conftest.$ac_objext |
|
|
12961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12962 | (eval $ac_compile) 2>conftest.er1 |
|
|
12963 | ac_status=$? |
|
|
12964 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12965 | rm -f conftest.er1 |
|
|
12966 | cat conftest.err >&5 |
|
|
12967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12968 | (exit $ac_status); } && |
|
|
12969 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12971 | (eval $ac_try) 2>&5 |
|
|
12972 | ac_status=$? |
|
|
12973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12974 | (exit $ac_status); }; } && |
|
|
12975 | { ac_try='test -s conftest.$ac_objext' |
|
|
12976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12977 | (eval $ac_try) 2>&5 |
|
|
12978 | ac_status=$? |
|
|
12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12980 | (exit $ac_status); }; }; then |
|
|
12981 | ac_cv_type_long=yes |
|
|
12982 | else |
|
|
12983 | echo "$as_me: failed program was:" >&5 |
|
|
12984 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12985 | |
|
|
12986 | ac_cv_type_long=no |
|
|
12987 | fi |
|
|
12988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12989 | fi |
|
|
12990 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
|
|
12991 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
|
|
12992 | |
|
|
12993 | echo "$as_me:$LINENO: checking size of long" >&5 |
|
|
12994 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
|
|
12995 | if test "${ac_cv_sizeof_long+set}" = set; then |
|
|
12996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12997 | else |
|
|
12998 | if test "$ac_cv_type_long" = yes; then |
|
|
12999 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
13000 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
13001 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
13002 | # This bug is HP SR number 8606223364. |
|
|
13003 | if test "$cross_compiling" = yes; then |
|
|
13004 | # Depending upon the size, compute the lo and hi bounds. |
|
|
13005 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13006 | /* confdefs.h. */ |
|
|
13007 | _ACEOF |
|
|
13008 | cat confdefs.h >>conftest.$ac_ext |
|
|
13009 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13010 | /* end confdefs.h. */ |
|
|
13011 | $ac_includes_default |
|
|
13012 | int |
|
|
13013 | main () |
|
|
13014 | { |
|
|
13015 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
|
|
13016 | test_array [0] = 0 |
|
|
13017 | |
|
|
13018 | ; |
|
|
13019 | return 0; |
|
|
13020 | } |
|
|
13021 | _ACEOF |
|
|
13022 | rm -f conftest.$ac_objext |
|
|
13023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13024 | (eval $ac_compile) 2>conftest.er1 |
|
|
13025 | ac_status=$? |
|
|
13026 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13027 | rm -f conftest.er1 |
|
|
13028 | cat conftest.err >&5 |
|
|
13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13030 | (exit $ac_status); } && |
|
|
13031 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13033 | (eval $ac_try) 2>&5 |
|
|
13034 | ac_status=$? |
|
|
13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13036 | (exit $ac_status); }; } && |
|
|
13037 | { ac_try='test -s conftest.$ac_objext' |
|
|
13038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13039 | (eval $ac_try) 2>&5 |
|
|
13040 | ac_status=$? |
|
|
13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13042 | (exit $ac_status); }; }; then |
|
|
13043 | ac_lo=0 ac_mid=0 |
|
|
13044 | while :; do |
|
|
13045 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13046 | /* confdefs.h. */ |
|
|
13047 | _ACEOF |
|
|
13048 | cat confdefs.h >>conftest.$ac_ext |
|
|
13049 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13050 | /* end confdefs.h. */ |
|
|
13051 | $ac_includes_default |
|
|
13052 | int |
|
|
13053 | main () |
|
|
13054 | { |
|
|
13055 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13056 | test_array [0] = 0 |
|
|
13057 | |
|
|
13058 | ; |
|
|
13059 | return 0; |
|
|
13060 | } |
|
|
13061 | _ACEOF |
|
|
13062 | rm -f conftest.$ac_objext |
|
|
13063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13064 | (eval $ac_compile) 2>conftest.er1 |
|
|
13065 | ac_status=$? |
|
|
13066 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13067 | rm -f conftest.er1 |
|
|
13068 | cat conftest.err >&5 |
|
|
13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13070 | (exit $ac_status); } && |
|
|
13071 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13073 | (eval $ac_try) 2>&5 |
|
|
13074 | ac_status=$? |
|
|
13075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13076 | (exit $ac_status); }; } && |
|
|
13077 | { ac_try='test -s conftest.$ac_objext' |
|
|
13078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13079 | (eval $ac_try) 2>&5 |
|
|
13080 | ac_status=$? |
|
|
13081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13082 | (exit $ac_status); }; }; then |
|
|
13083 | ac_hi=$ac_mid; break |
|
|
13084 | else |
|
|
13085 | echo "$as_me: failed program was:" >&5 |
|
|
13086 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13087 | |
|
|
13088 | ac_lo=`expr $ac_mid + 1` |
|
|
13089 | if test $ac_lo -le $ac_mid; then |
|
|
13090 | ac_lo= ac_hi= |
|
|
13091 | break |
|
|
13092 | fi |
|
|
13093 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
13094 | fi |
|
|
13095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13096 | done |
|
|
13097 | else |
|
|
13098 | echo "$as_me: failed program was:" >&5 |
|
|
13099 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13100 | |
|
|
13101 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13102 | /* confdefs.h. */ |
|
|
13103 | _ACEOF |
|
|
13104 | cat confdefs.h >>conftest.$ac_ext |
|
|
13105 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13106 | /* end confdefs.h. */ |
|
|
13107 | $ac_includes_default |
|
|
13108 | int |
|
|
13109 | main () |
|
|
13110 | { |
|
|
13111 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
|
|
13112 | test_array [0] = 0 |
|
|
13113 | |
|
|
13114 | ; |
|
|
13115 | return 0; |
|
|
13116 | } |
|
|
13117 | _ACEOF |
|
|
13118 | rm -f conftest.$ac_objext |
|
|
13119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13120 | (eval $ac_compile) 2>conftest.er1 |
|
|
13121 | ac_status=$? |
|
|
13122 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13123 | rm -f conftest.er1 |
|
|
13124 | cat conftest.err >&5 |
|
|
13125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13126 | (exit $ac_status); } && |
|
|
13127 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13129 | (eval $ac_try) 2>&5 |
|
|
13130 | ac_status=$? |
|
|
13131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13132 | (exit $ac_status); }; } && |
|
|
13133 | { ac_try='test -s conftest.$ac_objext' |
|
|
13134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13135 | (eval $ac_try) 2>&5 |
|
|
13136 | ac_status=$? |
|
|
13137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13138 | (exit $ac_status); }; }; then |
|
|
13139 | ac_hi=-1 ac_mid=-1 |
|
|
13140 | while :; do |
|
|
13141 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13142 | /* confdefs.h. */ |
|
|
13143 | _ACEOF |
|
|
13144 | cat confdefs.h >>conftest.$ac_ext |
|
|
13145 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13146 | /* end confdefs.h. */ |
|
|
13147 | $ac_includes_default |
|
|
13148 | int |
|
|
13149 | main () |
|
|
13150 | { |
|
|
13151 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
|
|
13152 | test_array [0] = 0 |
|
|
13153 | |
|
|
13154 | ; |
|
|
13155 | return 0; |
|
|
13156 | } |
|
|
13157 | _ACEOF |
|
|
13158 | rm -f conftest.$ac_objext |
|
|
13159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13160 | (eval $ac_compile) 2>conftest.er1 |
|
|
13161 | ac_status=$? |
|
|
13162 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13163 | rm -f conftest.er1 |
|
|
13164 | cat conftest.err >&5 |
|
|
13165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13166 | (exit $ac_status); } && |
|
|
13167 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13169 | (eval $ac_try) 2>&5 |
|
|
13170 | ac_status=$? |
|
|
13171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13172 | (exit $ac_status); }; } && |
|
|
13173 | { ac_try='test -s conftest.$ac_objext' |
|
|
13174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13175 | (eval $ac_try) 2>&5 |
|
|
13176 | ac_status=$? |
|
|
13177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13178 | (exit $ac_status); }; }; then |
|
|
13179 | ac_lo=$ac_mid; break |
|
|
13180 | else |
|
|
13181 | echo "$as_me: failed program was:" >&5 |
|
|
13182 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13183 | |
|
|
13184 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
13185 | if test $ac_mid -le $ac_hi; then |
|
|
13186 | ac_lo= ac_hi= |
|
|
13187 | break |
|
|
13188 | fi |
|
|
13189 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
13190 | fi |
|
|
13191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13192 | done |
|
|
13193 | else |
|
|
13194 | echo "$as_me: failed program was:" >&5 |
|
|
13195 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13196 | |
|
|
13197 | ac_lo= ac_hi= |
|
|
13198 | fi |
|
|
13199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13200 | fi |
|
|
13201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13202 | # Binary search between lo and hi bounds. |
|
|
13203 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
13204 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
13205 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13206 | /* confdefs.h. */ |
|
|
13207 | _ACEOF |
|
|
13208 | cat confdefs.h >>conftest.$ac_ext |
|
|
13209 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13210 | /* end confdefs.h. */ |
|
|
13211 | $ac_includes_default |
|
|
13212 | int |
|
|
13213 | main () |
|
|
13214 | { |
|
|
13215 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13216 | test_array [0] = 0 |
|
|
13217 | |
|
|
13218 | ; |
|
|
13219 | return 0; |
|
|
13220 | } |
|
|
13221 | _ACEOF |
|
|
13222 | rm -f conftest.$ac_objext |
|
|
13223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13224 | (eval $ac_compile) 2>conftest.er1 |
|
|
13225 | ac_status=$? |
|
|
13226 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13227 | rm -f conftest.er1 |
|
|
13228 | cat conftest.err >&5 |
|
|
13229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13230 | (exit $ac_status); } && |
|
|
13231 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13233 | (eval $ac_try) 2>&5 |
|
|
13234 | ac_status=$? |
|
|
13235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13236 | (exit $ac_status); }; } && |
|
|
13237 | { ac_try='test -s conftest.$ac_objext' |
|
|
13238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13239 | (eval $ac_try) 2>&5 |
|
|
13240 | ac_status=$? |
|
|
13241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13242 | (exit $ac_status); }; }; then |
|
|
13243 | ac_hi=$ac_mid |
|
|
13244 | else |
|
|
13245 | echo "$as_me: failed program was:" >&5 |
|
|
13246 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13247 | |
|
|
13248 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
13249 | fi |
|
|
13250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13251 | done |
|
|
13252 | case $ac_lo in |
|
|
13253 | ?*) ac_cv_sizeof_long=$ac_lo;; |
|
|
13254 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13255 | See \`config.log' for more details." >&5 |
|
|
13256 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13257 | See \`config.log' for more details." >&2;} |
|
|
13258 | { (exit 1); exit 1; }; } ;; |
|
|
13259 | esac |
|
|
13260 | else |
|
|
13261 | if test "$cross_compiling" = yes; then |
|
|
13262 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
13263 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
13264 | { (exit 1); exit 1; }; } |
|
|
13265 | else |
|
|
13266 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13267 | /* confdefs.h. */ |
|
|
13268 | _ACEOF |
|
|
13269 | cat confdefs.h >>conftest.$ac_ext |
|
|
13270 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13271 | /* end confdefs.h. */ |
|
|
13272 | $ac_includes_default |
|
|
13273 | long longval () { return (long) (sizeof (long)); } |
|
|
13274 | unsigned long ulongval () { return (long) (sizeof (long)); } |
|
|
13275 | #include <stdio.h> |
|
|
13276 | #include <stdlib.h> |
|
|
13277 | int |
|
|
13278 | main () |
|
|
13279 | { |
|
|
13280 | |
|
|
13281 | FILE *f = fopen ("conftest.val", "w"); |
|
|
13282 | if (! f) |
|
|
13283 | exit (1); |
|
|
13284 | if (((long) (sizeof (long))) < 0) |
|
|
13285 | { |
|
|
13286 | long i = longval (); |
|
|
13287 | if (i != ((long) (sizeof (long)))) |
|
|
13288 | exit (1); |
|
|
13289 | fprintf (f, "%ld\n", i); |
|
|
13290 | } |
|
|
13291 | else |
|
|
13292 | { |
|
|
13293 | unsigned long i = ulongval (); |
|
|
13294 | if (i != ((long) (sizeof (long)))) |
|
|
13295 | exit (1); |
|
|
13296 | fprintf (f, "%lu\n", i); |
|
|
13297 | } |
|
|
13298 | exit (ferror (f) || fclose (f) != 0); |
|
|
13299 | |
|
|
13300 | ; |
|
|
13301 | return 0; |
|
|
13302 | } |
|
|
13303 | _ACEOF |
|
|
13304 | rm -f conftest$ac_exeext |
|
|
13305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13306 | (eval $ac_link) 2>&5 |
|
|
13307 | ac_status=$? |
|
|
13308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
13310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13311 | (eval $ac_try) 2>&5 |
|
|
13312 | ac_status=$? |
|
|
13313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13314 | (exit $ac_status); }; }; then |
|
|
13315 | ac_cv_sizeof_long=`cat conftest.val` |
|
|
13316 | else |
|
|
13317 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
13318 | echo "$as_me: failed program was:" >&5 |
|
|
13319 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13320 | |
|
|
13321 | ( exit $ac_status ) |
|
|
13322 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13323 | See \`config.log' for more details." >&5 |
|
|
13324 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13325 | See \`config.log' for more details." >&2;} |
|
|
13326 | { (exit 1); exit 1; }; } |
|
|
13327 | fi |
|
|
13328 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
13329 | fi |
|
|
13330 | fi |
|
|
13331 | rm -f conftest.val |
|
|
13332 | else |
|
|
13333 | ac_cv_sizeof_long=0 |
|
|
13334 | fi |
|
|
13335 | fi |
|
|
13336 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
|
|
13337 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
|
|
13338 | cat >>confdefs.h <<_ACEOF |
|
|
13339 | #define SIZEOF_LONG $ac_cv_sizeof_long |
|
|
13340 | _ACEOF |
|
|
13341 | |
|
|
13342 | |
|
|
13343 | echo "$as_me:$LINENO: checking for long long" >&5 |
8489 | echo "$as_me:$LINENO: checking for long long" >&5 |
13344 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
8490 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
13345 | if test "${ac_cv_type_long_long+set}" = set; then |
8491 | if test "${ac_cv_type_long_long+set}" = set; then |
13346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13347 | else |
8493 | else |
… | |
… | |
13370 | grep -v '^ *+' conftest.er1 >conftest.err |
8516 | grep -v '^ *+' conftest.er1 >conftest.err |
13371 | rm -f conftest.er1 |
8517 | rm -f conftest.er1 |
13372 | cat conftest.err >&5 |
8518 | cat conftest.err >&5 |
13373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13374 | (exit $ac_status); } && |
8520 | (exit $ac_status); } && |
13375 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8521 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8522 | || test ! -s conftest.err' |
13376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13377 | (eval $ac_try) 2>&5 |
8524 | (eval $ac_try) 2>&5 |
13378 | ac_status=$? |
8525 | ac_status=$? |
13379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13380 | (exit $ac_status); }; } && |
8527 | (exit $ac_status); }; } && |
… | |
… | |
13432 | grep -v '^ *+' conftest.er1 >conftest.err |
8579 | grep -v '^ *+' conftest.er1 >conftest.err |
13433 | rm -f conftest.er1 |
8580 | rm -f conftest.er1 |
13434 | cat conftest.err >&5 |
8581 | cat conftest.err >&5 |
13435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13436 | (exit $ac_status); } && |
8583 | (exit $ac_status); } && |
13437 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8584 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8585 | || test ! -s conftest.err' |
13438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13439 | (eval $ac_try) 2>&5 |
8587 | (eval $ac_try) 2>&5 |
13440 | ac_status=$? |
8588 | ac_status=$? |
13441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13442 | (exit $ac_status); }; } && |
8590 | (exit $ac_status); }; } && |
… | |
… | |
13472 | grep -v '^ *+' conftest.er1 >conftest.err |
8620 | grep -v '^ *+' conftest.er1 >conftest.err |
13473 | rm -f conftest.er1 |
8621 | rm -f conftest.er1 |
13474 | cat conftest.err >&5 |
8622 | cat conftest.err >&5 |
13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13476 | (exit $ac_status); } && |
8624 | (exit $ac_status); } && |
13477 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8625 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8626 | || test ! -s conftest.err' |
13478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13479 | (eval $ac_try) 2>&5 |
8628 | (eval $ac_try) 2>&5 |
13480 | ac_status=$? |
8629 | ac_status=$? |
13481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13482 | (exit $ac_status); }; } && |
8631 | (exit $ac_status); }; } && |
… | |
… | |
13528 | grep -v '^ *+' conftest.er1 >conftest.err |
8677 | grep -v '^ *+' conftest.er1 >conftest.err |
13529 | rm -f conftest.er1 |
8678 | rm -f conftest.er1 |
13530 | cat conftest.err >&5 |
8679 | cat conftest.err >&5 |
13531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13532 | (exit $ac_status); } && |
8681 | (exit $ac_status); } && |
13533 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8682 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8683 | || test ! -s conftest.err' |
13534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13535 | (eval $ac_try) 2>&5 |
8685 | (eval $ac_try) 2>&5 |
13536 | ac_status=$? |
8686 | ac_status=$? |
13537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13538 | (exit $ac_status); }; } && |
8688 | (exit $ac_status); }; } && |
… | |
… | |
13568 | grep -v '^ *+' conftest.er1 >conftest.err |
8718 | grep -v '^ *+' conftest.er1 >conftest.err |
13569 | rm -f conftest.er1 |
8719 | rm -f conftest.er1 |
13570 | cat conftest.err >&5 |
8720 | cat conftest.err >&5 |
13571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13572 | (exit $ac_status); } && |
8722 | (exit $ac_status); } && |
13573 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8723 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8724 | || test ! -s conftest.err' |
13574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13575 | (eval $ac_try) 2>&5 |
8726 | (eval $ac_try) 2>&5 |
13576 | ac_status=$? |
8727 | ac_status=$? |
13577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13578 | (exit $ac_status); }; } && |
8729 | (exit $ac_status); }; } && |
… | |
… | |
13632 | grep -v '^ *+' conftest.er1 >conftest.err |
8783 | grep -v '^ *+' conftest.er1 >conftest.err |
13633 | rm -f conftest.er1 |
8784 | rm -f conftest.er1 |
13634 | cat conftest.err >&5 |
8785 | cat conftest.err >&5 |
13635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13636 | (exit $ac_status); } && |
8787 | (exit $ac_status); } && |
13637 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8788 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8789 | || test ! -s conftest.err' |
13638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13639 | (eval $ac_try) 2>&5 |
8791 | (eval $ac_try) 2>&5 |
13640 | ac_status=$? |
8792 | ac_status=$? |
13641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13642 | (exit $ac_status); }; } && |
8794 | (exit $ac_status); }; } && |
… | |
… | |
13663 | See \`config.log' for more details." >&2;} |
8815 | See \`config.log' for more details." >&2;} |
13664 | { (exit 1); exit 1; }; } ;; |
8816 | { (exit 1); exit 1; }; } ;; |
13665 | esac |
8817 | esac |
13666 | else |
8818 | else |
13667 | if test "$cross_compiling" = yes; then |
8819 | if test "$cross_compiling" = yes; then |
13668 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
8820 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
13669 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
8821 | See \`config.log' for more details." >&5 |
|
|
8822 | echo "$as_me: error: cannot run test program while cross compiling |
|
|
8823 | See \`config.log' for more details." >&2;} |
13670 | { (exit 1); exit 1; }; } |
8824 | { (exit 1); exit 1; }; } |
13671 | else |
8825 | else |
13672 | cat >conftest.$ac_ext <<_ACEOF |
8826 | cat >conftest.$ac_ext <<_ACEOF |
13673 | /* confdefs.h. */ |
8827 | /* confdefs.h. */ |
13674 | _ACEOF |
8828 | _ACEOF |
… | |
… | |
13776 | grep -v '^ *+' conftest.er1 >conftest.err |
8930 | grep -v '^ *+' conftest.er1 >conftest.err |
13777 | rm -f conftest.er1 |
8931 | rm -f conftest.er1 |
13778 | cat conftest.err >&5 |
8932 | cat conftest.err >&5 |
13779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13780 | (exit $ac_status); } && |
8934 | (exit $ac_status); } && |
13781 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8935 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8936 | || test ! -s conftest.err' |
13782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13783 | (eval $ac_try) 2>&5 |
8938 | (eval $ac_try) 2>&5 |
13784 | ac_status=$? |
8939 | ac_status=$? |
13785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13786 | (exit $ac_status); }; } && |
8941 | (exit $ac_status); }; } && |
… | |
… | |
13838 | grep -v '^ *+' conftest.er1 >conftest.err |
8993 | grep -v '^ *+' conftest.er1 >conftest.err |
13839 | rm -f conftest.er1 |
8994 | rm -f conftest.er1 |
13840 | cat conftest.err >&5 |
8995 | cat conftest.err >&5 |
13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13842 | (exit $ac_status); } && |
8997 | (exit $ac_status); } && |
13843 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
8998 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
8999 | || test ! -s conftest.err' |
13844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13845 | (eval $ac_try) 2>&5 |
9001 | (eval $ac_try) 2>&5 |
13846 | ac_status=$? |
9002 | ac_status=$? |
13847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13848 | (exit $ac_status); }; } && |
9004 | (exit $ac_status); }; } && |
… | |
… | |
13878 | grep -v '^ *+' conftest.er1 >conftest.err |
9034 | grep -v '^ *+' conftest.er1 >conftest.err |
13879 | rm -f conftest.er1 |
9035 | rm -f conftest.er1 |
13880 | cat conftest.err >&5 |
9036 | cat conftest.err >&5 |
13881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13882 | (exit $ac_status); } && |
9038 | (exit $ac_status); } && |
13883 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9039 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9040 | || test ! -s conftest.err' |
13884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13885 | (eval $ac_try) 2>&5 |
9042 | (eval $ac_try) 2>&5 |
13886 | ac_status=$? |
9043 | ac_status=$? |
13887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13888 | (exit $ac_status); }; } && |
9045 | (exit $ac_status); }; } && |
… | |
… | |
13934 | grep -v '^ *+' conftest.er1 >conftest.err |
9091 | grep -v '^ *+' conftest.er1 >conftest.err |
13935 | rm -f conftest.er1 |
9092 | rm -f conftest.er1 |
13936 | cat conftest.err >&5 |
9093 | cat conftest.err >&5 |
13937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13938 | (exit $ac_status); } && |
9095 | (exit $ac_status); } && |
13939 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9096 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9097 | || test ! -s conftest.err' |
13940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13941 | (eval $ac_try) 2>&5 |
9099 | (eval $ac_try) 2>&5 |
13942 | ac_status=$? |
9100 | ac_status=$? |
13943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13944 | (exit $ac_status); }; } && |
9102 | (exit $ac_status); }; } && |
… | |
… | |
13974 | grep -v '^ *+' conftest.er1 >conftest.err |
9132 | grep -v '^ *+' conftest.er1 >conftest.err |
13975 | rm -f conftest.er1 |
9133 | rm -f conftest.er1 |
13976 | cat conftest.err >&5 |
9134 | cat conftest.err >&5 |
13977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13978 | (exit $ac_status); } && |
9136 | (exit $ac_status); } && |
13979 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9137 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9138 | || test ! -s conftest.err' |
13980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13981 | (eval $ac_try) 2>&5 |
9140 | (eval $ac_try) 2>&5 |
13982 | ac_status=$? |
9141 | ac_status=$? |
13983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13984 | (exit $ac_status); }; } && |
9143 | (exit $ac_status); }; } && |
… | |
… | |
14038 | grep -v '^ *+' conftest.er1 >conftest.err |
9197 | grep -v '^ *+' conftest.er1 >conftest.err |
14039 | rm -f conftest.er1 |
9198 | rm -f conftest.er1 |
14040 | cat conftest.err >&5 |
9199 | cat conftest.err >&5 |
14041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14042 | (exit $ac_status); } && |
9201 | (exit $ac_status); } && |
14043 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9202 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9203 | || test ! -s conftest.err' |
14044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14045 | (eval $ac_try) 2>&5 |
9205 | (eval $ac_try) 2>&5 |
14046 | ac_status=$? |
9206 | ac_status=$? |
14047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14048 | (exit $ac_status); }; } && |
9208 | (exit $ac_status); }; } && |
… | |
… | |
14069 | See \`config.log' for more details." >&2;} |
9229 | See \`config.log' for more details." >&2;} |
14070 | { (exit 1); exit 1; }; } ;; |
9230 | { (exit 1); exit 1; }; } ;; |
14071 | esac |
9231 | esac |
14072 | else |
9232 | else |
14073 | if test "$cross_compiling" = yes; then |
9233 | if test "$cross_compiling" = yes; then |
14074 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
9234 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
14075 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
9235 | See \`config.log' for more details." >&5 |
|
|
9236 | echo "$as_me: error: cannot run test program while cross compiling |
|
|
9237 | See \`config.log' for more details." >&2;} |
14076 | { (exit 1); exit 1; }; } |
9238 | { (exit 1); exit 1; }; } |
14077 | else |
9239 | else |
14078 | cat >conftest.$ac_ext <<_ACEOF |
9240 | cat >conftest.$ac_ext <<_ACEOF |
14079 | /* confdefs.h. */ |
9241 | /* confdefs.h. */ |
14080 | _ACEOF |
9242 | _ACEOF |
… | |
… | |
14181 | grep -v '^ *+' conftest.er1 >conftest.err |
9343 | grep -v '^ *+' conftest.er1 >conftest.err |
14182 | rm -f conftest.er1 |
9344 | rm -f conftest.er1 |
14183 | cat conftest.err >&5 |
9345 | cat conftest.err >&5 |
14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14185 | (exit $ac_status); } && |
9347 | (exit $ac_status); } && |
14186 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9348 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9349 | || test ! -s conftest.err' |
14187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14188 | (eval $ac_try) 2>&5 |
9351 | (eval $ac_try) 2>&5 |
14189 | ac_status=$? |
9352 | ac_status=$? |
14190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14191 | (exit $ac_status); }; } && |
9354 | (exit $ac_status); }; } && |
… | |
… | |
14198 | rxvt_cv_int16_t=yes |
9361 | rxvt_cv_int16_t=yes |
14199 | else |
9362 | else |
14200 | echo "$as_me: failed program was:" >&5 |
9363 | echo "$as_me: failed program was:" >&5 |
14201 | sed 's/^/| /' conftest.$ac_ext >&5 |
9364 | sed 's/^/| /' conftest.$ac_ext >&5 |
14202 | |
9365 | |
14203 | if test $ac_cv_sizeof_char -ge 2; then |
9366 | if test "$ac_cv_sizeof_char" -ge 2; then |
14204 | rxvt_cv_int16_t=" char" |
9367 | rxvt_cv_int16_t=" char" |
14205 | else |
9368 | else |
14206 | if test $ac_cv_sizeof_short -ge 2; then |
9369 | if test "$ac_cv_sizeof_short" -ge 2; then |
14207 | rxvt_cv_int16_t=" short" |
9370 | rxvt_cv_int16_t=" short" |
14208 | else |
9371 | else |
14209 | if test $ac_cv_sizeof_int -ge 2; then |
9372 | if test "$ac_cv_sizeof_int" -ge 2; then |
14210 | rxvt_cv_int16_t=" int" |
9373 | rxvt_cv_int16_t=" int" |
14211 | else |
9374 | else |
14212 | if test $ac_cv_sizeof_long -ge 2; then |
9375 | if test "$ac_cv_sizeof_long" -ge 2; then |
14213 | rxvt_cv_int16_t=" long" |
9376 | rxvt_cv_int16_t=" long" |
14214 | else |
9377 | else |
14215 | if test $ac_cv_sizeof_long_long -ge 2; then |
9378 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14216 | rxvt_cv_int16_t=" long long" |
9379 | rxvt_cv_int16_t=" long long" |
14217 | else |
9380 | else |
14218 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
9381 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
14219 | fi |
9382 | fi |
14220 | fi |
9383 | fi |
… | |
… | |
14263 | grep -v '^ *+' conftest.er1 >conftest.err |
9426 | grep -v '^ *+' conftest.er1 >conftest.err |
14264 | rm -f conftest.er1 |
9427 | rm -f conftest.er1 |
14265 | cat conftest.err >&5 |
9428 | cat conftest.err >&5 |
14266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14267 | (exit $ac_status); } && |
9430 | (exit $ac_status); } && |
14268 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9431 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9432 | || test ! -s conftest.err' |
14269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14270 | (eval $ac_try) 2>&5 |
9434 | (eval $ac_try) 2>&5 |
14271 | ac_status=$? |
9435 | ac_status=$? |
14272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14273 | (exit $ac_status); }; } && |
9437 | (exit $ac_status); }; } && |
… | |
… | |
14280 | rxvt_cv_uint16_t=yes |
9444 | rxvt_cv_uint16_t=yes |
14281 | else |
9445 | else |
14282 | echo "$as_me: failed program was:" >&5 |
9446 | echo "$as_me: failed program was:" >&5 |
14283 | sed 's/^/| /' conftest.$ac_ext >&5 |
9447 | sed 's/^/| /' conftest.$ac_ext >&5 |
14284 | |
9448 | |
14285 | if test $ac_cv_sizeof_char -ge 2; then |
9449 | if test "$ac_cv_sizeof_char" -ge 2; then |
14286 | rxvt_cv_uint16_t="unsigned char" |
9450 | rxvt_cv_uint16_t="unsigned char" |
14287 | else |
9451 | else |
14288 | if test $ac_cv_sizeof_short -ge 2; then |
9452 | if test "$ac_cv_sizeof_short" -ge 2; then |
14289 | rxvt_cv_uint16_t="unsigned short" |
9453 | rxvt_cv_uint16_t="unsigned short" |
14290 | else |
9454 | else |
14291 | if test $ac_cv_sizeof_int -ge 2; then |
9455 | if test "$ac_cv_sizeof_int" -ge 2; then |
14292 | rxvt_cv_uint16_t="unsigned int" |
9456 | rxvt_cv_uint16_t="unsigned int" |
14293 | else |
9457 | else |
14294 | if test $ac_cv_sizeof_long -ge 2; then |
9458 | if test "$ac_cv_sizeof_long" -ge 2; then |
14295 | rxvt_cv_uint16_t="unsigned long" |
9459 | rxvt_cv_uint16_t="unsigned long" |
14296 | else |
9460 | else |
14297 | if test $ac_cv_sizeof_long_long -ge 2; then |
9461 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14298 | rxvt_cv_uint16_t="unsigned long long" |
9462 | rxvt_cv_uint16_t="unsigned long long" |
14299 | else |
9463 | else |
14300 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
9464 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
14301 | fi |
9465 | fi |
14302 | fi |
9466 | fi |
… | |
… | |
14345 | grep -v '^ *+' conftest.er1 >conftest.err |
9509 | grep -v '^ *+' conftest.er1 >conftest.err |
14346 | rm -f conftest.er1 |
9510 | rm -f conftest.er1 |
14347 | cat conftest.err >&5 |
9511 | cat conftest.err >&5 |
14348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14349 | (exit $ac_status); } && |
9513 | (exit $ac_status); } && |
14350 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9514 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9515 | || test ! -s conftest.err' |
14351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14352 | (eval $ac_try) 2>&5 |
9517 | (eval $ac_try) 2>&5 |
14353 | ac_status=$? |
9518 | ac_status=$? |
14354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14355 | (exit $ac_status); }; } && |
9520 | (exit $ac_status); }; } && |
… | |
… | |
14362 | rxvt_cv_int32_t=yes |
9527 | rxvt_cv_int32_t=yes |
14363 | else |
9528 | else |
14364 | echo "$as_me: failed program was:" >&5 |
9529 | echo "$as_me: failed program was:" >&5 |
14365 | sed 's/^/| /' conftest.$ac_ext >&5 |
9530 | sed 's/^/| /' conftest.$ac_ext >&5 |
14366 | |
9531 | |
14367 | if test $ac_cv_sizeof_char -ge 4; then |
9532 | if test "$ac_cv_sizeof_char" -ge 4; then |
14368 | rxvt_cv_int32_t=" char" |
9533 | rxvt_cv_int32_t=" char" |
14369 | else |
9534 | else |
14370 | if test $ac_cv_sizeof_short -ge 4; then |
9535 | if test "$ac_cv_sizeof_short" -ge 4; then |
14371 | rxvt_cv_int32_t=" short" |
9536 | rxvt_cv_int32_t=" short" |
14372 | else |
9537 | else |
14373 | if test $ac_cv_sizeof_int -ge 4; then |
9538 | if test "$ac_cv_sizeof_int" -ge 4; then |
14374 | rxvt_cv_int32_t=" int" |
9539 | rxvt_cv_int32_t=" int" |
14375 | else |
9540 | else |
14376 | if test $ac_cv_sizeof_long -ge 4; then |
9541 | if test "$ac_cv_sizeof_long" -ge 4; then |
14377 | rxvt_cv_int32_t=" long" |
9542 | rxvt_cv_int32_t=" long" |
14378 | else |
9543 | else |
14379 | if test $ac_cv_sizeof_long_long -ge 4; then |
9544 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14380 | rxvt_cv_int32_t=" long long" |
9545 | rxvt_cv_int32_t=" long long" |
14381 | else |
9546 | else |
14382 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
9547 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
14383 | fi |
9548 | fi |
14384 | fi |
9549 | fi |
… | |
… | |
14427 | grep -v '^ *+' conftest.er1 >conftest.err |
9592 | grep -v '^ *+' conftest.er1 >conftest.err |
14428 | rm -f conftest.er1 |
9593 | rm -f conftest.er1 |
14429 | cat conftest.err >&5 |
9594 | cat conftest.err >&5 |
14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14431 | (exit $ac_status); } && |
9596 | (exit $ac_status); } && |
14432 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9597 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9598 | || test ! -s conftest.err' |
14433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14434 | (eval $ac_try) 2>&5 |
9600 | (eval $ac_try) 2>&5 |
14435 | ac_status=$? |
9601 | ac_status=$? |
14436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14437 | (exit $ac_status); }; } && |
9603 | (exit $ac_status); }; } && |
… | |
… | |
14444 | rxvt_cv_uint32_t=yes |
9610 | rxvt_cv_uint32_t=yes |
14445 | else |
9611 | else |
14446 | echo "$as_me: failed program was:" >&5 |
9612 | echo "$as_me: failed program was:" >&5 |
14447 | sed 's/^/| /' conftest.$ac_ext >&5 |
9613 | sed 's/^/| /' conftest.$ac_ext >&5 |
14448 | |
9614 | |
14449 | if test $ac_cv_sizeof_char -ge 4; then |
9615 | if test "$ac_cv_sizeof_char" -ge 4; then |
14450 | rxvt_cv_uint32_t="unsigned char" |
9616 | rxvt_cv_uint32_t="unsigned char" |
14451 | else |
9617 | else |
14452 | if test $ac_cv_sizeof_short -ge 4; then |
9618 | if test "$ac_cv_sizeof_short" -ge 4; then |
14453 | rxvt_cv_uint32_t="unsigned short" |
9619 | rxvt_cv_uint32_t="unsigned short" |
14454 | else |
9620 | else |
14455 | if test $ac_cv_sizeof_int -ge 4; then |
9621 | if test "$ac_cv_sizeof_int" -ge 4; then |
14456 | rxvt_cv_uint32_t="unsigned int" |
9622 | rxvt_cv_uint32_t="unsigned int" |
14457 | else |
9623 | else |
14458 | if test $ac_cv_sizeof_long -ge 4; then |
9624 | if test "$ac_cv_sizeof_long" -ge 4; then |
14459 | rxvt_cv_uint32_t="unsigned long" |
9625 | rxvt_cv_uint32_t="unsigned long" |
14460 | else |
9626 | else |
14461 | if test $ac_cv_sizeof_long_long -ge 4; then |
9627 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14462 | rxvt_cv_uint32_t="unsigned long long" |
9628 | rxvt_cv_uint32_t="unsigned long long" |
14463 | else |
9629 | else |
14464 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
9630 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
14465 | fi |
9631 | fi |
14466 | fi |
9632 | fi |
… | |
… | |
14480 | else |
9646 | else |
14481 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
9647 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
14482 | fi |
9648 | fi |
14483 | fi |
9649 | fi |
14484 | |
9650 | |
14485 | if test $ac_cv_sizeof_int_p -eq 8; then |
9651 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
14486 | rxvt_intp_define="#define intp_t int64_t" |
9652 | rxvt_intp_define="#define intp_t int64_t" |
14487 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
9653 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
14488 | else |
9654 | else |
14489 | if test $ac_cv_sizeof_int_p -eq 4; then |
9655 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
14490 | rxvt_intp_define="#define intp_t int32_t" |
9656 | rxvt_intp_define="#define intp_t int32_t" |
14491 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
9657 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
14492 | else |
9658 | else |
14493 | if test $ac_cv_sizeof_int_p -eq 2; then |
9659 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
14494 | rxvt_intp_define="#define intp_t int16_t" |
9660 | rxvt_intp_define="#define intp_t int16_t" |
14495 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
9661 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
14496 | else |
9662 | else |
14497 | rxvt_intp_define="#error set intp_t" |
9663 | rxvt_intp_define="#error set intp_t" |
14498 | rxvt_u_intp_define="#error set u_intp_t" |
9664 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
14539 | grep -v '^ *+' conftest.er1 >conftest.err |
9705 | grep -v '^ *+' conftest.er1 >conftest.err |
14540 | rm -f conftest.er1 |
9706 | rm -f conftest.er1 |
14541 | cat conftest.err >&5 |
9707 | cat conftest.err >&5 |
14542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14543 | (exit $ac_status); } && |
9709 | (exit $ac_status); } && |
14544 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9710 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9711 | || test ! -s conftest.err' |
14545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14546 | (eval $ac_try) 2>&5 |
9713 | (eval $ac_try) 2>&5 |
14547 | ac_status=$? |
9714 | ac_status=$? |
14548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14549 | (exit $ac_status); }; } && |
9716 | (exit $ac_status); }; } && |
… | |
… | |
14569 | #define RETSIGTYPE $ac_cv_type_signal |
9736 | #define RETSIGTYPE $ac_cv_type_signal |
14570 | _ACEOF |
9737 | _ACEOF |
14571 | |
9738 | |
14572 | |
9739 | |
14573 | |
9740 | |
14574 | case "$host_alias" in |
|
|
14575 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
14576 | *) break;; |
|
|
14577 | esac |
|
|
14578 | |
|
|
14579 | |
|
|
14580 | |
|
|
14581 | |
|
|
14582 | |
|
|
14583 | |
|
|
14584 | |
|
|
14585 | |
|
|
14586 | |
|
|
14587 | |
|
|
14588 | |
|
|
14589 | |
|
|
14590 | |
|
|
14591 | |
|
|
14592 | |
|
|
14593 | |
|
|
14594 | |
9741 | |
14595 | |
9742 | |
14596 | |
9743 | |
14597 | for ac_func in \ |
9744 | for ac_func in \ |
14598 | atexit \ |
|
|
14599 | revoke \ |
|
|
14600 | unsetenv \ |
9745 | unsetenv \ |
14601 | setutent \ |
9746 | setutent \ |
14602 | seteuid \ |
|
|
14603 | setreuid \ |
|
|
14604 | setsid \ |
|
|
14605 | setpgrp \ |
|
|
14606 | setpgid \ |
|
|
14607 | openpty \ |
|
|
14608 | _getpty \ |
|
|
14609 | grantpt \ |
|
|
14610 | unlockpt \ |
|
|
14611 | isastream \ |
|
|
14612 | on_exit \ |
9747 | on_exit \ |
14613 | nanosleep \ |
|
|
14614 | updwtmp \ |
|
|
14615 | ttyslot \ |
|
|
14616 | |
9748 | |
14617 | do |
9749 | do |
14618 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14619 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9751 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14620 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
14679 | grep -v '^ *+' conftest.er1 >conftest.err |
9811 | grep -v '^ *+' conftest.er1 >conftest.err |
14680 | rm -f conftest.er1 |
9812 | rm -f conftest.er1 |
14681 | cat conftest.err >&5 |
9813 | cat conftest.err >&5 |
14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14683 | (exit $ac_status); } && |
9815 | (exit $ac_status); } && |
14684 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9816 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9817 | || test ! -s conftest.err' |
14685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14686 | (eval $ac_try) 2>&5 |
9819 | (eval $ac_try) 2>&5 |
14687 | ac_status=$? |
9820 | ac_status=$? |
14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14689 | (exit $ac_status); }; } && |
9822 | (exit $ac_status); }; } && |
… | |
… | |
14713 | fi |
9846 | fi |
14714 | done |
9847 | done |
14715 | |
9848 | |
14716 | |
9849 | |
14717 | |
9850 | |
|
|
9851 | support_utmp=yes |
|
|
9852 | support_wtmp=yes |
|
|
9853 | support_lastlog=yes |
|
|
9854 | |
|
|
9855 | # Check whether --enable-utmp or --disable-utmp was given. |
|
|
9856 | if test "${enable_utmp+set}" = set; then |
|
|
9857 | enableval="$enable_utmp" |
|
|
9858 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
9859 | support_utmp=$enableval |
|
|
9860 | fi |
|
|
9861 | fi; |
|
|
9862 | |
|
|
9863 | # Check whether --enable-wtmp or --disable-wtmp was given. |
|
|
9864 | if test "${enable_wtmp+set}" = set; then |
|
|
9865 | enableval="$enable_wtmp" |
|
|
9866 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
9867 | support_wtmp=$enableval |
|
|
9868 | fi |
|
|
9869 | fi; |
|
|
9870 | |
|
|
9871 | # Check whether --enable-lastlog or --disable-lastlog was given. |
|
|
9872 | if test "${enable_lastlog+set}" = set; then |
|
|
9873 | enableval="$enable_lastlog" |
|
|
9874 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
9875 | support_lastlog=$enableval |
|
|
9876 | fi |
|
|
9877 | fi; |
|
|
9878 | |
|
|
9879 | if test x$support_utmp = xyes; then |
|
|
9880 | |
|
|
9881 | cat >>confdefs.h <<\_ACEOF |
|
|
9882 | #define UTMP_SUPPORT 1 |
|
|
9883 | _ACEOF |
|
|
9884 | |
|
|
9885 | fi |
|
|
9886 | if test x$support_wtmp = xyes; then |
|
|
9887 | |
|
|
9888 | cat >>confdefs.h <<\_ACEOF |
|
|
9889 | #define WTMP_SUPPORT 1 |
|
|
9890 | _ACEOF |
|
|
9891 | |
|
|
9892 | fi |
|
|
9893 | if test x$support_lastlog = xyes; then |
|
|
9894 | |
|
|
9895 | cat >>confdefs.h <<\_ACEOF |
|
|
9896 | #define LASTLOG_SUPPORT 1 |
|
|
9897 | _ACEOF |
|
|
9898 | |
|
|
9899 | fi |
|
|
9900 | |
|
|
9901 | |
|
|
9902 | |
|
|
9903 | |
|
|
9904 | for ac_func in \ |
|
|
9905 | ttyslot \ |
|
|
9906 | updwtmp \ |
|
|
9907 | updwtmpx \ |
|
|
9908 | |
|
|
9909 | do |
|
|
9910 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
9911 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
9912 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
9913 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
9914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9915 | else |
|
|
9916 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9917 | /* confdefs.h. */ |
|
|
9918 | _ACEOF |
|
|
9919 | cat confdefs.h >>conftest.$ac_ext |
|
|
9920 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9921 | /* end confdefs.h. */ |
|
|
9922 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
9923 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
9924 | #define $ac_func innocuous_$ac_func |
|
|
9925 | |
|
|
9926 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
9927 | which can conflict with char $ac_func (); below. |
|
|
9928 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
9929 | <limits.h> exists even on freestanding compilers. */ |
|
|
9930 | |
|
|
9931 | #ifdef __STDC__ |
|
|
9932 | # include <limits.h> |
|
|
9933 | #else |
|
|
9934 | # include <assert.h> |
|
|
9935 | #endif |
|
|
9936 | |
|
|
9937 | #undef $ac_func |
|
|
9938 | |
|
|
9939 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
9940 | #ifdef __cplusplus |
|
|
9941 | extern "C" |
|
|
9942 | { |
|
|
9943 | #endif |
|
|
9944 | /* We use char because int might match the return type of a gcc2 |
|
|
9945 | builtin and then its argument prototype would still apply. */ |
|
|
9946 | char $ac_func (); |
|
|
9947 | /* The GNU C library defines this for functions which it implements |
|
|
9948 | to always fail with ENOSYS. Some functions are actually named |
|
|
9949 | something starting with __ and the normal name is an alias. */ |
|
|
9950 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
9951 | choke me |
|
|
9952 | #else |
|
|
9953 | char (*f) () = $ac_func; |
|
|
9954 | #endif |
|
|
9955 | #ifdef __cplusplus |
|
|
9956 | } |
|
|
9957 | #endif |
|
|
9958 | |
|
|
9959 | int |
|
|
9960 | main () |
|
|
9961 | { |
|
|
9962 | return f != $ac_func; |
|
|
9963 | ; |
|
|
9964 | return 0; |
|
|
9965 | } |
|
|
9966 | _ACEOF |
|
|
9967 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
9969 | (eval $ac_link) 2>conftest.er1 |
|
|
9970 | ac_status=$? |
|
|
9971 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9972 | rm -f conftest.er1 |
|
|
9973 | cat conftest.err >&5 |
|
|
9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9975 | (exit $ac_status); } && |
|
|
9976 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
9977 | || test ! -s conftest.err' |
|
|
9978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9979 | (eval $ac_try) 2>&5 |
|
|
9980 | ac_status=$? |
|
|
9981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9982 | (exit $ac_status); }; } && |
|
|
9983 | { ac_try='test -s conftest$ac_exeext' |
|
|
9984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9985 | (eval $ac_try) 2>&5 |
|
|
9986 | ac_status=$? |
|
|
9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9988 | (exit $ac_status); }; }; then |
|
|
9989 | eval "$as_ac_var=yes" |
|
|
9990 | else |
|
|
9991 | echo "$as_me: failed program was:" >&5 |
|
|
9992 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9993 | |
|
|
9994 | eval "$as_ac_var=no" |
|
|
9995 | fi |
|
|
9996 | rm -f conftest.err conftest.$ac_objext \ |
|
|
9997 | conftest$ac_exeext conftest.$ac_ext |
|
|
9998 | fi |
|
|
9999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
10000 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
10001 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10002 | cat >>confdefs.h <<_ACEOF |
|
|
10003 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10004 | _ACEOF |
|
|
10005 | |
|
|
10006 | fi |
|
|
10007 | done |
|
|
10008 | |
|
|
10009 | |
|
|
10010 | |
|
|
10011 | |
|
|
10012 | |
|
|
10013 | for ac_header in \ |
|
|
10014 | utmp.h \ |
|
|
10015 | utmpx.h \ |
|
|
10016 | lastlog.h \ |
|
|
10017 | |
|
|
10018 | do |
|
|
10019 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10021 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10025 | fi |
|
|
10026 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10027 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10028 | else |
|
|
10029 | # Is the header compilable? |
|
|
10030 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10031 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
10032 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10033 | /* confdefs.h. */ |
|
|
10034 | _ACEOF |
|
|
10035 | cat confdefs.h >>conftest.$ac_ext |
|
|
10036 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10037 | /* end confdefs.h. */ |
|
|
10038 | $ac_includes_default |
|
|
10039 | #include <$ac_header> |
|
|
10040 | _ACEOF |
|
|
10041 | rm -f conftest.$ac_objext |
|
|
10042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10043 | (eval $ac_compile) 2>conftest.er1 |
|
|
10044 | ac_status=$? |
|
|
10045 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10046 | rm -f conftest.er1 |
|
|
10047 | cat conftest.err >&5 |
|
|
10048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10049 | (exit $ac_status); } && |
|
|
10050 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10051 | || test ! -s conftest.err' |
|
|
10052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10053 | (eval $ac_try) 2>&5 |
|
|
10054 | ac_status=$? |
|
|
10055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10056 | (exit $ac_status); }; } && |
|
|
10057 | { ac_try='test -s conftest.$ac_objext' |
|
|
10058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10059 | (eval $ac_try) 2>&5 |
|
|
10060 | ac_status=$? |
|
|
10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10062 | (exit $ac_status); }; }; then |
|
|
10063 | ac_header_compiler=yes |
|
|
10064 | else |
|
|
10065 | echo "$as_me: failed program was:" >&5 |
|
|
10066 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10067 | |
|
|
10068 | ac_header_compiler=no |
|
|
10069 | fi |
|
|
10070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10071 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10072 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10073 | |
|
|
10074 | # Is the header present? |
|
|
10075 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10076 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
10077 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10078 | /* confdefs.h. */ |
|
|
10079 | _ACEOF |
|
|
10080 | cat confdefs.h >>conftest.$ac_ext |
|
|
10081 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10082 | /* end confdefs.h. */ |
|
|
10083 | #include <$ac_header> |
|
|
10084 | _ACEOF |
|
|
10085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10087 | ac_status=$? |
|
|
10088 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10089 | rm -f conftest.er1 |
|
|
10090 | cat conftest.err >&5 |
|
|
10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10092 | (exit $ac_status); } >/dev/null; then |
|
|
10093 | if test -s conftest.err; then |
|
|
10094 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10095 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10096 | else |
|
|
10097 | ac_cpp_err= |
|
|
10098 | fi |
|
|
10099 | else |
|
|
10100 | ac_cpp_err=yes |
|
|
10101 | fi |
|
|
10102 | if test -z "$ac_cpp_err"; then |
|
|
10103 | ac_header_preproc=yes |
|
|
10104 | else |
|
|
10105 | echo "$as_me: failed program was:" >&5 |
|
|
10106 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10107 | |
|
|
10108 | ac_header_preproc=no |
|
|
10109 | fi |
|
|
10110 | rm -f conftest.err conftest.$ac_ext |
|
|
10111 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10112 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10113 | |
|
|
10114 | # So? What about this header? |
|
|
10115 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10116 | yes:no: ) |
|
|
10117 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10118 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10120 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10121 | ac_header_preproc=yes |
|
|
10122 | ;; |
|
|
10123 | no:yes:* ) |
|
|
10124 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10125 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10126 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10127 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10128 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10129 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10130 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10131 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10132 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10133 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10134 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10135 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10136 | ( |
|
|
10137 | cat <<\_ASBOX |
|
|
10138 | ## ------------------------------------------ ## |
|
|
10139 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10140 | ## ------------------------------------------ ## |
|
|
10141 | _ASBOX |
|
|
10142 | ) | |
|
|
10143 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10144 | ;; |
|
|
10145 | esac |
|
|
10146 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10150 | else |
|
|
10151 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10152 | fi |
|
|
10153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10154 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10155 | |
|
|
10156 | fi |
|
|
10157 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10158 | cat >>confdefs.h <<_ACEOF |
|
|
10159 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10160 | _ACEOF |
|
|
10161 | |
|
|
10162 | fi |
|
|
10163 | |
|
|
10164 | done |
|
|
10165 | |
|
|
10166 | |
|
|
10167 | |
14718 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10168 | if test "${ac_cv_header_utmp_h+set}" = set; then |
14719 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
10169 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
14720 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
10170 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
14721 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10171 | if test "${ac_cv_header_utmp_h+set}" = set; then |
14722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
14743 | grep -v '^ *+' conftest.er1 >conftest.err |
10193 | grep -v '^ *+' conftest.er1 >conftest.err |
14744 | rm -f conftest.er1 |
10194 | rm -f conftest.er1 |
14745 | cat conftest.err >&5 |
10195 | cat conftest.err >&5 |
14746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14747 | (exit $ac_status); } && |
10197 | (exit $ac_status); } && |
14748 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10198 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10199 | || test ! -s conftest.err' |
14749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14750 | (eval $ac_try) 2>&5 |
10201 | (eval $ac_try) 2>&5 |
14751 | ac_status=$? |
10202 | ac_status=$? |
14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14753 | (exit $ac_status); }; } && |
10204 | (exit $ac_status); }; } && |
… | |
… | |
14852 | |
10303 | |
14853 | fi |
10304 | fi |
14854 | if test $ac_cv_header_utmp_h = yes; then |
10305 | if test $ac_cv_header_utmp_h = yes; then |
14855 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10306 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
14856 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
10307 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
14857 | if test "${rxvt_cv_struct_utmp+set}" = set; then |
10308 | if test "${struct_utmp+set}" = set; then |
14858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14859 | else |
10310 | else |
14860 | cat >conftest.$ac_ext <<_ACEOF |
10311 | cat >conftest.$ac_ext <<_ACEOF |
14861 | /* confdefs.h. */ |
10312 | /* confdefs.h. */ |
14862 | _ACEOF |
10313 | _ACEOF |
14863 | cat confdefs.h >>conftest.$ac_ext |
10314 | cat confdefs.h >>conftest.$ac_ext |
14864 | cat >>conftest.$ac_ext <<_ACEOF |
10315 | cat >>conftest.$ac_ext <<_ACEOF |
14865 | /* end confdefs.h. */ |
10316 | /* end confdefs.h. */ |
14866 | #include <sys/types.h> |
10317 | #include <sys/types.h> |
14867 | #include <stdint.h> |
|
|
14868 | #include <utmp.h> |
10318 | #include <utmp.h> |
14869 | int |
10319 | int |
14870 | main () |
10320 | main () |
14871 | { |
10321 | { |
14872 | struct utmp ut; |
10322 | struct utmp ut; |
… | |
… | |
14881 | grep -v '^ *+' conftest.er1 >conftest.err |
10331 | grep -v '^ *+' conftest.er1 >conftest.err |
14882 | rm -f conftest.er1 |
10332 | rm -f conftest.er1 |
14883 | cat conftest.err >&5 |
10333 | cat conftest.err >&5 |
14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14885 | (exit $ac_status); } && |
10335 | (exit $ac_status); } && |
14886 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10336 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10337 | || test ! -s conftest.err' |
14887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14888 | (eval $ac_try) 2>&5 |
10339 | (eval $ac_try) 2>&5 |
14889 | ac_status=$? |
10340 | ac_status=$? |
14890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14891 | (exit $ac_status); }; } && |
10342 | (exit $ac_status); }; } && |
… | |
… | |
14893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14894 | (eval $ac_try) 2>&5 |
10345 | (eval $ac_try) 2>&5 |
14895 | ac_status=$? |
10346 | ac_status=$? |
14896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14897 | (exit $ac_status); }; }; then |
10348 | (exit $ac_status); }; }; then |
14898 | rxvt_cv_struct_utmp=yes |
10349 | struct_utmp=yes |
14899 | else |
10350 | else |
14900 | echo "$as_me: failed program was:" >&5 |
10351 | echo "$as_me: failed program was:" >&5 |
14901 | sed 's/^/| /' conftest.$ac_ext >&5 |
10352 | sed 's/^/| /' conftest.$ac_ext >&5 |
14902 | |
10353 | |
14903 | rxvt_cv_struct_utmp=no |
10354 | struct_utmp=no |
14904 | fi |
10355 | fi |
14905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14906 | fi |
10357 | fi |
14907 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 |
10358 | echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
14908 | echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 |
10359 | echo "${ECHO_T}$struct_utmp" >&6 |
14909 | if test x$rxvt_cv_struct_utmp = xyes; then |
10360 | if test x$struct_utmp = xyes; then |
14910 | |
10361 | |
14911 | cat >>confdefs.h <<\_ACEOF |
10362 | cat >>confdefs.h <<\_ACEOF |
14912 | #define HAVE_STRUCT_UTMP 1 |
10363 | #define HAVE_STRUCT_UTMP 1 |
14913 | _ACEOF |
10364 | _ACEOF |
14914 | |
10365 | |
14915 | fi |
10366 | fi |
14916 | |
10367 | |
14917 | |
10368 | |
14918 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
10369 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
14919 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
10370 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
14920 | if test "${rxvt_cv_struct_utmp_host+set}" = set; then |
10371 | if test "${struct_utmp_host+set}" = set; then |
14921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14922 | else |
10373 | else |
14923 | cat >conftest.$ac_ext <<_ACEOF |
10374 | cat >conftest.$ac_ext <<_ACEOF |
14924 | /* confdefs.h. */ |
10375 | /* confdefs.h. */ |
14925 | _ACEOF |
10376 | _ACEOF |
… | |
… | |
14943 | grep -v '^ *+' conftest.er1 >conftest.err |
10394 | grep -v '^ *+' conftest.er1 >conftest.err |
14944 | rm -f conftest.er1 |
10395 | rm -f conftest.er1 |
14945 | cat conftest.err >&5 |
10396 | cat conftest.err >&5 |
14946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14947 | (exit $ac_status); } && |
10398 | (exit $ac_status); } && |
14948 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10399 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10400 | || test ! -s conftest.err' |
14949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14950 | (eval $ac_try) 2>&5 |
10402 | (eval $ac_try) 2>&5 |
14951 | ac_status=$? |
10403 | ac_status=$? |
14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14953 | (exit $ac_status); }; } && |
10405 | (exit $ac_status); }; } && |
… | |
… | |
14955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14956 | (eval $ac_try) 2>&5 |
10408 | (eval $ac_try) 2>&5 |
14957 | ac_status=$? |
10409 | ac_status=$? |
14958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14959 | (exit $ac_status); }; }; then |
10411 | (exit $ac_status); }; }; then |
14960 | rxvt_cv_struct_utmp_host=yes |
10412 | struct_utmp_host=yes |
14961 | else |
10413 | else |
14962 | echo "$as_me: failed program was:" >&5 |
10414 | echo "$as_me: failed program was:" >&5 |
14963 | sed 's/^/| /' conftest.$ac_ext >&5 |
10415 | sed 's/^/| /' conftest.$ac_ext >&5 |
14964 | |
10416 | |
14965 | rxvt_cv_struct_utmp_host=no |
10417 | struct_utmp_host=no |
14966 | fi |
10418 | fi |
14967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14968 | fi |
10420 | fi |
14969 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 |
10421 | echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
14970 | echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 |
10422 | echo "${ECHO_T}$struct_utmp_host" >&6 |
14971 | if test x$rxvt_cv_struct_utmp_host = xyes; then |
10423 | if test x$struct_utmp_host = xyes; then |
14972 | |
10424 | |
14973 | cat >>confdefs.h <<\_ACEOF |
10425 | cat >>confdefs.h <<\_ACEOF |
14974 | #define HAVE_UTMP_HOST 1 |
10426 | #define HAVE_UTMP_HOST 1 |
14975 | _ACEOF |
10427 | _ACEOF |
14976 | |
10428 | |
14977 | fi |
10429 | fi |
14978 | |
10430 | |
14979 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
10431 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
14980 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
10432 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
14981 | if test "${rxvt_cv_struct_utmp_pid+set}" = set; then |
10433 | if test "${struct_utmp_pid+set}" = set; then |
14982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14983 | else |
10435 | else |
14984 | cat >conftest.$ac_ext <<_ACEOF |
10436 | cat >conftest.$ac_ext <<_ACEOF |
14985 | /* confdefs.h. */ |
10437 | /* confdefs.h. */ |
14986 | _ACEOF |
10438 | _ACEOF |
… | |
… | |
15004 | grep -v '^ *+' conftest.er1 >conftest.err |
10456 | grep -v '^ *+' conftest.er1 >conftest.err |
15005 | rm -f conftest.er1 |
10457 | rm -f conftest.er1 |
15006 | cat conftest.err >&5 |
10458 | cat conftest.err >&5 |
15007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15008 | (exit $ac_status); } && |
10460 | (exit $ac_status); } && |
15009 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10461 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10462 | || test ! -s conftest.err' |
15010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15011 | (eval $ac_try) 2>&5 |
10464 | (eval $ac_try) 2>&5 |
15012 | ac_status=$? |
10465 | ac_status=$? |
15013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15014 | (exit $ac_status); }; } && |
10467 | (exit $ac_status); }; } && |
… | |
… | |
15016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15017 | (eval $ac_try) 2>&5 |
10470 | (eval $ac_try) 2>&5 |
15018 | ac_status=$? |
10471 | ac_status=$? |
15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15020 | (exit $ac_status); }; }; then |
10473 | (exit $ac_status); }; }; then |
15021 | rxvt_cv_struct_utmp_pid=yes |
10474 | struct_utmp_pid=yes |
15022 | else |
10475 | else |
15023 | echo "$as_me: failed program was:" >&5 |
10476 | echo "$as_me: failed program was:" >&5 |
15024 | sed 's/^/| /' conftest.$ac_ext >&5 |
10477 | sed 's/^/| /' conftest.$ac_ext >&5 |
15025 | |
10478 | |
15026 | rxvt_cv_struct_utmp_pid=no |
10479 | struct_utmp_pid=no |
15027 | fi |
10480 | fi |
15028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15029 | fi |
10482 | fi |
15030 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 |
10483 | echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
15031 | echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 |
10484 | echo "${ECHO_T}$struct_utmp_pid" >&6 |
15032 | if test x$rxvt_cv_struct_utmp_pid = xyes; then |
10485 | if test x$struct_utmp_pid = xyes; then |
15033 | |
10486 | |
15034 | cat >>confdefs.h <<\_ACEOF |
10487 | cat >>confdefs.h <<\_ACEOF |
15035 | #define HAVE_UTMP_PID 1 |
10488 | #define HAVE_UTMP_PID 1 |
15036 | _ACEOF |
10489 | _ACEOF |
15037 | |
10490 | |
… | |
… | |
15069 | grep -v '^ *+' conftest.er1 >conftest.err |
10522 | grep -v '^ *+' conftest.er1 >conftest.err |
15070 | rm -f conftest.er1 |
10523 | rm -f conftest.er1 |
15071 | cat conftest.err >&5 |
10524 | cat conftest.err >&5 |
15072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15073 | (exit $ac_status); } && |
10526 | (exit $ac_status); } && |
15074 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10527 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10528 | || test ! -s conftest.err' |
15075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15076 | (eval $ac_try) 2>&5 |
10530 | (eval $ac_try) 2>&5 |
15077 | ac_status=$? |
10531 | ac_status=$? |
15078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15079 | (exit $ac_status); }; } && |
10533 | (exit $ac_status); }; } && |
… | |
… | |
15178 | |
10632 | |
15179 | fi |
10633 | fi |
15180 | if test $ac_cv_header_utmpx_h = yes; then |
10634 | if test $ac_cv_header_utmpx_h = yes; then |
15181 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10635 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
15182 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
10636 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
15183 | if test "${rxvt_cv_struct_utmpx+set}" = set; then |
10637 | if test "${struct_utmpx+set}" = set; then |
15184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15185 | else |
10639 | else |
15186 | cat >conftest.$ac_ext <<_ACEOF |
10640 | cat >conftest.$ac_ext <<_ACEOF |
15187 | /* confdefs.h. */ |
10641 | /* confdefs.h. */ |
15188 | _ACEOF |
10642 | _ACEOF |
… | |
… | |
15206 | grep -v '^ *+' conftest.er1 >conftest.err |
10660 | grep -v '^ *+' conftest.er1 >conftest.err |
15207 | rm -f conftest.er1 |
10661 | rm -f conftest.er1 |
15208 | cat conftest.err >&5 |
10662 | cat conftest.err >&5 |
15209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15210 | (exit $ac_status); } && |
10664 | (exit $ac_status); } && |
15211 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10665 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10666 | || test ! -s conftest.err' |
15212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15213 | (eval $ac_try) 2>&5 |
10668 | (eval $ac_try) 2>&5 |
15214 | ac_status=$? |
10669 | ac_status=$? |
15215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15216 | (exit $ac_status); }; } && |
10671 | (exit $ac_status); }; } && |
… | |
… | |
15218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15219 | (eval $ac_try) 2>&5 |
10674 | (eval $ac_try) 2>&5 |
15220 | ac_status=$? |
10675 | ac_status=$? |
15221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15222 | (exit $ac_status); }; }; then |
10677 | (exit $ac_status); }; }; then |
15223 | rxvt_cv_struct_utmpx=yes |
10678 | struct_utmpx=yes |
15224 | else |
10679 | else |
15225 | echo "$as_me: failed program was:" >&5 |
10680 | echo "$as_me: failed program was:" >&5 |
15226 | sed 's/^/| /' conftest.$ac_ext >&5 |
10681 | sed 's/^/| /' conftest.$ac_ext >&5 |
15227 | |
10682 | |
15228 | rxvt_cv_struct_utmpx=no |
10683 | struct_utmpx=no |
15229 | fi |
10684 | fi |
15230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15231 | fi |
10686 | fi |
15232 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 |
10687 | echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
15233 | echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 |
10688 | echo "${ECHO_T}$struct_utmpx" >&6 |
15234 | if test x$rxvt_cv_struct_utmpx = xyes; then |
10689 | if test x$struct_utmpx = xyes; then |
15235 | |
10690 | |
15236 | cat >>confdefs.h <<\_ACEOF |
10691 | cat >>confdefs.h <<\_ACEOF |
15237 | #define HAVE_STRUCT_UTMPX 1 |
10692 | #define HAVE_STRUCT_UTMPX 1 |
15238 | _ACEOF |
10693 | _ACEOF |
15239 | |
10694 | |
15240 | fi |
10695 | fi |
15241 | |
10696 | |
15242 | |
10697 | |
15243 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
10698 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
15244 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
10699 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
15245 | if test "${rxvt_cv_struct_utmpx_host+set}" = set; then |
10700 | if test "${struct_utmpx_host+set}" = set; then |
15246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15247 | else |
10702 | else |
15248 | cat >conftest.$ac_ext <<_ACEOF |
10703 | cat >conftest.$ac_ext <<_ACEOF |
15249 | /* confdefs.h. */ |
10704 | /* confdefs.h. */ |
15250 | _ACEOF |
10705 | _ACEOF |
… | |
… | |
15268 | grep -v '^ *+' conftest.er1 >conftest.err |
10723 | grep -v '^ *+' conftest.er1 >conftest.err |
15269 | rm -f conftest.er1 |
10724 | rm -f conftest.er1 |
15270 | cat conftest.err >&5 |
10725 | cat conftest.err >&5 |
15271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15272 | (exit $ac_status); } && |
10727 | (exit $ac_status); } && |
15273 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10728 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10729 | || test ! -s conftest.err' |
15274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15275 | (eval $ac_try) 2>&5 |
10731 | (eval $ac_try) 2>&5 |
15276 | ac_status=$? |
10732 | ac_status=$? |
15277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15278 | (exit $ac_status); }; } && |
10734 | (exit $ac_status); }; } && |
… | |
… | |
15280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15281 | (eval $ac_try) 2>&5 |
10737 | (eval $ac_try) 2>&5 |
15282 | ac_status=$? |
10738 | ac_status=$? |
15283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15284 | (exit $ac_status); }; }; then |
10740 | (exit $ac_status); }; }; then |
15285 | rxvt_cv_struct_utmpx_host=yes |
10741 | struct_utmpx_host=yes |
15286 | else |
10742 | else |
15287 | echo "$as_me: failed program was:" >&5 |
10743 | echo "$as_me: failed program was:" >&5 |
15288 | sed 's/^/| /' conftest.$ac_ext >&5 |
10744 | sed 's/^/| /' conftest.$ac_ext >&5 |
15289 | |
10745 | |
15290 | rxvt_cv_struct_utmpx_host=no |
10746 | struct_utmpx_host=no |
15291 | fi |
10747 | fi |
15292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15293 | fi |
10749 | fi |
15294 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 |
10750 | echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
15295 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 |
10751 | echo "${ECHO_T}$struct_utmpx_host" >&6 |
15296 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
10752 | if test x$struct_utmpx_host = xyes; then |
15297 | |
10753 | |
15298 | cat >>confdefs.h <<\_ACEOF |
10754 | cat >>confdefs.h <<\_ACEOF |
15299 | #define HAVE_UTMPX_HOST 1 |
10755 | #define HAVE_UTMPX_HOST 1 |
15300 | _ACEOF |
10756 | _ACEOF |
15301 | |
10757 | |
15302 | fi |
10758 | fi |
15303 | |
10759 | |
15304 | fi |
10760 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
10761 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
10762 | if test "${struct_utmpx_session+set}" = set; then |
|
|
10763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10764 | else |
|
|
10765 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10766 | /* confdefs.h. */ |
|
|
10767 | _ACEOF |
|
|
10768 | cat confdefs.h >>conftest.$ac_ext |
|
|
10769 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10770 | /* end confdefs.h. */ |
|
|
10771 | #include <sys/types.h> |
|
|
10772 | #include <utmpx.h> |
|
|
10773 | int |
|
|
10774 | main () |
|
|
10775 | { |
|
|
10776 | struct utmpx utx; utx.ut_session; |
|
|
10777 | ; |
|
|
10778 | return 0; |
|
|
10779 | } |
|
|
10780 | _ACEOF |
|
|
10781 | rm -f conftest.$ac_objext |
|
|
10782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10783 | (eval $ac_compile) 2>conftest.er1 |
|
|
10784 | ac_status=$? |
|
|
10785 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10786 | rm -f conftest.er1 |
|
|
10787 | cat conftest.err >&5 |
|
|
10788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10789 | (exit $ac_status); } && |
|
|
10790 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10791 | || test ! -s conftest.err' |
|
|
10792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10793 | (eval $ac_try) 2>&5 |
|
|
10794 | ac_status=$? |
|
|
10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10796 | (exit $ac_status); }; } && |
|
|
10797 | { ac_try='test -s conftest.$ac_objext' |
|
|
10798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10799 | (eval $ac_try) 2>&5 |
|
|
10800 | ac_status=$? |
|
|
10801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10802 | (exit $ac_status); }; }; then |
|
|
10803 | struct_utmpx_session=yes |
|
|
10804 | else |
|
|
10805 | echo "$as_me: failed program was:" >&5 |
|
|
10806 | sed 's/^/| /' conftest.$ac_ext >&5 |
15305 | |
10807 | |
|
|
10808 | struct_utmpx_session=no |
|
|
10809 | fi |
|
|
10810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10811 | fi |
|
|
10812 | echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
|
|
10813 | echo "${ECHO_T}$struct_utmpx_session" >&6 |
|
|
10814 | if test x$struct_utmpx_session = xyes; then |
|
|
10815 | |
|
|
10816 | cat >>confdefs.h <<\_ACEOF |
|
|
10817 | #define HAVE_UTMPX_SESSION 1 |
|
|
10818 | _ACEOF |
|
|
10819 | |
|
|
10820 | fi |
|
|
10821 | |
|
|
10822 | fi |
15306 | |
10823 | |
15307 | |
10824 | |
15308 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10825 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
15309 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
10826 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
15310 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
10827 | if test "${struct_lastlog+set}" = set; then |
15311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15312 | else |
10829 | else |
15313 | cat >conftest.$ac_ext <<_ACEOF |
10830 | cat >conftest.$ac_ext <<_ACEOF |
15314 | /* confdefs.h. */ |
10831 | /* confdefs.h. */ |
15315 | _ACEOF |
10832 | _ACEOF |
… | |
… | |
15337 | grep -v '^ *+' conftest.er1 >conftest.err |
10854 | grep -v '^ *+' conftest.er1 >conftest.err |
15338 | rm -f conftest.er1 |
10855 | rm -f conftest.er1 |
15339 | cat conftest.err >&5 |
10856 | cat conftest.err >&5 |
15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15341 | (exit $ac_status); } && |
10858 | (exit $ac_status); } && |
15342 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10859 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10860 | || test ! -s conftest.err' |
15343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15344 | (eval $ac_try) 2>&5 |
10862 | (eval $ac_try) 2>&5 |
15345 | ac_status=$? |
10863 | ac_status=$? |
15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15347 | (exit $ac_status); }; } && |
10865 | (exit $ac_status); }; } && |
… | |
… | |
15349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15350 | (eval $ac_try) 2>&5 |
10868 | (eval $ac_try) 2>&5 |
15351 | ac_status=$? |
10869 | ac_status=$? |
15352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15353 | (exit $ac_status); }; }; then |
10871 | (exit $ac_status); }; }; then |
15354 | rxvt_cv_struct_lastlog=yes |
10872 | struct_lastlog=yes |
15355 | else |
10873 | else |
15356 | echo "$as_me: failed program was:" >&5 |
10874 | echo "$as_me: failed program was:" >&5 |
15357 | sed 's/^/| /' conftest.$ac_ext >&5 |
10875 | sed 's/^/| /' conftest.$ac_ext >&5 |
15358 | |
10876 | |
15359 | rxvt_cv_struct_lastlog=no |
10877 | struct_lastlog=no |
15360 | fi |
10878 | fi |
15361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15362 | fi |
10880 | fi |
15363 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 |
10881 | echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
15364 | echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 |
10882 | echo "${ECHO_T}$struct_lastlog" >&6 |
15365 | if test x$rxvt_cv_struct_lastlog = xyes; then |
10883 | if test x$struct_lastlog = xyes; then |
15366 | |
10884 | |
15367 | cat >>confdefs.h <<\_ACEOF |
10885 | cat >>confdefs.h <<\_ACEOF |
15368 | #define HAVE_STRUCT_LASTLOG 1 |
10886 | #define HAVE_STRUCT_LASTLOG 1 |
15369 | _ACEOF |
10887 | _ACEOF |
15370 | |
10888 | |
15371 | fi |
10889 | fi |
15372 | |
10890 | |
15373 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
10891 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
15374 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
10892 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
15375 | if test "${rxvt_cv_struct_lastlogx+set}" = set; then |
10893 | if test "${struct_lastlogx+set}" = set; then |
15376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15377 | else |
10895 | else |
15378 | cat >conftest.$ac_ext <<_ACEOF |
10896 | cat >conftest.$ac_ext <<_ACEOF |
15379 | /* confdefs.h. */ |
10897 | /* confdefs.h. */ |
15380 | _ACEOF |
10898 | _ACEOF |
… | |
… | |
15402 | grep -v '^ *+' conftest.er1 >conftest.err |
10920 | grep -v '^ *+' conftest.er1 >conftest.err |
15403 | rm -f conftest.er1 |
10921 | rm -f conftest.er1 |
15404 | cat conftest.err >&5 |
10922 | cat conftest.err >&5 |
15405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15406 | (exit $ac_status); } && |
10924 | (exit $ac_status); } && |
15407 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10925 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
10926 | || test ! -s conftest.err' |
15408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15409 | (eval $ac_try) 2>&5 |
10928 | (eval $ac_try) 2>&5 |
15410 | ac_status=$? |
10929 | ac_status=$? |
15411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15412 | (exit $ac_status); }; } && |
10931 | (exit $ac_status); }; } && |
… | |
… | |
15414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15415 | (eval $ac_try) 2>&5 |
10934 | (eval $ac_try) 2>&5 |
15416 | ac_status=$? |
10935 | ac_status=$? |
15417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15418 | (exit $ac_status); }; }; then |
10937 | (exit $ac_status); }; }; then |
15419 | rxvt_cv_struct_lastlogx=yes |
10938 | struct_lastlogx=yes |
15420 | else |
10939 | else |
15421 | echo "$as_me: failed program was:" >&5 |
10940 | echo "$as_me: failed program was:" >&5 |
15422 | sed 's/^/| /' conftest.$ac_ext >&5 |
10941 | sed 's/^/| /' conftest.$ac_ext >&5 |
15423 | |
10942 | |
15424 | rxvt_cv_struct_lastlogx=no |
10943 | struct_lastlogx=no |
15425 | fi |
10944 | fi |
15426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15427 | fi |
10946 | fi |
15428 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 |
10947 | echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
15429 | echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 |
10948 | echo "${ECHO_T}$struct_lastlogx" >&6 |
15430 | if test x$rxvt_cv_struct_lastlogx = xyes; then |
10949 | if test x$struct_lastlogx = xyes; then |
15431 | |
10950 | |
15432 | cat >>confdefs.h <<\_ACEOF |
10951 | cat >>confdefs.h <<\_ACEOF |
15433 | #define HAVE_STRUCT_LASTLOGX 1 |
10952 | #define HAVE_STRUCT_LASTLOGX 1 |
15434 | _ACEOF |
10953 | _ACEOF |
15435 | |
10954 | |
15436 | fi |
10955 | fi |
15437 | |
10956 | |
15438 | |
10957 | |
15439 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
10958 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
15440 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
10959 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
15441 | if test "${rxvt_cv_path_utmp+set}" = set; then |
10960 | if test "${path_utmp+set}" = set; then |
15442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15443 | else |
10962 | else |
15444 | if test "$cross_compiling" = yes; then |
10963 | if test "$cross_compiling" = yes; then |
15445 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 |
10964 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
15446 | echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} |
10965 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
15447 | else |
10966 | else |
15448 | cat >conftest.$ac_ext <<_ACEOF |
10967 | cat >conftest.$ac_ext <<_ACEOF |
15449 | /* confdefs.h. */ |
10968 | /* confdefs.h. */ |
15450 | _ACEOF |
10969 | _ACEOF |
15451 | cat confdefs.h >>conftest.$ac_ext |
10970 | cat confdefs.h >>conftest.$ac_ext |
15452 | cat >>conftest.$ac_ext <<_ACEOF |
10971 | cat >>conftest.$ac_ext <<_ACEOF |
15453 | /* end confdefs.h. */ |
10972 | /* end confdefs.h. */ |
15454 | #include <stdio.h> |
10973 | #include <stdio.h> |
|
|
10974 | #include <stdlib.h> |
15455 | #include <sys/types.h> |
10975 | #include <sys/types.h> |
15456 | #include <utmp.h> |
10976 | #include <utmp.h> |
15457 | #include <errno.h> |
10977 | #include <errno.h> |
15458 | main() |
10978 | main() |
15459 | { |
10979 | { |
… | |
… | |
15487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15488 | (eval $ac_try) 2>&5 |
11008 | (eval $ac_try) 2>&5 |
15489 | ac_status=$? |
11009 | ac_status=$? |
15490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15491 | (exit $ac_status); }; }; then |
11011 | (exit $ac_status); }; }; then |
15492 | rxvt_cv_path_utmp=`cat conftestval` |
11012 | path_utmp=`cat conftestval` |
15493 | else |
11013 | else |
15494 | echo "$as_me: program exited with status $ac_status" >&5 |
11014 | echo "$as_me: program exited with status $ac_status" >&5 |
15495 | echo "$as_me: failed program was:" >&5 |
11015 | echo "$as_me: failed program was:" >&5 |
15496 | sed 's/^/| /' conftest.$ac_ext >&5 |
11016 | sed 's/^/| /' conftest.$ac_ext >&5 |
15497 | |
11017 | |
15498 | ( exit $ac_status ) |
11018 | ( exit $ac_status ) |
15499 | rxvt_cv_path_utmp= |
11019 | path_utmp= |
15500 | fi |
11020 | fi |
15501 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11021 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15502 | fi |
11022 | fi |
15503 | fi |
11023 | fi |
15504 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 |
11024 | echo "$as_me:$LINENO: result: $path_utmp" >&5 |
15505 | echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 |
11025 | echo "${ECHO_T}$path_utmp" >&6 |
15506 | if test x$rxvt_cv_path_utmp != x; then |
11026 | if test x$path_utmp != x; then |
15507 | |
11027 | |
15508 | cat >>confdefs.h <<_ACEOF |
11028 | cat >>confdefs.h <<_ACEOF |
15509 | #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" |
11029 | #define UTMP_FILE "$path_utmp" |
15510 | _ACEOF |
11030 | _ACEOF |
15511 | |
11031 | |
15512 | fi |
11032 | fi |
15513 | |
11033 | |
15514 | |
11034 | |
15515 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
11035 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
15516 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
11036 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
15517 | if test "${rxvt_cv_path_utmpx+set}" = set; then |
11037 | if test "${path_utmpx+set}" = set; then |
15518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15519 | else |
11039 | else |
15520 | if test "$cross_compiling" = yes; then |
11040 | if test "$cross_compiling" = yes; then |
15521 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 |
11041 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
15522 | echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} |
11042 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
15523 | else |
11043 | else |
15524 | cat >conftest.$ac_ext <<_ACEOF |
11044 | cat >conftest.$ac_ext <<_ACEOF |
15525 | /* confdefs.h. */ |
11045 | /* confdefs.h. */ |
15526 | _ACEOF |
11046 | _ACEOF |
15527 | cat confdefs.h >>conftest.$ac_ext |
11047 | cat confdefs.h >>conftest.$ac_ext |
15528 | cat >>conftest.$ac_ext <<_ACEOF |
11048 | cat >>conftest.$ac_ext <<_ACEOF |
15529 | /* end confdefs.h. */ |
11049 | /* end confdefs.h. */ |
15530 | #include <stdio.h> |
11050 | #include <stdio.h> |
|
|
11051 | #include <stdlib.h> |
15531 | #include <sys/types.h> |
11052 | #include <sys/types.h> |
15532 | #include <utmpx.h> |
11053 | #include <utmpx.h> |
15533 | #include <errno.h> |
11054 | #include <errno.h> |
15534 | #include <sys/stat.h> |
11055 | #include <sys/stat.h> |
15535 | #ifdef HAVE_STRING_H |
11056 | #ifdef HAVE_STRING_H |
… | |
… | |
15573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15574 | (eval $ac_try) 2>&5 |
11095 | (eval $ac_try) 2>&5 |
15575 | ac_status=$? |
11096 | ac_status=$? |
15576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15577 | (exit $ac_status); }; }; then |
11098 | (exit $ac_status); }; }; then |
15578 | rxvt_cv_path_utmpx=`cat conftestval` |
11099 | path_utmpx=`cat conftestval` |
15579 | else |
11100 | else |
15580 | echo "$as_me: program exited with status $ac_status" >&5 |
11101 | echo "$as_me: program exited with status $ac_status" >&5 |
15581 | echo "$as_me: failed program was:" >&5 |
11102 | echo "$as_me: failed program was:" >&5 |
15582 | sed 's/^/| /' conftest.$ac_ext >&5 |
11103 | sed 's/^/| /' conftest.$ac_ext >&5 |
15583 | |
11104 | |
15584 | ( exit $ac_status ) |
11105 | ( exit $ac_status ) |
15585 | rxvt_cv_path_utmpx= |
11106 | path_utmpx= |
15586 | fi |
11107 | fi |
15587 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11108 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15588 | fi |
11109 | fi |
15589 | fi |
11110 | fi |
15590 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 |
11111 | echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
15591 | echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 |
11112 | echo "${ECHO_T}$path_utmpx" >&6 |
15592 | if test x$rxvt_cv_path_utmpx != x; then |
11113 | if test x$path_utmpx != x; then |
15593 | |
11114 | |
15594 | cat >>confdefs.h <<_ACEOF |
11115 | cat >>confdefs.h <<_ACEOF |
15595 | #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" |
11116 | #define UTMPX_FILE "$path_utmpx" |
15596 | _ACEOF |
11117 | _ACEOF |
15597 | |
11118 | |
15598 | fi |
11119 | fi |
15599 | |
11120 | |
15600 | |
11121 | |
15601 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
11122 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
15602 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
11123 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
15603 | if test "${rxvt_cv_path_wtmp+set}" = set; then |
11124 | if test "${path_wtmp+set}" = set; then |
15604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15605 | else |
11126 | else |
15606 | if test "$cross_compiling" = yes; then |
11127 | if test "$cross_compiling" = yes; then |
15607 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 |
11128 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
15608 | echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} |
11129 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
15609 | else |
11130 | else |
15610 | cat >conftest.$ac_ext <<_ACEOF |
11131 | cat >conftest.$ac_ext <<_ACEOF |
15611 | /* confdefs.h. */ |
11132 | /* confdefs.h. */ |
15612 | _ACEOF |
11133 | _ACEOF |
15613 | cat confdefs.h >>conftest.$ac_ext |
11134 | cat confdefs.h >>conftest.$ac_ext |
15614 | cat >>conftest.$ac_ext <<_ACEOF |
11135 | cat >>conftest.$ac_ext <<_ACEOF |
15615 | /* end confdefs.h. */ |
11136 | /* end confdefs.h. */ |
15616 | #include <stdio.h> |
11137 | #include <stdio.h> |
|
|
11138 | #include <stdlib.h> |
15617 | #include <sys/types.h> |
11139 | #include <sys/types.h> |
15618 | #ifdef HAVE_UTMP_H |
11140 | #ifdef HAVE_UTMP_H |
15619 | #include <utmp.h> |
11141 | #include <utmp.h> |
15620 | #endif |
11142 | #endif |
15621 | #include <errno.h> |
11143 | #include <errno.h> |
… | |
… | |
15651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15652 | (eval $ac_try) 2>&5 |
11174 | (eval $ac_try) 2>&5 |
15653 | ac_status=$? |
11175 | ac_status=$? |
15654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15655 | (exit $ac_status); }; }; then |
11177 | (exit $ac_status); }; }; then |
15656 | rxvt_cv_path_wtmp=`cat conftestval` |
11178 | path_wtmp=`cat conftestval` |
15657 | else |
11179 | else |
15658 | echo "$as_me: program exited with status $ac_status" >&5 |
11180 | echo "$as_me: program exited with status $ac_status" >&5 |
15659 | echo "$as_me: failed program was:" >&5 |
11181 | echo "$as_me: failed program was:" >&5 |
15660 | sed 's/^/| /' conftest.$ac_ext >&5 |
11182 | sed 's/^/| /' conftest.$ac_ext >&5 |
15661 | |
11183 | |
15662 | ( exit $ac_status ) |
11184 | ( exit $ac_status ) |
15663 | rxvt_cv_path_wtmp= |
11185 | path_wtmp= |
15664 | fi |
11186 | fi |
15665 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11187 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15666 | fi |
11188 | fi |
15667 | fi |
11189 | fi |
15668 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 |
11190 | echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
15669 | echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 |
11191 | echo "${ECHO_T}$path_wtmp" >&6 |
15670 | if test x$rxvt_cv_path_wtmp != x; then |
11192 | if test x$path_wtmp != x; then |
15671 | |
11193 | |
15672 | cat >>confdefs.h <<_ACEOF |
11194 | cat >>confdefs.h <<_ACEOF |
15673 | #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" |
11195 | #define WTMP_FILE "$path_wtmp" |
15674 | _ACEOF |
11196 | _ACEOF |
15675 | |
11197 | |
15676 | fi |
11198 | fi |
15677 | |
11199 | |
15678 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
11200 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
15679 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
11201 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
15680 | if test "${rxvt_cv_path_wtmpx+set}" = set; then |
11202 | if test "${path_wtmpx+set}" = set; then |
15681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15682 | else |
11204 | else |
15683 | if test "$cross_compiling" = yes; then |
11205 | if test "$cross_compiling" = yes; then |
15684 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 |
11206 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
15685 | echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} |
11207 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
15686 | else |
11208 | else |
15687 | cat >conftest.$ac_ext <<_ACEOF |
11209 | cat >conftest.$ac_ext <<_ACEOF |
15688 | /* confdefs.h. */ |
11210 | /* confdefs.h. */ |
15689 | _ACEOF |
11211 | _ACEOF |
15690 | cat confdefs.h >>conftest.$ac_ext |
11212 | cat confdefs.h >>conftest.$ac_ext |
15691 | cat >>conftest.$ac_ext <<_ACEOF |
11213 | cat >>conftest.$ac_ext <<_ACEOF |
15692 | /* end confdefs.h. */ |
11214 | /* end confdefs.h. */ |
15693 | #include <stdio.h> |
11215 | #include <stdio.h> |
|
|
11216 | #include <stdlib.h> |
15694 | #ifdef HAVE_UTMPX_H |
11217 | #ifdef HAVE_UTMPX_H |
15695 | #include <utmpx.h> |
11218 | #include <utmpx.h> |
15696 | #endif |
11219 | #endif |
15697 | #include <errno.h> |
11220 | #include <errno.h> |
15698 | main() |
11221 | main() |
… | |
… | |
15727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15728 | (eval $ac_try) 2>&5 |
11251 | (eval $ac_try) 2>&5 |
15729 | ac_status=$? |
11252 | ac_status=$? |
15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15731 | (exit $ac_status); }; }; then |
11254 | (exit $ac_status); }; }; then |
15732 | rxvt_cv_path_wtmpx=`cat conftestval` |
11255 | path_wtmpx=`cat conftestval` |
15733 | else |
11256 | else |
15734 | echo "$as_me: program exited with status $ac_status" >&5 |
11257 | echo "$as_me: program exited with status $ac_status" >&5 |
15735 | echo "$as_me: failed program was:" >&5 |
11258 | echo "$as_me: failed program was:" >&5 |
15736 | sed 's/^/| /' conftest.$ac_ext >&5 |
11259 | sed 's/^/| /' conftest.$ac_ext >&5 |
15737 | |
11260 | |
15738 | ( exit $ac_status ) |
11261 | ( exit $ac_status ) |
15739 | rxvt_cv_path_wtmpx= |
11262 | path_wtmpx= |
15740 | fi |
11263 | fi |
15741 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11264 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15742 | fi |
11265 | fi |
15743 | fi |
11266 | fi |
15744 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 |
11267 | echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
15745 | echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 |
11268 | echo "${ECHO_T}$path_wtmpx" >&6 |
15746 | if test x$rxvt_cv_path_wtmpx != x; then |
11269 | if test x$path_wtmpx != x; then |
15747 | |
11270 | |
15748 | cat >>confdefs.h <<_ACEOF |
11271 | cat >>confdefs.h <<_ACEOF |
15749 | #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" |
11272 | #define WTMPX_FILE "$path_wtmpx" |
15750 | _ACEOF |
11273 | _ACEOF |
15751 | |
11274 | |
15752 | fi |
11275 | fi |
15753 | |
11276 | |
15754 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
11277 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
15755 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
11278 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
15756 | if test "${rxvt_cv_path_lastlog+set}" = set; then |
11279 | if test "${path_lastlog+set}" = set; then |
15757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15758 | else |
11281 | else |
15759 | if test "$cross_compiling" = yes; then |
11282 | if test "$cross_compiling" = yes; then |
15760 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 |
11283 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
15761 | echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} |
11284 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
15762 | else |
11285 | else |
15763 | cat >conftest.$ac_ext <<_ACEOF |
11286 | cat >conftest.$ac_ext <<_ACEOF |
15764 | /* confdefs.h. */ |
11287 | /* confdefs.h. */ |
15765 | _ACEOF |
11288 | _ACEOF |
15766 | cat confdefs.h >>conftest.$ac_ext |
11289 | cat confdefs.h >>conftest.$ac_ext |
15767 | cat >>conftest.$ac_ext <<_ACEOF |
11290 | cat >>conftest.$ac_ext <<_ACEOF |
15768 | /* end confdefs.h. */ |
11291 | /* end confdefs.h. */ |
15769 | #include <stdio.h> |
11292 | #include <stdio.h> |
|
|
11293 | #include <stdlib.h> |
15770 | #include <sys/types.h> |
11294 | #include <sys/types.h> |
15771 | #ifdef HAVE_UTMPX_H |
11295 | #ifdef HAVE_UTMPX_H |
15772 | #include <utmpx.h> |
11296 | #include <utmpx.h> |
15773 | #elif defined(HAVE_UTMP_H) |
11297 | #elif defined(HAVE_UTMP_H) |
15774 | #include <utmp.h> |
11298 | #include <utmp.h> |
… | |
… | |
15808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15809 | (eval $ac_try) 2>&5 |
11333 | (eval $ac_try) 2>&5 |
15810 | ac_status=$? |
11334 | ac_status=$? |
15811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15812 | (exit $ac_status); }; }; then |
11336 | (exit $ac_status); }; }; then |
15813 | rxvt_cv_path_lastlog=`cat conftestval` |
11337 | path_lastlog=`cat conftestval` |
15814 | else |
11338 | else |
15815 | echo "$as_me: program exited with status $ac_status" >&5 |
11339 | echo "$as_me: program exited with status $ac_status" >&5 |
15816 | echo "$as_me: failed program was:" >&5 |
11340 | echo "$as_me: failed program was:" >&5 |
15817 | sed 's/^/| /' conftest.$ac_ext >&5 |
11341 | sed 's/^/| /' conftest.$ac_ext >&5 |
15818 | |
11342 | |
15819 | ( exit $ac_status ) |
11343 | ( exit $ac_status ) |
15820 | rxvt_cv_path_lastlog= |
11344 | path_lastlog= |
15821 | fi |
11345 | fi |
15822 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11346 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15823 | fi |
11347 | fi |
15824 | fi |
11348 | fi |
15825 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 |
11349 | echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
15826 | echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 |
11350 | echo "${ECHO_T}$path_lastlog" >&6 |
15827 | if test x$rxvt_cv_path_lastlog != x; then |
11351 | if test x$path_lastlog != x; then |
15828 | |
11352 | |
15829 | cat >>confdefs.h <<_ACEOF |
11353 | cat >>confdefs.h <<_ACEOF |
15830 | #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" |
11354 | #define LASTLOG_FILE "$path_lastlog" |
15831 | _ACEOF |
11355 | _ACEOF |
15832 | |
11356 | |
15833 | if test -d "$rxvt_cv_path_lastlog"; then |
11357 | if test -d "$path_lastlog"; then |
15834 | |
11358 | |
15835 | cat >>confdefs.h <<\_ACEOF |
11359 | cat >>confdefs.h <<\_ACEOF |
15836 | #define LASTLOG_IS_DIR 1 |
11360 | #define LASTLOG_IS_DIR 1 |
15837 | _ACEOF |
11361 | _ACEOF |
15838 | |
11362 | |
15839 | fi |
11363 | fi |
15840 | fi |
11364 | fi |
15841 | |
11365 | |
15842 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11366 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
15843 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
11367 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
15844 | if test "${rxvt_cv_path_lastlogx+set}" = set; then |
11368 | if test "${path_lastlogx+set}" = set; then |
15845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15846 | else |
11370 | else |
15847 | if test "$cross_compiling" = yes; then |
11371 | if test "$cross_compiling" = yes; then |
15848 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 |
11372 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
15849 | echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} |
11373 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
15850 | else |
11374 | else |
15851 | cat >conftest.$ac_ext <<_ACEOF |
11375 | cat >conftest.$ac_ext <<_ACEOF |
15852 | /* confdefs.h. */ |
11376 | /* confdefs.h. */ |
15853 | _ACEOF |
11377 | _ACEOF |
15854 | cat confdefs.h >>conftest.$ac_ext |
11378 | cat confdefs.h >>conftest.$ac_ext |
15855 | cat >>conftest.$ac_ext <<_ACEOF |
11379 | cat >>conftest.$ac_ext <<_ACEOF |
15856 | /* end confdefs.h. */ |
11380 | /* end confdefs.h. */ |
15857 | #include <stdio.h> |
11381 | #include <stdio.h> |
|
|
11382 | #include <stdlib.h> |
15858 | #ifdef HAVE_UTMPX_H |
11383 | #ifdef HAVE_UTMPX_H |
15859 | #include <utmpx.h> |
11384 | #include <utmpx.h> |
15860 | #endif |
11385 | #endif |
15861 | #include <errno.h> |
11386 | #include <errno.h> |
15862 | main() |
11387 | main() |
… | |
… | |
15890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15891 | (eval $ac_try) 2>&5 |
11416 | (eval $ac_try) 2>&5 |
15892 | ac_status=$? |
11417 | ac_status=$? |
15893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15894 | (exit $ac_status); }; }; then |
11419 | (exit $ac_status); }; }; then |
15895 | rxvt_cv_path_lastlogx=`cat conftestval` |
11420 | path_lastlogx=`cat conftestval` |
15896 | else |
11421 | else |
15897 | echo "$as_me: program exited with status $ac_status" >&5 |
11422 | echo "$as_me: program exited with status $ac_status" >&5 |
15898 | echo "$as_me: failed program was:" >&5 |
11423 | echo "$as_me: failed program was:" >&5 |
15899 | sed 's/^/| /' conftest.$ac_ext >&5 |
11424 | sed 's/^/| /' conftest.$ac_ext >&5 |
15900 | |
11425 | |
15901 | ( exit $ac_status ) |
11426 | ( exit $ac_status ) |
15902 | rxvt_cv_path_lastlogx= |
11427 | path_lastlogx= |
15903 | fi |
11428 | fi |
15904 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11429 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
15905 | fi |
11430 | fi |
15906 | fi |
11431 | fi |
15907 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 |
11432 | echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
15908 | echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 |
11433 | echo "${ECHO_T}$path_lastlogx" >&6 |
15909 | if test x$rxvt_cv_path_lastlogx != x; then |
11434 | if test x$path_lastlogx != x; then |
15910 | |
11435 | |
15911 | cat >>confdefs.h <<_ACEOF |
11436 | cat >>confdefs.h <<_ACEOF |
15912 | #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" |
11437 | #define LASTLOGX_FILE "$path_lastlogx" |
15913 | _ACEOF |
11438 | _ACEOF |
15914 | |
11439 | |
15915 | fi |
11440 | fi |
|
|
11441 | |
15916 | |
11442 | |
15917 | |
11443 | |
15918 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11444 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
15919 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11445 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
15920 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
11446 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
… | |
… | |
15961 | _ACEOF |
11487 | _ACEOF |
15962 | cat confdefs.h >>conftest.$ac_ext |
11488 | cat confdefs.h >>conftest.$ac_ext |
15963 | cat >>conftest.$ac_ext <<_ACEOF |
11489 | cat >>conftest.$ac_ext <<_ACEOF |
15964 | /* end confdefs.h. */ |
11490 | /* end confdefs.h. */ |
15965 | #include <X11/Xlib.h> |
11491 | #include <X11/Xlib.h> |
|
|
11492 | #include <stdlib.h> |
15966 | main() { |
11493 | main() { |
15967 | char *p; |
11494 | char *p; |
15968 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11495 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
15969 | exit (XSupportsLocale() ? 0 : 1); |
11496 | exit (XSupportsLocale() ? 0 : 1); |
15970 | else |
11497 | else |
… | |
… | |
16031 | grep -v '^ *+' conftest.er1 >conftest.err |
11558 | grep -v '^ *+' conftest.er1 >conftest.err |
16032 | rm -f conftest.er1 |
11559 | rm -f conftest.er1 |
16033 | cat conftest.err >&5 |
11560 | cat conftest.err >&5 |
16034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16035 | (exit $ac_status); } && |
11562 | (exit $ac_status); } && |
16036 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
11563 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11564 | || test ! -s conftest.err' |
16037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16038 | (eval $ac_try) 2>&5 |
11566 | (eval $ac_try) 2>&5 |
16039 | ac_status=$? |
11567 | ac_status=$? |
16040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16041 | (exit $ac_status); }; } && |
11569 | (exit $ac_status); }; } && |
… | |
… | |
16094 | grep -v '^ *+' conftest.er1 >conftest.err |
11622 | grep -v '^ *+' conftest.er1 >conftest.err |
16095 | rm -f conftest.er1 |
11623 | rm -f conftest.er1 |
16096 | cat conftest.err >&5 |
11624 | cat conftest.err >&5 |
16097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16098 | (exit $ac_status); } && |
11626 | (exit $ac_status); } && |
16099 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
11627 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11628 | || test ! -s conftest.err' |
16100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16101 | (eval $ac_try) 2>&5 |
11630 | (eval $ac_try) 2>&5 |
16102 | ac_status=$? |
11631 | ac_status=$? |
16103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16104 | (exit $ac_status); }; } && |
11633 | (exit $ac_status); }; } && |
… | |
… | |
16155 | grep -v '^ *+' conftest.er1 >conftest.err |
11684 | grep -v '^ *+' conftest.er1 >conftest.err |
16156 | rm -f conftest.er1 |
11685 | rm -f conftest.er1 |
16157 | cat conftest.err >&5 |
11686 | cat conftest.err >&5 |
16158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16159 | (exit $ac_status); } && |
11688 | (exit $ac_status); } && |
16160 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
11689 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11690 | || test ! -s conftest.err' |
16161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16162 | (eval $ac_try) 2>&5 |
11692 | (eval $ac_try) 2>&5 |
16163 | ac_status=$? |
11693 | ac_status=$? |
16164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16165 | (exit $ac_status); }; } && |
11695 | (exit $ac_status); }; } && |
… | |
… | |
16187 | #define HAVE_NL_LANGINFO 1 |
11717 | #define HAVE_NL_LANGINFO 1 |
16188 | _ACEOF |
11718 | _ACEOF |
16189 | |
11719 | |
16190 | fi |
11720 | fi |
16191 | |
11721 | |
16192 | echo "$as_me:$LINENO: checking for getpt" >&5 |
11722 | |
16193 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
11723 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
16194 | if test "${rxvt_cv_func_getpt+set}" = set; then |
11724 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11725 | if test "${can_pass_fds+set}" = set; then |
16195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16196 | else |
11727 | else |
16197 | cat >conftest.$ac_ext <<_ACEOF |
11728 | cat >conftest.$ac_ext <<_ACEOF |
16198 | /* confdefs.h. */ |
11729 | /* confdefs.h. */ |
16199 | _ACEOF |
11730 | _ACEOF |
16200 | cat confdefs.h >>conftest.$ac_ext |
11731 | cat confdefs.h >>conftest.$ac_ext |
16201 | cat >>conftest.$ac_ext <<_ACEOF |
11732 | cat >>conftest.$ac_ext <<_ACEOF |
16202 | /* end confdefs.h. */ |
11733 | /* end confdefs.h. */ |
16203 | #define _GNU_SOURCE |
11734 | |
16204 | #ifdef HAVE_STDLIB_H |
11735 | #include <cstddef> // broken bsds (is that redundant?) need this |
16205 | # include <cstdlib> |
11736 | #include <sys/types.h> |
16206 | #endif |
11737 | #include <sys/socket.h> |
|
|
11738 | #include <sys/uio.h> |
|
|
11739 | |
16207 | int |
11740 | int |
16208 | main () |
11741 | main () |
16209 | { |
11742 | { |
16210 | (void)getpt(); |
11743 | |
|
|
11744 | { |
|
|
11745 | msghdr msg; |
|
|
11746 | iovec iov; |
|
|
11747 | char buf [100]; |
|
|
11748 | char data = 0; |
|
|
11749 | |
|
|
11750 | iov.iov_base = &data; |
|
|
11751 | iov.iov_len = 1; |
|
|
11752 | |
|
|
11753 | msg.msg_iov = &iov; |
|
|
11754 | msg.msg_iovlen = 1; |
|
|
11755 | msg.msg_control = buf; |
|
|
11756 | msg.msg_controllen = sizeof buf; |
|
|
11757 | |
|
|
11758 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11759 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11760 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11761 | cmsg->cmsg_len = 100; |
|
|
11762 | |
|
|
11763 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11764 | |
|
|
11765 | return sendmsg (3, &msg, 0); |
|
|
11766 | } |
|
|
11767 | |
16211 | ; |
11768 | ; |
16212 | return 0; |
11769 | return 0; |
16213 | } |
11770 | } |
16214 | _ACEOF |
11771 | _ACEOF |
16215 | rm -f conftest.$ac_objext conftest$ac_exeext |
11772 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
16219 | grep -v '^ *+' conftest.er1 >conftest.err |
11776 | grep -v '^ *+' conftest.er1 >conftest.err |
16220 | rm -f conftest.er1 |
11777 | rm -f conftest.er1 |
16221 | cat conftest.err >&5 |
11778 | cat conftest.err >&5 |
16222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16223 | (exit $ac_status); } && |
11780 | (exit $ac_status); } && |
16224 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
11781 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11782 | || test ! -s conftest.err' |
16225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16226 | (eval $ac_try) 2>&5 |
11784 | (eval $ac_try) 2>&5 |
16227 | ac_status=$? |
11785 | ac_status=$? |
16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16229 | (exit $ac_status); }; } && |
11787 | (exit $ac_status); }; } && |
… | |
… | |
16231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16232 | (eval $ac_try) 2>&5 |
11790 | (eval $ac_try) 2>&5 |
16233 | ac_status=$? |
11791 | ac_status=$? |
16234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16235 | (exit $ac_status); }; }; then |
11793 | (exit $ac_status); }; }; then |
16236 | rxvt_cv_func_getpt=yes |
11794 | can_pass_fds=yes |
16237 | else |
11795 | else |
16238 | echo "$as_me: failed program was:" >&5 |
11796 | echo "$as_me: failed program was:" >&5 |
16239 | sed 's/^/| /' conftest.$ac_ext >&5 |
11797 | sed 's/^/| /' conftest.$ac_ext >&5 |
16240 | |
11798 | |
16241 | rxvt_cv_func_getpt=no |
11799 | can_pass_fds=no |
16242 | fi |
11800 | fi |
16243 | rm -f conftest.err conftest.$ac_objext \ |
11801 | rm -f conftest.err conftest.$ac_objext \ |
16244 | conftest$ac_exeext conftest.$ac_ext |
11802 | conftest$ac_exeext conftest.$ac_ext |
16245 | fi |
11803 | fi |
16246 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
11804 | echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
16247 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
11805 | echo "${ECHO_T}$can_pass_fds" >&6 |
16248 | if test x$rxvt_cv_func_getpt = xyes; then |
11806 | if test x$can_pass_fds = xyes; then |
16249 | |
11807 | |
16250 | cat >>confdefs.h <<\_ACEOF |
11808 | cat >>confdefs.h <<\_ACEOF |
16251 | #define HAVE_GETPT 1 |
11809 | #define HAVE_UNIX_FDPASS 1 |
16252 | _ACEOF |
11810 | _ACEOF |
16253 | |
11811 | |
|
|
11812 | else |
|
|
11813 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
11814 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
11815 | { (exit 1); exit 1; }; } |
16254 | fi |
11816 | fi |
16255 | |
11817 | |
16256 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
11818 | |
|
|
11819 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
16257 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
11820 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
16258 | if test "${rxvt_cv_ptys+set}" = set; then |
11821 | if test "${rxvt_broken_ximcb+set}" = set; then |
16259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16260 | else |
11823 | else |
16261 | if test x$ac_cv_func_openpty = xyes; then |
11824 | cat >conftest.$ac_ext <<_ACEOF |
16262 | rxvt_cv_ptys=OPENPTY |
11825 | |
16263 | else if test x$ac_cv_func__getpty = xyes; then |
11826 | #include <X11/Xlib.h> |
16264 | rxvt_cv_ptys=SGI4 |
11827 | |
16265 | else if test -c /dev/ttyp20; then |
11828 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
16266 | rxvt_cv_ptys=SCO |
11829 | |
16267 | else if test -c /dev/ptym/clone; then |
11830 | void f() { |
16268 | rxvt_cv_ptys=HPUX |
11831 | XIMCallback cb; |
16269 | else if test x$rxvt_cv_func_getpt = xyes; then |
11832 | cb.callback = im_destroy_cb; |
16270 | rxvt_cv_ptys=GLIBC |
11833 | } |
16271 | else if test -c /dev/ptc -a -c /dev/pts; then |
11834 | |
16272 | rxvt_cv_ptys=PTC |
11835 | _ACEOF |
16273 | else if test -c /dev/ptc -a -d /dev/pts; then |
11836 | rm -f conftest.$ac_objext |
16274 | rxvt_cv_ptys=PTC |
11837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16275 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
11838 | (eval $ac_compile) 2>conftest.er1 |
16276 | rxvt_cv_ptys=STREAMS |
11839 | ac_status=$? |
16277 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
11840 | grep -v '^ *+' conftest.er1 >conftest.err |
16278 | rxvt_cv_ptys=STREAMS |
11841 | rm -f conftest.er1 |
|
|
11842 | cat conftest.err >&5 |
|
|
11843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11844 | (exit $ac_status); } && |
|
|
11845 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11846 | || test ! -s conftest.err' |
|
|
11847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11848 | (eval $ac_try) 2>&5 |
|
|
11849 | ac_status=$? |
|
|
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11851 | (exit $ac_status); }; } && |
|
|
11852 | { ac_try='test -s conftest.$ac_objext' |
|
|
11853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11854 | (eval $ac_try) 2>&5 |
|
|
11855 | ac_status=$? |
|
|
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11857 | (exit $ac_status); }; }; then |
|
|
11858 | rxvt_broken_ximcb=yes |
16279 | else |
11859 | else |
16280 | rxvt_cv_ptys=BSD |
11860 | echo "$as_me: failed program was:" >&5 |
16281 | fi |
11861 | sed 's/^/| /' conftest.$ac_ext >&5 |
16282 | fi |
|
|
16283 | fi |
|
|
16284 | fi |
|
|
16285 | fi |
|
|
16286 | fi |
|
|
16287 | fi |
|
|
16288 | fi |
|
|
16289 | fi |
|
|
16290 | |
11862 | |
|
|
11863 | rxvt_broken_ximcb=no |
16291 | fi |
11864 | fi |
|
|
11865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11866 | fi |
16292 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
11867 | echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
16293 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
11868 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6 |
16294 | |
11869 | |
16295 | if test x$rxvt_cv_ptys = xOPENPTY; then |
11870 | if test x$rxvt_broken_ximcb = xyes; then |
16296 | |
11871 | |
16297 | cat >>confdefs.h <<\_ACEOF |
11872 | cat >>confdefs.h <<\_ACEOF |
16298 | #define PTYS_ARE_OPENPTY 1 |
11873 | #define XIMCB_PROTO_BROKEN 1 |
16299 | _ACEOF |
11874 | _ACEOF |
16300 | |
11875 | |
16301 | fi |
11876 | fi |
16302 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
16303 | |
11877 | |
16304 | cat >>confdefs.h <<\_ACEOF |
|
|
16305 | #define PTYS_ARE_NUMERIC 1 |
|
|
16306 | _ACEOF |
|
|
16307 | |
11878 | |
16308 | fi |
|
|
16309 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
16310 | |
11879 | |
16311 | cat >>confdefs.h <<\_ACEOF |
|
|
16312 | #define PTYS_ARE_PTMX 1 |
|
|
16313 | _ACEOF |
|
|
16314 | |
11880 | |
16315 | fi |
|
|
16316 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
16317 | |
11881 | |
16318 | cat >>confdefs.h <<\_ACEOF |
|
|
16319 | #define PTYS_ARE_PTC 1 |
|
|
16320 | _ACEOF |
|
|
16321 | |
11882 | |
16322 | fi |
|
|
16323 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
16324 | |
11883 | |
16325 | cat >>confdefs.h <<\_ACEOF |
11884 | for ac_header in \ |
16326 | #define PTYS_ARE__GETPTY 1 |
11885 | pty.h \ |
16327 | _ACEOF |
11886 | util.h \ |
|
|
11887 | libutil.h \ |
|
|
11888 | sys/ioctl.h \ |
|
|
11889 | sys/stropts.h \ |
16328 | |
11890 | |
16329 | fi |
|
|
16330 | if test x$rxvt_cv_ptys = xCONVEX; then |
|
|
16331 | |
|
|
16332 | cat >>confdefs.h <<\_ACEOF |
|
|
16333 | #define PTYS_ARE_GETPTY 1 |
|
|
16334 | _ACEOF |
|
|
16335 | |
|
|
16336 | fi |
|
|
16337 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
16338 | |
|
|
16339 | cat >>confdefs.h <<\_ACEOF |
|
|
16340 | #define PTYS_ARE_GETPT 1 |
|
|
16341 | _ACEOF |
|
|
16342 | |
|
|
16343 | fi |
|
|
16344 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
16345 | |
|
|
16346 | cat >>confdefs.h <<\_ACEOF |
|
|
16347 | #define PTYS_ARE_CLONE 1 |
|
|
16348 | _ACEOF |
|
|
16349 | |
|
|
16350 | fi |
|
|
16351 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
|
|
16352 | |
|
|
16353 | cat >>confdefs.h <<\_ACEOF |
|
|
16354 | #define PTYS_ARE_SEARCHED 1 |
|
|
16355 | _ACEOF |
|
|
16356 | |
|
|
16357 | fi |
|
|
16358 | |
|
|
16359 | |
|
|
16360 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
16361 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
16362 | ptys=`echo /dev/pty??` |
|
|
16363 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
16364 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
16365 | if test x$pch1 != x; then |
|
|
16366 | |
|
|
16367 | cat >>confdefs.h <<_ACEOF |
|
|
16368 | #define PTYCHAR1 "$pch1" |
|
|
16369 | _ACEOF |
|
|
16370 | |
|
|
16371 | fi |
|
|
16372 | if test x$pch2 != x; then |
|
|
16373 | |
|
|
16374 | cat >>confdefs.h <<_ACEOF |
|
|
16375 | #define PTYCHAR2 "$pch2" |
|
|
16376 | _ACEOF |
|
|
16377 | |
|
|
16378 | fi |
|
|
16379 | |
|
|
16380 | if test x$support_8bitctrls = xyes; then |
|
|
16381 | |
|
|
16382 | cat >>confdefs.h <<\_ACEOF |
|
|
16383 | #define EIGHT_BIT_CONTROLS 1 |
|
|
16384 | _ACEOF |
|
|
16385 | |
|
|
16386 | fi |
|
|
16387 | if test x$support_tinting = xyes; then |
|
|
16388 | |
|
|
16389 | cat >>confdefs.h <<\_ACEOF |
|
|
16390 | #define TINTING 1 |
|
|
16391 | _ACEOF |
|
|
16392 | |
|
|
16393 | fi |
|
|
16394 | if test x$support_inheritpixmap = xyes; then |
|
|
16395 | |
|
|
16396 | cat >>confdefs.h <<\_ACEOF |
|
|
16397 | #define TRANSPARENT 1 |
|
|
16398 | _ACEOF |
|
|
16399 | |
|
|
16400 | fi |
|
|
16401 | if test x$support_keepscrolling = xno; then |
|
|
16402 | |
|
|
16403 | cat >>confdefs.h <<\_ACEOF |
|
|
16404 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
16405 | _ACEOF |
|
|
16406 | |
|
|
16407 | fi |
|
|
16408 | if test x$support_selectionscrolling = xyes; then |
|
|
16409 | |
|
|
16410 | cat >>confdefs.h <<\_ACEOF |
|
|
16411 | #define SELECTION_SCROLLING 1 |
|
|
16412 | _ACEOF |
|
|
16413 | |
|
|
16414 | fi |
|
|
16415 | if test x$support_menubar = xyes; then |
|
|
16416 | |
|
|
16417 | cat >>confdefs.h <<\_ACEOF |
|
|
16418 | #define MENUBAR 1 |
|
|
16419 | _ACEOF |
|
|
16420 | |
|
|
16421 | fi |
|
|
16422 | if test x$support_frills = xno; then |
|
|
16423 | |
|
|
16424 | cat >>confdefs.h <<\_ACEOF |
|
|
16425 | #define NO_FRILLS 1 |
|
|
16426 | _ACEOF |
|
|
16427 | |
|
|
16428 | fi |
|
|
16429 | if test x$support_linespace = xno; then |
|
|
16430 | |
|
|
16431 | cat >>confdefs.h <<\_ACEOF |
|
|
16432 | #define NO_LINESPACE 1 |
|
|
16433 | _ACEOF |
|
|
16434 | |
|
|
16435 | fi |
|
|
16436 | if test x$support_24bit = xyes; then |
|
|
16437 | |
|
|
16438 | cat >>confdefs.h <<\_ACEOF |
|
|
16439 | #define PREFER_24BIT 1 |
|
|
16440 | _ACEOF |
|
|
16441 | |
|
|
16442 | fi |
|
|
16443 | if test x$support_mousewheel = xyes; then |
|
|
16444 | |
|
|
16445 | cat >>confdefs.h <<\_ACEOF |
|
|
16446 | #define MOUSE_WHEEL 1 |
|
|
16447 | _ACEOF |
|
|
16448 | |
|
|
16449 | fi |
|
|
16450 | if test x$support_mouseslipwheel = xyes; then |
|
|
16451 | |
|
|
16452 | cat >>confdefs.h <<\_ACEOF |
|
|
16453 | #define MOUSE_SLIP_WHEELING 1 |
|
|
16454 | _ACEOF |
|
|
16455 | |
|
|
16456 | fi |
|
|
16457 | if test x$support_utmp = xyes; then |
|
|
16458 | |
|
|
16459 | cat >>confdefs.h <<\_ACEOF |
|
|
16460 | #define UTMP_SUPPORT 1 |
|
|
16461 | _ACEOF |
|
|
16462 | |
|
|
16463 | fi |
|
|
16464 | if test x$support_wtmp = xyes; then |
|
|
16465 | |
|
|
16466 | cat >>confdefs.h <<\_ACEOF |
|
|
16467 | #define WTMP_SUPPORT 1 |
|
|
16468 | _ACEOF |
|
|
16469 | |
|
|
16470 | fi |
|
|
16471 | if test x$support_lastlog = xyes; then |
|
|
16472 | |
|
|
16473 | cat >>confdefs.h <<\_ACEOF |
|
|
16474 | #define LASTLOG_SUPPORT 1 |
|
|
16475 | _ACEOF |
|
|
16476 | |
|
|
16477 | fi |
|
|
16478 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
16479 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
16480 | |
|
|
16481 | cat >>confdefs.h <<\_ACEOF |
|
|
16482 | #define USE_XIM 1 |
|
|
16483 | _ACEOF |
|
|
16484 | |
|
|
16485 | fi |
|
|
16486 | fi |
|
|
16487 | if test x$support_xpm = xyes; then |
|
|
16488 | |
|
|
16489 | cat >>confdefs.h <<\_ACEOF |
|
|
16490 | #define XPM_BACKGROUND 1 |
|
|
16491 | _ACEOF |
|
|
16492 | |
|
|
16493 | fi |
|
|
16494 | if test x$support_scroll_rxvt = xyes; then |
|
|
16495 | |
|
|
16496 | cat >>confdefs.h <<\_ACEOF |
|
|
16497 | #define RXVT_SCROLLBAR 1 |
|
|
16498 | _ACEOF |
|
|
16499 | |
|
|
16500 | scrolltypes="rxvt" |
|
|
16501 | fi |
|
|
16502 | if test x$support_scroll_next = xyes; then |
|
|
16503 | |
|
|
16504 | cat >>confdefs.h <<\_ACEOF |
|
|
16505 | #define NEXT_SCROLLBAR 1 |
|
|
16506 | _ACEOF |
|
|
16507 | |
|
|
16508 | scrolltypes="$scrolltypes next" |
|
|
16509 | fi |
|
|
16510 | if test x$support_scroll_xterm = xyes; then |
|
|
16511 | |
|
|
16512 | cat >>confdefs.h <<\_ACEOF |
|
|
16513 | #define XTERM_SCROLLBAR 1 |
|
|
16514 | _ACEOF |
|
|
16515 | |
|
|
16516 | scrolltypes="$scrolltypes xterm" |
|
|
16517 | fi |
|
|
16518 | if test x$support_scroll_plain = xyes; then |
|
|
16519 | |
|
|
16520 | cat >>confdefs.h <<\_ACEOF |
|
|
16521 | #define PLAIN_SCROLLBAR 1 |
|
|
16522 | _ACEOF |
|
|
16523 | |
|
|
16524 | scrolltypes="$scrolltypes plain" |
|
|
16525 | fi |
|
|
16526 | if test x$support_pointer_blank = xyes; then |
|
|
16527 | |
|
|
16528 | cat >>confdefs.h <<\_ACEOF |
|
|
16529 | #define POINTER_BLANK 1 |
|
|
16530 | _ACEOF |
|
|
16531 | |
|
|
16532 | fi |
|
|
16533 | if test x$support_cursor_blink = xyes; then |
|
|
16534 | |
|
|
16535 | cat >>confdefs.h <<\_ACEOF |
|
|
16536 | #define CURSOR_BLINK 1 |
|
|
16537 | _ACEOF |
|
|
16538 | |
|
|
16539 | fi |
|
|
16540 | if test x$support_text_blink = xyes; then |
|
|
16541 | |
|
|
16542 | cat >>confdefs.h <<\_ACEOF |
|
|
16543 | #define TEXT_BLINK 1 |
|
|
16544 | _ACEOF |
|
|
16545 | |
|
|
16546 | fi |
|
|
16547 | if test x$support_unicode3 = xyes; then |
|
|
16548 | |
|
|
16549 | cat >>confdefs.h <<\_ACEOF |
|
|
16550 | #define UNICODE_3 1 |
|
|
16551 | _ACEOF |
|
|
16552 | |
|
|
16553 | fi |
|
|
16554 | if test x$support_combining = xyes; then |
|
|
16555 | |
|
|
16556 | cat >>confdefs.h <<\_ACEOF |
|
|
16557 | #define ENABLE_COMBINING 1 |
|
|
16558 | _ACEOF |
|
|
16559 | |
|
|
16560 | fi |
|
|
16561 | if test x$codesets = xall; then |
|
|
16562 | codesets=jp,jp-ext,kr,cn,cn-ext |
|
|
16563 | fi |
|
|
16564 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
16565 | |
|
|
16566 | cat >>confdefs.h <<\_ACEOF |
|
|
16567 | #define ENCODING_EU 1 |
|
|
16568 | _ACEOF |
|
|
16569 | |
|
|
16570 | |
|
|
16571 | cat >>confdefs.h <<\_ACEOF |
|
|
16572 | #define ENCODING_VN 1 |
|
|
16573 | _ACEOF |
|
|
16574 | |
|
|
16575 | case "$codeset" in |
|
|
16576 | JP ) |
|
|
16577 | cat >>confdefs.h <<\_ACEOF |
|
|
16578 | #define ENCODING_JP 1 |
|
|
16579 | _ACEOF |
|
|
16580 | ;; |
|
|
16581 | JP_EXT ) |
|
|
16582 | cat >>confdefs.h <<\_ACEOF |
|
|
16583 | #define ENCODING_JP_EXT 1 |
|
|
16584 | _ACEOF |
|
|
16585 | ;; |
|
|
16586 | KR ) |
|
|
16587 | cat >>confdefs.h <<\_ACEOF |
|
|
16588 | #define ENCODING_KR 1 |
|
|
16589 | _ACEOF |
|
|
16590 | ;; |
|
|
16591 | CN ) |
|
|
16592 | cat >>confdefs.h <<\_ACEOF |
|
|
16593 | #define ENCODING_CN 1 |
|
|
16594 | _ACEOF |
|
|
16595 | ;; |
|
|
16596 | CN_EXT ) |
|
|
16597 | cat >>confdefs.h <<\_ACEOF |
|
|
16598 | #define ENCODING_CN_EXT 1 |
|
|
16599 | _ACEOF |
|
|
16600 | ;; |
|
|
16601 | esac |
|
|
16602 | done |
|
|
16603 | |
|
|
16604 | |
|
|
16605 | CFLAGS=${CFLAGS--O} |
|
|
16606 | LDFLAGS=${LDFLAGS--O} |
|
|
16607 | |
|
|
16608 | CPPFLAGS="$CPPFLAGS" |
|
|
16609 | |
|
|
16610 | |
|
|
16611 | |
|
|
16612 | |
|
|
16613 | |
|
|
16614 | |
|
|
16615 | |
|
|
16616 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
16617 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
16618 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
16619 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
16620 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
16621 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
16622 | fi |
|
|
16623 | |
|
|
16624 | |
|
|
16625 | |
|
|
16626 | |
|
|
16627 | |
|
|
16628 | if test x$support_addstrings = xno; then |
|
|
16629 | |
|
|
16630 | cat >>confdefs.h <<\_ACEOF |
|
|
16631 | #define NO_STRINGS 1 |
|
|
16632 | _ACEOF |
|
|
16633 | |
|
|
16634 | fi |
|
|
16635 | |
|
|
16636 | MCOMMON=./autoconf/Make.common |
|
|
16637 | |
|
|
16638 | |
|
|
16639 | test "$program_prefix" != NONE && |
|
|
16640 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
16641 | # Use a double $ so make ignores it. |
|
|
16642 | test "$program_suffix" != NONE && |
|
|
16643 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
16644 | # Double any \ or $. echo might interpret backslashes. |
|
|
16645 | # By default was `s,x,x', remove it if useless. |
|
|
16646 | cat <<\_ACEOF >conftest.sed |
|
|
16647 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
16648 | _ACEOF |
|
|
16649 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
16650 | rm conftest.sed |
|
|
16651 | |
|
|
16652 | |
|
|
16653 | |
|
|
16654 | |
|
|
16655 | |
|
|
16656 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16657 | include_stdint_h="#include <stdint.h>" |
|
|
16658 | else |
|
|
16659 | include_stdint_h="/* #include <stdint.h> */" |
|
|
16660 | fi |
|
|
16661 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16662 | include_stdarg_h="#include <cstdarg>" |
|
|
16663 | else |
|
|
16664 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
16665 | fi |
|
|
16666 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16667 | include_stdlib_h="#include <cstdlib>" |
|
|
16668 | else |
|
|
16669 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
16670 | fi |
|
|
16671 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16672 | include_unistd_h="#include <unistd.h>" |
|
|
16673 | else |
|
|
16674 | include_unistd_h="/* #include <unistd.h> */" |
|
|
16675 | fi |
|
|
16676 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16677 | include_string_h="#include <cstring>" |
|
|
16678 | else |
|
|
16679 | include_string_h="/* #include <cstring> */" |
|
|
16680 | fi |
|
|
16681 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16682 | include_fcntl_h="#include <fcntl.h>" |
|
|
16683 | else |
|
|
16684 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
16685 | fi |
|
|
16686 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16687 | include_util_h="#include <util.h>" |
|
|
16688 | else |
|
|
16689 | include_util_h="/* #include <util.h> */" |
|
|
16690 | fi |
|
|
16691 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16692 | include_assert_h="#include <assert.h>" |
|
|
16693 | else |
|
|
16694 | include_assert_h="/* #include <assert.h> */" |
|
|
16695 | fi |
|
|
16696 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16697 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
16698 | else |
|
|
16699 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
16700 | fi |
|
|
16701 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16702 | include_sys_select_h="#include <sys/select.h>" |
|
|
16703 | else |
|
|
16704 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
16705 | fi |
|
|
16706 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16707 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
16708 | else |
|
|
16709 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
16710 | fi |
|
|
16711 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16712 | include_sys_time_h="#include <sys/time.h>" |
|
|
16713 | else |
|
|
16714 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
16715 | fi |
|
|
16716 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
16717 | include_time_h="#include <time.h>" |
|
|
16718 | else |
|
|
16719 | include_time_h="/* #include <time.h> */" |
|
|
16720 | fi |
|
|
16721 | |
|
|
16722 | if test x$support_xft = xyes; then |
|
|
16723 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
16724 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
16725 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
16726 | |
|
|
16727 | |
|
|
16728 | for ac_header in X11/Xft/Xft.h |
|
|
16729 | do |
11891 | do |
16730 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11892 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16732 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11894 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11895 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
… | |
… | |
16756 | grep -v '^ *+' conftest.er1 >conftest.err |
11918 | grep -v '^ *+' conftest.er1 >conftest.err |
16757 | rm -f conftest.er1 |
11919 | rm -f conftest.er1 |
16758 | cat conftest.err >&5 |
11920 | cat conftest.err >&5 |
16759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16760 | (exit $ac_status); } && |
11922 | (exit $ac_status); } && |
16761 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
11923 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
11924 | || test ! -s conftest.err' |
16762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16763 | (eval $ac_try) 2>&5 |
11926 | (eval $ac_try) 2>&5 |
16764 | ac_status=$? |
11927 | ac_status=$? |
16765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16766 | (exit $ac_status); }; } && |
11929 | (exit $ac_status); }; } && |
… | |
… | |
16867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
16868 | cat >>confdefs.h <<_ACEOF |
12031 | cat >>confdefs.h <<_ACEOF |
16869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12032 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
16870 | _ACEOF |
12033 | _ACEOF |
16871 | |
12034 | |
|
|
12035 | fi |
|
|
12036 | |
|
|
12037 | done |
|
|
12038 | |
|
|
12039 | |
|
|
12040 | |
|
|
12041 | |
|
|
12042 | |
|
|
12043 | |
|
|
12044 | |
|
|
12045 | |
|
|
12046 | |
|
|
12047 | |
|
|
12048 | |
|
|
12049 | for ac_func in \ |
|
|
12050 | revoke \ |
|
|
12051 | _getpty \ |
|
|
12052 | getpt \ |
|
|
12053 | posix_openpt \ |
|
|
12054 | isastream \ |
|
|
12055 | setuid \ |
|
|
12056 | seteuid \ |
|
|
12057 | setreuid \ |
|
|
12058 | setresuid \ |
|
|
12059 | |
|
|
12060 | do |
|
|
12061 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12062 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12063 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12064 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12066 | else |
|
|
12067 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12068 | /* confdefs.h. */ |
|
|
12069 | _ACEOF |
|
|
12070 | cat confdefs.h >>conftest.$ac_ext |
|
|
12071 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12072 | /* end confdefs.h. */ |
|
|
12073 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12074 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12075 | #define $ac_func innocuous_$ac_func |
|
|
12076 | |
|
|
12077 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12078 | which can conflict with char $ac_func (); below. |
|
|
12079 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12080 | <limits.h> exists even on freestanding compilers. */ |
|
|
12081 | |
|
|
12082 | #ifdef __STDC__ |
|
|
12083 | # include <limits.h> |
|
|
12084 | #else |
|
|
12085 | # include <assert.h> |
|
|
12086 | #endif |
|
|
12087 | |
|
|
12088 | #undef $ac_func |
|
|
12089 | |
|
|
12090 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12091 | #ifdef __cplusplus |
|
|
12092 | extern "C" |
|
|
12093 | { |
|
|
12094 | #endif |
|
|
12095 | /* We use char because int might match the return type of a gcc2 |
|
|
12096 | builtin and then its argument prototype would still apply. */ |
|
|
12097 | char $ac_func (); |
|
|
12098 | /* The GNU C library defines this for functions which it implements |
|
|
12099 | to always fail with ENOSYS. Some functions are actually named |
|
|
12100 | something starting with __ and the normal name is an alias. */ |
|
|
12101 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12102 | choke me |
|
|
12103 | #else |
|
|
12104 | char (*f) () = $ac_func; |
|
|
12105 | #endif |
|
|
12106 | #ifdef __cplusplus |
|
|
12107 | } |
|
|
12108 | #endif |
|
|
12109 | |
|
|
12110 | int |
|
|
12111 | main () |
|
|
12112 | { |
|
|
12113 | return f != $ac_func; |
|
|
12114 | ; |
|
|
12115 | return 0; |
|
|
12116 | } |
|
|
12117 | _ACEOF |
|
|
12118 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12120 | (eval $ac_link) 2>conftest.er1 |
|
|
12121 | ac_status=$? |
|
|
12122 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12123 | rm -f conftest.er1 |
|
|
12124 | cat conftest.err >&5 |
|
|
12125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12126 | (exit $ac_status); } && |
|
|
12127 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12128 | || test ! -s conftest.err' |
|
|
12129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12130 | (eval $ac_try) 2>&5 |
|
|
12131 | ac_status=$? |
|
|
12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12133 | (exit $ac_status); }; } && |
|
|
12134 | { ac_try='test -s conftest$ac_exeext' |
|
|
12135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12136 | (eval $ac_try) 2>&5 |
|
|
12137 | ac_status=$? |
|
|
12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12139 | (exit $ac_status); }; }; then |
|
|
12140 | eval "$as_ac_var=yes" |
|
|
12141 | else |
|
|
12142 | echo "$as_me: failed program was:" >&5 |
|
|
12143 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12144 | |
|
|
12145 | eval "$as_ac_var=no" |
|
|
12146 | fi |
|
|
12147 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12148 | conftest$ac_exeext conftest.$ac_ext |
|
|
12149 | fi |
|
|
12150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12151 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12152 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12153 | cat >>confdefs.h <<_ACEOF |
|
|
12154 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12155 | _ACEOF |
|
|
12156 | |
|
|
12157 | fi |
|
|
12158 | done |
|
|
12159 | |
|
|
12160 | |
|
|
12161 | have_clone=no |
|
|
12162 | |
|
|
12163 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12164 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12165 | if test -e /dev/ptym/clone; then |
|
|
12166 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12167 | echo "${ECHO_T}yes" >&6 |
|
|
12168 | |
|
|
12169 | cat >>confdefs.h <<\_ACEOF |
|
|
12170 | #define HAVE_DEV_CLONE 1 |
|
|
12171 | _ACEOF |
|
|
12172 | |
|
|
12173 | |
|
|
12174 | cat >>confdefs.h <<\_ACEOF |
|
|
12175 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12176 | _ACEOF |
|
|
12177 | |
|
|
12178 | have_clone=yes |
|
|
12179 | else |
|
|
12180 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12181 | echo "${ECHO_T}no" >&6 |
|
|
12182 | fi |
|
|
12183 | |
|
|
12184 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12185 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12186 | if test -e /dev/ptc; then |
|
|
12187 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12188 | echo "${ECHO_T}yes" >&6 |
|
|
12189 | |
|
|
12190 | cat >>confdefs.h <<\_ACEOF |
|
|
12191 | #define HAVE_DEV_PTC 1 |
|
|
12192 | _ACEOF |
|
|
12193 | |
|
|
12194 | |
|
|
12195 | cat >>confdefs.h <<\_ACEOF |
|
|
12196 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12197 | _ACEOF |
|
|
12198 | |
|
|
12199 | have_clone=yes |
|
|
12200 | else |
|
|
12201 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12202 | echo "${ECHO_T}no" >&6 |
|
|
12203 | fi |
|
|
12204 | |
|
|
12205 | case $host in |
|
|
12206 | *-*-cygwin*) |
|
|
12207 | have_clone=yes |
|
|
12208 | |
|
|
12209 | cat >>confdefs.h <<\_ACEOF |
|
|
12210 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12211 | _ACEOF |
|
|
12212 | |
|
|
12213 | ;; |
|
|
12214 | *) |
|
|
12215 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12216 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12217 | if test -e /dev/ptmx; then |
|
|
12218 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12219 | echo "${ECHO_T}yes" >&6 |
|
|
12220 | |
|
|
12221 | cat >>confdefs.h <<\_ACEOF |
|
|
12222 | #define HAVE_DEV_PTMX 1 |
|
|
12223 | _ACEOF |
|
|
12224 | |
|
|
12225 | |
|
|
12226 | cat >>confdefs.h <<\_ACEOF |
|
|
12227 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12228 | _ACEOF |
|
|
12229 | |
|
|
12230 | have_clone=yes |
|
|
12231 | else |
|
|
12232 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12233 | echo "${ECHO_T}no" >&6 |
|
|
12234 | fi |
|
|
12235 | ;; |
|
|
12236 | esac |
|
|
12237 | |
|
|
12238 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12239 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12240 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12241 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12242 | /* confdefs.h. */ |
|
|
12243 | _ACEOF |
|
|
12244 | cat confdefs.h >>conftest.$ac_ext |
|
|
12245 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12246 | /* end confdefs.h. */ |
|
|
12247 | #include <stdlib.h> |
|
|
12248 | int |
|
|
12249 | main () |
|
|
12250 | { |
|
|
12251 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12252 | ; |
|
|
12253 | return 0; |
|
|
12254 | } |
|
|
12255 | _ACEOF |
|
|
12256 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12258 | (eval $ac_link) 2>conftest.er1 |
|
|
12259 | ac_status=$? |
|
|
12260 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12261 | rm -f conftest.er1 |
|
|
12262 | cat conftest.err >&5 |
|
|
12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12264 | (exit $ac_status); } && |
|
|
12265 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12266 | || test ! -s conftest.err' |
|
|
12267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12268 | (eval $ac_try) 2>&5 |
|
|
12269 | ac_status=$? |
|
|
12270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12271 | (exit $ac_status); }; } && |
|
|
12272 | { ac_try='test -s conftest$ac_exeext' |
|
|
12273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12274 | (eval $ac_try) 2>&5 |
|
|
12275 | ac_status=$? |
|
|
12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12277 | (exit $ac_status); }; }; then |
|
|
12278 | unix98_pty=yes |
|
|
12279 | |
|
|
12280 | cat >>confdefs.h <<\_ACEOF |
|
|
12281 | #define UNIX98_PTY 1 |
|
|
12282 | _ACEOF |
|
|
12283 | |
|
|
12284 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12285 | echo "${ECHO_T}yes" >&6 |
|
|
12286 | else |
|
|
12287 | echo "$as_me: failed program was:" >&5 |
|
|
12288 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12289 | |
|
|
12290 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12291 | echo "${ECHO_T}no" >&6 |
|
|
12292 | fi |
|
|
12293 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12294 | conftest$ac_exeext conftest.$ac_ext |
|
|
12295 | fi |
|
|
12296 | |
|
|
12297 | if test -z "$unix98_pty"; then |
|
|
12298 | |
|
|
12299 | for ac_func in openpty |
|
|
12300 | do |
|
|
12301 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12302 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12303 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12304 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12306 | else |
|
|
12307 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12308 | /* confdefs.h. */ |
|
|
12309 | _ACEOF |
|
|
12310 | cat confdefs.h >>conftest.$ac_ext |
|
|
12311 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12312 | /* end confdefs.h. */ |
|
|
12313 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12314 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12315 | #define $ac_func innocuous_$ac_func |
|
|
12316 | |
|
|
12317 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12318 | which can conflict with char $ac_func (); below. |
|
|
12319 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12320 | <limits.h> exists even on freestanding compilers. */ |
|
|
12321 | |
|
|
12322 | #ifdef __STDC__ |
|
|
12323 | # include <limits.h> |
|
|
12324 | #else |
|
|
12325 | # include <assert.h> |
|
|
12326 | #endif |
|
|
12327 | |
|
|
12328 | #undef $ac_func |
|
|
12329 | |
|
|
12330 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12331 | #ifdef __cplusplus |
|
|
12332 | extern "C" |
|
|
12333 | { |
|
|
12334 | #endif |
|
|
12335 | /* We use char because int might match the return type of a gcc2 |
|
|
12336 | builtin and then its argument prototype would still apply. */ |
|
|
12337 | char $ac_func (); |
|
|
12338 | /* The GNU C library defines this for functions which it implements |
|
|
12339 | to always fail with ENOSYS. Some functions are actually named |
|
|
12340 | something starting with __ and the normal name is an alias. */ |
|
|
12341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12342 | choke me |
|
|
12343 | #else |
|
|
12344 | char (*f) () = $ac_func; |
|
|
12345 | #endif |
|
|
12346 | #ifdef __cplusplus |
|
|
12347 | } |
|
|
12348 | #endif |
|
|
12349 | |
|
|
12350 | int |
|
|
12351 | main () |
|
|
12352 | { |
|
|
12353 | return f != $ac_func; |
|
|
12354 | ; |
|
|
12355 | return 0; |
|
|
12356 | } |
|
|
12357 | _ACEOF |
|
|
12358 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12360 | (eval $ac_link) 2>conftest.er1 |
|
|
12361 | ac_status=$? |
|
|
12362 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12363 | rm -f conftest.er1 |
|
|
12364 | cat conftest.err >&5 |
|
|
12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12366 | (exit $ac_status); } && |
|
|
12367 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12368 | || test ! -s conftest.err' |
|
|
12369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12370 | (eval $ac_try) 2>&5 |
|
|
12371 | ac_status=$? |
|
|
12372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12373 | (exit $ac_status); }; } && |
|
|
12374 | { ac_try='test -s conftest$ac_exeext' |
|
|
12375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12376 | (eval $ac_try) 2>&5 |
|
|
12377 | ac_status=$? |
|
|
12378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12379 | (exit $ac_status); }; }; then |
|
|
12380 | eval "$as_ac_var=yes" |
|
|
12381 | else |
|
|
12382 | echo "$as_me: failed program was:" >&5 |
|
|
12383 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12384 | |
|
|
12385 | eval "$as_ac_var=no" |
|
|
12386 | fi |
|
|
12387 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12388 | conftest$ac_exeext conftest.$ac_ext |
|
|
12389 | fi |
|
|
12390 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12391 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12392 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12393 | cat >>confdefs.h <<_ACEOF |
|
|
12394 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12395 | _ACEOF |
|
|
12396 | |
|
|
12397 | else |
|
|
12398 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12399 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12400 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12402 | else |
|
|
12403 | ac_check_lib_save_LIBS=$LIBS |
|
|
12404 | LIBS="-lutil $LIBS" |
|
|
12405 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12406 | /* confdefs.h. */ |
|
|
12407 | _ACEOF |
|
|
12408 | cat confdefs.h >>conftest.$ac_ext |
|
|
12409 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12410 | /* end confdefs.h. */ |
|
|
12411 | |
|
|
12412 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12413 | #ifdef __cplusplus |
|
|
12414 | extern "C" |
|
|
12415 | #endif |
|
|
12416 | /* We use char because int might match the return type of a gcc2 |
|
|
12417 | builtin and then its argument prototype would still apply. */ |
|
|
12418 | char openpty (); |
|
|
12419 | int |
|
|
12420 | main () |
|
|
12421 | { |
|
|
12422 | openpty (); |
|
|
12423 | ; |
|
|
12424 | return 0; |
|
|
12425 | } |
|
|
12426 | _ACEOF |
|
|
12427 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12429 | (eval $ac_link) 2>conftest.er1 |
|
|
12430 | ac_status=$? |
|
|
12431 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12432 | rm -f conftest.er1 |
|
|
12433 | cat conftest.err >&5 |
|
|
12434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12435 | (exit $ac_status); } && |
|
|
12436 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12437 | || test ! -s conftest.err' |
|
|
12438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12439 | (eval $ac_try) 2>&5 |
|
|
12440 | ac_status=$? |
|
|
12441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12442 | (exit $ac_status); }; } && |
|
|
12443 | { ac_try='test -s conftest$ac_exeext' |
|
|
12444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12445 | (eval $ac_try) 2>&5 |
|
|
12446 | ac_status=$? |
|
|
12447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12448 | (exit $ac_status); }; }; then |
|
|
12449 | ac_cv_lib_util_openpty=yes |
|
|
12450 | else |
|
|
12451 | echo "$as_me: failed program was:" >&5 |
|
|
12452 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12453 | |
|
|
12454 | ac_cv_lib_util_openpty=no |
|
|
12455 | fi |
|
|
12456 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12457 | conftest$ac_exeext conftest.$ac_ext |
|
|
12458 | LIBS=$ac_check_lib_save_LIBS |
|
|
12459 | fi |
|
|
12460 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12461 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12462 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12463 | cat >>confdefs.h <<\_ACEOF |
|
|
12464 | #define HAVE_OPENPTY 1 |
|
|
12465 | _ACEOF |
|
|
12466 | LIBS="$LIBS -lutil" |
|
|
12467 | fi |
|
|
12468 | |
|
|
12469 | fi |
|
|
12470 | done |
|
|
12471 | |
|
|
12472 | fi |
|
|
12473 | |
|
|
12474 | |
|
|
12475 | |
|
|
12476 | echo "$as_me:$LINENO: checking for tty group" >&5 |
|
|
12477 | echo $ECHO_N "checking for tty group... $ECHO_C" >&6 |
|
|
12478 | if test "${tty_group+set}" = set; then |
|
|
12479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12480 | else |
|
|
12481 | if test "$cross_compiling" = yes; then |
|
|
12482 | tty_group=no |
|
|
12483 | else |
|
|
12484 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12485 | /* confdefs.h. */ |
|
|
12486 | _ACEOF |
|
|
12487 | cat confdefs.h >>conftest.$ac_ext |
|
|
12488 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12489 | /* end confdefs.h. */ |
|
|
12490 | |
|
|
12491 | #include <sys/types.h> |
|
|
12492 | #include <sys/stat.h> |
|
|
12493 | #include <unistd.h> |
|
|
12494 | #include <grp.h> |
|
|
12495 | |
|
|
12496 | main() |
|
|
12497 | { |
|
|
12498 | struct stat st; |
|
|
12499 | struct group *gr; |
|
|
12500 | char *tty; |
|
|
12501 | gr = getgrnam("tty"); |
|
|
12502 | tty = ttyname(0); |
|
|
12503 | if (gr != 0 |
|
|
12504 | && tty != 0 |
|
|
12505 | && (stat(tty, &st)) == 0 |
|
|
12506 | && st.st_gid == gr->gr_gid) |
|
|
12507 | return 0; |
|
|
12508 | else |
|
|
12509 | return 1; |
|
|
12510 | } |
|
|
12511 | _ACEOF |
|
|
12512 | rm -f conftest$ac_exeext |
|
|
12513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12514 | (eval $ac_link) 2>&5 |
|
|
12515 | ac_status=$? |
|
|
12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12517 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12519 | (eval $ac_try) 2>&5 |
|
|
12520 | ac_status=$? |
|
|
12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12522 | (exit $ac_status); }; }; then |
|
|
12523 | tty_group=yes |
|
|
12524 | else |
|
|
12525 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12526 | echo "$as_me: failed program was:" >&5 |
|
|
12527 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12528 | |
|
|
12529 | ( exit $ac_status ) |
|
|
12530 | tty_group=no |
|
|
12531 | fi |
|
|
12532 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12533 | fi |
|
|
12534 | fi |
|
|
12535 | echo "$as_me:$LINENO: result: $tty_group" >&5 |
|
|
12536 | echo "${ECHO_T}$tty_group" >&6 |
|
|
12537 | if test x$tty_group = xyes; then |
|
|
12538 | |
|
|
12539 | cat >>confdefs.h <<\_ACEOF |
|
|
12540 | #define TTY_GID_SUPPORT 1 |
|
|
12541 | _ACEOF |
|
|
12542 | |
|
|
12543 | fi |
|
|
12544 | |
|
|
12545 | if test x$support_xft = xyes; then |
|
|
12546 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
12547 | set dummy pkg-config; ac_word=$2 |
|
|
12548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12550 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
|
|
12551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12552 | else |
|
|
12553 | case $PKG_CONFIG in |
|
|
12554 | [\\/]* | ?:[\\/]*) |
|
|
12555 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
|
12556 | ;; |
|
|
12557 | *) |
|
|
12558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12559 | for as_dir in $PATH |
|
|
12560 | do |
|
|
12561 | IFS=$as_save_IFS |
|
|
12562 | test -z "$as_dir" && as_dir=. |
|
|
12563 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12565 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12567 | break 2 |
|
|
12568 | fi |
|
|
12569 | done |
|
|
12570 | done |
|
|
12571 | |
|
|
12572 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
12573 | ;; |
|
|
12574 | esac |
|
|
12575 | fi |
|
|
12576 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
12577 | |
|
|
12578 | if test -n "$PKG_CONFIG"; then |
|
|
12579 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
12580 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
|
|
12581 | else |
|
|
12582 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12583 | echo "${ECHO_T}no" >&6 |
|
|
12584 | fi |
|
|
12585 | |
|
|
12586 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
12587 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
|
|
12588 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
|
|
12589 | else |
|
|
12590 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
12591 | set dummy xft-config; ac_word=$2 |
|
|
12592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12594 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
|
|
12595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12596 | else |
|
|
12597 | case $XFT_CONFIG in |
|
|
12598 | [\\/]* | ?:[\\/]*) |
|
|
12599 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
12600 | ;; |
|
|
12601 | *) |
|
|
12602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12603 | for as_dir in $PATH |
|
|
12604 | do |
|
|
12605 | IFS=$as_save_IFS |
|
|
12606 | test -z "$as_dir" && as_dir=. |
|
|
12607 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12609 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12611 | break 2 |
|
|
12612 | fi |
|
|
12613 | done |
|
|
12614 | done |
|
|
12615 | |
|
|
12616 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
12617 | ;; |
|
|
12618 | esac |
|
|
12619 | fi |
|
|
12620 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
12621 | |
|
|
12622 | if test -n "$XFT_CONFIG"; then |
|
|
12623 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
|
|
12624 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
|
|
12625 | else |
|
|
12626 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12627 | echo "${ECHO_T}no" >&6 |
|
|
12628 | fi |
|
|
12629 | |
|
|
12630 | if test $XFT_CONFIG != no; then |
|
|
12631 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
|
|
12632 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
12633 | fi |
|
|
12634 | fi |
|
|
12635 | |
|
|
12636 | |
|
|
12637 | for ac_header in X11/Xft/Xft.h |
|
|
12638 | do |
|
|
12639 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12641 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12645 | fi |
|
|
12646 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12647 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12648 | else |
|
|
12649 | # Is the header compilable? |
|
|
12650 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12651 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12652 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12653 | /* confdefs.h. */ |
|
|
12654 | _ACEOF |
|
|
12655 | cat confdefs.h >>conftest.$ac_ext |
|
|
12656 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12657 | /* end confdefs.h. */ |
|
|
12658 | $ac_includes_default |
|
|
12659 | #include <$ac_header> |
|
|
12660 | _ACEOF |
|
|
12661 | rm -f conftest.$ac_objext |
|
|
12662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12663 | (eval $ac_compile) 2>conftest.er1 |
|
|
12664 | ac_status=$? |
|
|
12665 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12666 | rm -f conftest.er1 |
|
|
12667 | cat conftest.err >&5 |
|
|
12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12669 | (exit $ac_status); } && |
|
|
12670 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12671 | || 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_objext' |
|
|
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_header_compiler=yes |
|
|
12684 | else |
|
|
12685 | echo "$as_me: failed program was:" >&5 |
|
|
12686 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12687 | |
|
|
12688 | ac_header_compiler=no |
|
|
12689 | fi |
|
|
12690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12691 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12692 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12693 | |
|
|
12694 | # Is the header present? |
|
|
12695 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12696 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12697 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12698 | /* confdefs.h. */ |
|
|
12699 | _ACEOF |
|
|
12700 | cat confdefs.h >>conftest.$ac_ext |
|
|
12701 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12702 | /* end confdefs.h. */ |
|
|
12703 | #include <$ac_header> |
|
|
12704 | _ACEOF |
|
|
12705 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12706 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12707 | ac_status=$? |
|
|
12708 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12709 | rm -f conftest.er1 |
|
|
12710 | cat conftest.err >&5 |
|
|
12711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12712 | (exit $ac_status); } >/dev/null; then |
|
|
12713 | if test -s conftest.err; then |
|
|
12714 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12715 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12716 | else |
|
|
12717 | ac_cpp_err= |
|
|
12718 | fi |
|
|
12719 | else |
|
|
12720 | ac_cpp_err=yes |
|
|
12721 | fi |
|
|
12722 | if test -z "$ac_cpp_err"; then |
|
|
12723 | ac_header_preproc=yes |
|
|
12724 | else |
|
|
12725 | echo "$as_me: failed program was:" >&5 |
|
|
12726 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12727 | |
|
|
12728 | ac_header_preproc=no |
|
|
12729 | fi |
|
|
12730 | rm -f conftest.err conftest.$ac_ext |
|
|
12731 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12732 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12733 | |
|
|
12734 | # So? What about this header? |
|
|
12735 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12736 | yes:no: ) |
|
|
12737 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12738 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12739 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12740 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12741 | ac_header_preproc=yes |
|
|
12742 | ;; |
|
|
12743 | no:yes:* ) |
|
|
12744 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12745 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12746 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12747 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12748 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12749 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12750 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12751 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12752 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12753 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12754 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12755 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12756 | ( |
|
|
12757 | cat <<\_ASBOX |
|
|
12758 | ## ------------------------------------------ ## |
|
|
12759 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12760 | ## ------------------------------------------ ## |
|
|
12761 | _ASBOX |
|
|
12762 | ) | |
|
|
12763 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12764 | ;; |
|
|
12765 | esac |
|
|
12766 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12767 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12768 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12770 | else |
|
|
12771 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12772 | fi |
|
|
12773 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12774 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12775 | |
|
|
12776 | fi |
|
|
12777 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12778 | cat >>confdefs.h <<_ACEOF |
|
|
12779 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12780 | _ACEOF |
|
|
12781 | |
16872 | else |
12782 | else |
16873 | support_xft=no |
12783 | support_xft=no |
16874 | fi |
12784 | fi |
16875 | |
12785 | |
16876 | done |
12786 | done |
… | |
… | |
16912 | grep -v '^ *+' conftest.er1 >conftest.err |
12822 | grep -v '^ *+' conftest.er1 >conftest.err |
16913 | rm -f conftest.er1 |
12823 | rm -f conftest.er1 |
16914 | cat conftest.err >&5 |
12824 | cat conftest.err >&5 |
16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16916 | (exit $ac_status); } && |
12826 | (exit $ac_status); } && |
16917 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
12827 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
12828 | || test ! -s conftest.err' |
16918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16919 | (eval $ac_try) 2>&5 |
12830 | (eval $ac_try) 2>&5 |
16920 | ac_status=$? |
12831 | ac_status=$? |
16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16922 | (exit $ac_status); }; } && |
12833 | (exit $ac_status); }; } && |
… | |
… | |
16957 | #define XFT 1 |
12868 | #define XFT 1 |
16958 | _ACEOF |
12869 | _ACEOF |
16959 | |
12870 | |
16960 | fi |
12871 | fi |
16961 | fi |
12872 | fi |
|
|
12873 | if test x$support_styles = xyes; then |
16962 | |
12874 | |
|
|
12875 | cat >>confdefs.h <<\_ACEOF |
|
|
12876 | #define ENABLE_STYLES 1 |
|
|
12877 | _ACEOF |
|
|
12878 | |
|
|
12879 | fi |
|
|
12880 | if test x$support_iso14755 = xyes; then |
|
|
12881 | |
|
|
12882 | cat >>confdefs.h <<\_ACEOF |
|
|
12883 | #define ISO_14755 1 |
|
|
12884 | _ACEOF |
|
|
12885 | |
|
|
12886 | fi |
|
|
12887 | if test x$support_8bitctrls = xyes; then |
|
|
12888 | |
|
|
12889 | cat >>confdefs.h <<\_ACEOF |
|
|
12890 | #define EIGHT_BIT_CONTROLS 1 |
|
|
12891 | _ACEOF |
|
|
12892 | |
|
|
12893 | fi |
|
|
12894 | if test x$support_fading = xyes; then |
|
|
12895 | |
|
|
12896 | cat >>confdefs.h <<\_ACEOF |
|
|
12897 | #define OFF_FOCUS_FADING 1 |
|
|
12898 | _ACEOF |
|
|
12899 | |
|
|
12900 | fi |
|
|
12901 | if test x$support_tinting = xyes; then |
|
|
12902 | |
|
|
12903 | cat >>confdefs.h <<\_ACEOF |
|
|
12904 | #define TINTING 1 |
|
|
12905 | _ACEOF |
|
|
12906 | |
|
|
12907 | fi |
|
|
12908 | if test x$support_inheritpixmap = xyes; then |
|
|
12909 | |
|
|
12910 | cat >>confdefs.h <<\_ACEOF |
|
|
12911 | #define TRANSPARENT 1 |
|
|
12912 | _ACEOF |
|
|
12913 | |
|
|
12914 | fi |
|
|
12915 | if test x$support_keepscrolling = xno; then |
|
|
12916 | |
|
|
12917 | cat >>confdefs.h <<\_ACEOF |
|
|
12918 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
12919 | _ACEOF |
|
|
12920 | |
|
|
12921 | fi |
|
|
12922 | if test x$support_selectionscrolling = xyes; then |
|
|
12923 | |
|
|
12924 | cat >>confdefs.h <<\_ACEOF |
|
|
12925 | #define SELECTION_SCROLLING 1 |
|
|
12926 | _ACEOF |
|
|
12927 | |
|
|
12928 | fi |
|
|
12929 | if test x$support_frills = xyes; then |
|
|
12930 | |
|
|
12931 | cat >>confdefs.h <<\_ACEOF |
|
|
12932 | #define ENABLE_FRILLS 1 |
|
|
12933 | _ACEOF |
|
|
12934 | |
|
|
12935 | fi |
|
|
12936 | if test x$support_mousewheel = xyes; then |
|
|
12937 | |
|
|
12938 | cat >>confdefs.h <<\_ACEOF |
|
|
12939 | #define MOUSE_WHEEL 1 |
|
|
12940 | _ACEOF |
|
|
12941 | |
|
|
12942 | fi |
|
|
12943 | if test x$support_mouseslipwheel = xyes; then |
|
|
12944 | |
|
|
12945 | cat >>confdefs.h <<\_ACEOF |
|
|
12946 | #define MOUSE_SLIP_WHEELING 1 |
|
|
12947 | _ACEOF |
|
|
12948 | |
|
|
12949 | fi |
|
|
12950 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
12951 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
12952 | |
|
|
12953 | cat >>confdefs.h <<\_ACEOF |
|
|
12954 | #define USE_XIM 1 |
|
|
12955 | _ACEOF |
|
|
12956 | |
|
|
12957 | fi |
|
|
12958 | fi |
|
|
12959 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
|
|
12960 | |
|
|
12961 | cat >>confdefs.h <<\_ACEOF |
|
|
12962 | #define XPM_BACKGROUND 1 |
|
|
12963 | _ACEOF |
|
|
12964 | |
|
|
12965 | fi |
|
|
12966 | |
|
|
12967 | if test x$support_afterimage = xyes; then |
|
|
12968 | |
|
|
12969 | cat >>confdefs.h <<\_ACEOF |
|
|
12970 | #define HAVE_AFTERIMAGE 1 |
|
|
12971 | _ACEOF |
|
|
12972 | |
|
|
12973 | fi |
|
|
12974 | |
|
|
12975 | if test x$support_afterstep = xyes; then |
|
|
12976 | |
|
|
12977 | cat >>confdefs.h <<\_ACEOF |
|
|
12978 | #define AFTERSTEP_INTEGRATION 1 |
|
|
12979 | _ACEOF |
|
|
12980 | |
|
|
12981 | fi |
|
|
12982 | |
|
|
12983 | if test x$support_scroll_rxvt = xyes; then |
|
|
12984 | |
|
|
12985 | cat >>confdefs.h <<\_ACEOF |
|
|
12986 | #define RXVT_SCROLLBAR 1 |
|
|
12987 | _ACEOF |
|
|
12988 | |
|
|
12989 | scrolltypes="rxvt" |
|
|
12990 | fi |
|
|
12991 | if test x$support_scroll_next = xyes; then |
|
|
12992 | |
|
|
12993 | cat >>confdefs.h <<\_ACEOF |
|
|
12994 | #define NEXT_SCROLLBAR 1 |
|
|
12995 | _ACEOF |
|
|
12996 | |
|
|
12997 | scrolltypes="$scrolltypes next" |
|
|
12998 | fi |
|
|
12999 | if test x$support_scroll_xterm = xyes; then |
|
|
13000 | |
|
|
13001 | cat >>confdefs.h <<\_ACEOF |
|
|
13002 | #define XTERM_SCROLLBAR 1 |
|
|
13003 | _ACEOF |
|
|
13004 | |
|
|
13005 | scrolltypes="$scrolltypes xterm" |
|
|
13006 | fi |
|
|
13007 | if test x$support_scroll_plain = xyes; then |
|
|
13008 | |
|
|
13009 | cat >>confdefs.h <<\_ACEOF |
|
|
13010 | #define PLAIN_SCROLLBAR 1 |
|
|
13011 | _ACEOF |
|
|
13012 | |
|
|
13013 | scrolltypes="$scrolltypes plain" |
|
|
13014 | fi |
|
|
13015 | if test x$support_pointer_blank = xyes; then |
|
|
13016 | |
|
|
13017 | cat >>confdefs.h <<\_ACEOF |
|
|
13018 | #define POINTER_BLANK 1 |
|
|
13019 | _ACEOF |
|
|
13020 | |
|
|
13021 | fi |
|
|
13022 | if test x$support_text_blink = xyes; then |
|
|
13023 | |
|
|
13024 | cat >>confdefs.h <<\_ACEOF |
|
|
13025 | #define TEXT_BLINK 1 |
|
|
13026 | _ACEOF |
|
|
13027 | |
|
|
13028 | fi |
|
|
13029 | if test x$support_unicode3 = xyes; then |
|
|
13030 | |
|
|
13031 | cat >>confdefs.h <<\_ACEOF |
|
|
13032 | #define UNICODE_3 1 |
|
|
13033 | _ACEOF |
|
|
13034 | |
|
|
13035 | fi |
|
|
13036 | if test x$support_combining = xyes; then |
|
|
13037 | |
|
|
13038 | cat >>confdefs.h <<\_ACEOF |
|
|
13039 | #define ENABLE_COMBINING 1 |
|
|
13040 | _ACEOF |
|
|
13041 | |
|
|
13042 | fi |
|
|
13043 | if test x$codesets = xall; then |
|
|
13044 | codesets=jp,jp-ext,kr,zh,zh-ext |
|
|
13045 | fi |
|
|
13046 | |
|
|
13047 | cat >>confdefs.h <<\_ACEOF |
|
|
13048 | #define ENCODING_EU 1 |
|
|
13049 | _ACEOF |
|
|
13050 | |
|
|
13051 | |
|
|
13052 | cat >>confdefs.h <<\_ACEOF |
|
|
13053 | #define ENCODING_VN 1 |
|
|
13054 | _ACEOF |
|
|
13055 | |
|
|
13056 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
13057 | case "$codeset" in |
|
|
13058 | JP ) |
|
|
13059 | cat >>confdefs.h <<\_ACEOF |
|
|
13060 | #define ENCODING_JP 1 |
|
|
13061 | _ACEOF |
|
|
13062 | ;; |
|
|
13063 | JP_EXT ) |
|
|
13064 | cat >>confdefs.h <<\_ACEOF |
|
|
13065 | #define ENCODING_JP_EXT 1 |
|
|
13066 | _ACEOF |
|
|
13067 | ;; |
|
|
13068 | KR ) |
|
|
13069 | cat >>confdefs.h <<\_ACEOF |
|
|
13070 | #define ENCODING_KR 1 |
|
|
13071 | _ACEOF |
|
|
13072 | ;; |
|
|
13073 | ZH ) |
|
|
13074 | cat >>confdefs.h <<\_ACEOF |
|
|
13075 | #define ENCODING_ZH 1 |
|
|
13076 | _ACEOF |
|
|
13077 | ;; |
|
|
13078 | ZH_EXT ) |
|
|
13079 | cat >>confdefs.h <<\_ACEOF |
|
|
13080 | #define ENCODING_ZH_EXT 1 |
|
|
13081 | _ACEOF |
|
|
13082 | ;; |
|
|
13083 | esac |
|
|
13084 | done |
|
|
13085 | |
|
|
13086 | IF_PERL=\# |
|
|
13087 | if test x$support_perl = xyes; then |
|
|
13088 | # Extract the first word of "perl5", so it can be a program name with args. |
|
|
13089 | set dummy perl5; ac_word=$2 |
|
|
13090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13092 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13094 | else |
|
|
13095 | case $PERL in |
|
|
13096 | [\\/]* | ?:[\\/]*) |
|
|
13097 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13098 | ;; |
|
|
13099 | *) |
|
|
13100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13101 | for as_dir in $PATH |
|
|
13102 | do |
|
|
13103 | IFS=$as_save_IFS |
|
|
13104 | test -z "$as_dir" && as_dir=. |
|
|
13105 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13106 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13107 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13109 | break 2 |
|
|
13110 | fi |
|
|
13111 | done |
|
|
13112 | done |
|
|
13113 | |
|
|
13114 | ;; |
|
|
13115 | esac |
|
|
13116 | fi |
|
|
13117 | PERL=$ac_cv_path_PERL |
|
|
13118 | |
|
|
13119 | if test -n "$PERL"; then |
|
|
13120 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13121 | echo "${ECHO_T}$PERL" >&6 |
|
|
13122 | else |
|
|
13123 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13124 | echo "${ECHO_T}no" >&6 |
|
|
13125 | fi |
|
|
13126 | |
|
|
13127 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
13128 | set dummy perl; ac_word=$2 |
|
|
13129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13131 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13133 | else |
|
|
13134 | case $PERL in |
|
|
13135 | [\\/]* | ?:[\\/]*) |
|
|
13136 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13137 | ;; |
|
|
13138 | *) |
|
|
13139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13140 | for as_dir in $PATH |
|
|
13141 | do |
|
|
13142 | IFS=$as_save_IFS |
|
|
13143 | test -z "$as_dir" && as_dir=. |
|
|
13144 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13145 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13146 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13147 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13148 | break 2 |
|
|
13149 | fi |
|
|
13150 | done |
|
|
13151 | done |
|
|
13152 | |
|
|
13153 | ;; |
|
|
13154 | esac |
|
|
13155 | fi |
|
|
13156 | PERL=$ac_cv_path_PERL |
|
|
13157 | |
|
|
13158 | if test -n "$PERL"; then |
|
|
13159 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13160 | echo "${ECHO_T}$PERL" >&6 |
|
|
13161 | else |
|
|
13162 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13163 | echo "${ECHO_T}no" >&6 |
|
|
13164 | fi |
|
|
13165 | |
|
|
13166 | |
|
|
13167 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
|
|
13168 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
|
|
13169 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
|
|
13170 | |
|
|
13171 | save_CXXFLAGS="$CXXFLAGS" |
|
|
13172 | save_LIBS="$LIBS" |
|
|
13173 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13174 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13175 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13176 | /* confdefs.h. */ |
|
|
13177 | _ACEOF |
|
|
13178 | cat confdefs.h >>conftest.$ac_ext |
|
|
13179 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13180 | /* end confdefs.h. */ |
|
|
13181 | |
|
|
13182 | #include <EXTERN.h> |
|
|
13183 | #include <perl.h> |
|
|
13184 | #include <XSUB.h> |
|
|
13185 | |
|
|
13186 | int |
|
|
13187 | main () |
|
|
13188 | { |
|
|
13189 | |
|
|
13190 | PerlInterpreter *perl = perl_alloc (); |
|
|
13191 | |
|
|
13192 | ; |
|
|
13193 | return 0; |
|
|
13194 | } |
|
|
13195 | _ACEOF |
|
|
13196 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13198 | (eval $ac_link) 2>conftest.er1 |
|
|
13199 | ac_status=$? |
|
|
13200 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13201 | rm -f conftest.er1 |
|
|
13202 | cat conftest.err >&5 |
|
|
13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13204 | (exit $ac_status); } && |
|
|
13205 | { ac_try='test -z "$ac_cxx_werror_flag" |
|
|
13206 | || test ! -s conftest.err' |
|
|
13207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13208 | (eval $ac_try) 2>&5 |
|
|
13209 | ac_status=$? |
|
|
13210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13211 | (exit $ac_status); }; } && |
|
|
13212 | { ac_try='test -s conftest$ac_exeext' |
|
|
13213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13214 | (eval $ac_try) 2>&5 |
|
|
13215 | ac_status=$? |
|
|
13216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13217 | (exit $ac_status); }; }; then |
|
|
13218 | rxvt_perl_link=yes |
|
|
13219 | else |
|
|
13220 | echo "$as_me: failed program was:" >&5 |
|
|
13221 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13222 | |
|
|
13223 | rxvt_perl_link=no |
|
|
13224 | fi |
|
|
13225 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13226 | conftest$ac_exeext conftest.$ac_ext |
|
|
13227 | CXXFLAGS="$save_CXXFLAGS" |
|
|
13228 | LIBS="$save_LIBS" |
|
|
13229 | |
|
|
13230 | if test x$rxvt_perl_link = xyes; then |
|
|
13231 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
13232 | echo "${ECHO_T}ok" >&6 |
|
|
13233 | |
|
|
13234 | cat >>confdefs.h <<\_ACEOF |
|
|
13235 | #define ENABLE_PERL 1 |
|
|
13236 | _ACEOF |
|
|
13237 | |
|
|
13238 | IF_PERL= |
|
|
13239 | PERL_O=rxvtperl.o |
|
|
13240 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13241 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13242 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
|
|
13243 | else |
|
|
13244 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
|
|
13245 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
13246 | { (exit 1); exit 1; }; } |
|
|
13247 | fi |
|
|
13248 | else |
|
|
13249 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
|
|
13250 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
|
|
13251 | { (exit 1); exit 1; }; } |
|
|
13252 | fi |
|
|
13253 | fi |
|
|
13254 | |
|
|
13255 | |
|
|
13256 | |
|
|
13257 | |
|
|
13258 | |
|
|
13259 | |
|
|
13260 | |
|
|
13261 | if test x$support_perl = xyes; then |
|
|
13262 | support_frills=yes |
|
|
13263 | fi |
|
|
13264 | |
|
|
13265 | |
|
|
13266 | |
|
|
13267 | |
|
|
13268 | |
|
|
13269 | |
|
|
13270 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
13271 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
13272 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
13273 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
13274 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
13275 | fi |
|
|
13276 | |
|
|
13277 | |
|
|
13278 | |
|
|
13279 | |
|
|
13280 | |
|
|
13281 | |
|
|
13282 | |
|
|
13283 | test "$program_prefix" != NONE && |
|
|
13284 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
13285 | # Use a double $ so make ignores it. |
|
|
13286 | test "$program_suffix" != NONE && |
|
|
13287 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
13288 | # Double any \ or $. echo might interpret backslashes. |
|
|
13289 | # By default was `s,x,x', remove it if useless. |
|
|
13290 | cat <<\_ACEOF >conftest.sed |
|
|
13291 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
13292 | _ACEOF |
|
|
13293 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
13294 | rm conftest.sed |
|
|
13295 | |
|
|
13296 | |
|
|
13297 | |
|
|
13298 | |
|
|
13299 | |
|
|
13300 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13301 | include_stdint_h="#include <stdint.h>" |
|
|
13302 | else |
|
|
13303 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13304 | fi |
|
|
13305 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13306 | include_stdarg_h="#include <cstdarg>" |
|
|
13307 | else |
|
|
13308 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13309 | fi |
|
|
13310 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13311 | include_stdlib_h="#include <cstdlib>" |
|
|
13312 | else |
|
|
13313 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13314 | fi |
|
|
13315 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13316 | include_unistd_h="#include <unistd.h>" |
|
|
13317 | else |
|
|
13318 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13319 | fi |
|
|
13320 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13321 | include_string_h="#include <cstring>" |
|
|
13322 | else |
|
|
13323 | include_string_h="/* #include <cstring> */" |
|
|
13324 | fi |
|
|
13325 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13326 | include_fcntl_h="#include <fcntl.h>" |
|
|
13327 | else |
|
|
13328 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13329 | fi |
|
|
13330 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13331 | include_util_h="#include <util.h>" |
|
|
13332 | else |
|
|
13333 | include_util_h="/* #include <util.h> */" |
|
|
13334 | fi |
|
|
13335 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13336 | include_assert_h="#include <assert.h>" |
|
|
13337 | else |
|
|
13338 | include_assert_h="/* #include <assert.h> */" |
|
|
13339 | fi |
|
|
13340 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13341 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13342 | else |
|
|
13343 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13344 | fi |
|
|
13345 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13346 | include_sys_select_h="#include <sys/select.h>" |
|
|
13347 | else |
|
|
13348 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13349 | fi |
|
|
13350 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13351 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13352 | else |
|
|
13353 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13354 | fi |
|
|
13355 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13356 | include_sys_time_h="#include <sys/time.h>" |
|
|
13357 | else |
|
|
13358 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13359 | fi |
|
|
13360 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13361 | include_time_h="#include <time.h>" |
|
|
13362 | else |
|
|
13363 | include_time_h="/* #include <time.h> */" |
|
|
13364 | fi |
|
|
13365 | |
16963 | ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" |
13366 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
|
|
13367 | |
16964 | cat >confcache <<\_ACEOF |
13368 | cat >confcache <<\_ACEOF |
16965 | # This file is a shell script that caches the results of configure |
13369 | # This file is a shell script that caches the results of configure |
16966 | # tests run on this system so they can be shared between configure |
13370 | # tests run on this system so they can be shared between configure |
16967 | # scripts and configure runs, see configure's option --config-cache. |
13371 | # scripts and configure runs, see configure's option --config-cache. |
16968 | # It is not useful on other systems. If it contains results you don't |
13372 | # It is not useful on other systems. If it contains results you don't |
… | |
… | |
17484 | cat >>$CONFIG_STATUS <<\_ACEOF |
13888 | cat >>$CONFIG_STATUS <<\_ACEOF |
17485 | for ac_config_target in $ac_config_targets |
13889 | for ac_config_target in $ac_config_targets |
17486 | do |
13890 | do |
17487 | case "$ac_config_target" in |
13891 | case "$ac_config_target" in |
17488 | # Handling of arguments. |
13892 | # Handling of arguments. |
17489 | "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; |
|
|
17490 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13893 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
17491 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13894 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
17492 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13895 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
17493 | "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;; |
|
|
17494 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
13896 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
17495 | "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;; |
|
|
17496 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; |
13897 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
17497 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13898 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
17498 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13899 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
17499 | { (exit 1); exit 1; }; };; |
13900 | { (exit 1); exit 1; }; };; |
17500 | esac |
13901 | esac |
17501 | done |
13902 | done |
… | |
… | |
17576 | s,@DEFS@,$DEFS,;t t |
13977 | s,@DEFS@,$DEFS,;t t |
17577 | s,@ECHO_C@,$ECHO_C,;t t |
13978 | s,@ECHO_C@,$ECHO_C,;t t |
17578 | s,@ECHO_N@,$ECHO_N,;t t |
13979 | s,@ECHO_N@,$ECHO_N,;t t |
17579 | s,@ECHO_T@,$ECHO_T,;t t |
13980 | s,@ECHO_T@,$ECHO_T,;t t |
17580 | s,@LIBS@,$LIBS,;t t |
13981 | s,@LIBS@,$LIBS,;t t |
|
|
13982 | s,@build@,$build,;t t |
|
|
13983 | s,@build_cpu@,$build_cpu,;t t |
|
|
13984 | s,@build_vendor@,$build_vendor,;t t |
|
|
13985 | s,@build_os@,$build_os,;t t |
|
|
13986 | s,@host@,$host,;t t |
|
|
13987 | s,@host_cpu@,$host_cpu,;t t |
|
|
13988 | s,@host_vendor@,$host_vendor,;t t |
|
|
13989 | s,@host_os@,$host_os,;t t |
17581 | s,@VERSION@,$VERSION,;t t |
13990 | s,@VERSION@,$VERSION,;t t |
17582 | s,@DATE@,$DATE,;t t |
13991 | s,@DATE@,$DATE,;t t |
17583 | s,@LSMDATE@,$LSMDATE,;t t |
13992 | s,@LSMDATE@,$LSMDATE,;t t |
17584 | s,@LIBVERSION@,$LIBVERSION,;t t |
13993 | s,@LIBVERSION@,$LIBVERSION,;t t |
17585 | s,@CC@,$CC,;t t |
13994 | s,@CC@,$CC,;t t |
… | |
… | |
17594 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
14003 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
17595 | s,@CPP@,$CPP,;t t |
14004 | s,@CPP@,$CPP,;t t |
17596 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
14005 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
17597 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
14006 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
17598 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
14007 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
17599 | s,@AWK@,$AWK,;t t |
14008 | s,@EGREP@,$EGREP,;t t |
17600 | s,@LINKER@,$LINKER,;t t |
14009 | s,@LINKER@,$LINKER,;t t |
17601 | s,@CXXCPP@,$CXXCPP,;t t |
14010 | s,@CXXLIB@,$CXXLIB,;t t |
17602 | s,@EGREP@,$EGREP,;t t |
|
|
17603 | s,@build@,$build,;t t |
|
|
17604 | s,@build_cpu@,$build_cpu,;t t |
|
|
17605 | s,@build_vendor@,$build_vendor,;t t |
|
|
17606 | s,@build_os@,$build_os,;t t |
|
|
17607 | s,@host@,$host,;t t |
|
|
17608 | s,@host_cpu@,$host_cpu,;t t |
|
|
17609 | s,@host_vendor@,$host_vendor,;t t |
|
|
17610 | s,@host_os@,$host_os,;t t |
|
|
17611 | s,@LN_S@,$LN_S,;t t |
|
|
17612 | s,@ECHO@,$ECHO,;t t |
|
|
17613 | s,@RANLIB@,$RANLIB,;t t |
|
|
17614 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
17615 | s,@STRIP@,$STRIP,;t t |
|
|
17616 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
|
17617 | s,@LIBTOOL@,$LIBTOOL,;t t |
|
|
17618 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
14011 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
17619 | s,@RXVTNAME@,$RXVTNAME,;t t |
14012 | s,@RXVTNAME@,$RXVTNAME,;t t |
17620 | s,@MV@,$MV,;t t |
|
|
17621 | s,@RM@,$RM,;t t |
|
|
17622 | s,@CP@,$CP,;t t |
14013 | s,@TIC@,$TIC,;t t |
17623 | s,@LN@,$LN,;t t |
|
|
17624 | s,@SED@,$SED,;t t |
|
|
17625 | s,@CMP@,$CMP,;t t |
14014 | s,@CXXCPP@,$CXXCPP,;t t |
17626 | s,@TBL@,$TBL,;t t |
|
|
17627 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
14015 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
17628 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
14016 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
17629 | s,@X_LIBS@,$X_LIBS,;t t |
14017 | s,@X_LIBS@,$X_LIBS,;t t |
17630 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
14018 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
|
|
14019 | s,@afterimage_config@,$afterimage_config,;t t |
17631 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
14020 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
17632 | s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t |
14021 | s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t |
17633 | s,@XPM_LIBS@,$XPM_LIBS,;t t |
14022 | s,@XPM_LIBS@,$XPM_LIBS,;t t |
17634 | s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t |
14023 | s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t |
17635 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
14024 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
17636 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
14025 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
17637 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
14026 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
17638 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
14027 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
17639 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
14028 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
17640 | s,@DEBUG@,$DEBUG,;t t |
14029 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
17641 | s,@DINCLUDE@,$DINCLUDE,;t t |
14030 | s,@XFT_CONFIG@,$XFT_CONFIG,;t t |
|
|
14031 | s,@PERL@,$PERL,;t t |
17642 | s,@DLIB@,$DLIB,;t t |
14032 | s,@PERLLIB@,$PERLLIB,;t t |
|
|
14033 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
|
|
14034 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
|
|
14035 | s,@IF_PERL@,$IF_PERL,;t t |
|
|
14036 | s,@PERL_O@,$PERL_O,;t t |
|
|
14037 | s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t |
|
|
14038 | s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t |
17643 | s,@include_stdint_h@,$include_stdint_h,;t t |
14039 | s,@include_stdint_h@,$include_stdint_h,;t t |
17644 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
14040 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
17645 | s,@include_stdlib_h@,$include_stdlib_h,;t t |
14041 | s,@include_stdlib_h@,$include_stdlib_h,;t t |
17646 | s,@include_unistd_h@,$include_unistd_h,;t t |
14042 | s,@include_unistd_h@,$include_unistd_h,;t t |
17647 | s,@include_string_h@,$include_string_h,;t t |
14043 | s,@include_string_h@,$include_string_h,;t t |
… | |
… | |
17653 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
14049 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
17654 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
14050 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
17655 | s,@include_time_h@,$include_time_h,;t t |
14051 | s,@include_time_h@,$include_time_h,;t t |
17656 | s,@LIBOBJS@,$LIBOBJS,;t t |
14052 | s,@LIBOBJS@,$LIBOBJS,;t t |
17657 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
14053 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
17658 | /@MCOMMON@/r $MCOMMON |
|
|
17659 | s,@MCOMMON@,,;t t |
|
|
17660 | CEOF |
14054 | CEOF |
17661 | |
14055 | |
17662 | _ACEOF |
14056 | _ACEOF |
17663 | |
14057 | |
17664 | cat >>$CONFIG_STATUS <<\_ACEOF |
14058 | cat >>$CONFIG_STATUS <<\_ACEOF |
… | |
… | |
17821 | case $INSTALL in |
14215 | case $INSTALL in |
17822 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
14216 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
17823 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
14217 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
17824 | esac |
14218 | esac |
17825 | |
14219 | |
|
|
14220 | if test x"$ac_file" != x-; then |
|
|
14221 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
14222 | echo "$as_me: creating $ac_file" >&6;} |
|
|
14223 | rm -f "$ac_file" |
|
|
14224 | fi |
17826 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14225 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
17827 | # use $as_me), people would be surprised to read: |
14226 | # use $as_me), people would be surprised to read: |
17828 | # /* config.h. Generated by config.status. */ |
14227 | # /* config.h. Generated by config.status. */ |
17829 | if test x"$ac_file" = x-; then |
14228 | if test x"$ac_file" = x-; then |
17830 | configure_input= |
14229 | configure_input= |
… | |
… | |
17859 | echo "$as_me: error: cannot find input file: $f" >&2;} |
14258 | echo "$as_me: error: cannot find input file: $f" >&2;} |
17860 | { (exit 1); exit 1; }; } |
14259 | { (exit 1); exit 1; }; } |
17861 | fi;; |
14260 | fi;; |
17862 | esac |
14261 | esac |
17863 | done` || { (exit 1); exit 1; } |
14262 | done` || { (exit 1); exit 1; } |
17864 | |
|
|
17865 | if test x"$ac_file" != x-; then |
|
|
17866 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
17867 | echo "$as_me: creating $ac_file" >&6;} |
|
|
17868 | rm -f "$ac_file" |
|
|
17869 | fi |
|
|
17870 | _ACEOF |
14263 | _ACEOF |
17871 | cat >>$CONFIG_STATUS <<_ACEOF |
14264 | cat >>$CONFIG_STATUS <<_ACEOF |
17872 | sed "$ac_vpsub |
14265 | sed "$ac_vpsub |
17873 | $extrasub |
14266 | $extrasub |
17874 | _ACEOF |
14267 | _ACEOF |
… | |
… | |
18154 | |
14547 | |
18155 | Rxvt version: $VERSION : $DATE |
14548 | Rxvt version: $VERSION : $DATE |
18156 | Source code location: $srcdir |
14549 | Source code location: $srcdir |
18157 | Install path: ${prefix}/bin |
14550 | Install path: ${prefix}/bin |
18158 | Compiler: $CXX |
14551 | Compiler: $CXX |
18159 | Compiler flags: $CFLAGS |
14552 | Compiler flags: $CXXFLAGS |
18160 | Linker: $LINKER" |
14553 | Linker: $LINKER" |
18161 | |
|
|
18162 | if test "$MALLOC_TYPE" = S; then |
|
|
18163 | echo " malloc support: system default" |
|
|
18164 | fi |
|
|
18165 | if test "$MALLOC_TYPE" = G; then |
|
|
18166 | echo " malloc support: Gray Watson's dmalloc" |
|
|
18167 | fi |
|
|
18168 | if test "$MALLOC_TYPE" = D; then |
|
|
18169 | echo " malloc support: Doug Lea's malloc" |
|
|
18170 | fi |
|
|
18171 | |
14554 | |
18172 | if test x$support_xpm = xyes; then |
14555 | if test x$support_xpm = xyes; then |
18173 | echo " Xpm library: $XPM_LIBS" |
14556 | echo " Xpm library: $XPM_LIBS" |
18174 | fi |
14557 | fi |
18175 | |
14558 | |
18176 | echo " |
14559 | if test x$support_afterimage = xyes; then |
18177 | The following are set in config.h |
14560 | echo " AfterImage support: yes" |
18178 | " |
14561 | fi |
18179 | echo " pty/tty type: "$rxvt_cv_ptys |
14562 | |
18180 | if test x$support_utmp != xyes; then |
14563 | if test x$support_afterstep = xyes; then |
18181 | echo " utmp support: disabled" |
14564 | echo " AfterStep integration: yes" |
18182 | echo |
|
|
18183 | else |
|
|
18184 | echo " utmp support: enabled |
|
|
18185 | utmp file: $rxvt_cv_path_utmp |
|
|
18186 | utmpx file: $rxvt_cv_path_utmpx |
|
|
18187 | wtmp file: $rxvt_cv_path_wtmp |
|
|
18188 | wtmpx file: $rxvt_cv_path_wtmpx |
|
|
18189 | lastlog file: $rxvt_cv_path_lastlog |
|
|
18190 | ttys/ttytab file: $rxvt_cv_path_ttytab" |
|
|
18191 | echo |
|
|
18192 | fi |
14565 | fi |
|
|
14566 | |
18193 | if test x$term != x; then |
14567 | if test x$term != x; then |
18194 | echo " set TERM to: $term" |
14568 | echo " set TERM to: $term" |
18195 | fi |
14569 | fi |
18196 | if test x$terminfo != x; then |
14570 | if test x$terminfo != x; then |
18197 | echo " set TERMINFO to: $terminfo" |
14571 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
18200 | echo " resource class: $RESCLASS" |
14574 | echo " resource class: $RESCLASS" |
18201 | if test x$RESFALLBACK != x; then |
14575 | if test x$RESFALLBACK != x; then |
18202 | echo " resource class fallback: $RESFALLBACK" |
14576 | echo " resource class fallback: $RESFALLBACK" |
18203 | fi |
14577 | fi |
18204 | echo |
14578 | echo |
18205 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
14579 | echo " embedded perl: $support_perl" |
18206 | echo ".----------------------------------------------------------------." |
14580 | echo |
18207 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
|
|
18208 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
18209 | echo ".----------------------------------------------------------------." |
|
|
18210 | fi |
|
|
18211 | if test x$support_xpm = xneedsmanualspecification; then |
14581 | if test x$support_xpm = xneedsmanualspecification; then |
18212 | echo ".----------------------------------------------------------------." |
14582 | echo ".----------------------------------------------------------------." |
18213 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14583 | echo ". WARNING: --enable-xpm-background was specified however the ." |
18214 | echo ". XPM includes files and libraries could not be found. ." |
14584 | echo ". XPM includes files and libraries could not be found. ." |
18215 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
14585 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
… | |
… | |
18224 | echo ". functions could not be found. ." |
14594 | echo ". functions could not be found. ." |
18225 | echo ". XIM is now being DISABLED! ." |
14595 | echo ". XIM is now being DISABLED! ." |
18226 | echo ".----------------------------------------------------------------." |
14596 | echo ".----------------------------------------------------------------." |
18227 | fi |
14597 | fi |
18228 | |
14598 | |
18229 | echo " *** Please check src/feature.h for further options ***" |
14599 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
18230 | echo |
14600 | echo |
18231 | |
14601 | |
18232 | echo ".----------------------------------------------------------------." |
|
|
18233 | echo ". NOTE: most features are disabled by default, try ." |
|
|
18234 | echo ". configure --help to get an idea of the optional features ." |
|
|
18235 | echo ".----------------------------------------------------------------." |
|
|
18236 | echo |
|
|
18237 | |
|
|