File tree 5 files changed +15
-15
lines changed
5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -17164,19 +17164,7 @@ $as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h
17164
17164
17165
17165
fi
17166
17166
17167
- for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
17168
- do :
17169
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17170
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17171
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17172
- cat >>confdefs.h <<_ACEOF
17173
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17174
- _ACEOF
17175
-
17176
- fi
17177
- done
17178
-
17179
- for ac_func in append_history history_truncate_file
17167
+ for ac_func in append_history history_truncate_file rl_completion_matches rl_filename_completion_function rl_reset_screen_size rl_variable_bind
17180
17168
do :
17181
17169
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17182
17170
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Original file line number Diff line number Diff line change @@ -2001,8 +2001,14 @@ LIBS="$LIBS_including_readline"
2001
2001
2002
2002
if test "$with_readline" = yes; then
2003
2003
PGAC_READLINE_VARIABLES
2004
- AC_CHECK_FUNCS ( [ rl_completion_matches rl_filename_completion_function rl_reset_screen_size] )
2005
- AC_CHECK_FUNCS ( [ append_history history_truncate_file] )
2004
+ AC_CHECK_FUNCS ( m4_normalize ( [
2005
+ append_history
2006
+ history_truncate_file
2007
+ rl_completion_matches
2008
+ rl_filename_completion_function
2009
+ rl_reset_screen_size
2010
+ rl_variable_bind
2011
+ ] ) )
2006
2012
fi
2007
2013
2008
2014
Original file line number Diff line number Diff line change @@ -356,8 +356,10 @@ initializeInput(int flags)
356
356
/* set appropriate values for Readline's global variables */
357
357
initialize_readline ();
358
358
359
+ #ifdef HAVE_RL_VARIABLE_BIND
359
360
/* set comment-begin to a useful value for SQL */
360
361
(void ) rl_variable_bind ("comment-begin" , "-- " );
362
+ #endif
361
363
362
364
/* this reads ~/.inputrc, so do it after rl_variable_bind */
363
365
rl_initialize ();
Original file line number Diff line number Diff line change 485
485
/* Define to 1 if you have the `rl_reset_screen_size' function. */
486
486
#undef HAVE_RL_RESET_SCREEN_SIZE
487
487
488
+ /* Define to 1 if you have the `rl_variable_bind' function. */
489
+ #undef HAVE_RL_VARIABLE_BIND
490
+
488
491
/* Define to 1 if you have the <security/pam_appl.h> header file. */
489
492
#undef HAVE_SECURITY_PAM_APPL_H
490
493
Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ sub GenerateFiles
354
354
HAVE_RL_FILENAME_QUOTE_CHARACTERS => undef ,
355
355
HAVE_RL_FILENAME_QUOTING_FUNCTION => undef ,
356
356
HAVE_RL_RESET_SCREEN_SIZE => undef ,
357
+ HAVE_RL_VARIABLE_BIND => undef ,
357
358
HAVE_SECURITY_PAM_APPL_H => undef ,
358
359
HAVE_SETENV => undef ,
359
360
HAVE_SETPROCTITLE => undef ,
You can’t perform that action at this time.
0 commit comments