diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-08 09:26:46 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-08 09:26:46 +0000 |
commit | 9eb222426c4275cf35648ac8dc2e6c83cdbba14c (patch) | |
tree | 132f2cb9e34cbe382d8f285b4d4a25e52def2acd /configure | |
parent | 48d5e34204d9b077bc22cd095deb1006e621d930 (diff) | |
download | hercules-9eb222426c4275cf35648ac8dc2e6c83cdbba14c.tar.gz hercules-9eb222426c4275cf35648ac8dc2e6c83cdbba14c.tar.bz2 hercules-9eb222426c4275cf35648ac8dc2e6c83cdbba14c.tar.xz hercules-9eb222426c4275cf35648ac8dc2e6c83cdbba14c.zip |
* Updated configure script:
- small correction to the help text of --with-mysql and --with-pcre
- added the -Wno-switch compiler option to suppress the "enumeration value '%s' not handled in switch" warnings
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11695 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 53 |
1 files changed, 48 insertions, 5 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 11312 . +# From configure.in Revision: 11695. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # @@ -1252,10 +1252,12 @@ if test -n "$ac_init_help"; then Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-mysql=[ARG] use MySQL client library [default=yes], optionally - specify path to the mysql_config executable - --with-pcre=[ARG] use PCRE library [default=yes], optionally specify - the root directory path of pcre installation + --with-mysql[=ARG] use MySQL client library, optionally specify path to + the mysql_config executable (by default mysql is + used if found) + --with-pcre[=ARG] use PCRE library, optionally specify the root + directory path of pcre installation (by default pcre + is used if found) --with-zlib=DIR root directory path of zlib installation (defaults to /usr/local or /usr if not found in /usr/local) @@ -3788,6 +3790,47 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: checking whether $CC supports -Wno-switch" >&5 +echo $ECHO_N "checking whether $CC supports -Wno-switch... $ECHO_C" >&6; } +OLD_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -Wno-switch" +cat >conftest.$ac_ext <<_ACEOF +int foo; +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + CFLAGS="$OLD_CFLAGS" + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + ############################################################################### # Checks for libraries and header files. |