OSDN Git Service

* for x86_64
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Thu, 11 Sep 2008 05:57:16 +0000 (05:57 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Thu, 11 Sep 2008 05:57:16 +0000 (05:57 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_12_0@3174 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/Makefile.am
src/Makefile.in
src/serf/Makefile
src/serf/config.log
src/serf/config.nice
src/serf/config.status

index 5d2e9b2..3359cf6 100644 (file)
@@ -50,7 +50,7 @@ make_so:
        @if test ! -L mod_chxj.so ; then ln -s .libs/libmod_chxj.so mod_chxj.so ; fi
 
 serf/libserf-0.la:
-       (cd serf; ./configure --with-apr=`dirname @APR_CONFIG@` --with-apr-util=`dirname @APU_CONFIG@`; make)
+       (cd serf; CFLAGS=-fPIC ./configure --enable-shared --with-apr=`dirname @APR_CONFIG@` --with-apr-util=`dirname @APU_CONFIG@`; make)
 
 clean:
        rm -fr .libs
index 058b32b..63c6914 100644 (file)
@@ -859,7 +859,7 @@ make_so:
        @if test ! -L mod_chxj.so ; then ln -s .libs/libmod_chxj.so mod_chxj.so ; fi
 
 serf/libserf-0.la:
-       (cd serf; ./configure --with-apr=`dirname @APR_CONFIG@` --with-apr-util=`dirname @APU_CONFIG@`; make)
+       (cd serf; CFLAGS=-fPIC ./configure --enable-shared --with-apr=`dirname @APR_CONFIG@` --with-apr-util=`dirname @APU_CONFIG@`; make)
 
 clean:
        rm -fr .libs
index 5bfa612..07e2ac3 100644 (file)
@@ -36,7 +36,7 @@ includedir=${prefix}/include/serf-${SERF_MAJOR_VERSION}
 
 LIBTOOL = /usr/share/apr-1.0/build/libtool --silent
 CC = i486-linux-gnu-gcc
-CFLAGS =  -pipe -Wall -g -O2 -pthread
+CFLAGS = -fPIC -pipe -Wall -g -O2 -pthread
 CPPFLAGS =  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
 INCLUDES = -I$(srcdir) -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 $(EXTRA_INCLUDES)
 MKDIR = mkdir -p
index 515513f..991987a 100644 (file)
@@ -4,7 +4,7 @@ running configure, to aid debugging if configure makes a mistake.
 It was created by configure, which was
 generated by GNU Autoconf 2.60.  Invocation command line was
 
-  $ ./configure --with-apr=/usr/bin --with-apr-util=/usr/bin
+  $ ./configure --enable-shared --with-apr=/usr/bin --with-apr-util=/usr/bin
 
 ## --------- ##
 ## Platform. ##
@@ -85,7 +85,7 @@ configure:3264: i486-linux-gnu-gcc -V >&5
 i486-linux-gnu-gcc: '-V' option must have argument
 configure:3267: $? = 1
 configure:3290: checking for C compiler default output file name
-configure:3317: i486-linux-gnu-gcc  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   conftest.c  >&5
+configure:3317: i486-linux-gnu-gcc -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   conftest.c  >&5
 configure:3320: $? = 0
 configure:3366: result: a.out
 configure:3371: checking whether the C compiler works
@@ -95,15 +95,15 @@ configure:3401: result: yes
 configure:3408: checking whether we are cross compiling
 configure:3410: result: no
 configure:3413: checking for suffix of executables
-configure:3420: i486-linux-gnu-gcc -o conftest  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   conftest.c  >&5
+configure:3420: i486-linux-gnu-gcc -o conftest -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   conftest.c  >&5
 configure:3423: $? = 0
 configure:3447: result: 
 configure:3453: checking for suffix of object files
-configure:3479: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:3479: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:3482: $? = 0
 configure:3505: result: o
 configure:3509: checking whether we are using the GNU C compiler
-configure:3538: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:3538: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:3544: $? = 0
 configure:3551: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:3554: $? = 0
@@ -119,7 +119,7 @@ configure:3636: test -s conftest.o
 configure:3639: $? = 0
 configure:3769: result: yes
 configure:3786: checking for i486-linux-gnu-gcc option to accept ISO C89
-configure:3860: i486-linux-gnu-gcc  -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:3860: i486-linux-gnu-gcc  -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:3866: $? = 0
 configure:3873: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:3876: $? = 0
@@ -149,19 +149,19 @@ configure:4446: result: /bin/grep
 configure:4451: checking for egrep
 configure:4529: result: /bin/grep -E
 configure:4534: checking for ANSI C header files
-configure:4564: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4564: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4570: $? = 0
 configure:4577: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4580: $? = 0
 configure:4587: test -s conftest.o
 configure:4590: $? = 0
-configure:4686: i486-linux-gnu-gcc -o conftest  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   conftest.c  >&5
+configure:4686: i486-linux-gnu-gcc -o conftest -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   conftest.c  >&5
 configure:4689: $? = 0
 configure:4695: ./conftest
 configure:4698: $? = 0
 configure:4715: result: yes
 configure:4739: checking for sys/types.h
-configure:4760: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4760: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4766: $? = 0
 configure:4773: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4776: $? = 0
@@ -169,7 +169,7 @@ configure:4783: test -s conftest.o
 configure:4786: $? = 0
 configure:4799: result: yes
 configure:4739: checking for sys/stat.h
-configure:4760: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4760: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4766: $? = 0
 configure:4773: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4776: $? = 0
@@ -177,7 +177,7 @@ configure:4783: test -s conftest.o
 configure:4786: $? = 0
 configure:4799: result: yes
 configure:4739: checking for stdlib.h
-configure:4760: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4760: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4766: $? = 0
 configure:4773: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4776: $? = 0
@@ -185,7 +185,7 @@ configure:4783: test -s conftest.o
 configure:4786: $? = 0
 configure:4799: result: yes
 configure:4739: checking for string.h
-configure:4760: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4760: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4766: $? = 0
 configure:4773: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4776: $? = 0
@@ -193,7 +193,7 @@ configure:4783: test -s conftest.o
 configure:4786: $? = 0
 configure:4799: result: yes
 configure:4739: checking for memory.h
-configure:4760: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4760: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4766: $? = 0
 configure:4773: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4776: $? = 0
@@ -201,7 +201,7 @@ configure:4783: test -s conftest.o
 configure:4786: $? = 0
 configure:4799: result: yes
 configure:4739: checking for strings.h
-configure:4760: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4760: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4766: $? = 0
 configure:4773: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4776: $? = 0
@@ -209,7 +209,7 @@ configure:4783: test -s conftest.o
 configure:4786: $? = 0
 configure:4799: result: yes
 configure:4739: checking for inttypes.h
-configure:4760: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4760: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4766: $? = 0
 configure:4773: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4776: $? = 0
@@ -217,7 +217,7 @@ configure:4783: test -s conftest.o
 configure:4786: $? = 0
 configure:4799: result: yes
 configure:4739: checking for stdint.h
-configure:4760: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4760: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4766: $? = 0
 configure:4773: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4776: $? = 0
@@ -225,7 +225,7 @@ configure:4783: test -s conftest.o
 configure:4786: $? = 0
 configure:4799: result: yes
 configure:4739: checking for unistd.h
-configure:4760: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4760: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4766: $? = 0
 configure:4773: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4776: $? = 0
@@ -233,7 +233,7 @@ configure:4783: test -s conftest.o
 configure:4786: $? = 0
 configure:4799: result: yes
 configure:4821: checking openssl/opensslv.h usability
-configure:4838: i486-linux-gnu-gcc -c  -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
+configure:4838: i486-linux-gnu-gcc -c -fPIC -pipe -Wall -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
 configure:4844: $? = 0
 configure:4851: test -z "$ac_c_werror_flag" || test ! -s conftest.err
 configure:4854: $? = 0
@@ -274,8 +274,8 @@ ac_cv_build=i686-pc-linux-gnu
 ac_cv_c_compiler_gnu=yes
 ac_cv_env_CC_set=
 ac_cv_env_CC_value=
-ac_cv_env_CFLAGS_set=
-ac_cv_env_CFLAGS_value=
+ac_cv_env_CFLAGS_set=set
+ac_cv_env_CFLAGS_value=-fPIC
 ac_cv_env_CPPFLAGS_set=
 ac_cv_env_CPPFLAGS_value=
 ac_cv_env_CPP_set=
@@ -325,7 +325,7 @@ APU_CONFIG='/usr/bin/apu-1-config'
 APU_INCLUDEDIR='/usr/include/apr-1.0'
 APU_VERSION='1.2.7'
 CC='i486-linux-gnu-gcc'
-CFLAGS=' -pipe -Wall -g -O2 -pthread'
+CFLAGS='-fPIC -pipe -Wall -g -O2 -pthread'
 CPP='i486-linux-gnu-gcc -E'
 CPPFLAGS=' -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE'
 DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1'
index d87a00d..19c6651 100755 (executable)
@@ -2,7 +2,10 @@
 #
 # Created by configure
 
+CFLAGS="-fPIC"; export CFLAGS
 "./configure" \
+"--enable-shared" \
 "--with-apr=/usr/bin" \
 "--with-apr-util=/usr/bin" \
+"CFLAGS=-fPIC" \
 "$@"
index 1a2fc14..ef75fb9 100755 (executable)
@@ -316,7 +316,7 @@ Report bugs to <bug-autoconf@gnu.org>."
 ac_cs_version="\
 config.status
 configured by ./configure, generated by GNU Autoconf 2.60,
-  with options \"'--with-apr=/usr/bin' '--with-apr-util=/usr/bin'\"
+  with options \"'--enable-shared' '--with-apr=/usr/bin' '--with-apr-util=/usr/bin' 'CFLAGS=-fPIC'\"
 
 Copyright (C) 2006 Free Software Foundation, Inc.
 This config.status script is free software; the Free Software Foundation
@@ -381,10 +381,10 @@ if $ac_cs_silent; then
 fi
 
 if $ac_cs_recheck; then
-  echo "running CONFIG_SHELL=/bin/sh /bin/sh ./configure " '--with-apr=/usr/bin' '--with-apr-util=/usr/bin' $ac_configure_extra_args " --no-create --no-recursion" >&6
+  echo "running CONFIG_SHELL=/bin/sh /bin/sh ./configure " '--enable-shared' '--with-apr=/usr/bin' '--with-apr-util=/usr/bin' 'CFLAGS=-fPIC' $ac_configure_extra_args " --no-create --no-recursion" >&6
   CONFIG_SHELL=/bin/sh
   export CONFIG_SHELL
-  exec /bin/sh "./configure" '--with-apr=/usr/bin' '--with-apr-util=/usr/bin' $ac_configure_extra_args --no-create --no-recursion
+  exec /bin/sh "./configure" '--enable-shared' '--with-apr=/usr/bin' '--with-apr-util=/usr/bin' 'CFLAGS=-fPIC' $ac_configure_extra_args --no-create --no-recursion
 fi
 
 exec 5>>config.log
@@ -519,7 +519,7 @@ s,@APU_INCLUDEDIR@,|#_!!_#|/usr/include/apr-1.0,g
 s,@APU_VERSION@,|#_!!_#|1.2.7,g
 s,@APU_CONFIG@,|#_!!_#|/usr/bin/apu-1-config,g
 s,@CC@,|#_!!_#|i486-linux-gnu-gcc,g
-s,@CFLAGS@,|#_!!_#| -pipe -Wall -g -O2 -pthread,g
+s,@CFLAGS@,|#_!!_#|-fPIC -pipe -Wall -g -O2 -pthread,g
 s,@LDFLAGS@,|#_!!_#| ,g
 s,@CPPFLAGS@,|#_!!_#| -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE,g
 s,@ac_ct_CC@,|#_!!_#|i486-linux-gnu-gcc,g