Changeset 962 for trunk/auto-reply
- Timestamp:
- 02/05/00 11:39:27 (9 years ago)
- Location:
- trunk/auto-reply
- Files:
-
- 1 removed
- 2 modified
-
acinclude.m4 (modified) (15 diffs)
-
libtool.m4.in (deleted)
-
Makefile.am (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/auto-reply/acinclude.m4
r794 r962 56 56 57 57 ## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*- 58 ## Copyright (C) 1996- 1999Free Software Foundation, Inc.58 ## Copyright (C) 1996-2000 Free Software Foundation, Inc. 59 59 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 60 60 ## … … 78 78 ## the same distribution terms that you use for the rest of that program. 79 79 80 # serial 4 1AC_PROG_LIBTOOL80 # serial 42 AC_PROG_LIBTOOL 81 81 AC_DEFUN(AC_PROG_LIBTOOL, 82 82 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl … … 86 86 87 87 # Actually configure libtool. ac_aux_dir is where install-sh is found. 88 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 89 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 90 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 91 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 88 AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 89 FILE="$FILE" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 90 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 91 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 92 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 93 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 92 94 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 93 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $ host \95 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $lt_target \ 94 96 || AC_MSG_ERROR([libtool configure failed]) 95 97 … … 117 119 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 118 120 AC_REQUIRE([AC_PROG_CC])dnl 119 with_gcc="$GCC"; AC_SUBST([with_gcc])120 121 AC_REQUIRE([AC_PROG_LD])dnl 122 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 121 123 AC_REQUIRE([AC_PROG_NM])dnl 122 124 AC_REQUIRE([AC_PROG_LN_S])dnl 125 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 123 126 AC_REQUIRE([AC_OBJEXT])dnl 124 127 AC_REQUIRE([AC_EXEEXT])dnl 125 128 dnl 126 129 130 # Only perform the check for file, if the check method requires it 131 case "$deplibs_check_method" in 132 file_magic*) 133 if test "$file_magic_cmd" = '$FILE'; then 134 AC_PATH_FILE 135 fi 136 ;; 137 esac 138 139 case "$target" in 140 NONE) lt_target="$host" ;; 141 *) lt_target="$target" ;; 142 esac 143 127 144 AC_CHECK_TOOL(RANLIB, ranlib, :) 128 145 AC_CHECK_TOOL(STRIP, strip, :) 129 AC_PATH_TOOL_VERSION_GREP(FILE, file, file, :, "/usr/bin:$PATH")130 146 131 147 # Check for any special flags to pass to ltconfig. … … 153 169 # Some flags need to be propagated to the compiler or linker for good 154 170 # libtool support. 155 case "$ host" in171 case "$lt_target" in 156 172 *-*-irix6*) 157 173 # Find out which ABI we are using. … … 194 210 # can override, but on older systems we have to supply one 195 211 AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, 196 [AC_TRY_LINK([DllMain (0, 0, 0);], 197 [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);], 198 [lt_cv_need_dllmain=yes],[lt_cv_need_dllmain=no])]) 199 200 case $host in 201 *-*-cygwin*) 202 # cygwin systems need to pass --dll to the linker, and not link 203 # crt.o which will require a WinMain@16 definition. 204 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; 205 *-*-mingw*) 212 [AC_TRY_LINK([], 213 [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); 214 DllMain (0, 0, 0);], 215 [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) 216 217 case "$lt_target/$CC" in 218 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) 206 219 # old mingw systems require "-dll" to link a DLL, while more recent ones 207 220 # require "-mdll" … … 211 224 [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) 212 225 CFLAGS="$SAVE_CFLAGS" ;; 226 *-*-cygwin*) 227 # cygwin systems need to pass --dll to the linker, and not link 228 # crt.o which will require a WinMain@16 definition. 229 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; 213 230 esac 214 231 ;; … … 324 341 325 342 326 # AC_PATH_PROG_VERSION_GREP - look for a particular expression in the output 327 # generated by $PROG --version 328 dnl AC_PATH_PROG_VERSION_GREP(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND[, PATH]]) 329 AC_DEFUN(AC_PATH_PROG_VERSION_GREP, 330 [# Extract the first word of "$2", so it can be a program name with args. 331 set dummy $2; ac_word=[$]2 332 AC_MSG_CHECKING([for $ac_word]) 333 AC_CACHE_VAL(ac_cv_path_$1, 334 [case "[$]$1" in 343 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library 344 AC_DEFUN(AC_PATH_TOOL_PREFIX, 345 [AC_MSG_CHECKING([for $1]) 346 AC_CACHE_VAL(lt_cv_path_FILE, 347 [case "$FILE" in 335 348 /*) 336 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.349 lt_cv_path_FILE="$FILE" # Let the user override the test with a path. 337 350 ;; 338 351 ?:/*) 339 ac_cv_path_ $1="[$]$1" # Let the user override the test with a dos path.352 ac_cv_path_FILE="$FILE" # Let the user override the test with a dos path. 340 353 ;; 341 354 *) 355 ac_save_file="$FILE" 342 356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 343 357 dnl $ac_dummy forces splitting on constant user-supplied paths. 344 358 dnl POSIX.2 word splitting is done only on the output of word expansions, 345 359 dnl not every word. This closes a longstanding sh security hole. 346 ac_dummy="ifelse([$ 5], , $PATH, [$5])"360 ac_dummy="ifelse([$2], , $PATH, [$2])" 347 361 for ac_dir in $ac_dummy; do 348 362 test -z "$ac_dir" && ac_dir=. 349 if $ac_dir/$2 --version 2>/dev/null | grep $3 >/dev/null 2>&1; then 350 ac_cv_path_$1="$ac_dir/$ac_word" 363 if test -f $ac_dir/$1; then 364 lt_cv_path_FILE="$ac_dir/$1" 365 if test -n "$file_magic_test_file"; then 366 case "$deplibs_check_method" in 367 "file_magic "*) 368 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 369 FILE="$lt_cv_path_FILE" 370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 371 egrep "$file_magic_regex" > /dev/null; then 372 : 373 else 374 cat <<EOF 1>&2 375 376 *** Warning: the command libtool uses to detect shared libraries, 377 *** $file_magic_cmd, produces output that libtool cannot recognize. 378 *** The result is that libtool may fail to recognize shared libraries 379 *** as such. This will affect the creation of libtool libraries that 380 *** depend on shared libraries, but programs linked with such libtool 381 *** libraries will work regardless of this problem. Nevertheless, you 382 *** may want to report the problem to your system manager and/or to 383 *** bug-libtool@gnu.org 384 385 EOF 386 fi ;; 387 esac 388 fi 351 389 break 352 390 fi 353 391 done 354 392 IFS="$ac_save_ifs" 355 dnl If no 4th arg is given, leave the cache variable unset 356 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 357 ])dnl 358 ;; 359 esac])dnl 360 $1="$ac_cv_path_$1" 361 if test -n "[$]$1"; then 362 AC_MSG_RESULT([$]$1) 393 FILE="$ac_save_file" 394 ;; 395 esac]) 396 FILE="$lt_cv_path_FILE" 397 if test -n "$FILE"; then 398 AC_MSG_RESULT($FILE) 363 399 else 364 400 AC_MSG_RESULT(no) 365 401 fi 366 AC_SUBST($1)dnl 367 ]) 368 369 370 # AC_PATH_TOOL_VERSION_GREP - Try AC_PATH_PROG_VERSION_GREP with target 371 # prefix when cross-compiling 372 dnl AC_PATH_TOOL_VERSION_GREP(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND [, PATH]]) 373 AC_DEFUN(AC_PATH_TOOL_VERSION_GREP, 402 ]) 403 404 405 # AC_PATH_FILE - find a file program which can recognise a shared library 406 AC_DEFUN(AC_PATH_FILE, 374 407 [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl 375 AC_PATH_PROG_VERSION_GREP($1, ${ac_tool_prefix}$2, $3, 376 ifelse([$4], , [$2], ), $5) 377 ifelse([$4], , , [ 378 if test -z "$ac_cv_prog_$1"; then 379 if test -n "$ac_tool_prefix"; then 380 AC_PATH_PROG_VERSION_GREP($1, $2, $3, $2, $5) 381 else 382 $1="$4" 383 fi 408 AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) 409 if test -z "$lt_cv_path_FILE"; then 410 if test -n "$ac_tool_prefix"; then 411 AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) 412 else 413 FILE=: 384 414 fi 385 ]) 415 fi 386 416 ]) 387 417 … … 399 429 # Check if gcc -print-prog-name=ld gives a path. 400 430 AC_MSG_CHECKING([for ld used by GCC]) 401 case $ host in431 case $lt_target in 402 432 *-*-mingw*) 403 433 # gcc leaves a trailing carriage return which upsets mingw … … 461 491 fi 462 492 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 463 AC_SUBST(LD)464 493 AC_PROG_LD_GNU 465 494 ]) … … 474 503 fi]) 475 504 with_gnu_ld=$ac_cv_prog_gnu_ld 476 AC_SUBST(with_gnu_ld) 477 ]) 505 ]) 506 507 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker 508 # -- PORTME Some linkers may need a different reload flag. 509 AC_DEFUN(AC_PROG_LD_RELOAD_FLAG, 510 [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, 511 [lt_cv_ld_reload_flag='-r']) 512 reload_flag=$lt_cv_ld_reload_flag 513 test -n "$reload_flag" && reload_flag=" $reload_flag" 514 ]) 515 516 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies 517 # -- PORTME fill in with the dynamic library characteristics 518 AC_DEFUN(AC_DEPLIBS_CHECK_METHOD, 519 [AC_CACHE_CHECK([how to recognise dependant libraries], 520 lt_cv_deplibs_check_method, 521 [lt_cv_file_magic_cmd='$FILE' 522 lt_cv_file_magic_test_file= 523 lt_cv_deplibs_check_method='unknown' 524 # Need to set the preceding variable on all platforms that support 525 # interlibrary dependencies. 526 # 'none' -- dependencies not supported. 527 # `unknown' -- same as none, but documents that we really don't know. 528 # 'pass_all' -- all dependencies passed with no checks. 529 # 'test_compile' -- check by making test program. 530 # 'file_magic [regex]' -- check by looking for files in library path 531 # which responds to the $file_magic_cmd with a given egrep regex. 532 # If you have `file' or equivalent on your system and you're not sure 533 # whether `pass_all' will *always* work, you probably want this one. 534 535 case "$host_os" in 536 aix4* | beos*) 537 lt_cv_deplibs_check_method=pass_all 538 ;; 539 540 bsdi4*) 541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 542 lt_cv_file_magic_test_file=/shlib/libc.so 543 ;; 544 545 cygwin* | mingw*) 546 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 547 lt_cv_file_magic_cmd='${OBJDUMP} -f' 548 ;; 549 550 freebsd*) 551 case "$version_type" in 552 freebsd-elf*) 553 lt_cv_deplibs_check_method=pass_all 554 ;; 555 esac 556 lt_cv_deplibs_check_method=pass_all 557 ;; 558 559 gnu*) 560 lt_cv_deplibs_check_method=pass_all 561 ;; 562 563 irix5* | irix6*) 564 case "$host_os" in 565 irix5*) 566 # this will be overridden with pass_all, but let us keep it just in case 567 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 568 ;; 569 *) 570 case "$LD" in 571 *-32|*"-32 ") libmagic=32-bit;; 572 *-n32|*"-n32 ") libmagic=N32;; 573 *-64|*"-64 ") libmagic=64-bit;; 574 *) libmagic=never-match;; 575 esac 576 # this will be overridden with pass_all, but let us keep it just in case 577 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 578 ;; 579 esac 580 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 581 lt_cv_deplibs_check_method=pass_all 582 ;; 583 584 # This must be Linux ELF. 585 linux-gnu*) 586 case "$host_cpu" in 587 alpha* | i*86 | sparc* ) 588 lt_cv_deplibs_check_method=pass_all ;; 589 *) 590 # glibc up to 2.1.1 does not perform some relocations on ARM 591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 592 esac 593 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 594 ;; 595 596 osf3* | osf4* | osf5*) 597 # this will be overridden with pass_all, but let us keep it just in case 598 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 599 lt_cv_file_magic_test_file=/shlib/libc.so 600 lt_cv_deplibs_check_method=pass_all 601 ;; 602 603 sco3.2v5*) 604 lt_cv_deplibs_check_method=pass_all 605 ;; 606 607 solaris*) 608 lt_cv_deplibs_check_method=pass_all 609 lt_cv_file_magic_test_file=/lib/libc.so 610 ;; 611 612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 613 case "$host_vendor" in 614 ncr) 615 lt_cv_deplibs_check_method=pass_all 616 ;; 617 motorola) 618 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]' 619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 620 ;; 621 esac 622 ;; 623 esac 624 ]) 625 file_magic_cmd=$lt_cv_file_magic_cmd 626 deplibs_check_method=$lt_cv_deplibs_check_method 627 ]) 628 478 629 479 630 # AC_PROG_NM - find the path to a BSD-compatible name lister … … 509 660 NM="$ac_cv_path_NM" 510 661 AC_MSG_RESULT([$NM]) 511 AC_SUBST(NM)512 662 ]) 513 663 … … 516 666 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 517 667 LIBM= 518 case "$ host" in668 case "$lt_target" in 519 669 *-*-beos* | *-*-cygwin*) 520 670 # These system don't have libm … … 545 695 esac 546 696 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la 547 INCLTDL=ifelse($#,1,-I$1,['-I${top_ builddir}/libltdl'])697 INCLTDL=ifelse($#,1,-I$1,['-I${top_srcdir}/libltdl']) 548 698 ]) 549 699 … … 569 719 ac_configure_args="$ac_configure_args --enable-ltdl-install" 570 720 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la 571 INCLTDL=ifelse($#,1,-I$1,['-I${top_ builddir}/libltdl'])721 INCLTDL=ifelse($#,1,-I$1,['-I${top_srcdir}/libltdl']) 572 722 else 573 723 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" -
trunk/auto-reply/Makefile.am
r794 r962 1 $(top_srcdir)/acinclude.m4: $(top_srcdir)/acinclude.m4.in $(top_srcdir)/ libtool.m4.in2 @cd $(top_srcdir) && cat acinclude.m4.in libtool.m4.in > acinclude.m41 $(top_srcdir)/acinclude.m4: $(top_srcdir)/acinclude.m4.in $(top_srcdir)/../../libtool.m4.in 2 @cd $(top_srcdir) && cat acinclude.m4.in ../../libtool.m4.in > acinclude.m4 3 3 4 4 # don't warn about missing AUTHORS, NEWS, ChangeLog .. files … … 34 34 done; \ 35 35 done 36
