diff options
author | Kevin Lim <ktlim@umich.edu> | 2005-03-28 14:40:02 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2005-03-28 14:40:02 -0500 |
commit | 2e2d9b5c35a8bc1f5b8f1a96cd9712429475b1d0 (patch) | |
tree | 5700b3d927c17ffdd3b8c53d1209e18f8be26fd1 /SConscript | |
parent | 2ec918362ee1235cf0d36fb7aac3e3f4ce2d4ddc (diff) | |
parent | a86b95cb182b435bda5d76197cd9f32ba6db83c2 (diff) | |
download | gem5-2e2d9b5c35a8bc1f5b8f1a96cd9712429475b1d0.tar.xz |
Merge ktlim@zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5
--HG--
extra : convert_revision : 95e94251150a3eea380b6b3bc3a9596e188df315
Diffstat (limited to 'SConscript')
-rw-r--r-- | SConscript | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/SConscript b/SConscript index ad9d89ff0..623763256 100644 --- a/SConscript +++ b/SConscript @@ -28,6 +28,7 @@ import os import sys +from os.path import isdir # This file defines how to build a particular configuration of M5 # based on variable settings in the 'env' build environment. @@ -366,18 +367,17 @@ else: extra_libraries = [] env.Append(LIBS=['z']) -if env['USE_MYSQL']: +if isdir('/usr/lib64/mysql') or isdir('/usr/lib/mysql') or \ + isdir('/usr/local/lib/mysql'): + print 'Compiling with MySQL support!' + env.Append(LIBPATH=['/usr/lib64/mysql', '/usr/local/lib/mysql/', + '/usr/lib/mysql']) + env.Append(CPPPATH=['/usr/local/include/mysql', '/usr/include/mysql']) sources += mysql_sources env.Append(CPPDEFINES = 'USE_MYSQL') env.Append(CPPDEFINES = 'STATS_BINNING') - env.Append(CPPPATH=['/usr/local/include/mysql', '/usr/include/mysql']) - if os.path.isdir('/usr/lib64'): - env.Append(LIBPATH=['/usr/lib64/mysql']) - else: - env.Append(LIBPATH=['/usr/lib/mysql/']) env.Append(LIBS=['mysqlclient']) - ################################################### # # Special build rules. |