Skip to content

Commit de85044

Browse files
committed
* ext/tk/extconf.rb: log() is built-in in some compilers and needs
proper declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 831eb93 commit de85044

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Fri Mar 12 06:48:58 2010 Nobuyoshi Nakada <[email protected]>
2+
3+
* ext/tk/extconf.rb: log() is built-in in some compilers and needs
4+
proper declaration.
5+
16
Fri Mar 12 06:37:13 2010 Nobuyoshi Nakada <[email protected]>
27

38
* sample/timeout.rb: split from lib/timeout.rb.

ext/tk/extconf.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def get_tclConfig(tclConfig_file, tkConfig_file, tclConfig_dir, tkConfig_dir)
634634
TkLib_Config["tclConfig-dir"] = tclConfig_dir
635635
TkLib_Config["tkConfig-dir"] = tkConfig_dir
636636

637-
print("Search tclConfig.sh and tkConfig.sh.")
637+
print("Search tclConfig.sh and tkConfig.sh in #{tclConfig_dir}.")
638638
if tclConfig_dir
639639
tclConfig, tkConfig =
640640
search_tclConfig([ ((tclConfig_file)? tclConfig_file: tclConfig_dir),
@@ -1273,7 +1273,7 @@ def pthread_check()
12731273
print(".") # progress
12741274
have_library("dl", "dlopen")
12751275
print(".") # progress
1276-
have_library("m", "log")
1276+
have_library("m", "log", "math.h")
12771277
print("\n") # progress
12781278
end
12791279
$CPPFLAGS += ' -D_WIN32' if /cygwin/ =~ RUBY_PLATFORM

0 commit comments

Comments
 (0)