Ignore:
Timestamp:
Aug 16, 2003, 6:41:03 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/libtool.m4

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r604 r605  
    2323## the same distribution terms that you use for the rest of that program.
    2424
    25 # serial 45 AC_PROG_LIBTOOL
    26 AC_DEFUN(AC_PROG_LIBTOOL,[AC_REQUIRE([_AC_PROG_LIBTOOL])
     25# serial 46 AC_PROG_LIBTOOL
     26AC_DEFUN([AC_PROG_LIBTOOL],
     27[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
    2728dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
    2829dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
     
    5152])])])])])])
    5253
    53 AC_DEFUN(_AC_PROG_LIBTOOL,
     54AC_DEFUN([_AC_PROG_LIBTOOL],
    5455[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
    5556AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
     
    8586])
    8687
    87 AC_DEFUN(AC_LIBTOOL_SETUP,
     88AC_DEFUN([AC_LIBTOOL_SETUP],
    8889[AC_PREREQ(2.13)dnl
    8990AC_REQUIRE([AC_ENABLE_SHARED])dnl
     
    104105
    105106# Only perform the check for file, if the check method requires it
    106 case "$deplibs_check_method" in
     107case $deplibs_check_method in
    107108file_magic*)
    108109  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
     
    120121test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
    121122test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
    122 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
    123 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
     123test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
     124test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
    124125ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
    125126[libtool_flags="$libtool_flags --enable-dlopen"])
     
    139140# Some flags need to be propagated to the compiler or linker for good
    140141# libtool support.
    141 case "$host" in
     142case $host in
    142143*-*-irix6*)
    143144  # Find out which ABI we are using.
    144145  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
    145146  if AC_TRY_EVAL(ac_compile); then
    146     case "`/usr/bin/file conftest.o`" in
     147   if test "$lt_cv_prog_gnu_ld" = yes; then
     148    case `/usr/bin/file conftest.$ac_objext` in
     149    *32-bit*)
     150      LD="${LD-ld} -melf32bsmip"
     151      ;;
     152    *N32*)
     153      LD="${LD-ld} -melf32bmipn32"
     154      ;;
     155    *64-bit*)
     156      LD="${LD-ld} -melf64bmip"
     157      ;;
     158    esac
     159   else
     160    case `/usr/bin/file conftest.$ac_objext` in
    147161    *32-bit*)
    148162      LD="${LD-ld} -32"
     
    153167    *64-bit*)
    154168      LD="${LD-ld} -64"
     169      ;;
     170    esac
     171   fi
     172  fi
     173  rm -rf conftest*
     174  ;;
     175
     176ia64-*-hpux*)
     177  # Find out which ABI we are using.
     178  echo 'int i;' > conftest.$ac_ext
     179  if AC_TRY_EVAL(ac_compile); then
     180    case "`/usr/bin/file conftest.o`" in
     181    *ELF-32*)
     182      HPUX_IA64_MODE="32"
     183      ;;
     184    *ELF-64*)
     185      HPUX_IA64_MODE="64"
    155186      ;;
    156187    esac
     
    188219      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
    189220
    190   case "$host/$CC" in
     221  case $host/$CC in
    191222  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
    192223    # old mingw systems require "-dll" to link a DLL, while more recent ones
     
    208239
    209240# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
    210 AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
     241AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
    211242
    212243# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
    213 AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
     244AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
    214245
    215246# AC_ENABLE_SHARED - implement the --enable-shared flag
     
    217248#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
    218249#   `yes'.
    219 AC_DEFUN(AC_ENABLE_SHARED, [dnl
    220 define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
     250AC_DEFUN([AC_ENABLE_SHARED],
     251[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
    221252AC_ARG_ENABLE(shared,
    222253changequote(<<, >>)dnl
     
    224255changequote([, ])dnl
    225256[p=${PACKAGE-default}
    226 case "$enableval" in
     257case $enableval in
    227258yes) enable_shared=yes ;;
    228259no) enable_shared=no ;;
     
    243274
    244275# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
    245 AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     276AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    246277AC_ENABLE_SHARED(no)])
    247278
     
    250281#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
    251282#   `yes'.
    252 AC_DEFUN(AC_ENABLE_STATIC, [dnl
    253 define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
     283AC_DEFUN([AC_ENABLE_STATIC],
     284[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
    254285AC_ARG_ENABLE(static,
    255286changequote(<<, >>)dnl
     
    257288changequote([, ])dnl
    258289[p=${PACKAGE-default}
    259 case "$enableval" in
     290case $enableval in
    260291yes) enable_static=yes ;;
    261292no) enable_static=no ;;
     
    276307
    277308# AC_DISABLE_STATIC - set the default static flag to --disable-static
    278 AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     309AC_DEFUN([AC_DISABLE_STATIC],
     310[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    279311AC_ENABLE_STATIC(no)])
    280312
     
    284316#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
    285317#   `yes'.
    286 AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
    287 define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
     318AC_DEFUN([AC_ENABLE_FAST_INSTALL],
     319[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
    288320AC_ARG_ENABLE(fast-install,
    289321changequote(<<, >>)dnl
     
    291323changequote([, ])dnl
    292324[p=${PACKAGE-default}
    293 case "$enableval" in
     325case $enableval in
    294326yes) enable_fast_install=yes ;;
    295327no) enable_fast_install=no ;;
     
    310342
    311343# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
    312 AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     344AC_DEFUN([AC_DISABLE_FAST_INSTALL],
     345[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    313346AC_ENABLE_FAST_INSTALL(no)])
    314347
     
    317350#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
    318351#   `both'.
    319 AC_DEFUN(AC_LIBTOOL_PICMODE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     352AC_DEFUN([AC_LIBTOOL_PICMODE],
     353[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    320354pic_mode=ifelse($#,1,$1,default)])
    321355
    322356
    323357# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
    324 AC_DEFUN(AC_PATH_TOOL_PREFIX,
     358AC_DEFUN([AC_PATH_TOOL_PREFIX],
    325359[AC_MSG_CHECKING([for $1])
    326360AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
    327 [case "$MAGIC_CMD" in
     361[case $MAGIC_CMD in
    328362  /*)
    329363  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     
    344378      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
    345379      if test -n "$file_magic_test_file"; then
    346         case "$deplibs_check_method" in
     380        case $deplibs_check_method in
    347381        "file_magic "*)
    348382          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
     
    384418
    385419# AC_PATH_MAGIC - find a file program which can recognise a shared library
    386 AC_DEFUN(AC_PATH_MAGIC,
     420AC_DEFUN([AC_PATH_MAGIC],
    387421[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
    388422AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
     
    398432
    399433# AC_PROG_LD - find the path to the GNU or non-GNU linker
    400 AC_DEFUN(AC_PROG_LD,
     434AC_DEFUN([AC_PROG_LD],
    401435[AC_ARG_WITH(gnu-ld,
    402436[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
     
    406440AC_REQUIRE([AC_CANONICAL_BUILD])dnl
    407441ac_prog=ld
    408 if test "$ac_cv_prog_gcc" = yes; then
     442if test "$GCC" = yes; then
    409443  # Check if gcc -print-prog-name=ld gives a path.
    410444  AC_MSG_CHECKING([for ld used by GCC])
     
    416450    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
    417451  esac
    418   case "$ac_prog" in
     452  case $ac_prog in
    419453    # Accept absolute paths.
    420 changequote(,)dnl
    421     [\\/]* | [A-Za-z]:[\\/]*)
    422       re_direlt='/[^/][^/]*/\.\./'
    423 changequote([,])dnl
     454    [[\\/]* | [A-Za-z]:[\\/]*)]
     455      re_direlt=['/[^/][^/]*/\.\./']
    424456      # Canonicalize the path of ld
    425457      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
     
    443475  AC_MSG_CHECKING([for non-GNU ld])
    444476fi
    445 AC_CACHE_VAL(ac_cv_path_LD,
     477AC_CACHE_VAL(lt_cv_path_LD,
    446478[if test -z "$LD"; then
    447479  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
     
    449481    test -z "$ac_dir" && ac_dir=.
    450482    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
    451       ac_cv_path_LD="$ac_dir/$ac_prog"
     483      lt_cv_path_LD="$ac_dir/$ac_prog"
    452484      # Check to see if the program is GNU ld.  I'd rather use --version,
    453485      # but apparently some GNU ld's only accept -v.
    454486      # Break only if it was the GNU/non-GNU ld that we prefer.
    455       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
     487      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
    456488        test "$with_gnu_ld" != no && break
    457489      else
     
    462494  IFS="$ac_save_ifs"
    463495else
    464   ac_cv_path_LD="$LD" # Let the user override the test with a path.
     496  lt_cv_path_LD="$LD" # Let the user override the test with a path.
    465497fi])
    466 LD="$ac_cv_path_LD"
     498LD="$lt_cv_path_LD"
    467499if test -n "$LD"; then
    468500  AC_MSG_RESULT($LD)
     
    474506])
    475507
    476 AC_DEFUN(AC_PROG_LD_GNU,
    477 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
     508AC_DEFUN([AC_PROG_LD_GNU],
     509[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
    478510[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
    479511if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
    480   ac_cv_prog_gnu_ld=yes
     512  lt_cv_prog_gnu_ld=yes
    481513else
    482   ac_cv_prog_gnu_ld=no
     514  lt_cv_prog_gnu_ld=no
    483515fi])
    484 with_gnu_ld=$ac_cv_prog_gnu_ld
     516with_gnu_ld=$lt_cv_prog_gnu_ld
    485517])
    486518
    487519# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
    488520#   -- PORTME Some linkers may need a different reload flag.
    489 AC_DEFUN(AC_PROG_LD_RELOAD_FLAG,
     521AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
    490522[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
    491523[lt_cv_ld_reload_flag='-r'])
     
    496528# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
    497529#  -- PORTME fill in with the dynamic library characteristics
    498 AC_DEFUN(AC_DEPLIBS_CHECK_METHOD,
     530AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
    499531[AC_CACHE_CHECK([how to recognise dependant libraries],
    500532lt_cv_deplibs_check_method,
     
    513545# whether `pass_all' will *always* work, you probably want this one.
    514546
    515 case "$host_os" in
    516 aix4*)
     547case $host_os in
     548aix*)
    517549  lt_cv_deplibs_check_method=pass_all
    518550  ;;
     
    523555
    524556bsdi4*)
    525   changequote(,)dnl
    526   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
    527   changequote([, ])dnl
     557  lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']
    528558  lt_cv_file_magic_cmd='/usr/bin/file -L'
    529559  lt_cv_file_magic_test_file=/shlib/libc.so
     
    535565  ;;
    536566
     567darwin* | rhapsody*)
     568  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
     569  lt_cv_file_magic_cmd='/usr/bin/file -L'
     570  case "$host_os" in
     571  rhapsody* | darwin1.[012])
     572    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
     573    ;;
     574  *) # Darwin 1.3 on
     575    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
     576    ;;
     577  esac
     578  ;;
     579
    537580freebsd* )
    538581  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    539     case "$host_cpu" in
     582    case $host_cpu in
    540583    i*86 )
    541584      # Not sure whether the presence of OpenBSD here was a mistake.
    542585      # Let's accept both of them until this is cleared up.
    543       changequote(,)dnl
    544       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
    545       changequote([, ])dnl
     586      lt_cv_deplibs_check_method=['file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
    546587      lt_cv_file_magic_cmd=/usr/bin/file
    547588      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
     
    557598  ;;
    558599
    559 hpux10.20*)
    560   # TODO:  Does this work for hpux-11 too?
    561   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    562   lt_cv_file_magic_cmd=/usr/bin/file
    563   lt_cv_file_magic_test_file=/usr/lib/libc.sl
     600hpux10.20*|hpux11*)
     601  case $host_cpu in
     602  hppa*)
     603    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
     604    lt_cv_file_magic_cmd=/usr/bin/file
     605    lt_cv_file_magic_test_file=/usr/lib/libc.sl
     606    ;;
     607  ia64*)
     608    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64']
     609    lt_cv_file_magic_cmd=/usr/bin/file
     610    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
     611    ;;
     612  esac
    564613  ;;
    565614
    566615irix5* | irix6*)
    567   case "$host_os" in
     616  case $host_os in
    568617  irix5*)
    569618    # this will be overridden with pass_all, but let us keep it just in case
     
    571620    ;;
    572621  *)
    573     case "$LD" in
     622    case $LD in
    574623    *-32|*"-32 ") libmagic=32-bit;;
    575624    *-n32|*"-n32 ") libmagic=N32;;
     
    578627    esac
    579628    # this will be overridden with pass_all, but let us keep it just in case
    580     changequote(,)dnl
    581     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
    582     changequote([, ])dnl
     629    lt_cv_deplibs_check_method=["file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
    583630    ;;
    584631  esac
     
    589636# This must be Linux ELF.
    590637linux-gnu*)
    591   case "$host_cpu" in
    592   alpha* | i*86 | powerpc* | sparc* | ia64* )
     638  case $host_cpu in
     639  alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
    593640    lt_cv_deplibs_check_method=pass_all ;;
    594641  *)
    595642    # glibc up to 2.1.1 does not perform some relocations on ARM
    596     changequote(,)dnl
    597     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
    598     changequote([, ])dnl
     643    lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'] ;;
    599644  esac
    600645  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
     
    602647
    603648netbsd*)
    604   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
     649  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     650    [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
    605651  else
    606     changequote(,)dnl
    607     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
    608     changequote([, ])dnl
    609     lt_cv_file_magic_cmd='/usr/bin/file -L'
    610     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
     652    [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
    611653  fi
     654  ;;
     655
     656newsos6)
     657  [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
     658  lt_cv_file_magic_cmd=/usr/bin/file
     659  lt_cv_file_magic_test_file=/usr/lib/libnls.so
    612660  ;;
    613661
     
    628676  ;;
    629677
     678[sysv5uw[78]* | sysv4*uw2*)]
     679  lt_cv_deplibs_check_method=pass_all
     680  ;;
     681
    630682sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    631   case "$host_vendor" in
     683  case $host_vendor in
    632684  ncr)
    633685    lt_cv_deplibs_check_method=pass_all
    634686    ;;
    635687  motorola)
    636     changequote(,)dnl
    637     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]'
    638     changequote([, ])dnl
     688    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]']
    639689    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    640690    ;;
     
    649699
    650700# AC_PROG_NM - find the path to a BSD-compatible name lister
    651 AC_DEFUN(AC_PROG_NM,
     701AC_DEFUN([AC_PROG_NM],
    652702[AC_MSG_CHECKING([for BSD-compatible nm])
    653 AC_CACHE_VAL(ac_cv_path_NM,
     703AC_CACHE_VAL(lt_cv_path_NM,
    654704[if test -n "$NM"; then
    655705  # Let the user override the test.
    656   ac_cv_path_NM="$NM"
     706  lt_cv_path_NM="$NM"
    657707else
    658708  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
     
    666716      # Tru64's nm complains that /dev/null is an invalid object file
    667717      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
    668         ac_cv_path_NM="$tmp_nm -B"
     718        lt_cv_path_NM="$tmp_nm -B"
    669719        break
    670720      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
    671         ac_cv_path_NM="$tmp_nm -p"
     721        lt_cv_path_NM="$tmp_nm -p"
    672722        break
    673723      else
    674         ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
     724        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
    675725        continue # so that we can try to find one that supports BSD flags
    676726      fi
     
    678728  done
    679729  IFS="$ac_save_ifs"
    680   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
     730  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    681731fi])
    682 NM="$ac_cv_path_NM"
     732NM="$lt_cv_path_NM"
    683733AC_MSG_RESULT([$NM])
    684734])
    685735
    686736# AC_CHECK_LIBM - check for math library
    687 AC_DEFUN(AC_CHECK_LIBM,
     737AC_DEFUN([AC_CHECK_LIBM],
    688738[AC_REQUIRE([AC_CANONICAL_HOST])dnl
    689739LIBM=
    690 case "$host" in
     740case $host in
    691741*-*-beos* | *-*-cygwin* | *-*-pw32*)
    692742  # These system don't have libm
     
    712762# flat and you're not using automake, define top_builddir and
    713763# top_srcdir appropriately in the Makefiles.
    714 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    715   case "$enable_ltdl_convenience" in
     764AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
     765[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     766  case $enable_ltdl_convenience in
    716767  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
    717768  "") enable_ltdl_convenience=yes
     
    733784# top_srcdir appropriately in the Makefiles.
    734785# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
    735 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     786AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
     787[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    736788  AC_CHECK_LIB(ltdl, main,
    737789  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
     
    761813
    762814# AC_LIBTOOL_CXX - enable support for C++ libraries
    763 AC_DEFUN(AC_LIBTOOL_CXX,[AC_REQUIRE([_AC_LIBTOOL_CXX])])
    764 AC_DEFUN(_AC_LIBTOOL_CXX,
    765 [AC_REQUIRE([AC_PROG_LIBTOOL])
    766 AC_REQUIRE([AC_PROG_CXX])
     815AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_AC_LIBTOOL_CXX])])
     816
     817AC_DEFUN([_AC_LIBTOOL_CXX],
     818[AC_REQUIRE([AC_PROG_CXX])
    767819AC_REQUIRE([AC_PROG_CXXCPP])
    768820LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
     
    772824dnl is set to the C++ compiler.
    773825AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
    774 MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
     826MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
    775827LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
    776828AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
     
    790842
    791843# AC_LIBTOOL_GCJ - enable support for GCJ libraries
    792 AC_DEFUN(AC_LIBTOOL_GCJ,[AC_REQUIRE([_AC_LIBTOOL_GCJ])])
    793 AC_DEFUN(_AC_LIBTOOL_GCJ,
     844AC_DEFUN([AC_LIBTOOL_GCJ],[AC_REQUIRE([_AC_LIBTOOL_GCJ])])
     845
     846AC_DEFUN([_AC_LIBTOOL_GCJ],
    794847[AC_REQUIRE([AC_PROG_LIBTOOL])
    795848AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
     
    805858dnl is set to the C++ compiler.
    806859AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
    807 MAGIC_CMD="$MAGIC_CMD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
     860MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
    808861LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
    809862AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
     
    823876
    824877dnl old names
    825 AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
    826 AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
    827 AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
    828 AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
    829 AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
    830 AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
    831 AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
     878AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
     879AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
     880AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
     881AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
     882AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
     883AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
     884AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
    832885
    833886dnl This is just to silence aclocal about the macro not being used
    834887ifelse([AC_DISABLE_FAST_INSTALL])dnl
    835888
    836 AC_DEFUN([LT_AC_PROG_GCJ],[
    837   AC_CHECK_TOOL(GCJ, gcj, no)
     889AC_DEFUN([LT_AC_PROG_GCJ],
     890[AC_CHECK_TOOL(GCJ, gcj, no)
    838891  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
    839892  AC_SUBST(GCJFLAGS)
Note: See TracChangeset for help on using the changeset viewer.