Skip to content

Commit 85f34e1

Browse files
author
Herbert Koelman
committed
Merge branch 'feat-74' into develop
2 parents 3347dd9 + 0fdd1d1 commit 85f34e1

File tree

7 files changed

+304
-96
lines changed

7 files changed

+304
-96
lines changed

Makefile.in

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ INCLUDEDIR=@includedir@/pthread
99
LIBDIR=@libdir@
1010
LOCALEDIR=@localedir@
1111

12+
PACKAGE_NAME=@PACKAGE_NAME@
13+
PACKAGE_DEV=@PACKAGE_NAME@-@BUILD@-@[email protected]
14+
PACKAGE_SRC=@PACKAGE_NAME@-@[email protected]
15+
1216
INSTALL=@INSTALL@
1317
RM=@RM@
1418
MKDIR=@MKDIR_P@
15-
PACKAGE_NAME=@PACKAGE_NAME@
16-
PACKAGE_DEVELOP=@PACKAGE_NAME@-@BUILD@-@[email protected]
17-
PACKAGE=@PACKAGE_NAME@-@PACKAGE_VERSION@-@[email protected]
1819
HEADERS=@HEADERS@
1920
DOXYGEN=@DOXYGEN@
2021
CODECHECK=@CODECHECK@
@@ -29,11 +30,13 @@ all:
2930

3031
pkg: clean all
3132
$(MKDIR) distrib
32-
tar cf - include lib | gzip -c > distrib/$(PACKAGE_DEVELOP)
33+
tar cf - include lib | gzip -c > distrib/$(PACKAGE_DEV)
34+
tar cf - `git ls-files` | gzip -c > distrib/$(PACKAGE_SRC)
3335

3436
# this target can only be used if REPOSITORY is set (hence the test)
3537
deploy: pkg
36-
@test ! -z "$(REPOSITORY)" && ( cd distrib && $(DEPLOY) $(PACKAGE_DEVELOP) $(REPOSITORY) 2> /dev/null && echo "deployed $(PACKAGE_DEVELOP) here $(REPOSITORY)" ) || echo "WARNING use ./configure --enable-repository to enable deploy target"
38+
@test ! -z "$(REPOSITORY)" && ( cd distrib && $(DEPLOY) $(PACKAGE_DEV) $(REPOSITORY) 2> /dev/null && echo "deployed $(PACKAGE_DEV) here $(REPOSITORY)" ) || echo "WARNING use ./configure --enable-repository to enable deploy target"
39+
@test ! -z "$(REPOSITORY)" && ( cd distrib && $(DEPLOY) $(PACKAGE_SRC) $(REPOSITORY) 2> /dev/null && echo "deployed $(PACKAGE_SRC) here $(REPOSITORY)" ) || echo "WARNING use ./configure --enable-repository to enable deploy target"
3740

3841
globber:clean
3942
-$(RM) -R Makefile autom4te.cache config.log config.status doxyfile sonar-project.properties
@@ -53,11 +56,7 @@ doxygen:
5356
${DOXYGEN} doxyfile
5457

5558
install:
56-
$(MKDIR) $(INCLUDEDIR)
57-
$(INSTALL) include/pthread/*.hpp include/pthread/*.h $(INCLUDEDIR)
58-
$(INSTALL) lib/lib@[email protected] @libdir@
59+
-(cd src && $(MAKE) install)
5960

6061
uninstall:
61-
$(RM) -R $(INCLUDEDIR)
62-
# not a good idea $(RM) @libdir@/lib@PACKAGE_NAME@-@[email protected] @libdir@/lib@[email protected]
63-
$(RM) @libdir@/lib@PACKAGE_NAME@*.a
62+
-(cd src && $(MAKE) uninstall)

configure

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for cpp-pthread v1.7.2.
3+
# Generated by GNU Autoconf 2.69 for cpp-pthread v1.7.3.
44
#
55
# Report bugs to <[email protected]>.
66
#
@@ -579,8 +579,8 @@ MAKEFLAGS=
579579
# Identity of this package.
580580
PACKAGE_NAME='cpp-pthread'
581581
PACKAGE_TARNAME='cpp-pthread'
582-
PACKAGE_VERSION='v1.7.2'
583-
PACKAGE_STRING='cpp-pthread v1.7.2'
582+
PACKAGE_VERSION='v1.7.3'
583+
PACKAGE_STRING='cpp-pthread v1.7.3'
584584
PACKAGE_BUGREPORT='[email protected]'
585585
PACKAGE_URL='http://herbertkoelman.github.io/cpp-pthread/'
586586

@@ -645,8 +645,7 @@ SHELL'
645645
ac_subst_files=''
646646
ac_user_opts='
647647
enable_option_checking
648-
enable_build
649-
enable_release
648+
enable_snapshot
650649
enable_repository
651650
enable_codecheck
652651
'
@@ -1194,7 +1193,7 @@ if test "$ac_init_help" = "long"; then
11941193
# Omit some internal or obsolete options to make the list less imposing.
11951194
# This message is too long to be a string in the A/UX 3.1 sh.
11961195
cat <<_ACEOF
1197-
\`configure' configures cpp-pthread v1.7.2 to adapt to many kinds of systems.
1196+
\`configure' configures cpp-pthread v1.7.3 to adapt to many kinds of systems.
11981197
11991198
Usage: $0 [OPTION]... [VAR=VALUE]...
12001199
@@ -1258,15 +1257,14 @@ fi
12581257

12591258
if test -n "$ac_init_help"; then
12601259
case $ac_init_help in
1261-
short | recursive ) echo "Configuration of cpp-pthread v1.7.2:";;
1260+
short | recursive ) echo "Configuration of cpp-pthread v1.7.3:";;
12621261
esac
12631262
cat <<\_ACEOF
12641263
12651264
Optional Features:
12661265
--disable-option-checking ignore unrecognized --enable/--with options
12671266
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
12681267
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1269-
--enable-build build name.
12701268
--enable-release build as release.
12711269
--enable-repository use the given name to locate the remote repository
12721270
\
@@ -1342,7 +1340,7 @@ fi
13421340
test -n "$ac_init_help" && exit $ac_status
13431341
if $ac_init_version; then
13441342
cat <<\_ACEOF
1345-
cpp-pthread configure v1.7.2
1343+
cpp-pthread configure v1.7.3
13461344
generated by GNU Autoconf 2.69
13471345
13481346
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1359,7 +1357,7 @@ cat >config.log <<_ACEOF
13591357
This file contains any messages produced by compilers while
13601358
running configure, to aid debugging if configure makes a mistake.
13611359
1362-
It was created by cpp-pthread $as_me v1.7.2, which was
1360+
It was created by cpp-pthread $as_me v1.7.3, which was
13631361
generated by GNU Autoconf 2.69. Invocation command line was
13641362
13651363
$ $0 $@
@@ -1744,14 +1742,11 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
17441742
17451743
17461744
1747-
# Check whether --enable-build was given.
1748-
if test "${enable_build+set}" = set; then :
1749-
enableval=$enable_build; BUILD=$enable_build
1750-
fi
1751-
1752-
# Check whether --enable-release was given.
1753-
if test "${enable_release+set}" = set; then :
1754-
enableval=$enable_release; BUILD=$PACKAGE_VERSION
1745+
# Check whether --enable-snapshot was given.
1746+
if test "${enable_snapshot+set}" = set; then :
1747+
enableval=$enable_snapshot; BUILD="SNAPSHOT"
1748+
else
1749+
BUILD=$PACKAGE_VERSION
17551750
fi
17561751
17571752
# Check whether --enable-repository was given.
@@ -1767,12 +1762,14 @@ then
17671762
17681763
fi
17691764
1770-
if test -z "$BUILD"
1771-
then
1772-
BUILD="SNAPSHOT"
1773-
{ $as_echo "$as_me:${as_lineno-$LINENO}: using default BUILD name $BUILD" >&5
1774-
$as_echo "$as_me: using default BUILD name $BUILD" >&6;}
1775-
fi
1765+
{ $as_echo "$as_me:${as_lineno-$LINENO}:
1766+
1767+
Build $PACKAGE_NAME version $BUILD
1768+
" >&5
1769+
$as_echo "$as_me:
1770+
1771+
Build $PACKAGE_NAME version $BUILD
1772+
" >&6;}
17761773
BUILD=$BUILD
17771774
17781775
@@ -2044,8 +2041,8 @@ else
20442041
$as_echo "no, using $LN_S" >&6; }
20452042
fi
20462043
2047-
# Extract the first word of "basic_deploy.sh", so it can be a program name with args.
2048-
set dummy basic_deploy.sh; ac_word=$2
2044+
# Extract the first word of "nexus-upload", so it can be a program name with args.
2045+
set dummy nexus-upload; ac_word=$2
20492046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20502047
$as_echo_n "checking for $ac_word... " >&6; }
20512048
if ${ac_cv_prog_DEPLOY+:} false; then :
@@ -2061,15 +2058,15 @@ do
20612058
test -z "$as_dir" && as_dir=.
20622059
for ac_exec_ext in '' $ac_executable_extensions; do
20632060
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064-
ac_cv_prog_DEPLOY="basic_deploy.sh"
2061+
ac_cv_prog_DEPLOY="nexus-upload"
20652062
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20662063
break 2
20672064
fi
20682065
done
20692066
done
20702067
IFS=$as_save_IFS
20712068
2072-
test -z "$ac_cv_prog_DEPLOY" && ac_cv_prog_DEPLOY="echo \"please install basic_deploy.sh, make sure it\'s in your PATH and re-run ./configure\""
2069+
test -z "$ac_cv_prog_DEPLOY" && ac_cv_prog_DEPLOY="echo \"please install nexus-upload, make sure it\'s in your PATH and re-run ./configure\""
20732070
fi
20742071
fi
20752072
DEPLOY=$ac_cv_prog_DEPLOY
@@ -2735,7 +2732,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27352732
# report actual input values of CONFIG_FILES etc. instead of their
27362733
# values after options handling.
27372734
ac_log="
2738-
This file was extended by cpp-pthread $as_me v1.7.2, which was
2735+
This file was extended by cpp-pthread $as_me v1.7.3, which was
27392736
generated by GNU Autoconf 2.69. Invocation command line was
27402737
27412738
CONFIG_FILES = $CONFIG_FILES
@@ -2789,7 +2786,7 @@ _ACEOF
27892786
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27902787
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27912788
ac_cs_version="\\
2792-
cpp-pthread config.status v1.7.2
2789+
cpp-pthread config.status v1.7.3
27932790
configured by $0, generated by GNU Autoconf 2.69,
27942791
with options \\"\$ac_cs_config\\"
27952792

configure.ac

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@ AC_LANG(C++)
77

88
AC_CONFIG_AUX_DIR([/usr/bin . bin])
99

10-
AC_ARG_ENABLE([build], AS_HELP_STRING([--enable-build],[build name.]), BUILD=$enable_build)
11-
AC_ARG_ENABLE([release], AS_HELP_STRING([--enable-release],[build as release.]), BUILD=$PACKAGE_VERSION)
10+
AC_ARG_ENABLE([snapshot], AS_HELP_STRING([--enable-release],[build as release.]), [BUILD="SNAPSHOT"], [BUILD=$PACKAGE_VERSION])
1211
AC_ARG_ENABLE([repository], AS_HELP_STRING([--enable-repository],[use the given name to locate the remote repository]), AC_MSG_NOTICE([repository set to $enable_repository]) )
1312

1413
if test ! -z "$enable_repository"
1514
then
1615
AC_SUBST(REPOSITORY,"$enable_repository/$PACKAGE_NAME")
1716
fi
1817

19-
if test -z "$BUILD"
20-
then
21-
BUILD="SNAPSHOT"
22-
AC_MSG_NOTICE([using default BUILD name $BUILD])
23-
fi
18+
AC_MSG_NOTICE([
19+
20+
Build $PACKAGE_NAME version $BUILD
21+
])
2422
AC_SUBST(BUILD,$BUILD)
2523

2624
AC_CANONICAL_BUILD
@@ -35,7 +33,7 @@ AC_CHECK_PROG([RM],[rm],[rm -f])
3533
AC_CHECK_PROG([DOXYGEN],[doxygen],[doxygen],[echo \"please install doxygen and re-run ./configure, or run it manualy doxygen \"])
3634
AC_PROG_MKDIR_P
3735
AC_PROG_LN_S
38-
AC_CHECK_PROG([DEPLOY],[basic_deploy.sh],[basic_deploy.sh],[echo \"please install basic_deploy.sh, make sure it\'s in your PATH and re-run ./configure\"])
36+
AC_CHECK_PROG([DEPLOY],[nexus-upload],[nexus-upload],[echo \"please install nexus-upload, make sure it\'s in your PATH and re-run ./configure\"])
3937

4038
# Okay, no cppcheck found, maybe we have sonar
4139
if test -z "$CODECHECK"

src/Makefile.in

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Compile c++ source code
55
.SUFFIXES:.cpp
66

7+
prefix=@prefix@
8+
exec_prefix=@exec_prefix@
9+
710
BASEDIR=../
811
XREFDIR=${BASEDIR}/xref/
912
UDATAOBJ=$(BASEDIR)/udataobj/
@@ -17,10 +20,13 @@ CC=@CC@
1720
CCC=@CXX@
1821
CXX=$CCC
1922
RANLIB=@RANLIB@
20-
RM=rm -f
2123
AR=@AR@ @ARFLAGS@
24+
25+
INSTALL=@INSTALL@
26+
RM=@RM@
2227
MV=@MV@
2328
LN_S=@LN_S@
29+
MKDIR=@MKDIR_P@
2430

2531
BITS=@BITS@
2632
OBJECT_MODE=$(BITS)
@@ -53,6 +59,15 @@ clean:
5359
cxref:
5460
cxref *.c -xref -index-all -latex209 -O${XREFDIR} -I${INCDIR} -I${INCTUX}
5561

62+
install:
63+
$(MKDIR) @includedir@/pthread
64+
$(INSTALL) ${INCDIR}/pthread/*.hpp ${INCDIR}/pthread/*.h @includedir@/pthread
65+
$(INSTALL) ${LIBDIR}/lib@[email protected] @libdir@
66+
67+
uninstall:
68+
$(RM) -R @includedir@/pthread
69+
$(RM) @libdir@/lib@PACKAGE_NAME@*.a
70+
5671
# cpp build rule
5772
.cpp.o:
5873
$(CCC) $(CPPFLAGS) $(CXXFLAGS) $(CFLAGS) -c $<

0 commit comments

Comments
 (0)