1 |
--- configure.in 2010-06-16 23:20:08.000000000 +0200 |
2 |
+++ configure.in.dlucio 2010-10-08 17:58:04.000000000 +0200 |
3 |
@@ -75,6 +75,18 @@ |
4 |
AC_DEFINE([LINUX],[1],[Define if Linux]) |
5 |
AC_SUBST(extra_incl) |
6 |
extra_incl="-I/usr/include/pcap" |
7 |
+ # Test if the compiler is 64bit |
8 |
+ echo 'int i;' > conftest.$ac_ext |
9 |
+ snort_cv_cc_64bit_output=no |
10 |
+ if AC_TRY_EVAL(ac_compile); then |
11 |
+ case `/usr/bin/file conftest.$ac_objext` in |
12 |
+ *"ELF 64"*) |
13 |
+ snort_cv_cc_64bit_output=yes |
14 |
+ ;; |
15 |
+ esac |
16 |
+ fi |
17 |
+ rm -rf conftest* |
18 |
+ |
19 |
;; |
20 |
*-hpux10*|*-hpux11*) |
21 |
AC_DEFINE([HPUX],[1],[Define if HP-UX 10 or 11]) |
22 |
@@ -110,6 +122,16 @@ |
23 |
extra_incl="-I/sw/include" |
24 |
esac |
25 |
|
26 |
+case $host_cpu:$snort_cv_cc_64bit_output in |
27 |
+powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) |
28 |
+ snort_libname="lib64" |
29 |
+ ;; |
30 |
+*:*) |
31 |
+ snort_libname="lib" |
32 |
+ ;; |
33 |
+esac |
34 |
+ |
35 |
+ |
36 |
# ICC stuff |
37 |
ICC=no |
38 |
if eval "echo $CC | grep icc > /dev/null" ; then |