diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-05-15 02:41:16 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-05-15 02:44:14 -0700 |
commit | ee1737eb4194ba55b0f093b232afbf62b90241a7 (patch) | |
tree | 7ca032bda75d69df7ad9cc4e84cf14b0904aa327 /configure.ac | |
parent | cfaffdc570efaed19665a44967078242e5c1965e (diff) | |
download | pkg-config-ee1737eb4194ba55b0f093b232afbf62b90241a7.tar.gz |
Clean up some of the autoconf usage
A few of the options in configure.ac were poorly quoted or didn't have
messages matching the typical autoconf style. PKG_CONFIG_FIND_PC_PATH
also had no reason to exist since it was used once immediately after its
definition.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 62 |
1 files changed, 34 insertions, 28 deletions
diff --git a/configure.ac b/configure.ac index 4290e60..763c7d1 100644 --- a/configure.ac +++ b/configure.ac @@ -11,13 +11,15 @@ m4_ifdef([LT_OUTPUT], [LT_OUTPUT]) AC_PROG_CC -AC_DEFUN([PKG_CONFIG_FIND_PC_PATH], -[ +dnl +dnl Default pkg-config search path +dnl AC_MSG_CHECKING([for default search path for .pc files]) -AC_ARG_WITH(pc_path, - [ --with-pc-path Override the default search path for .pc files ], - [ pc_path="$withval" ], - [ +AC_ARG_WITH([pc_path], + [AS_HELP_STRING([--with-pc-path], + [default search path for .pc files])], + [pc_path="$withval"], + [ # This is slightly wrong, but hopefully causes less confusion than # people being unable to find their .pc files in the standard location. if test "${prefix}" = "NONE"; then @@ -26,26 +28,30 @@ else pc_path='${libdir}/pkgconfig:${datadir}/pkgconfig' fi ]) - AC_MSG_RESULT([$pc_path]) - AC_SUBST([pc_path]) - -]) - -PKG_CONFIG_FIND_PC_PATH - -AC_MSG_CHECKING([for --with-system-include-path]) -AC_ARG_WITH(system_include_path, - [ --with-system-include-path Avoid -I flags that add the given directories ], - [ system_include_path="$withval" ], - [ system_include_path="/usr/include" ]) - AC_MSG_RESULT([$system_include_path]) - AC_SUBST([system_include_path]) - -AC_MSG_CHECKING([for --with-system-library-path]) -AC_ARG_WITH(system_library_path, - [ --with-system-library-path Avoid -L flags that add the given directories ], - [ system_library_path="$withval" ], - [ +AC_MSG_RESULT([$pc_path]) +AC_SUBST([pc_path]) + +dnl +dnl System default -I paths +dnl +AC_MSG_CHECKING([for system include path to avoid -I flags]) +AC_ARG_WITH([system_include_path], + [AS_HELP_STRING([--with-system-include-path], + [avoid -I flags from the given path])], + [system_include_path="$withval"], + [system_include_path="/usr/include"]) +AC_MSG_RESULT([$system_include_path]) +AC_SUBST([system_include_path]) + +dnl +dnl System default -L paths +dnl +AC_MSG_CHECKING([for system library path to avoid -L flags]) +AC_ARG_WITH([system_library_path], + [AS_HELP_STRING([--with-system-library-path], + [avoid -L flags from the given path])], + [system_library_path="$withval"], + [ case "$libdir" in *lib64) system_library_path="/usr/lib64:/usr/lib" @@ -55,8 +61,8 @@ case "$libdir" in ;; esac ]) - AC_MSG_RESULT([$system_library_path]) - AC_SUBST([system_library_path]) +AC_MSG_RESULT([$system_library_path]) +AC_SUBST([system_library_path]) # # Code taken from gtk+-2.0's configure.in. |