X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=c%2B%2B%2Fedit_cfg.sh;h=92ab0b1fbdc5695ff2239e9f0b220256adb7f776;hp=efea83323b11bf7b1f27f0bbe593c6ade421a0dd;hb=2b7c2fd2f9d58719770902ce4d0d0aeb87b284f7;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34 diff --git a/c++/edit_cfg.sh b/c++/edit_cfg.sh index efea8332..92ab0b1f 100755 --- a/c++/edit_cfg.sh +++ b/c++/edit_cfg.sh @@ -1,7 +1,8 @@ #!/bin/sh -# $Id: edit_cfg.sh,v 1.8 2000/07/01 16:07:37 tom Exp $ +# $Id: edit_cfg.sh,v 1.18 2020/02/02 23:34:34 tom Exp $ ############################################################################## -# Copyright (c) 1998,2000 Free Software Foundation, Inc. # +# Copyright 2020 Thomas E. Dickey # +# Copyright 1998-2007,2008 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -28,7 +29,7 @@ # authorization. # ############################################################################## # -# Author: Thomas E. Dickey 1997 +# Author: Thomas E. Dickey 1997-on # # Edit the default value of the etip.h file based on the autoconf-generated # values: @@ -39,14 +40,18 @@ echo "substituting autoconf'd values from $1 into $2" for name in \ CPP_HAS_PARAM_INIT \ + CPP_HAS_STATIC_CAST \ ETIP_NEEDS_MATH_EXCEPTION \ ETIP_NEEDS_MATH_H \ HAVE_BUILTIN_H \ - HAVE_GXX_BUILTIN_H \ HAVE_GPP_BUILTIN_H \ + HAVE_GXX_BUILTIN_H \ + HAVE_IOSTREAM \ HAVE_TYPEINFO \ - HAVE_VALUES_H + HAVE_VALUES_H \ + IOSTREAM_NAMESPACE do + rm -f $2.bak mv $2 $2.bak if ( grep "[ ]$name[ ]1" $1 2>&1 >/dev/null) then