diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2000-11-10 17:50:06 +0000 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2000-11-10 17:50:06 +0000 |
commit | bcb826a7ad9047c9b19f463bcba3045c1795b335 (patch) | |
tree | 0aa010c53b32cab3842a0118b195c73c550aa7c1 | |
parent | f504141f8429011cdfeda09a7b138a0178ee63f0 (diff) | |
download | linux-pam-git-Linux-PAM-0-72-autoconf.tar.gz |
Relevant BUGIDs: task 15788Linux-PAM-0-72-autoconf
Purpose of commit: new feature
Commit summary:
---------------
User request to make 'strip' more abstracted: $(STRIP).
-rw-r--r-- | Make.Rules.in | 1 | ||||
-rwxr-xr-x | configure | 98 | ||||
-rw-r--r-- | configure.in | 3 | ||||
-rw-r--r-- | modules/pam_filter/upperLOWER/Makefile | 2 |
4 files changed, 56 insertions, 48 deletions
diff --git a/Make.Rules.in b/Make.Rules.in index df3de5ad..96337eb0 100644 --- a/Make.Rules.in +++ b/Make.Rules.in @@ -84,5 +84,6 @@ DYNTYPE=@DYNTYPE@ LIBDL=@LIBDL@ MKDIR=@MKDIR@ INSTALL=@INSTALL@ +STRIP=@STRIP@ LINKLIBS = $(NEED_LINK_LIB_C) $(LIBDL) @@ -2223,6 +2223,7 @@ if test "$GCC" = yes; then LD=ld LD_D="gcc -shared -Xlinker -x" LD_L="$LD -x -shared" + STRIP=strip else ### ### Non-gcc needs attention on per-OS basis @@ -2234,6 +2235,7 @@ else LD=ld LD_D="cc -z text -G -R." LD_L="$LD_D" + STRIP=strip fi @@ -2243,15 +2245,16 @@ fi + echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:2248: checking whether byte ordering is bigendian" >&5 +echo "configure:2251: checking whether byte ordering is bigendian" >&5 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_bigendian=unknown # See if sys/param.h defines the BYTE_ORDER macro. cat > conftest.$ac_ext <<EOF -#line 2255 "configure" +#line 2258 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> @@ -2262,11 +2265,11 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:2266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat > conftest.$ac_ext <<EOF -#line 2270 "configure" +#line 2273 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> @@ -2277,7 +2280,7 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yes else @@ -2297,7 +2300,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <<EOF -#line 2301 "configure" +#line 2304 "configure" #include "confdefs.h" main () { /* Are we little or big endian? From Harbison&Steele. */ @@ -2310,7 +2313,7 @@ main () { exit (u.c[sizeof (long) - 1] == 1); } EOF -if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_bigendian=no else @@ -2334,12 +2337,12 @@ EOF fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:2338: checking for working const" >&5 +echo "configure:2341: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2343 "configure" +#line 2346 "configure" #include "confdefs.h" int main() { @@ -2388,7 +2391,7 @@ ccp = (char const *const *) p; ; return 0; } EOF -if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -2409,12 +2412,12 @@ EOF fi echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:2413: checking for uid_t in sys/types.h" >&5 +echo "configure:2416: checking for uid_t in sys/types.h" >&5 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2418 "configure" +#line 2421 "configure" #include "confdefs.h" #include <sys/types.h> EOF @@ -2443,12 +2446,12 @@ EOF fi echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:2447: checking for off_t" >&5 +echo "configure:2450: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2452 "configure" +#line 2455 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -2476,12 +2479,12 @@ EOF fi echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:2480: checking for pid_t" >&5 +echo "configure:2483: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2485 "configure" +#line 2488 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -2509,12 +2512,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:2513: checking for size_t" >&5 +echo "configure:2516: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2518 "configure" +#line 2521 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -2542,12 +2545,12 @@ EOF fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:2546: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:2549: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2551 "configure" +#line 2554 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/time.h> @@ -2556,7 +2559,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:2560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -2577,12 +2580,12 @@ EOF fi echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 -echo "configure:2581: checking whether struct tm is in sys/time.h or time.h" >&5 +echo "configure:2584: checking whether struct tm is in sys/time.h or time.h" >&5 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2586 "configure" +#line 2589 "configure" #include "confdefs.h" #include <sys/types.h> #include <time.h> @@ -2590,7 +2593,7 @@ int main() { struct tm *tp; tp->tm_sec; ; return 0; } EOF -if { (eval echo configure:2594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm=time.h else @@ -2612,7 +2615,7 @@ fi echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 -echo "configure:2616: checking type of array argument to getgroups" >&5 +echo "configure:2619: checking type of array argument to getgroups" >&5 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2620,7 +2623,7 @@ else ac_cv_type_getgroups=cross else cat > conftest.$ac_ext <<EOF -#line 2624 "configure" +#line 2627 "configure" #include "confdefs.h" /* Thanks to Mike Rendell for this test. */ @@ -2645,7 +2648,7 @@ main() } EOF -if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_type_getgroups=gid_t else @@ -2659,7 +2662,7 @@ fi if test $ac_cv_type_getgroups = cross; then cat > conftest.$ac_ext <<EOF -#line 2663 "configure" +#line 2666 "configure" #include "confdefs.h" #include <unistd.h> EOF @@ -2684,13 +2687,13 @@ EOF if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:2688: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:2691: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext <<EOF -#line 2694 "configure" +#line 2697 "configure" #include "confdefs.h" #include <sgtty.h> Autoconf TIOCGETP @@ -2708,7 +2711,7 @@ rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext <<EOF -#line 2712 "configure" +#line 2715 "configure" #include "confdefs.h" #include <termio.h> Autoconf TCGETA @@ -2730,7 +2733,7 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 fi echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 -echo "configure:2734: checking for 8-bit clean memcmp" >&5 +echo "configure:2737: checking for 8-bit clean memcmp" >&5 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2738,7 +2741,7 @@ else ac_cv_func_memcmp_clean=no else cat > conftest.$ac_ext <<EOF -#line 2742 "configure" +#line 2745 "configure" #include "confdefs.h" main() @@ -2748,7 +2751,7 @@ main() } EOF -if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_memcmp_clean=yes else @@ -2766,12 +2769,12 @@ echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" echo $ac_n "checking for vprintf""... $ac_c" 1>&6 -echo "configure:2770: checking for vprintf" >&5 +echo "configure:2773: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2775 "configure" +#line 2778 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char vprintf(); below. */ @@ -2794,7 +2797,7 @@ vprintf(); ; return 0; } EOF -if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_vprintf=yes" else @@ -2818,12 +2821,12 @@ fi if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 -echo "configure:2822: checking for _doprnt" >&5 +echo "configure:2825: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2827 "configure" +#line 2830 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char _doprnt(); below. */ @@ -2846,7 +2849,7 @@ _doprnt(); ; return 0; } EOF -if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func__doprnt=yes" else @@ -2873,12 +2876,12 @@ fi for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2877: checking for $ac_func" >&5 +echo "configure:2880: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2882 "configure" +#line 2885 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2901,7 +2904,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:2905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2929,7 +2932,7 @@ done # Extract the first word of "sgml2txt", so it can be a program name with args. set dummy sgml2txt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2933: checking for $ac_word" >&5 +echo "configure:2936: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2959,7 +2962,7 @@ fi # Extract the first word of "sgml2html", so it can be a program name with args. set dummy sgml2html; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2963: checking for $ac_word" >&5 +echo "configure:2966: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2989,7 +2992,7 @@ fi # Extract the first word of "sgml2latex", so it can be a program name with args. set dummy sgml2latex; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2993: checking for $ac_word" >&5 +echo "configure:2996: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3026,7 +3029,7 @@ else # Extract the first word of "sgml2ps", so it can be a program name with args. set dummy sgml2ps; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3030: checking for $ac_word" >&5 +echo "configure:3033: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3241,6 +3244,7 @@ s%@PIC@%$PIC%g s%@LD@%$LD%g s%@LD_D@%$LD_D%g s%@LD_L@%$LD_L%g +s%@STRIP@%$STRIP%g s%@LIBOBJS@%$LIBOBJS%g s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g diff --git a/configure.in b/configure.in index 52d3d9fa..15224e72 100644 --- a/configure.in +++ b/configure.in @@ -237,6 +237,7 @@ if test "$GCC" = yes; then LD=ld LD_D="gcc -shared -Xlinker -x" LD_L="$LD -x -shared" + STRIP=strip else ### ### Non-gcc needs attention on per-OS basis @@ -248,6 +249,7 @@ else LD=ld LD_D="cc -z text -G -R." LD_L="$LD_D" + STRIP=strip fi AC_SUBST(OS_CFLAGS) @@ -256,6 +258,7 @@ AC_SUBST(PIC) AC_SUBST(LD) AC_SUBST(LD_D) AC_SUBST(LD_L) +AC_SUBST(STRIP) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_BIGENDIAN diff --git a/modules/pam_filter/upperLOWER/Makefile b/modules/pam_filter/upperLOWER/Makefile index a229268e..6db8d6e3 100644 --- a/modules/pam_filter/upperLOWER/Makefile +++ b/modules/pam_filter/upperLOWER/Makefile @@ -22,7 +22,7 @@ all: $(TITLE) $(TITLE): $(OBJS) $(CC) -o $(TITLE) $(OBJS) - strip $(TITLE) + $(STRIP) $(TITLE) install: $(MKDIR) $(FAKEROOT)$(FILTERSDIR) |