Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: aclocal.m4

Issue 1435813002: build: detect the right `ar` tool (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Makefile.in ('k') | autotools/ar-lib » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # generated automatically by aclocal 1.15 -*- Autoconf -*- 1 # generated automatically by aclocal 1.15 -*- Autoconf -*-
2 2
3 # Copyright (C) 1996-2014 Free Software Foundation, Inc. 3 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
4 4
5 # This file is free software; the Free Software Foundation 5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it, 6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved. 7 # with or without modifications, as long as this notice is preserved.
8 8
9 # This program is distributed in the hope that it will be useful, 9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 # AM_SET_CURRENT_AUTOMAKE_VERSION 49 # AM_SET_CURRENT_AUTOMAKE_VERSION
50 # ------------------------------- 50 # -------------------------------
51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54 [AM_AUTOMAKE_VERSION([1.15])dnl 54 [AM_AUTOMAKE_VERSION([1.15])dnl
55 m4_ifndef([AC_AUTOCONF_VERSION], 55 m4_ifndef([AC_AUTOCONF_VERSION],
56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58 58
59 # Copyright (C) 2011-2014 Free Software Foundation, Inc.
60 #
61 # This file is free software; the Free Software Foundation
62 # gives unlimited permission to copy and/or distribute it,
63 # with or without modifications, as long as this notice is preserved.
64
65 # AM_PROG_AR([ACT-IF-FAIL])
66 # -------------------------
67 # Try to determine the archiver interface, and trigger the ar-lib wrapper
68 # if it is needed. If the detection of archiver interface fails, run
69 # ACT-IF-FAIL (default is to abort configure with a proper error message).
70 AC_DEFUN([AM_PROG_AR],
71 [AC_BEFORE([$0], [LT_INIT])dnl
72 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
73 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
74 AC_REQUIRE_AUX_FILE([ar-lib])dnl
75 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
76 : ${AR=ar}
77
78 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
79 [AC_LANG_PUSH([C])
80 am_cv_ar_interface=ar
81 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
82 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
83 AC_TRY_EVAL([am_ar_try])
84 if test "$ac_status" -eq 0; then
85 am_cv_ar_interface=ar
86 else
87 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAG E_LOG_FD'
88 AC_TRY_EVAL([am_ar_try])
89 if test "$ac_status" -eq 0; then
90 am_cv_ar_interface=lib
91 else
92 am_cv_ar_interface=unknown
93 fi
94 fi
95 rm -f conftest.lib libconftest.a
96 ])
97 AC_LANG_POP([C])])
98
99 case $am_cv_ar_interface in
100 ar)
101 ;;
102 lib)
103 # Microsoft lib, so override with the ar-lib wrapper script.
104 # FIXME: It is wrong to rewrite AR.
105 # But if we don't then we get into trouble of one sort or another.
106 # A longer-term fix would be to have automake use am__AR in this case,
107 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
108 # similar.
109 AR="$am_aux_dir/ar-lib $AR"
110 ;;
111 unknown)
112 m4_default([$1],
113 [AC_MSG_ERROR([could not determine $AR interface])])
114 ;;
115 esac
116 AC_SUBST([AR])dnl
117 ])
118
59 # Figure out how to run the assembler. -*- Autoconf -*- 119 # Figure out how to run the assembler. -*- Autoconf -*-
60 120
61 # Copyright (C) 2001-2014 Free Software Foundation, Inc. 121 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
62 # 122 #
63 # This file is free software; the Free Software Foundation 123 # This file is free software; the Free Software Foundation
64 # gives unlimited permission to copy and/or distribute it, 124 # gives unlimited permission to copy and/or distribute it,
65 # with or without modifications, as long as this notice is preserved. 125 # with or without modifications, as long as this notice is preserved.
66 126
67 # AM_PROG_AS 127 # AM_PROG_AS
68 # ---------- 128 # ----------
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 done 1288 done
1229 rm -rf conftest.dir 1289 rm -rf conftest.dir
1230 1290
1231 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1291 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1232 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1292 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1233 1293
1234 AC_SUBST([am__tar]) 1294 AC_SUBST([am__tar])
1235 AC_SUBST([am__untar]) 1295 AC_SUBST([am__untar])
1236 ]) # _AM_PROG_TAR 1296 ]) # _AM_PROG_TAR
1237 1297
OLDNEW
« no previous file with comments | « Makefile.in ('k') | autotools/ar-lib » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698